Skip to content

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

Merged
leshakoss merged 2 commits intomasterfrom
1056-protected-tokens
Jan 31, 2019
Merged

Change unescaped characters handling in format, lightFormat and parse (closes #1056)#1069
leshakoss merged 2 commits intomasterfrom
1056-protected-tokens

Conversation

@leshakoss
Copy link
Copy Markdown
Member

@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 requested a review from kossnocorp January 30, 2019 15:14
@leshakoss leshakoss added this to the v2 beta milestone Jan 30, 2019
Copy link
Copy Markdown
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