Skip to content

fix(demos): pin @coinbase/onchainkit to the locked 0.38.x instead of "latest" - #131

Open
memosr wants to merge 1 commit into
base:masterfrom
memosr:fix/onchainkit-pin-versions
Open

fix(demos): pin @coinbase/onchainkit to the locked 0.38.x instead of "latest"#131
memosr wants to merge 1 commit into
base:masterfrom
memosr:fix/onchainkit-pin-versions

Conversation

@memosr

@memosr memosr commented Jun 15, 2026

Copy link
Copy Markdown

Summary

Four workshop demos declare "@coinbase/onchainkit": "latest" while their committed package-lock.json is locked to a 0.38.x build. latest on npm is currently 1.1.2, a major version ahead, so a fresh npm install in any of them resolves the floating tag and pulls OnchainKit 1.x into a demo written and locked against the 0.38 API.

Each manifest is pinned to a caret range matching the version already resolved in its own lockfile, so the two agree and installs stay reproducible.

Affected demos

Demo before after lockfile
mini-apps/workshops/mini-neynar latest ^0.38.10 0.38.10
mini-apps/workshops/my-mini-zora latest ^0.38.8 0.38.8
mini-apps/workshops/my-simple-mini-app latest ^0.38.10 0.38.10
mini-apps/workshops/three-card-monte latest ^0.38.13 0.38.13

No lockfile changes: every pin is the version already present there.

Rebased

This PR originally also touched paymaster/hangman-onchain and paymaster/onchain-game-lingos. Both demos were removed from the repo in #137, so the branch has been rebuilt on current master and now covers only the four demos that still carry the floating tag.

Not included

Upgrading these demos to OnchainKit 1.x is separate work with real API changes behind it. This only stops the unintended major-version jump.

…"latest"

Four workshop demos declare `"@coinbase/onchainkit": "latest"` while their
committed `package-lock.json` is locked to a 0.38.x build. `latest` on npm
is 1.1.2, a major version ahead, so a fresh `npm install` in any of them
resolves the floating tag and pulls OnchainKit 1.x into a demo written and
locked against the 0.38 API.

Pin each manifest to a caret range matching the version already in its own
lockfile, so the two agree and installs stay reproducible:

| Demo                  | lockfile | pinned to  |
| --------------------- | -------- | ---------- |
| mini-neynar           | 0.38.10  | `^0.38.10` |
| my-mini-zora          | 0.38.8   | `^0.38.8`  |
| my-simple-mini-app    | 0.38.10  | `^0.38.10` |
| three-card-monte      | 0.38.13  | `^0.38.13` |

No lockfiles change: every pin is the version already resolved there.

Upgrading these demos to OnchainKit 1.x is a separate piece of work with
real API changes behind it; this only stops the unintended jump.
@memosr
memosr force-pushed the fix/onchainkit-pin-versions branch from f0945e3 to 0b93491 Compare September 5, 2026 20:23
@memosr memosr changed the title fix(demos): pin @coinbase/onchainkit to locked 0.38.x instead of "latest" fix(demos): pin @coinbase/onchainkit to the locked 0.38.x instead of "latest" Sep 5, 2026
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