Skip to content

fix(clerk-react): Replace semver with custom regex in versionSelector#2760

Merged
nikosdouvlis merged 2 commits into
mainfrom
nikos/fix-semver-pkg
Feb 8, 2024
Merged

fix(clerk-react): Replace semver with custom regex in versionSelector#2760
nikosdouvlis merged 2 commits into
mainfrom
nikos/fix-semver-pkg

Conversation

@nikosdouvlis

@nikosdouvlis nikosdouvlis commented Feb 8, 2024

Copy link
Copy Markdown
Member

The semver package doesn't provide exports map in its package.json. Vitest is ESM-only and relies more on these things whereas Jest is more forgiving. Instead of tweaking build config for clerk-react and given that we only rely on major() and prerelease() and the bundle-size considerations, we replaced semver with custom regexes

Description

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:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

The semver package doesn't provide exports map in its package.json. Vitest is ESM-only and relies more on these things whereas Jest is more forgiving. Instead of tweaking build config for clerk-react and given that we only rely on major() and prerelease() and the bundle-size considerations, we replaced semver with custom regexes
@nikosdouvlis nikosdouvlis requested a review from AlexNti February 8, 2024 13:28
@changeset-bot

changeset-bot Bot commented Feb 8, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d4c4a8

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

This PR includes changesets to release 7 packages
Name Type
@clerk/clerk-js Patch
@clerk/clerk-react Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
gatsby-plugin-clerk Patch
@clerk/nextjs Patch
@clerk/remix 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

@AlexNti AlexNti left a comment

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.

💯

@nikosdouvlis nikosdouvlis added this pull request to the merge queue Feb 8, 2024
Merged via the queue into main with commit 1affbb2 Feb 8, 2024
@nikosdouvlis nikosdouvlis deleted the nikos/fix-semver-pkg branch February 8, 2024 14:17
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