Skip to content

(chore): change browser example to query from the CDN drop in by default#292

Merged
kchaw2005 merged 1 commit into
mainfrom
chore/browser-example-cdn-default
Jun 24, 2026
Merged

(chore): change browser example to query from the CDN drop in by default#292
kchaw2005 merged 1 commit into
mainfrom
chore/browser-example-cdn-default

Conversation

@kchaw2005

@kchaw2005 kchaw2005 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Issue

nextjs/ examples want to pull IDKit components from the live package and browser/ examples want to use the CDN-released url as a drop in.

Fix

made its so example in browser only uses <script src="https://unpkg.com/@worldcoin/idkit-core@4.2.0"></script> for its request builder


Note

Low Risk
Documentation and example-only HTML/README changes with no impact on library or production integration paths.

Overview
The browser example no longer imports @worldcoin/idkit-core through Vite or toggles between workspace and CDN builds. It always loads @worldcoin/idkit-core@4.2.0 via a <script> tag on unpkg and uses window.IDKit for verification flows.

The “Use CDN version” checkbox and dynamic script loader are removed; the config panel always shows the pinned CDN URL. README now describes this as the default way to exercise the published global bundle (idkit.global.js) and WASM sibling, instead of requiring a root pnpm build for local dist/.

Reviewed by Cursor Bugbot for commit 1425c82. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
idkit-js-example Ready Ready Preview, Comment Jun 23, 2026 11:28pm

Request Review

<script src="https://unpkg.com/@worldcoin/idkit-core@4.2.0"></script>
<script>
const CDN_IDKIT_SCRIPT_URL =
"https://unpkg.com/@worldcoin/idkit-core@4.2.0";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe remove the version so it always pulls in the latest one

@kchaw2005 kchaw2005 merged commit 6dc4182 into main Jun 24, 2026
19 checks passed
@kchaw2005 kchaw2005 deleted the chore/browser-example-cdn-default branch June 24, 2026 02:57
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.

2 participants