Skip to content

ESM-only build with TypeScript 7, drop CommonJS - #30

Merged
Cellule merged 2 commits into
masterfrom
chore/esm-only-typescript-7
Sep 29, 2026
Merged

Cellule merged 2 commits into
masterfrom
chore/esm-only-typescript-7

Conversation

@Cellule

@Cellule Cellule commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Keeps the unreleased v0.4.0 work going with a build modernization (all folded into the v0.4.0 CHANGELOG section since 0.4.0 is not released yet):

  • Updates TypeScript 5.0.4 to 7.0.2 (latest; requires Node >=16.20)
  • Drops CommonJS: ESM-only package (\import\ only). Removes the \commonjs/\ build, the
    equire\ export condition, and the CJS
    equire()\ spec
  • Consolidates to a single build: deletes \ sconfig.base.json\ / \ sconfig.commonjs.json; \ sconfig.json\ is now self-contained (target ES2022, module ESNext). TS 7 no longer accepts the old ES3 target, which forced the baseline move
  • Minimum Node.js is now >=16.20.0\ (\engines\ in package.json + lockfile)
  • Docs: README Requirements section + ESM-only usage, CHANGELOG v0.4.0 Build/Breaking Changes entries
  • Also includes the retroactive v0.3.2 engines correction (>=0.6.19 to >=12.20.0) with apology

Verified: \ sc -p .\ clean,
pm test\ passes (32 specs, 0 failures).

Note: breaking changes (CJS removal, Node floor bump) — fine to ship under the unreleased 0.4.0.

Update TypeScript 5.0.4 to 7.0.2 and consolidate to a single ESM build: remove tsconfig.base.json and tsconfig.commonjs.json (tsconfig.json is now self-contained with target ES2022, module ESNext), delete the commonjs/ build and require export condition, and remove the CJS require spec. Minimum Node.js is now >=16.20.0. Also documents the retroactive v0.3.2 engines correction (>=0.6.19 to >=12.20.0) with an apology.
@Cellule
Cellule force-pushed the chore/esm-only-typescript-7 branch 3 times, most recently from 1901f91 to 707c9a0 Compare September 29, 2026 01:30
@Cellule
Cellule merged commit d9b225a into master Sep 29, 2026
4 checks passed
@Cellule
Cellule deleted the chore/esm-only-typescript-7 branch September 29, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant