Skip to content

feat(elements): Add /sign-in export, remove hardcoded paths#2662

Closed
brkalow wants to merge 8 commits into
mainfrom
brk.chore/refactor-elements-build
Closed

feat(elements): Add /sign-in export, remove hardcoded paths#2662
brkalow wants to merge 8 commits into
mainfrom
brk.chore/refactor-elements-build

Conversation

@brkalow

@brkalow brkalow commented Jan 24, 2024

Copy link
Copy Markdown
Member

Description

  • Moves sign-in components to a /sign-in export.
  • Also refactors the machine to not rely on hardcoded sign in paths, instead deriving the base path from the Clerk router.
  • Removes unnecessary @clerk/nextjs dependency

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

@brkalow brkalow requested a review from tmilewski January 24, 2024 20:38
@changeset-bot

changeset-bot Bot commented Jan 24, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7e9c51b

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

This PR includes changesets to release 1 package
Name Type
@clerk/elements 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

brkalow commented Jan 26, 2024

Copy link
Copy Markdown
Member Author

!snapshot

@clerk-cookie

Copy link
Copy Markdown
Collaborator

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

Package Version
@clerk/backend 1.0.1-snapshot.vc65ad98
@clerk/chrome-extension 1.0.1-snapshot.vc65ad98
@clerk/clerk-js 5.0.1-snapshot.vc65ad98
@clerk/elements 0.0.2-snapshot.vc65ad98
@clerk/clerk-expo 1.0.1-snapshot.vc65ad98
@clerk/fastify 1.0.1-snapshot.vc65ad98
gatsby-plugin-clerk 5.0.1-snapshot.vc65ad98
@clerk/localizations 2.0.1-snapshot.vc65ad98
@clerk/nextjs 5.0.1-snapshot.vc65ad98
@clerk/clerk-react 5.0.1-snapshot.vc65ad98
@clerk/remix 4.0.1-snapshot.vc65ad98
@clerk/clerk-sdk-node 5.0.1-snapshot.vc65ad98
@clerk/shared 2.0.1-snapshot.vc65ad98
@clerk/themes 2.0.1-snapshot.vc65ad98
@clerk/types 4.0.1-snapshot.vc65ad98

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/backend@1.0.1-snapshot.vc65ad98 --save-exact

@clerk/chrome-extension

npm i @clerk/chrome-extension@1.0.1-snapshot.vc65ad98 --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.0.1-snapshot.vc65ad98 --save-exact

@clerk/elements

npm i @clerk/elements@0.0.2-snapshot.vc65ad98 --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@1.0.1-snapshot.vc65ad98 --save-exact

@clerk/fastify

npm i @clerk/fastify@1.0.1-snapshot.vc65ad98 --save-exact

gatsby-plugin-clerk

npm i gatsby-plugin-clerk@5.0.1-snapshot.vc65ad98 --save-exact

@clerk/localizations

npm i @clerk/localizations@2.0.1-snapshot.vc65ad98 --save-exact

@clerk/nextjs

npm i @clerk/nextjs@5.0.1-snapshot.vc65ad98 --save-exact

@clerk/clerk-react

npm i @clerk/clerk-react@5.0.1-snapshot.vc65ad98 --save-exact

@clerk/remix

npm i @clerk/remix@4.0.1-snapshot.vc65ad98 --save-exact

@clerk/clerk-sdk-node

npm i @clerk/clerk-sdk-node@5.0.1-snapshot.vc65ad98 --save-exact

@clerk/shared

npm i @clerk/shared@2.0.1-snapshot.vc65ad98 --save-exact

@clerk/themes

npm i @clerk/themes@2.0.1-snapshot.vc65ad98 --save-exact

@clerk/types

npm i @clerk/types@4.0.1-snapshot.vc65ad98 --save-exact

@brkalow

brkalow commented Jan 26, 2024

Copy link
Copy Markdown
Member Author

!snapshot

@clerk-cookie

Copy link
Copy Markdown
Collaborator

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

Package Version
@clerk/backend 1.0.1-snapshot.v8b7e4f0
@clerk/chrome-extension 1.0.1-snapshot.v8b7e4f0
@clerk/clerk-js 5.0.1-snapshot.v8b7e4f0
@clerk/elements 0.0.2-snapshot.v8b7e4f0
@clerk/clerk-expo 1.0.1-snapshot.v8b7e4f0
@clerk/fastify 1.0.1-snapshot.v8b7e4f0
gatsby-plugin-clerk 5.0.1-snapshot.v8b7e4f0
@clerk/localizations 2.0.1-snapshot.v8b7e4f0
@clerk/nextjs 5.0.1-snapshot.v8b7e4f0
@clerk/clerk-react 5.0.1-snapshot.v8b7e4f0
@clerk/remix 4.0.1-snapshot.v8b7e4f0
@clerk/clerk-sdk-node 5.0.1-snapshot.v8b7e4f0
@clerk/shared 2.0.1-snapshot.v8b7e4f0
@clerk/themes 2.0.1-snapshot.v8b7e4f0
@clerk/types 4.0.1-snapshot.v8b7e4f0

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/backend@1.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/chrome-extension

npm i @clerk/chrome-extension@1.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/elements

npm i @clerk/elements@0.0.2-snapshot.v8b7e4f0 --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@1.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/fastify

npm i @clerk/fastify@1.0.1-snapshot.v8b7e4f0 --save-exact

gatsby-plugin-clerk

npm i gatsby-plugin-clerk@5.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/localizations

npm i @clerk/localizations@2.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/nextjs

npm i @clerk/nextjs@5.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/clerk-react

npm i @clerk/clerk-react@5.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/remix

npm i @clerk/remix@4.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/clerk-sdk-node

npm i @clerk/clerk-sdk-node@5.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/shared

npm i @clerk/shared@2.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/themes

npm i @clerk/themes@2.0.1-snapshot.v8b7e4f0 --save-exact

@clerk/types

npm i @clerk/types@4.0.1-snapshot.v8b7e4f0 --save-exact

@brkalow

brkalow commented Jan 26, 2024

Copy link
Copy Markdown
Member Author

!snapshot

{
"name": "@clerk/elements",
"version": "0.0.2-beta-v5.8",
"private": true,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TODO: we can add "private": "true" back until we're ready to publish openly.

@clerk-cookie

Copy link
Copy Markdown
Collaborator

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

Package Version
@clerk/backend 1.0.1-snapshot.vcaceed6
@clerk/chrome-extension 1.0.1-snapshot.vcaceed6
@clerk/clerk-js 5.0.1-snapshot.vcaceed6
@clerk/elements 0.0.2-snapshot.vcaceed6
@clerk/clerk-expo 1.0.1-snapshot.vcaceed6
@clerk/fastify 1.0.1-snapshot.vcaceed6
gatsby-plugin-clerk 5.0.1-snapshot.vcaceed6
@clerk/localizations 2.0.1-snapshot.vcaceed6
@clerk/nextjs 5.0.1-snapshot.vcaceed6
@clerk/clerk-react 5.0.1-snapshot.vcaceed6
@clerk/remix 4.0.1-snapshot.vcaceed6
@clerk/clerk-sdk-node 5.0.1-snapshot.vcaceed6
@clerk/shared 2.0.1-snapshot.vcaceed6
@clerk/themes 2.0.1-snapshot.vcaceed6
@clerk/types 4.0.1-snapshot.vcaceed6

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/backend@1.0.1-snapshot.vcaceed6 --save-exact

@clerk/chrome-extension

npm i @clerk/chrome-extension@1.0.1-snapshot.vcaceed6 --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.0.1-snapshot.vcaceed6 --save-exact

@clerk/elements

npm i @clerk/elements@0.0.2-snapshot.vcaceed6 --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@1.0.1-snapshot.vcaceed6 --save-exact

@clerk/fastify

npm i @clerk/fastify@1.0.1-snapshot.vcaceed6 --save-exact

gatsby-plugin-clerk

npm i gatsby-plugin-clerk@5.0.1-snapshot.vcaceed6 --save-exact

@clerk/localizations

npm i @clerk/localizations@2.0.1-snapshot.vcaceed6 --save-exact

@clerk/nextjs

npm i @clerk/nextjs@5.0.1-snapshot.vcaceed6 --save-exact

@clerk/clerk-react

npm i @clerk/clerk-react@5.0.1-snapshot.vcaceed6 --save-exact

@clerk/remix

npm i @clerk/remix@4.0.1-snapshot.vcaceed6 --save-exact

@clerk/clerk-sdk-node

npm i @clerk/clerk-sdk-node@5.0.1-snapshot.vcaceed6 --save-exact

@clerk/shared

npm i @clerk/shared@2.0.1-snapshot.vcaceed6 --save-exact

@clerk/themes

npm i @clerk/themes@2.0.1-snapshot.vcaceed6 --save-exact

@clerk/types

npm i @clerk/types@4.0.1-snapshot.vcaceed6 --save-exact

@brkalow

brkalow commented Jan 26, 2024

Copy link
Copy Markdown
Member Author

!snapshot

@clerk-cookie

Copy link
Copy Markdown
Collaborator

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

Package Version
@clerk/backend 1.0.1-snapshot.v7e9c51b
@clerk/chrome-extension 1.0.1-snapshot.v7e9c51b
@clerk/clerk-js 5.0.1-snapshot.v7e9c51b
@clerk/elements 0.0.2-snapshot.v7e9c51b
@clerk/clerk-expo 1.0.1-snapshot.v7e9c51b
@clerk/fastify 1.0.1-snapshot.v7e9c51b
gatsby-plugin-clerk 5.0.1-snapshot.v7e9c51b
@clerk/localizations 2.0.1-snapshot.v7e9c51b
@clerk/nextjs 5.0.1-snapshot.v7e9c51b
@clerk/clerk-react 5.0.1-snapshot.v7e9c51b
@clerk/remix 4.0.1-snapshot.v7e9c51b
@clerk/clerk-sdk-node 5.0.1-snapshot.v7e9c51b
@clerk/shared 2.0.1-snapshot.v7e9c51b
@clerk/themes 2.0.1-snapshot.v7e9c51b
@clerk/types 4.0.1-snapshot.v7e9c51b

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/backend@1.0.1-snapshot.v7e9c51b --save-exact

@clerk/chrome-extension

npm i @clerk/chrome-extension@1.0.1-snapshot.v7e9c51b --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.0.1-snapshot.v7e9c51b --save-exact

@clerk/elements

npm i @clerk/elements@0.0.2-snapshot.v7e9c51b --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@1.0.1-snapshot.v7e9c51b --save-exact

@clerk/fastify

npm i @clerk/fastify@1.0.1-snapshot.v7e9c51b --save-exact

gatsby-plugin-clerk

npm i gatsby-plugin-clerk@5.0.1-snapshot.v7e9c51b --save-exact

@clerk/localizations

npm i @clerk/localizations@2.0.1-snapshot.v7e9c51b --save-exact

@clerk/nextjs

npm i @clerk/nextjs@5.0.1-snapshot.v7e9c51b --save-exact

@clerk/clerk-react

npm i @clerk/clerk-react@5.0.1-snapshot.v7e9c51b --save-exact

@clerk/remix

npm i @clerk/remix@4.0.1-snapshot.v7e9c51b --save-exact

@clerk/clerk-sdk-node

npm i @clerk/clerk-sdk-node@5.0.1-snapshot.v7e9c51b --save-exact

@clerk/shared

npm i @clerk/shared@2.0.1-snapshot.v7e9c51b --save-exact

@clerk/themes

npm i @clerk/themes@2.0.1-snapshot.v7e9c51b --save-exact

@clerk/types

npm i @clerk/types@4.0.1-snapshot.v7e9c51b --save-exact

@LekoArts

LekoArts commented Feb 5, 2024

Copy link
Copy Markdown
Contributor

This PR was superseded by #2725 and #2676

@LekoArts LekoArts closed this Feb 5, 2024
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.

3 participants