Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .changeset/pre.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-experts-eat",
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
Expand All@@ -43,9 +44,11 @@
"brown-ducks-reply",
"brown-mangos-jam",
"brown-pets-smile",
"brown-trees-sniff",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chatty-bottles-rhyme",
"chilled-boxes-kick",
"chilly-donuts-work",
"chilly-pens-speak",
Expand DownExpand Up@@ -87,8 +90,10 @@
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eight-plants-melt",
"eighty-walls-appear",
"eleven-bananas-joke",
"eleven-clouds-wave",
"empty-jars-press",
"fair-bears-build",
"fair-cameras-boil",
Expand DownExpand Up@@ -118,37 +123,45 @@
"fluffy-pets-greet",
"fluffy-queens-tap",
"four-guests-drive",
"four-pandas-grab",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-apricots-buy",
"funny-avocados-shout",
"funny-gifts-cough",
"funny-lamps-work",
"funny-pots-brush",
"fuzzy-horses-fix",
"fuzzy-shoes-battle",
"fuzzy-years-taste",
"gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gentle-toes-obey",
"gentle-toys-melt",
"giant-bags-lie",
"giant-bags-stare",
"giant-rice-crash",
"gold-fireants-sort",
"gold-islands-cover",
"gold-shrimps-behave",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"gorgeous-stingrays-lay",
"great-plums-buy",
"green-rocks-chew",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"happy-worms-smell",
"healthy-walls-fold",
"heavy-falcons-help",
"heavy-horses-nail",
Expand All@@ -157,6 +170,7 @@
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hot-fireants-kiss",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-lies-burn",
Expand All@@ -173,9 +187,11 @@
"late-dolphins-peel",
"late-flies-switch",
"late-pillows-notice",
"late-wasps-attack",
"late-wolves-mate",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-cameras-talk",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
Expand DownExpand Up@@ -206,6 +222,7 @@
"many-dragons-carry",
"many-flowers-heal",
"many-moons-matter",
"many-onions-travel",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
Expand All@@ -222,6 +239,7 @@
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-queens-exist",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
Expand All@@ -234,11 +252,13 @@
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-crabs-know",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
"nervous-kings-deny",
"new-cougars-taste",
"new-dolphins-raise",
"new-eels-mix",
"new-points-train",
"new-points-turn",
Expand All@@ -262,6 +282,7 @@
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-bottles-raise",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
Expand DownExpand Up@@ -291,6 +312,7 @@
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-bulldogs-cheer",
"rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
Expand DownExpand Up@@ -327,6 +349,7 @@
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-bikes-lick",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
Expand All@@ -351,6 +374,7 @@
"slow-wombats-battle",
"small-cats-check",
"small-ladybugs-mate",
"small-months-sing",
"small-swans-stare",
"smart-queens-kiss",
"smart-suns-train",
Expand All@@ -371,7 +395,10 @@
"spotty-nails-double",
"spotty-ravens-sleep",
"spotty-roses-push",
"spotty-tomatoes-wonder",
"stale-hats-jump",
"strange-needles-learn",
"strange-trains-bow",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
Expand DownExpand Up@@ -407,6 +434,7 @@
"tiny-forks-sit",
"tiny-pants-change",
"tiny-ravens-accept",
"tough-peas-teach",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
Expand All@@ -416,6 +444,7 @@
"two-crews-talk",
"two-pumas-doubt",
"two-terms-speak",
"unlucky-frogs-tap",
"unlucky-socks-heal",
"violet-birds-scream",
"warm-books-begin",
Expand Down
93 changes: 93 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,98 @@
# Change Log

## 1.0.0-alpha-v5.17

### Major Changes

- Drop `user` / `organization` / `session` from auth object on **signed-out** state (current value was `null`). Eg ([#2598](https://github.com/clerk/javascript/pull/2598)) by [@dimkl](https://github.com/dimkl)

```diff
// Backend
import { createClerkClient } from '@clerk/backend';

const clerkClient = createClerkClient({...});
const requestState = clerkClient.authenticateRequest(request, {...});

- const { user, organization, session } = requestState.toAuth();
+ const { userId, organizationId, sessionId } = requestState.toAuth();

// Remix
import { getAuth } from '@clerk/remix/ssr.server';

- const { user, organization, session } = await getAuth(args);
+ const { userId, organizationId, sessionId } = await getAuth(args);

// or
rootAuthLoader(
args,
({ request }) => {
- const { user, organization, session } = request.auth;
+ const { userId, organizationId, sessionId } = request.auth;
// ...
},
{ loadUser: true },
);

// NextJS
import { getAuth } from '@clerk/nextjs/server';

- const { user, organization, session } = getAuth(args);
+ const { userId, organizationId, sessionId } = getAuth(req, opts);

// Gatsby
import { withServerAuth } from 'gatsby-plugin-clerk';

export const getServerData: GetServerData<any> = withServerAuth(
async props => {
- const { user, organization, session } = props;
+ const { userId, organizationId, sessionId } = props;
return { props: { data: '1', auth: props.auth, userId, organizationId, sessionId } };
},
{ loadUser: true },
);
```

- Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency). ([#2596](https://github.com/clerk/javascript/pull/2596)) by [@dimkl](https://github.com/dimkl)

```diff
import { signJwt } from '@clerk/backend/jwt';

- const { data, error } = await signJwt(...);
+ const { data, errors: [error] = [] } = await signJwt(...);
```

```diff
import { verifyJwt } from '@clerk/backend/jwt';

- const { data, error } = await verifyJwt(...);
+ const { data, errors: [error] = [] } = await verifyJwt(...);
```

```diff
import { hasValidSignature } from '@clerk/backend/jwt';

- const { data, error } = await hasValidSignature(...);
+ const { data, errors: [error] = [] } = await hasValidSignature(...);
```

```diff
import { decodeJwt } from '@clerk/backend/jwt';

- const { data, error } = await decodeJwt(...);
+ const { data, errors: [error] = [] } = await decodeJwt(...);
```

```diff
import { verifyToken } from '@clerk/backend';

- const { data, error } = await verifyToken(...);
+ const { data, errors: [error] = [] } = await verifyToken(...);
```

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/chrome-extension/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.17",
"version": "1.0.0-alpha-v5.18",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand DownExpand Up@@ -44,7 +44,7 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.17",
"@clerk/clerk-js": "5.0.0-alpha-v5.18",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
# Change Log

## 5.0.0-alpha-v5.18

### Patch Changes

- Update `@clerk/nextjs` error messages to refer to `clerkMiddleware()` and deprecated `authMiddleware()` and fix a typo in `cannotRenderSignUpComponentWhenSessionExists` error message. ([#2589](https://github.com/clerk/javascript/pull/2589)) by [@dimkl](https://github.com/dimkl)

- Throw error for unsupported method `OrganizationMembership.reload` ([#2604](https://github.com/clerk/javascript/pull/2604)) by [@panteliselef](https://github.com/panteliselef)

- Use pattern for email input fields. ([#2575](https://github.com/clerk/javascript/pull/2575)) by [@panteliselef](https://github.com/panteliselef)

- Take account custom pages when redirecting inside OrganizationProfile. ([#2600](https://github.com/clerk/javascript/pull/2600)) by [@panteliselef](https://github.com/panteliselef)

## 5.0.0-alpha-v5.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.17",
"version": "5.0.0-alpha-v5.18",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.7

### Patch Changes

- Updated dependencies [[`4564ad643`](https://github.com/clerk/javascript/commit/4564ad643da6a6396a519d2c23d3799e9962bf52), [`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`6fffd3b54`](https://github.com/clerk/javascript/commit/6fffd3b542f3df0bcb49281b7c4f77209a83f7a1)]:
- @clerk/nextjs@5.0.0-alpha-v5.19

## 0.0.2-alpha-v5.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.6",
"version": "0.0.2-alpha-v5.7",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand DownExpand Up@@ -59,7 +59,7 @@
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.18",
"@clerk/nextjs": "5.0.0-alpha-v5.19",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
Expand Down
7 changes: 7 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.0.0-alpha-v5.18

### Patch Changes

- Updated dependencies [[`9e99eb727`](https://github.com/clerk/javascript/commit/9e99eb7276249c68ef6f930cce418ce0004653b9), [`491fba5ad`](https://github.com/clerk/javascript/commit/491fba5adc4dad131c2cd709faa5024f767f3e9d), [`8b261add2`](https://github.com/clerk/javascript/commit/8b261add294bd4de80e7138c9ff58708cf6cd908), [`6fd303b99`](https://github.com/clerk/javascript/commit/6fd303b99b068d2458efd0616b2c5334248acc3f)]:
- @clerk/clerk-js@5.0.0-alpha-v5.18

## 1.0.0-alpha-v5.17

### Patch Changes
Expand Down
Loading