- #6128 [feature] Graceful handling of undefined locale name
- #5554 [bugfix] Handle invalid mutations
- #6193 [bugfix] weekyear setter handle dow
- #5592 [bugfix] Stricter single digit date parsing
- #5827 [bugfix] ts: toISOString function also return null
- #5607 [bugfix] unify duration.valueOf and asMilliseconds
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 |
NOTE: There are some changes in this release with questionable stability across the packaging/environment spectrum. Update with care.
React native 0.49+ crashes with dynamic requires. This is a workaround.
- #4213 [critical] Rename dynamic require to avoid React Native crash
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
#!/bin/bash -x | |
set -e | |
set -o pipefail | |
REPO="moment/moment" | |
function json_escape(){ | |
echo -n "$1" | python -c 'import json,sys; print json.dumps(sys.stdin.read())' | |
} |
Datetime handling is relatively straight forward for UTC, but can get messy around DST (Daylight Savings Time), when the local clock shifts forwards or backwards one hour. During DST it's possible that a particular local time is invalid (in the middle of a forward shift) or ambiguous (in the middle of a backwards shift).
NewerOlder