moment breaking changes
moment 2.31.0 (September 15, 2026) is its newest release with breaking changes, 9 of them. The first: Ukrainian locale switches to ISO week numbering in moment 2.31.0. Every breaking API change we have recorded in moment on npm: 9 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.31.0, released September 15, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
moment 2.31.0 breaking changes
- Behavior changed
The 'uk' locale now uses ISO week numbering, so week-of-year output for Ukrainian users can change. Check any code that relies on week numbers in that locale. github.com - Signature changed
CalendarKey
Was type CalendarKey = 'sameDay' | 'nextDay' | 'lastDay' | 'nextWeek' | 'lastWeek' | 'sameElse' | string; now type CalendarKey = | 'sameDay' | 'nextDay' | 'lastDay' | 'nextWeek' | 'lastWeek' | 'sameElse' | string. npmjs.com - Signature changed
DurationInputArg1
Was type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | null | undefined; now type DurationInputArg1 = | Duration | number | string | FromTo | DurationInputObject | null | undefined. npmjs.com - Signature changed
LongDateFormatKey
Was type LongDateFormatKey = 'LTS' | 'LT' | 'L' | 'LL' | 'LLL' | 'LLLL' | 'lts' | 'lt' | 'l' | 'll' | 'lll' | 'llll'; now type LongDateFormatKey = | 'LTS' | 'LT' | 'L' | 'LL' | 'LLL' | 'LLLL' | 'lts' | 'lt' | 'l' | 'll' | 'lll' | 'llll'. npmjs.com - Signature changed
MomentInput
Was type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | null | undefined; now type MomentInput = | Moment | Date | string | number | (number | string)[] | MomentInputObject | null | undefined. npmjs.com - Signature changed
RelativeTimeKey
Was type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'ww' | 'M' | 'MM' | 'y' | 'yy'; now type RelativeTimeKey = | 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'ww' | 'M' | 'MM' | 'y' | 'yy'. npmjs.com - Signature changed
RelativeTimeSpecVal
Was type RelativeTimeSpecVal = (string | ((n: number, withoutSuffix: boolean, key: RelativeTimeKey, isFuture: boolean) => string)); now type RelativeTimeSpecVal = | string | ((n: number, withoutSuffix: boolean, key: RelativeTimeKey... npmjs.com - Signature changed
unitOfTime.All
Was type All = Base | _quarter | _isoWeek | _date | "weekYear" | "weekYears" | "gg" | "isoWeekYear" | "isoWeekYears" | "GG" | "dayOfYear" | "dayOfYears" | "DDD" | "weekday" | "weekdays" | "e" | "isoWeekday" | "isoWeekdays" | "E"; now type... npmjs.com - Signature changed
unitOfTime.Base
Was type Base = ("year" | "years" | "y" | "month" | "months" | "M" | "week" | "weeks" | "w" | "day" | "days" | "d" | "hour" | "hours" | "h" | "minute" | "minutes" | "m" | "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms")... npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.