Skip to content

fix(clerk-js): Disable chunking for clerk headless build#1645

Merged
brkalow merged 4 commits intomainfrom
brk.feat/clerk-headless-no-chunks
Aug 29, 2023
Merged

fix(clerk-js): Disable chunking for clerk headless build#1645
brkalow merged 4 commits intomainfrom
brk.feat/clerk-headless-no-chunks

Conversation

@brkalow
Copy link
Copy Markdown
Member

@brkalow brkalow commented Aug 29, 2023

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

Description

  • npm test runs as expected.
  • npm run build runs as expected.

Updates the clerk/headless build configuration to disable chunking. This ensures we don't attempt to load chunks at runtime, causing issues with public path resolution.

fixes JS-689, fixes #1644

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 29, 2023

🦋 Changeset detected

Latest commit: 43adfd4

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

@brkalow
Copy link
Copy Markdown
Member Author

brkalow commented Aug 29, 2023

!snapshot

Copy link
Copy Markdown

@jit-ci jit-ci Bot left a comment

Choose a reason for hiding this comment

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

✅ Great news! Jit hasn't found any security issues in your PR. Good Job! 🏆

@clerk-cookie
Copy link
Copy Markdown
Collaborator

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

Package Version
@clerk/backend 0.28.0
@clerk/chrome-extension 0.3.28-snapshot.df4de0a
@clerk/clerk-js 4.56.1-snapshot.df4de0a
eslint-config-custom 0.3.0
@clerk/clerk-expo 0.18.19-snapshot.df4de0a
@clerk/fastify 0.6.4
gatsby-plugin-clerk 4.4.5
@clerk/localizations 1.25.0
@clerk/nextjs 4.23.3
@clerk/clerk-react 4.24.0
@clerk/remix 2.10.0
@clerk/clerk-sdk-node 4.12.3
@clerk/shared 0.22.0
@clerk/themes 1.7.5
@clerk/types 3.50.0

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

# @clerk/backend
npm i @clerk/backend@0.28.0
# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.3.28-snapshot.df4de0a
# @clerk/clerk-js
npm i @clerk/clerk-js@4.56.1-snapshot.df4de0a
# eslint-config-custom
npm i eslint-config-custom@0.3.0
# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.18.19-snapshot.df4de0a
# @clerk/fastify
npm i @clerk/fastify@0.6.4
# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.4.5
# @clerk/localizations
npm i @clerk/localizations@1.25.0
# @clerk/nextjs
npm i @clerk/nextjs@4.23.3
# @clerk/clerk-react
npm i @clerk/clerk-react@4.24.0
# @clerk/remix
npm i @clerk/remix@2.10.0
# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.12.3
# @clerk/shared
npm i @clerk/shared@0.22.0
# @clerk/themes
npm i @clerk/themes@1.7.5
# @clerk/types
npm i @clerk/types@3.50.0

@brkalow
Copy link
Copy Markdown
Member Author

brkalow commented Aug 29, 2023

!snapshot

@clerk-cookie
Copy link
Copy Markdown
Collaborator

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

Package Version
@clerk/backend 0.28.0
@clerk/chrome-extension 0.3.28-snapshot.0aebe02
@clerk/clerk-js 4.56.1-snapshot.0aebe02
eslint-config-custom 0.3.0
@clerk/clerk-expo 0.18.19-snapshot.0aebe02
@clerk/fastify 0.6.4
gatsby-plugin-clerk 4.4.5
@clerk/localizations 1.25.0
@clerk/nextjs 4.23.3
@clerk/clerk-react 4.24.0
@clerk/remix 2.10.0
@clerk/clerk-sdk-node 4.12.3
@clerk/shared 0.22.0
@clerk/themes 1.7.5
@clerk/types 3.50.0

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

# @clerk/backend
npm i @clerk/backend@0.28.0
# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.3.28-snapshot.0aebe02
# @clerk/clerk-js
npm i @clerk/clerk-js@4.56.1-snapshot.0aebe02
# eslint-config-custom
npm i eslint-config-custom@0.3.0
# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.18.19-snapshot.0aebe02
# @clerk/fastify
npm i @clerk/fastify@0.6.4
# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.4.5
# @clerk/localizations
npm i @clerk/localizations@1.25.0
# @clerk/nextjs
npm i @clerk/nextjs@4.23.3
# @clerk/clerk-react
npm i @clerk/clerk-react@4.24.0
# @clerk/remix
npm i @clerk/remix@2.10.0
# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.12.3
# @clerk/shared
npm i @clerk/shared@0.22.0
# @clerk/themes
npm i @clerk/themes@1.7.5
# @clerk/types
npm i @clerk/types@3.50.0

@brkalow brkalow merged commit b4f0178 into main Aug 29, 2023
@brkalow brkalow deleted the brk.feat/clerk-headless-no-chunks branch August 29, 2023 13:59
@clerk-cookie clerk-cookie mentioned this pull request Aug 29, 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 Aug 29, 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.

importing @clerk/clerk-js/headless/index.js in node.js throws an error (in 4.56.0)

3 participants