Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moment

Package Overview
Dependencies
Maintainers
5
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment - npm Package Versions

1
8

2.17.0

Diff

Changelog

Source

2.17.0 Also available here

  • Release Nov 22, 2016

  • #3435 [new locale] yo: Yoruba (Nigeria) locale

  • #3595 [bugfix] Fix accidental reference to global "value" variable

  • #3506 [bugfix] Fix invalid moments returning valid dates to method calls

  • #3563 [locale] ca: Change future relative time

  • #3504 [tests] Fixes #3463, parseZone not handling Z correctly (tests only)

  • #3591 [misc] typescript: update typescript to 2.0.8, add strictNullChecks=true

  • #3597 [misc] Fixed capitalization in nuget spec

ichernev
published 2.16.0 •

Changelog

Source

2.16.0 See full changelog

  • Release Nov 9, 2016

Features

  • #3530 [feature] Check whether input is date before checking if format is array
  • #3515 [feature] Fix #2300: Default to current week.

Bugfixes

  • #3546 [bugfix] Implement lazy-loading of child locales with missing prents
  • #3523 [bugfix] parseZone should handle UTC
  • #3502 [bugfix] Fix #3500: ISO 8601 parsing should match the full string, not the beginning of the string.
  • #3581 [bugfix] Fix parseZone, redo #3504, fix #3463

New Locales

  • #3416 [new locale] nl-be: Dutch (Belgium) locale
  • #3393 [new locale] ar-dz: Arabic (Algeria) locale
  • #3342 [new locale] tet: Tetun Dili (East Timor) locale

And more locale, build and typescript improvements

ichernev
published 2.15.2 •

Changelog

Source

2.15.2

  • Release Oct 23, 2016
  • #3525 Speedup month standalone/format regexes (IMPORTANT)
  • #3466 Fix typo of Javanese
ichernev
published 2.15.1 •

Changelog

Source

2.15.1

  • Release Sept 20, 2016
  • #3438 Fix locale autoload, revert #3344
ichernev
published 2.15.0 •

Changelog

Source

2.15.0 See full changelog

  • Release Sept 12, 2016

New Locales

  • #3255 [new locale] mi: Maori language
  • #3267 [new locale] ar-ly: Arabic (Libya) locale
  • #3333 [new locale] zh-hk: Chinese (Hong Kong) locale

Bugfixes

  • #3276 [bugfix] duration: parser: Support ms durations in .NET syntax
  • #3312 [bugfix] locales: Enable locale-data getters without moment (fixes #3284)
  • #3381 [bugfix] parsing: Fix parseZone without timezone in string, fixes #3083
  • #3383 [bugfix] toJSON: Fix isValid so that toJSON works after a moment is frozen
  • #3427 [bugfix] ie8: Fix IE8 (regression in 2.14.x)

Packaging

  • #3299 [pkg] npm: Do not include .npmignore in npm package
  • #3273 [pkg] jspm: Include moment.d.ts file in package
  • #3344 [pkg] exports: use module.require for nodejs

Also some locale and typescript improvements

ichernev
published 2.14.1 •

Changelog

Source

2.14.1

  • Release July 20, 2016
  • #3280 Fix typescript definitions
ichernev
published 2.14.0 •

Changelog

Source

2.14.0 See full changelog

  • Release July 20, 2016

New Features

  • #3233 Introduce month.isFormat for format/standalone discovery
  • #2848 Allow user to get/set the rounding method used when calculating relative time
  • #3112 optimize configFromStringAndFormat
  • #3147 Call calendar format function with moment context
  • #3160 deprecate isDSTShifted
  • #3175 make moment calendar extensible with ad-hoc options
  • #3191 toDate returns a copy of the internal date object
  • #3192 Adding support for rollup import.
  • #3238 Handle empty object and empty array for creation as now
  • #3082 Use relative AMD moment dependency

Bugfixes

  • #3241 Escape all 24 mixed pieces, not only first 12 in computeMonthsParse
  • #3008 Object setter orders sets based on size of unit
  • #3177 Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)
  • #3230 fix passing date with format string to ignore format string
  • #3232 Fix negative 0 in certain diff cases
  • #3235 Use proper locale inheritance for the base locale, fixes #3137

Plus es-do locale and locale bugfixes

ichernev
published 2.13.0 •

Changelog

Source

2.13.0 See full changelog

  • Release April 18, 2016

Enhancements:

  • #2982 Add 'date' as alias to 'day' for startOf() and endOf().
  • #2955 Add parsing negative components in durations when ISO 8601
  • #2991 isBetween support for both open and closed intervals
  • #3105 Add localeSorted argument to weekday listers
  • #3102 Add k and kk formatting tokens

Bugfixes

  • #3109 Fix #1756 Resolved thread-safe issue on server side.
  • #3078 Fix parsing for months/weekdays with weird characters
  • #3098 Use Z suffix when in UTC mode (#3020)
  • #2995 Fix floating point rounding errors in durations
  • #3059 fix bug where diff returns -0 in month-related diffs
  • #3045 Fix mistaking any input for 'a' token
  • #2877 Use explicit .valueOf() calls instead of coercion
  • #3036 Year setter should keep time when DST changes

Plus 3 new locales and locale fixes.

ichernev
published 2.12.0 •

Changelog

Source

2.12.0 See full changelog

  • Release March 7, 2016

Enhancements:

  • #2932 List loaded locales
  • #2818 Parse ISO-8061 duration containing both day and week values
  • #2774 Implement locale inheritance and locale updating

Bugfixes:

  • #2970 change add subtract to handle decimal values by rounding
  • #2887 Fix toJSON casting of invalid moment
  • #2897 parse string arguments for month() correctly, closes #2884
  • #2946 Fix usage suggestions for min and max

New locales:

  • #2917 Locale Punjabi(Gurmukhi) India format conversion

And more

ichernev
published 2.11.2 •

Changelog

Source

2.11.2 (Fix ReDoS attack vector)

  • Release February 7, 2016
  • #2939 use full-string match to speed up aspnet regex match
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc