fix: CJS default-export interop, doc corrections, and agent skills - #140
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #140 +/- ##
=======================================
Coverage 98.78% 98.78%
=======================================
Files 77 77
Lines 1235 1235
Branches 357 357
=======================================
Hits 1220 1220
Partials 15 15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…modules
require() on the CJS build of a locale, numeral, or timezone module lost
the ability to be used as the value it exports once terser/esbuild's
default-export handling flattened module.exports.default onto
module.exports itself. Add a renderChunk plugin that re-defines
module.exports.default to point back at module.exports so both
require('...') and require('...').default keep working, and generate a
matching .d.cts with `export =` via a dts renderChunk plugin so the
CommonJS types line up.
Also wire tests/build into prepublishOnly so a broken interop or
missing .d.cts fails the build before publish.
- Aug 23, 2025 is a Saturday, not a Friday; correct the day-of-week shown in parse() example outputs across parse.md and quick-start.md, and likewise Aug 23, 1970 (a Sunday, not a Saturday). Drop the now-redundant ignoreCase example that duplicated the corrected one. - Fix the escaped-bracket example in format.md: the closing bracket was escaped in the wrong position (`...]\\` instead of `...\\]`). - Fix the plugin import example in installation.mdx: plugins export a named `formatter` (and `parser`), not a default export, and the microsecond plugin was replaced by zonename to match its actual token in the example.
Add two self-contained Agent Skills for AI coding agents: `date-and-time` covers writing v4 code (formatting, parsing, timezones, locales, plugins, date arithmetic, durations), and `date-and-time-migration` covers migrating a project from v3 to v4. Either can be installed on its own via `npx skills add` and neither depends on `docs/`. Document them in the README with install instructions (skills CLI and manual copy) and a pointer from the v3->v4 migration section.
knowledgecode
force-pushed
the
develop
branch
from
September 22, 2026 07:34
71cc288 to
95c27fc
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.d.ctsoutput and a build-time testdate-and-timeanddate-and-time-migrationAgent Skills, linked from the README