Repository navigation
fix(deps): optional typescript peer, TypeScript 6 CI and shipped notices (2.1.1) - #3
Merged
Merged
Conversation
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.
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
Prepares the 2.1.1 patch release.
typescriptpeer, now^5 || ^6 || ^7(the range Nuxt UI uses): the required^5peer 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.stricton by default, which surfaced three strict-mode errors in shipped sources (reachable through./source). They are fixed,strictis explicit, and CI type-checks and builds under TypeScript 5.9 and 6.0.THIRD_PARTY_NOTICES.mdis 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.mdand the regeneratedCHANGELOG.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.