-
Notifications
You must be signed in to change notification settings - Fork 253
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
chore(types,clerk-react): Make routerPush
/ routerReplace
both required or both optional
#2227
Conversation
🦋 Changeset detectedLatest commit: 495c3eb The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
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 |
123c423
to
2b24271
Compare
0988485
to
2b24271
Compare
…ired or both optional In order to use unions we converted the `ClerkOptions` interface to type to compose the union for mutual required or optional for `routerPush` and `routerReplace` options.
Fixed the 3 slowed formatted files (filename ignored -> ms saved): - packages/backend/tests/cloudflare-miniflare/worker.js -> 1582ms - packages/backend/tests/edge-runtime/bundle.js -> 1477ms - packages/clerk-js/CHANGELOG.md -> 177ms
2b24271
to
69b3cff
Compare
…ith retheme variant
|
# files with matching `*.retheme.ts` retheme variant | ||
- 'packages/localizations/src/en-US.ts' | ||
- 'packages/localizations/src/index.ts' | ||
- 'packages/types/src/appearance.ts' | ||
- 'packages/types/src/clerk.ts' | ||
- 'packages/types/src/index.ts' | ||
- 'packages/types/src/localization.ts' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Co-authored-by: Lennart <lekoarts@gmail.com>
Description
Changes (review per commit for more info):
Without
generic to resolve issues withOmit
and complex typesrouterPush
androuterReplace
options both required or both optionalChecklist
npm test
runs as expected.npm run build
runs as expected.Type of change
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