Skip to content

fix: warn in nextSteps when --with pins deprecated npm extensions - #523

Merged
jimhoyd merged 3 commits into
mainfrom
warn-npm-distribution-deprecated
Sep 23, 2026
Merged

jimhoyd merged 3 commits into
mainfrom
warn-npm-distribution-deprecated

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

urlcode init --with silently defaults to npm-package distribution whenever --bundle-release is omitted (packages/core/src/init-with.ts:200), generating a host that imports @jimhoyd/urlcode-<name> straight from npm. Every published extension package (ui, auth, admin, store) already carries an npm deprecation notice pointing at extension-bundles@v… instead, but nothing in the CLI's own JSON output said so — only prose docs did, which aren't read by whatever actually scaffolds a site (a script, an agent, CI).

Traced this from a real consumer (urlcode-ai) that ended up pinned to the deprecated npm channel this way — its package.json had @jimhoyd/urlcode-ui as a direct npm dependency with no --bundle-release in sight.

Change

Add a warning to nextSteps (the field agents/scripts actually act on) when distribution === 'npm', naming the deprecated packages and pointing at --bundle-release. Not a change to the default behavior — npm distribution stays supported, this just makes the tradeoff visible where it's read.

Verification

  • npm run typecheck
  • node --test test/init-with.test.ts
  • node scripts/check-local-links.ts
  • node scripts/release-prepare.ts --check

jimhoyd and others added 3 commits September 23, 2026 12:52
v0.5.1's signed catalog pins coreVersion: 0.5.0. loadExtensionBundle
compares that against the running core version with strict equality,
so following this doc's own install example against core 0.5.9 would
have hit a hard runtime error: "requires core 0.5.0; this runtime is
incompatible." [email protected] (already published, catalog
pins coreVersion: 0.5.9) is what the doc's compatibility claim
actually needs to point at.

Also mark forms as released rather than "(unreleased)": it's already
a member of the v0.5.9 catalog.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
`urlcode init --with` silently defaults to npm-package distribution
whenever --bundle-release is omitted, generating a host that imports
@jimhoyd/urlcode-<name> straight from npm. Every published extension
package (ui, auth, admin, store) already carries an npm deprecation
notice pointing at extension-bundles instead, but nothing in the CLI's
own output said so -- only prose docs did, and those aren't read by
whatever scaffolds a site programmatically. Traced from a real
consumer (urlcode-ai) that ended up pinned to the deprecated npm
channel this way.

Surface it in nextSteps, since that's the field agents and scripts
actually act on, not a change to the default behavior itself.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
test/project-dependencies.test.ts asserts nextSteps[1] matches
/Run `npm install`/ by index. Prepending the new warning shifted
every existing entry by one and broke it. Append instead: nothing
downstream depends on the warning being first, and installSteps'
own internal ordering (Review... then Run `npm install`...) is
what's actually depended on by index elsewhere.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jimhoyd
jimhoyd merged commit 469521d into main Sep 23, 2026
60 checks passed
@jimhoyd
jimhoyd deleted the warn-npm-distribution-deprecated branch September 23, 2026 18:28
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