Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clerk-js): Allow Environment init with defaults #5287

Merged
merged 29 commits into from
Mar 18, 2025

Conversation

jacekradko
Copy link
Member

@jacekradko jacekradko commented Mar 5, 2025

Description

Summary: This pull request introduces a feature that enables the initialization of the Clerk.js environment with default settings. By allowing defaults during environment setup, it allows us to instantiate the EnvironmentResource class even if the /v1/environment endpoint is down

Key Changes:
• Modified the environment initialization process to support default parameters.
• Updated relevant documentation to reflect the new initialization capabilities.
• Added tests to ensure the default initialization functions as intended.

Checklist

  • pnpm test runs as expected.
  • pnpm 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:

Copy link

changeset-bot bot commented Mar 5, 2025

🦋 Changeset detected

Latest commit: ecf070a

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo 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

Copy link

vercel bot commented Mar 5, 2025

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 Mar 18, 2025 4:31pm

@jacekradko
Copy link
Member Author

Marking it Ready for Review to get some feedback on the approach

Co-authored-by: Lennart <lekoarts@gmail.com>
@jacekradko jacekradko merged commit f05efe2 into main Mar 18, 2025
30 checks passed
@jacekradko jacekradko deleted the feat/initialize-clerk-js-with-defaults branch March 18, 2025 18:26
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.

4 participants