Skip to content

Commit a4ee67b

Browse files
committed
Merge branch 'alexcarpenter/user-3976-last-used-strategy-should-not-render-if-there-is-only-1' of github.com:clerk/javascript into alexcarpenter/user-3976-last-used-strategy-should-not-render-if-there-is-only-1
2 parents 2e4b99d + 7cc7508 commit a4ee67b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3388
-412
lines changed

.changeset/brown-bags-fold.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@clerk/clerk-js": minor
3+
"@clerk/clerk-react": minor
4+
"@clerk/shared": minor
5+
---
6+
7+
Standardized API keys naming convention

.changeset/clean-kings-join.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.changeset/gentle-hats-hope.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@clerk/astro": minor
3+
"@clerk/nuxt": minor
4+
"@clerk/vue": minor
5+
---
6+
7+
Introduce `<APIKeys />` component

.changeset/lemon-facts-stare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/shared': patch
3+
---
4+
5+
Update how cache keys are created in SWR/RQ hooks.

.changeset/young-impalas-grab.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@clerk/shared': patch
3+
---
4+
5+
Relaxing requirements for RQ variant hooks to enable revalidation across different configurations of the same hook.
6+
7+
```tsx
8+
9+
const { revalidate } = useStatements({ initialPage: 1, pageSize: 10 });
10+
useStatements({ initialPage: 1, pageSize: 12 });
11+
12+
// revalidate from first hook, now invalidates the second hook.
13+
void revalidate();
14+
```

packages/astro/src/astro-components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ export { default as CreateOrganization } from './interactive/CreateOrganization.
3131
export { default as GoogleOneTap } from './interactive/GoogleOneTap.astro';
3232
export { default as Waitlist } from './interactive/Waitlist.astro';
3333
export { default as PricingTable } from './interactive/PricingTable.astro';
34+
export { default as APIKeys } from './interactive/APIKeys.astro';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
import type { APIKeysProps } from '@clerk/shared/types';
3+
type Props = APIKeysProps;
4+
5+
import InternalUIComponentRenderer from './InternalUIComponentRenderer.astro';
6+
---
7+
8+
<InternalUIComponentRenderer
9+
{...Astro.props}
10+
component='api-keys'
11+
/>

packages/astro/src/internal/mount-clerk-astro-js-components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const mountAllClerkAstroJSComponents = () => {
2020
'google-one-tap': 'openGoogleOneTap',
2121
waitlist: 'mountWaitlist',
2222
'pricing-table': 'mountPricingTable',
23+
'api-keys': 'mountAPIKeys',
2324
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;
2425

2526
Object.entries(mountFns).forEach(([category, mountFn]) => {

packages/astro/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ export type InternalUIComponentId =
7272
| 'user-profile'
7373
| 'google-one-tap'
7474
| 'waitlist'
75-
| 'pricing-table';
75+
| 'pricing-table'
76+
| 'api-keys';

packages/clerk-js/bundlewatch.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{ "path": "./dist/clerk.legacy.browser.js", "maxSize": "123KB" },
77
{ "path": "./dist/clerk.headless*.js", "maxSize": "63.2KB" },
88
{ "path": "./dist/ui-common*.js", "maxSize": "117.1KB" },
9-
{ "path": "./dist/ui-common*.legacy.*.js", "maxSize": "120KB" },
9+
{ "path": "./dist/ui-common*.legacy.*.js", "maxSize": "120.1KB" },
1010
{ "path": "./dist/vendors*.js", "maxSize": "47KB" },
1111
{ "path": "./dist/coinbase*.js", "maxSize": "38KB" },
1212
{ "path": "./dist/stripe-vendors*.js", "maxSize": "1KB" },

0 commit comments

Comments
 (0)