Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle record keys outside domain #705

Merged
merged 3 commits into from Dec 3, 2023

Conversation

tgfisher4
Copy link
Contributor

Addresses #704.

New behavior is that:

  • record.is allows keys outside domain
  • record.{en,de}code allow but strip keys outside domain

Other changes:

  • added/modified appropriate record tests
    • distinguished HyphenatedString from HyphenatedStringFromNonHyphenated so that the former can be used for (only) testing a domain that is a subset of string, and the latter for testing a prismatic domain
  • implement enumerableRecord in terms of exact

Happy to iterate based on feedback.

src/index.ts Outdated Show resolved Hide resolved
@gcanti
Copy link
Owner

gcanti commented Dec 2, 2023

@tgfisher4 LGTM

@tgfisher4 tgfisher4 requested a review from gcanti December 3, 2023 17:03
@gcanti gcanti merged commit 4abb81c into gcanti:master Dec 3, 2023
1 check passed
@gcanti
Copy link
Owner

gcanti commented Dec 3, 2023

Thanks @tgfisher4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants