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

Change unescaped characters handling in format, lightFormat and parse (closes #1056) #1069

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

leshakoss
Copy link
Contributor

@leshakoss leshakoss commented Jan 30, 2019

  1. Throw RangeError if format string contains an unescaped latin alphabet character;
  2. Add new options useAdditionalWeekYearTokens and useAdditionalDayOfYearTokens for format and parse. They are permanent API;
  3. Remove awareOfUnicodeTokens option because it proved to be ineffective.

See #1056 issue for reasoning.

…parse`

1) Throw RangeError if format string contains an unescaped latin alphabet character;
2) Add new options `useAdditionalWeekYearTokens` and `useAdditionalDayOfYearTokens` for `format` and `parse`. They are permanent API;
3) Remove `awareOfUnicodeTokens` option because it proved to be ineffective.
@leshakoss leshakoss added this to the v2 beta milestone Jan 30, 2019
Copy link
Member

@kossnocorp kossnocorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the changelog and prepare an entry for "v2 Pre-Releases Change Log": https://gist.github.com/kossnocorp/a307a464760b405bb78ef5020a4ab136

@leshakoss leshakoss merged commit 6f41d53 into master Jan 31, 2019
@leshakoss leshakoss deleted the 1056-protected-tokens branch January 31, 2019 06:56
emilecantin added a commit to emilecantin/react-datepicker that referenced this pull request Jan 24, 2024
`awareOfUnicodeTokens` has been removed in date-fns/date-fns#1069
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.

2 participants