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

feat: filters invalid key types, throws when encountering one. #1302

Closed
wants to merge 1 commit into from

Conversation

jasonmit
Copy link
Member

@jasonmit jasonmit commented May 15, 2020

This is some what related to #1299

Now we're validating the keys passed in and throw a more obvious exception when encountering one. Prior, you would have seen a compiler error thrown: "A message must be provided as a String or AST"

For consistency, the service intl.t() API and the {{t}} helper now validate through the same path. That's the only breaking change here and I don't expect many to be impacted by it.

@jasonmit jasonmit force-pushed the u/jasonmit/change-t-helper-key-validation branch from 21e6a8b to a3bc672 Compare May 15, 2020 07:38
@jasonmit jasonmit force-pushed the u/jasonmit/change-t-helper-key-validation branch from a3bc672 to 48f9aa0 Compare May 15, 2020 07:49
@jasonmit jasonmit changed the title feat(BREAKING): filters invalid key types, throws when encountering one in debug mode. feat(BREAKING): filters invalid key types, throws when encountering one. May 15, 2020
@jasonmit jasonmit changed the title feat(BREAKING): filters invalid key types, throws when encountering one. feat: filters invalid key types, throws when encountering one. May 15, 2020
@jasonmit jasonmit force-pushed the u/jasonmit/change-t-helper-key-validation branch from 48f9aa0 to eb2a4a7 Compare May 15, 2020 08:08
@jasonmit jasonmit closed this May 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the u/jasonmit/change-t-helper-key-validation branch May 15, 2020 08:10
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

1 participant