Skip to content

Instantly share code, notes, and snippets.

@ichernev
Last active April 12, 2022 03:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichernev/1904b564f6679d9aac1ae08ce13bc45c to your computer and use it in GitHub Desktop.
Save ichernev/1904b564f6679d9aac1ae08ce13bc45c to your computer and use it in GitHub Desktop.
# 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)
@Alishfie
Copy link

Alishfie commented Apr 9, 2022

moment-2.29.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment