Skip to content

fix(ci): pin light-my-request in the consumer fixture - #89

Merged
AdmilsonCossa merged 1 commit into
mainfrom
consumer-fixture-node20-pin
Nov 14, 2026
Merged

AdmilsonCossa merged 1 commit into
mainfrom
consumer-fixture-node20-pin

Conversation

@AdmilsonCossa

Copy link
Copy Markdown
Collaborator

Problem

The Node 20.11.1 compatibility job fails with ERR_REQUIRE_ESM in the Fastify consumer fixture of check:package-consumer:node.

The fixture pins fastify@5.8.5 but leaves its transitive dependencies floating. fastify@5.8.5 accepts light-my-request@^6.0.0, and light-my-request@6.8.0 (published 2026-10-10) moved to cookie@^2, which is ESM-only and declares node >= 22. Node 20.11.1 cannot require() it.

The last CI run on main (2026-09-28) predates that release, so the failure is latent on main and first surfaced on #88.

Change

packages/core/scripts/check-package-consumer.mjs pins light-my-request@6.6.0, the last release on cookie@^1, in the framework fixture install list. One file, four lines. No runtime, type, or export change in @workit/core.

Ownership boundary

check-package-consumer.mjs remains the only owner of the installed-package consumer fixtures. No new script, gate, or public surface.

Evidence

  • Lockfile probe (npm install --package-lock-only fastify@5.8.5): resolves light-my-request@6.8.0 and cookie@2.0.2 (engines node >= 22). With light-my-request@6.6.0 added: light-my-request@6.6.0 and cookie@1.1.1 (engines node >= 18).
  • npm --workspace @workit/core run check:package-consumer:node on this branch, Windows, Node 24.19.0: {"packageConsumer":"ok","runtimeFixtures":"node-only","frameworkFixtures":"ok", ...}.
  • The same change ran on docs(core): clarify declared agent authority contract #88 at 8007d76 with npm run test:coverage at 100% statements, branches, functions and lines (425 tests).

Limitations

  • Not exercised locally on Node 20.11.1; the Node 20.11.1 compatibility job on this PR is the proof.
  • The Bun fixture was not run locally (no Bun executable on the workstation); it relies on the Verify package job.
  • This pins one transitive dependency. Other transitive dependencies of the framework fixtures still float; the fixtures do not use a committed lockfile.
  • The pin holds the fixture on a light-my-request release that supports Node 20. It does not change the engines range of @workit/core.

Checklist

  • Tests were added or updated before behavior changed. (No library behavior change; the failing CI job is the regression proof.)
  • npm run test:coverage passes with 100% statements, branches, functions, and lines.
  • npm run verify passes, or an environmental limitation is documented. (Bun fixture, see Limitations.)
  • Public API, declarations, package exports, and compatibility fixtures were updated when applicable. (Fixture install list only.)
  • Root size and zero-runtime-dependency contracts remain intact.
  • Cancellation, cleanup, retries, deadlines, and budgets still have one owner.
  • New claims identify proof paths, expected invariants, and limitations.
  • Logs, receipts, screenshots, and fixtures contain no secrets or private consumer data.

🤖 Generated with Claude Code

The package-consumer fixture pins fastify@5.8.5 but left its transitive
dependencies floating. light-my-request@6.8.0 (2026-10-10) moved to
cookie@^2, which is ESM-only and requires Node >= 22, so the Fastify
fixture fails with ERR_REQUIRE_ESM on the Node 20.11.1 compatibility job.

Pin light-my-request@6.6.0, the last release on cookie@^1. The fixture
then resolves cookie@1.1.1 (engines: node >= 18) instead of cookie@2.0.2.

No runtime, type, or export change in @workit/core.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@AdmilsonCossa
AdmilsonCossa merged commit d7cf52e into main Nov 14, 2026
8 checks passed
@AdmilsonCossa AdmilsonCossa mentioned this pull request Nov 14, 2026
8 tasks done
AdmilsonCossa added a commit that referenced this pull request Nov 14, 2026
Bump the workspace and package version to 1.0.1 and record the changelog entry. Maintenance release: the runtime, public exports and TypeScript declarations are unchanged from 1.0.0.

1.0.1 publishes the declared agent tool authority documentation and the corrected CORR-006 title (#88), the Node 20.11 consumer fixture pin (#89), and the release-line evaluation of REL-012 and REL-014 with the 1.0.0 compatibility baseline (#90).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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