Skip to content

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

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

Load the Castle browser SDK as a UMD from npm#5
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.
  • Install npm packages in CI so /vendor/castle-js is present.

@bartes
bartes marked this pull request as ready for review September 7, 2026 16:29
@bartes
bartes merged commit 7c15b9b into main Sep 8, 2026
4 checks passed
@bartes
bartes deleted the chore/castle-js-umd branch September 8, 2026 10: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