Skip to content

[Bug]: cloudflare and vercel examples' package.json still depend on @jimhoyd/urlcode ^0.3.0 #795

Closed

Description

@jimhoyd

Runtime revision and environment

main at 2383b121 (v0.6.3). Found while working on #789 / #794.

Minimal reproduction

grep -n '"@jimhoyd/urlcode"' examples/cloudflare/package.json examples/vercel/package.json

Expected: the examples depend on a range that includes the current release, or on a form that can't go stale.

Actual:

examples/vercel/package.json:6:    "@jimhoyd/urlcode": "^0.3.0"
examples/cloudflare/package.json:9:    "@jimhoyd/urlcode": "^0.3.0"

^0.3.0 only matches >=0.3.0 <0.4.0, so an npm install in either example directory (the deploy path in their READMEs) installs a 0.3.x runtime, not the one the example was written and tested against.

Relevant output

  • scripts/release-bump.ts bumps the root and packages/* manifests, but not examples/*/package.json. Nothing checks these two, which is how they drifted.
  • The workspace packages pin the current version ("@jimhoyd/urlcode": "0.6.3"), and the release bump keeps those current.
  • Since fix(examples): packaged examples' tests.commands run from a consumer copy (#789) #794, urlcode examples add omits package.json from the copy, because authoring copies refuse it. The packaged examples' validate/test/audit commands don't read it. It only matters for the Wrangler / Vercel deploy steps, which also rely on its "type": "module".

Possible directions (for the owner to choose): include examples/*/package.json in the release bump or a version-alignment check; or drop the runtime dependency from these manifests and have the READMEs say to install the current package.

Activity

  1. added
    bug
    examples
    on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugexamples

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions