Repository navigation
fix: warn in nextSteps when --with pins deprecated npm extensions - #523
Merged
Merged
Conversation
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]>
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
urlcode init --withsilently defaults to npm-package distribution whenever--bundle-releaseis 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 atextension-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 — itspackage.jsonhad@jimhoyd/urlcode-uias a direct npm dependency with no--bundle-releasein sight.Change
Add a warning to
nextSteps(the field agents/scripts actually act on) whendistribution === '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 typechecknode --test test/init-with.test.tsnode scripts/check-local-links.tsnode scripts/release-prepare.ts --check