FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[pull] develop from moment:develop by pull[bot] · Pull Request #45 · httpsgithu/moment · GitHub

forked from moment/moment
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
18aba13
Create npm-grunt.yml (#6209)
ichernev Feb 18, 2024
8b16292
docs: add security policy (#6327)
UlisesGascon Jul 23, 2026
f5e0ba6
ci: Update Node testing matrix
gilmoreorless Jul 23, 2026
6f3e290
fix: update moment package-lock version to 2.30.1 (#6372)
UlisesGascon Jul 26, 2026
46e25cb
docs: use https momentjs.com link (#6348)
pavan-sh Jul 26, 2026
66f13d0
[misc] Update readme, remove broken badges and images (#6293)
Electroid Jul 26, 2026
c5a16ab
[misc] repository maintenance (#6375)
mattjohnsonpint Jul 26, 2026
019806b
[bugfix] prevent object prototypes in format strings (#6376)
mattjohnsonpint Jul 27, 2026
27f2bf2
[bugfix] Fix hu locale relative time ss ternary precedence (#6371)
Hashim1999164 Aug 12, 2026
7ea5aae
[locale] ca.js: replace straight quotes with curly quotes (#6306)
qmoya Aug 12, 2026
d5fc455
fix: thursday shortcode for sv locale (#6289)
usamaJ17 Aug 12, 2026
f85937e
[locale] Add Amharic (Ethiopia) locale [am-et] (#6278)
tekleayele Aug 12, 2026
5b5b2ec
[locale] Fixed ('L') format for Georgian and Flemish (Belgium Dutch).…
adidaslevy Aug 12, 2026
f6f668d
[bugfix] Fix develop CI failures from recent locale changes (#6379)
mattjohnsonpint Aug 12, 2026
6865710
[misc] Update dev dependencies and update tests (#6380)
mattjohnsonpint Aug 12, 2026
f9cc0fa
Add fossa license scan report and status (#6381)
mattjohnsonpint Aug 12, 2026
dc43502
[misc] fix coveralls, remove travis (#6382)
mattjohnsonpint Aug 12, 2026
e89b241
[misc] fix npm packaging (#6383)
mattjohnsonpint Aug 12, 2026
e26e6f5
[misc] add code owners file (#6385)
mattjohnsonpint Aug 13, 2026
4d23572
[misc] run fossa scan manually (#6387)
mattjohnsonpint Aug 13, 2026
44f4556
[misc] update fossa badges (#6388)
mattjohnsonpint Aug 13, 2026
fc4afe8
[misc] update fossa workflow (#6389)
mattjohnsonpint Aug 13, 2026
4275130
[misc] update fossa workflow (#6390)
mattjohnsonpint Aug 13, 2026
8f2aa0f
[locale] pt-br: Fix wrong plural usage for time
luizcorreia Aug 13, 2026
0e8f38c
Fix uk locale week calculation according to ДСТУ ISO 8601:2010 (Natio…
JohnJunior Aug 14, 2026
765209e
[misc] fix typo in transpile task description
ayushshukla1807 Aug 14, 2026
ac34257
[tests] Fix strict flag assertion message (#6350)
Vikash9546 Aug 14, 2026
91e9ea5
[locale] locale(uk): use U+02BC apostrophe in Friday weekday names (#…
Hashim1999164 Aug 14, 2026
6a500a5
[locale] Fix Swahili spelling of hour from saat to saa (#6347)
Luqmaan-Abdallah Aug 15, 2026
5f7d983
[bugfix] Normalize lazy-loaded locale names (#6386)
mattjohnsonpint Aug 15, 2026
479480c
[misc] Remove last traces of Nuget (#6392)
gilmoreorless Aug 15, 2026
c7a17d4
[locale] Fix Swahili weekday and relative-time grammar (#6391)
mattjohnsonpint Aug 16, 2026
8a08869
[misc] rename test to match repo conventions (#6395)
mattjohnsonpint Aug 16, 2026
791a476
[misc] Modernize development, CI, and release tooling (#6397)
mattjohnsonpint Aug 17, 2026
afaa8b0
[misc] fix fossa scan (#6398)
mattjohnsonpint Aug 17, 2026
09e26d5
[misc] update links (#6399)
mattjohnsonpint Aug 17, 2026
fae681c
[locale] de, de-at, de-ch: parse short months without trailing dot (#…
SayantanDutt Aug 17, 2026
fc7b90a
[misc] format code
mattjohnsonpint Aug 17, 2026
a03393d
[misc] update readme with openjs details (#6400)
mattjohnsonpint Aug 17, 2026
86d3374
[misc] fix openjsf logo in light mode (#6401)
mattjohnsonpint Aug 17, 2026
7401a0b
[locale] change abbreviation of august for Indonesian locale (#6197)
ardhyanth Aug 18, 2026
c4c9a34
[tests] fix benchmarks (#6403)
mattjohnsonpint Aug 18, 2026
e329f98
[bugfix] Parse compact locale weekday before time (#6404)
mattjohnsonpint Aug 19, 2026
6e9f15d
[tests] fix DST unit test failures (#6405)
mattjohnsonpint Aug 19, 2026
b9b0792
[misc] colorize githook messages (#6406)
mattjohnsonpint Aug 19, 2026
efcea5d
[misc] Create locale reviewer agent skill (#6407)
mattjohnsonpint Aug 19, 2026
0433f01
[misc] add CI meta check for validation (#6408)
mattjohnsonpint Aug 19, 2026
62c4b08
[locale] Fix Uzbek past relative time (#6409)
mattjohnsonpint Aug 20, 2026
cf524af
[locale] Fix Polish month case for dotted day formats (#6410)
mattjohnsonpint Aug 20, 2026
bd9555b
[bugfix] Ignore non-Moment arguments in min and max (#6433)
mattjohnsonpint Aug 23, 2026
9cbe162
[bugfix] Fix inherited lowercase long date formats (#6434)
mattjohnsonpint Aug 23, 2026
4a5b290
[bugfix] Reset locale parsing caches after updates (#6436)
mattjohnsonpint Aug 23, 2026
File filter

Filter by extension

Filter by extension .js  (98) .json  (10) .jsonc  (1) .md  (11) .nuspec  (1) .sh  (1) .ts  (8) .yaml  (1) .yml  (11) No extension  (4) dotfile  (4) All 11 file types selected
Only manifest files
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
433 changes: 433 additions & 0 deletions .agents/skills/locale-review/SKILL.md

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

3 changes: 1 addition & 2 deletions .gitattributes
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# we don't have non-text files, don't take chances with git's text=auto
* text
# this file is read by nuget (Windows) tooling, lets keep it happy
Moment.js.nuspec eol=crlf
.githooks/* text eol=lf
14 changes: 14 additions & 0 deletions .githooks/post-checkout
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

branch=$(git symbolic-ref --quiet --short HEAD) || exit 0

if test "$branch" = master; then
if test -z "${NO_COLOR+x}" &&
{ test -n "${FORCE_COLOR+x}" || { test -t 2 && test "${TERM:-dumb}" != dumb; }; }; then
printf '\033[33m%s\033[0m\n' \
'WARNING: master tracks the latest release; new work belongs on develop.' >&2
else
printf '%s\n' \
'WARNING: master tracks the latest release; new work belongs on develop.' >&2
fi
fi
15 changes: 15 additions & 0 deletions .githooks/pre-commit
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

branch=$(git symbolic-ref --quiet --short HEAD) || exit 0

if test "$branch" = master; then
if test -z "${NO_COLOR+x}" &&
{ test -n "${FORCE_COLOR+x}" || { test -t 2 && test "${TERM:-dumb}" != dumb; }; }; then
printf '\033[31m%s\033[0m\n' \
'ERROR: commits on master are not allowed; switch to develop first.' >&2
else
printf '%s\n' \
'ERROR: commits on master are not allowed; switch to develop first.' >&2
fi
exit 1
fi
1 change: 1 addition & 0 deletions .github/CODEOWNERS
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @moment/collaborators
50 changes: 0 additions & 50 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

109 changes: 109 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Bug report
description: Report a reproducible defect in Moment.js
title: '[Bug] '
body:
- type: markdown
attributes:
value: |
Moment.js is in maintenance mode and is not accepting new features.
Use this form only for reproducible defects in Moment.js core.
Reports are assessed individually; submitting a valid defect does not
guarantee that a code change will be made.

- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
options:
- label: I searched existing issues for this problem.
required: true
- label: I read the applicable [documentation](https://momentjs.com/docs/) and [guides](https://momentjs.com/guides/).
required: true
- label: I reproduced the problem with the latest Moment.js release.
required: true
- label: I confirmed this belongs to Moment.js core, not [Moment Timezone](https://github.com/moment/moment-timezone/issues), [Luxon](https://github.com/moment/luxon/issues), or the [momentjs.com website](https://github.com/moment/momentjs.com/issues).
required: true

- type: textarea
id: description
attributes:
label: Description
description: Describe the defect and when it occurs.
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Minimal reproduction
description: Provide the smallest complete example that reproduces the problem.
render: javascript
validations:
required: true

- type: input
id: reproduction-link
attributes:
label: Reproduction link
description: Optionally link to a runnable reproduction.
placeholder: https://...

- type: textarea
id: actual
attributes:
label: Actual behavior
description: Include the exact output or error.
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected behavior
description: Include the exact output you expected and why.
validations:
required: true

- type: input
id: moment-version
attributes:
label: Moment.js version
placeholder: 2.30.1
validations:
required: true

- type: input
id: runtime
attributes:
label: Runtime
description: Include the Node.js or browser name and version.
placeholder: Node.js 22.22.2 or Chrome 140
validations:
required: true

- type: input
id: loading
attributes:
label: Loading method
description: Describe how Moment.js is imported or loaded if it is not evident from the code sample.
placeholder: npm CommonJS, ESM bundle, or CDN script

- type: input
id: locale
attributes:
label: Locale
description: Include the active locale if it may affect the result.
placeholder: en, pt-br, or not applicable

- type: input
id: timezone
attributes:
label: Time zone
description: Include the system time zone or UTC offset if relevant.
placeholder: America/New_York, UTC-05:00, or not applicable

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Include relevant dates, dependencies, screenshots, or other details.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
blank_issues_enabled: false
contact_links:
- name: Feature requests are not accepted
url: https://momentjs.com/news/
about: Moment.js is in maintenance mode and is not accepting new features.
- name: Ask a usage question
url: https://stackoverflow.com/questions/tagged/momentjs
about: Ask for help using Moment.js on Stack Overflow.
- name: Ask a question about the project
url: https://github.com/moment/moment/discussions
about: Ask about the Moment.js project, its maintenance status, or contributing.
- name: Report a Moment Timezone issue
url: https://github.com/moment/moment-timezone/issues
about: Report time zone data and Moment Timezone defects in its own repository.
- name: Report a Luxon issue
url: https://github.com/moment/luxon/issues
about: Report Luxon defects and requests in its own repository.
- name: Report a momentjs.com website issue
url: https://github.com/moment/momentjs.com/issues
about: Report documentation website content and functionality issues in its own repository.
- name: Report a security vulnerability
url: https://github.com/moment/moment/security/advisories/new
about: Privately report a security vulnerability to the maintainers.
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/locale_report.yml
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Locale correction
description: Report incorrect locale data or locale-specific behavior
title: '[Locale] '
body:
- type: markdown
attributes:
value: |
Moment.js uses the latest published Unicode CLDR data as its preferred
baseline. Differences from CLDR can be accepted when strong evidence
shows that another convention is better supported. Sources are helpful
but are not required; maintainers will independently validate reports.

- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
options:
- label: I searched existing issues for this locale behavior.
required: true
- label: I reproduced the behavior with the latest Moment.js release.
required: true
- label: If this behavior was previously discussed, I addressed the prior decision and explained what has changed.
required: true

- type: input
id: locale
attributes:
label: Locale
description: Provide the Moment.js locale identifier.
placeholder: pt-br
validations:
required: true

- type: textarea
id: current-behavior
attributes:
label: Current behavior
description: Provide code or steps and the exact output Moment.js currently produces.
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: Provide the exact expected output.
validations:
required: true

- type: textarea
id: context
attributes:
label: Language or cultural context
description: Explain the relevant grammar, notation, calendar rule, or other convention.
validations:
required: true

- type: textarea
id: sources
attributes:
label: Supporting sources
description: Optionally link to CLDR, standards, dictionaries, style guides, official calendars, or evidence of contemporary usage. For a repeated proposal, explain what new context or evidence supports reconsideration.

- type: input
id: moment-version
attributes:
label: Moment.js version
placeholder: 2.30.1
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Include any other forms, dates, or boundary cases affected.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
This file contains hidden or 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
workflow_call:
push:
branches: ['develop']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version:
- lts/*
- lts/-1
- latest

steps:
- uses: actions/checkout@v7

- name: Use pnpm
uses: pnpm/action-setup@v6

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Test TypeScript declarations
run: pnpm test:typescript
Loading

Back | FazBrowse Home | New Git URL