This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# moment 2.29.2 changelog | |
This is security update, adressing | |
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 | |
Locales with names containing forward slash `/` and backward slash `\\` are no | |
longer loaded from filesystem (they can still be used in locales which are | |
defined on the spot). | |
This might break your code, if you happen to package your own locales in | |
a folder, relative to the moment locales, for example `locales/mine/xx.js`, and | |
load via `moment.locale('mine/xx')`. If that is the case manually require the | |
file to register the locale and then just switch to it via `.locale('xx')`. | |
## Other changes | |
* [misc] Fix indentation (according to prettier) | |
* [test] Avoid hours around DST | |
* [locale] ar-ly: fix locale name (#5828) | |
* [misc] fix builds [#3836](https://github.com/moment/moment/pull/5836) | |
* [misc] Specify length of toArray return type [#5766](https://github.com/moment/moment/pull/5766) | |
* [locale] tr: update translation of Monday and Saturday [#5756](https://github.com/moment/moment/pull/5756) | |
* [misc] fix lint issues [5762](https://github.com/moment/moment/pull/5762) | |
* [misc] optimize for loops [5744](https://github.com/moment/moment/pull/5744) | |
* [bugfix] add standalone and format to "cs" locale [5749](https://github.com/moment/moment/pull/5749) | |
* [locale] Fix Serbian locale (sr, sr-cyrl) [5742](https://github.com/moment/moment/pull/5742) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/ichernev/1904b564f6679d9aac1ae08ce13bc45c?permalink_comment_id=4126746#gistcomment-4126746