Repository navigation
fix: pin native runtime dependencies for consumer installs - #71
Merged
Merged
Conversation
Publish npm-shrinkwrap.json as the single lockfile (renamed from package-lock.json) and pin fs-ext-extra-prebuilt to exactly 2.2.14, so npm installs of codex-unlock receive the CI-validated fs-ext-extra-prebuilt and nan versions instead of the newest compatible release. Package smoke now requires the shrinkwrap in the artifact, the exact pin to match it, and the installed fs-ext-extra-prebuilt and nan versions to equal the shrinkwrap pins. Dependabot bumps the exact pin in its own runtime group with a fix(deps) commit so each update passes the full matrix and ships in a release. Release Please already updates npm-shrinkwrap.json. Closes #69
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
package-lock.jsontonpm-shrinkwrap.json(identical dependency tree) and publish it, so npm installs of codex-unlock receive the CI-validatedfs-ext-extra-prebuiltandnanversions instead of the newest compatible release. npm ignorespackage-lock.jsonwhen a shrinkwrap exists, so the shrinkwrap is the single lockfile.fs-ext-extra-prebuiltto exactly2.2.14so package managers that ignore shrinkwraps (pnpm, yarn, bun) still get the pinned direct dependency.npm-shrinkwrap.jsonto thefilesallowlist explicitly: with afilesallowlist, npm 10.9.2 and 11.11.0 omit it from the tarball.package.jsonmatches it, and asserts that the installedfs-ext-extra-prebuiltandnanversions resolved from the installed package equal the shrinkwrap pins.versioning-strategy: increase-if-necessaryso the exact pin is bumped rather than widened, a separateruntimegroup for production dependencies, andfix(runtime) /chore(development) commit prefixes so runtime bumps produce a release.npm-shrinkwrap.json.AGENTS.md,docs/maintainer-release.md, anddocs/platform-support.md.Closes #69
Type
Safety impact
No change to lock probing, owner validation, signaling, or JSON output. Consumers now get the exact native lock-probe implementation that CI validated.
Checklist
npm run checkpassesnpm run lintpassesnpm testpasses (84 pass, 0 fail)npm run smoke:packagepassesNotes
^2.2.14makes package smoke fail on the exact-pin assertion.codex-unlock,[email protected], and[email protected]; development entries in the shrinkwrap are not installed.nanis transitive, so Dependabot will not propose standalone version updates for it; it changes withfs-ext-extra-prebuiltbumps or security updates.fix(deps). Revert thecommit-messagechange if that is not desired.nan(documented).