Skip to content

Conversation

@tmilewski
Copy link
Member

@tmilewski tmilewski commented Nov 13, 2024

Description

Removes remotely hosted code (RHC) for Browser Extensions in the following fashion:

clerk-js

Removes RHC via __BUILD_DISABLE_RHC__ and creates a new build under @clerk/clerk-js/no-rhc.

clerk-react

Introduces __BUILD_DISABLE_RHC__ into the clerk-react build which, if unset, defaults to false.

clerk-react is bundled into chrome-extension and in that process __BUILD_DISABLE_RHC__ is set to true which ultimately removes the RHC.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@tmilewski tmilewski self-assigned this Nov 13, 2024
@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2024

🦋 Changeset detected

Latest commit: d7f9da1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@clerk/clerk-js Patch
@clerk/clerk-react Patch
@clerk/chrome-extension Major
@clerk/clerk-expo Patch
@clerk/elements Patch
@clerk/nextjs Patch
@clerk/remix Patch
@clerk/tanstack-start Patch
@clerk/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tmilewski
Copy link
Member Author

!allow-major

@tmilewski

This comment was marked as outdated.

@clerk-cookie

This comment was marked as outdated.

@tmilewski tmilewski requested a review from brkalow November 13, 2024 20:12
@tmilewski tmilewski marked this pull request as ready for review November 13, 2024 20:13
@tmilewski

This comment was marked as outdated.

@clerk-cookie

This comment was marked as outdated.

export * from './runtime';
export * from './url';
export * from './web3';
export * from './windowNavigate';
Copy link
Member Author

Choose a reason for hiding this comment

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

Removes a number of duplicated exports.

@brkalow brkalow requested a review from jacekradko November 14, 2024 02:29
@tmilewski

This comment was marked as outdated.

@clerk-cookie

This comment was marked as outdated.

Copy link
Member

@royanger royanger left a comment

Choose a reason for hiding this comment

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

I looked over the code and to my eye, with limited experience inside the JS repo, it looks good. Testing with 'dev' and 'build' version of a Chrome Extension I'm not seeing of the the various reported remote code issues.

@vercel
Copy link

vercel bot commented Nov 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2024 2:45pm

@tmilewski
Copy link
Member Author

@jacekradko @brkalow Mind taking another once-over here? Once this is pulled into the upstream extension updates PR, we're planning on releasing this via that.

@tmilewski tmilewski requested a review from jacekradko November 21, 2024 19:55
Copy link
Member

@anagstef anagstef left a comment

Choose a reason for hiding this comment

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

Great job! 🔥

@tmilewski tmilewski merged commit 9f1f1b9 into tm/ext-updates Nov 22, 2024
6 checks passed
@tmilewski tmilewski deleted the tm/rhc branch November 22, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants