---
title: "moment 2.31.0 Breaking Changes on npm | Since.dev"
description: "What each moment release removed, renamed or changed: 9 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/moment
last_updated: 2026-12-04
---

# 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

Latest version `2.31.0`, released September 15, 2026. [Source repository](https://github.com/moment/moment)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## moment 2.31.0 breaking changes

moment 2.31.0, released September 15, 2026: 9 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](https://github.com/moment/moment/releases/tag/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)
- **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](https://www.npmjs.com/package/moment/v/2.31.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
