Skip to content

fix(deps): optional typescript peer, TypeScript 6 CI and shipped notices (2.1.1) - #3

Merged
tacxou merged 4 commits into
mainfrom
claude/release-2-1-1-fff707
Nov 17, 2026
Merged

tacxou merged 4 commits into
mainfrom
claude/release-2-1-1-fff707

Conversation

@tacxou

@tacxou tacxou commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

Prepares the 2.1.1 patch release.

  • Optional typescript peer, now ^5 || ^6 || ^7 (the range Nuxt UI uses): the required ^5 peer made TypeScript 6 hosts fail strict peer resolution, although TypeScript is only needed to type-check the host or consume ./source. The package audit enforces the contract.
  • TypeScript 6 support: TS 6 turns strict on by default, which surfaced three strict-mode errors in shipped sources (reachable through ./source). They are fixed, strict is explicit, and CI type-checks and builds under TypeScript 5.9 and 6.0.
  • Third-party notices shipped: THIRD_PARTY_NOTICES.md is now in the tarball and gains the missing Day.js notice (dist/ bundles Day.js). The package audit requires a notice section for every bundled package.
  • changelog/2.1.1.md and the regenerated CHANGELOG.md. The release workflow bumps the version itself; update the changelog date if the release happens another day.

Verification

Locally: yarn lint, yarn typecheck, yarn test:coverage, yarn test:scripts, yarn docs:build, yarn changelog:check, yarn package:check, all green. Type-check and build also pass with TypeScript 6.0.3 installed in a clean copy, the way the new CI job does it.

The required `typescript: ^5` peer made TypeScript 6 hosts fail strict peer
resolution although the library only needs TypeScript for type-checking and the
`./source` export. Declare it as an optional `^5 || ^6 || ^7` peer, the range
Nuxt UI uses, and enforce that contract in the package audit.
TypeScript 6 enables `strict` by default, which surfaced three strict-mode
errors in shipped sources (also reachable through the `./source` export).
Fix them, make `strict` explicit so both majors agree, and add a CI matrix
that type-checks and builds the library under TypeScript 5.9 and 6.0.
THIRD_PARTY_NOTICES.md stayed in the repository although the tarball
contains JSON Forms derived code and bundles Day.js, whose MIT licenses
require the notice to travel with every copy. Publish the file, add the
missing Day.js notice and make the package audit require a notice section
for every package bundled into dist.
@tacxou
tacxou merged commit b4f707b into main Nov 17, 2026
6 checks passed
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