Skip to content

chore(clerk-js): Upgrade floating-ui from 0.19 to 0.25#1726

Merged
LekoArts merged 4 commits intomainfrom
lekoarts/js-682-issues-with-next-intl
Sep 18, 2023
Merged

chore(clerk-js): Upgrade floating-ui from 0.19 to 0.25#1726
LekoArts merged 4 commits intomainfrom
lekoarts/js-682-issues-with-next-intl

Conversation

@LekoArts
Copy link
Copy Markdown
Contributor

@LekoArts LekoArts commented Sep 14, 2023

Description

The issue #1557 uncovered that when using @clerk/nextjs together with next-intl the error "Failed to execute 'removeChild' on 'Node'" was thrown.

That error came from @floating-ui/react which @clerk/clerk-js uses under the hood. Its version was upgraded from 0.19.0 to 0.25.4 to fix this error.

I tested this by running the snapshot version in the reproduction repository and the issue didn't show up anymore.

Fixes #1557

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/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 14, 2023

🦋 Changeset detected

Latest commit: dd81d09

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 Patch
@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

@LekoArts
Copy link
Copy Markdown
Contributor Author

!snapshot

@clerk-cookie
Copy link
Copy Markdown
Collaborator

Hey @LekoArts - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.29.1-snapshot.d446acb
@clerk/chrome-extension 0.4.0-snapshot.d446acb
@clerk/clerk-js 4.58.0-snapshot.d446acb
@clerk/clerk-expo 0.19.2-snapshot.d446acb
@clerk/fastify 0.6.7-snapshot.d446acb
gatsby-plugin-clerk 4.4.8-snapshot.d446acb
@clerk/localizations 1.26.0-snapshot.d446acb
@clerk/nextjs 4.24.0-snapshot.d446acb
@clerk/clerk-react 4.25.0-snapshot.d446acb
@clerk/remix 2.10.3-snapshot.d446acb
@clerk/clerk-sdk-node 4.12.6-snapshot.d446acb
@clerk/shared 0.22.1-snapshot.d446acb
@clerk/types 3.52.0-snapshot.d446acb

Tip: use the snippet copy button below to quickly install the required packages.

# @clerk/backend
npm i @clerk/backend@0.29.1-snapshot.d446acb
# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.4.0-snapshot.d446acb
# @clerk/clerk-js
npm i @clerk/clerk-js@4.58.0-snapshot.d446acb
# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.19.2-snapshot.d446acb
# @clerk/fastify
npm i @clerk/fastify@0.6.7-snapshot.d446acb
# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.4.8-snapshot.d446acb
# @clerk/localizations
npm i @clerk/localizations@1.26.0-snapshot.d446acb
# @clerk/nextjs
npm i @clerk/nextjs@4.24.0-snapshot.d446acb
# @clerk/clerk-react
npm i @clerk/clerk-react@4.25.0-snapshot.d446acb
# @clerk/remix
npm i @clerk/remix@2.10.3-snapshot.d446acb
# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.12.6-snapshot.d446acb
# @clerk/shared
npm i @clerk/shared@0.22.1-snapshot.d446acb
# @clerk/types
npm i @clerk/types@3.52.0-snapshot.d446acb

Comment thread .changeset/popular-squids-kneel.md Outdated
'@clerk/clerk-js': patch
---

TODO
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We probably only need an empty changeset for an internal change like this one :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we should bump the version because this upgrade contains breaking changes for floating-ui and thus can subtly change how things behave for our users.

While I did my extensive check into the changelog it still might change behavior and with having a release we can bisect it better. Publishing doesn't hurt here :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for explaining Lennart. Everything makes sense to me, let's go ahead and merge this one

@LekoArts LekoArts marked this pull request as ready for review September 15, 2023 08:42
@LekoArts LekoArts requested a review from a team as a code owner September 15, 2023 08:42
Copy link
Copy Markdown
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

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

💯

Copy link
Copy Markdown
Contributor

@panteliselef panteliselef left a comment

Choose a reason for hiding this comment

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

Nice fix 💯

@LekoArts LekoArts merged commit 16f6672 into main Sep 18, 2023
@LekoArts LekoArts deleted the lekoarts/js-682-issues-with-next-intl branch September 18, 2023 08:25
@clerk-cookie clerk-cookie mentioned this pull request Sep 18, 2023
@clerk-cookie
Copy link
Copy Markdown
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing a localization in ClerkProvider causes an error "Failed to execute 'removeChild' on 'Node'"

4 participants