Skip to content

Load the Castle browser SDK as a UMD from npm - #29

Merged
bartes merged 2 commits into
mainfrom
chore/castle-js-umd
Sep 8, 2026
Merged

bartes merged 2 commits into
mainfrom
chore/castle-js-umd

Conversation

@bartes

@bartes bartes commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Load the Castle browser SDK as a UMD from the npm install.

  • Request /vendor/castle-js/castle.umd.js and fall back to castle.browser.js when that file is absent.
  • Seed window.Castle from module.exports before the script tag, then configure with { pk } and mint tokens from window.__castle or Castle.
  • Pin @castleio/castle-js to ^2.8.5.

@bartes
bartes marked this pull request as ready for review September 7, 2026 16:29
@bartes
bartes merged commit d0c29d3 into main Sep 8, 2026
3 checks passed
@bartes
bartes deleted the chore/castle-js-umd branch September 8, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant