Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages (alpha-v5) #2397

Merged
merged 1 commit into from
Dec 21, 2023
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
31 changes: 31 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
"changesets": [
"afraid-nails-play",
"angry-clocks-attend",
"angry-cows-refuse",
"beige-eyes-relate",
"blue-garlics-remain",
"blue-ghosts-float",
"blue-grapes-marry",
"blue-horses-call",
"blue-lies-drop",
"brave-suits-drive",
"bright-dragons-join",
Expand Down Expand Up @@ -54,8 +57,10 @@
"cyan-dodos-provide",
"cyan-rockets-fail",
"cyan-stingrays-own",
"dirty-chefs-sell",
"dirty-icons-rescue",
"dirty-panthers-begin",
"dirty-swans-joke",
"dry-feet-join",
"dry-sheep-poke",
"dry-students-reflect",
Expand All @@ -78,14 +83,17 @@
"fast-ads-mix",
"fast-games-hide",
"fast-swans-smile",
"few-beers-wink",
"few-kids-design",
"fifty-rats-rhyme",
"fifty-shirts-grin",
"fifty-snakes-accept",
"flat-ants-worry",
"flat-clocks-clap",
"flat-donuts-sleep",
"flat-pots-hear",
"fluffy-chicken-explain",
"fresh-crews-lick",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-tables-chew",
Expand All @@ -99,16 +107,19 @@
"gentle-pants-matter",
"gold-fireants-sort",
"gold-islands-cover",
"good-buttons-drum",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"happy-panthers-approve",
"heavy-falcons-help",
"heavy-horses-nail",
"hip-eagles-clap",
"hip-planets-reply",
"honest-onions-work",
"honest-pigs-smoke",
"hot-ducks-wink",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-news-bathe",
Expand All @@ -124,13 +135,17 @@
"late-flies-switch",
"late-pillows-notice",
"lazy-planes-run",
"lazy-turtles-nail",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
"lemon-rocks-act",
"lemon-worms-chew",
"light-spoons-divide",
"little-apes-notice",
"little-dolphins-scream",
"little-numbers-jam",
"little-shoes-give",
"long-beds-mate",
"long-dancers-whisper",
"long-icons-share",
Expand All @@ -146,18 +161,21 @@
"many-dragons-carry",
"many-flowers-heal",
"many-weeks-march",
"mean-frogs-hammer",
"mean-houses-juggle",
"mean-numbers-grin",
"mean-poets-bow",
"metal-baboons-vanish",
"metal-cougars-fail",
"metal-ears-cheat",
"metal-kings-tease",
"metal-olives-press",
"metal-wolves-wave",
"mighty-bulldogs-try",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-rice-marry",
"mighty-ways-learn",
"modern-buses-sort",
"modern-mayflies-sort",
"moody-radios-begin",
Expand All @@ -175,6 +193,7 @@
"nice-starfishes-itch",
"nine-beans-travel",
"nine-cooks-retire",
"odd-dogs-tan",
"odd-eels-ring",
"odd-lemons-reply",
"odd-toes-develop",
Expand All @@ -183,10 +202,12 @@
"old-onions-swim",
"old-timers-obey",
"olive-steaks-end",
"orange-files-end",
"orange-pumpkins-poke",
"perfect-ants-joke",
"pink-days-drum",
"polite-kiwis-arrive",
"poor-geese-rescue",
"poor-horses-press",
"poor-kings-marry",
"popular-parents-hope",
Expand Down Expand Up @@ -215,25 +236,30 @@
"rich-actors-cross",
"rich-readers-obey",
"rotten-ways-do",
"rude-deers-fetch",
"rude-jobs-yawn",
"rude-lamps-yawn",
"selfish-eggs-sort",
"selfish-flies-care",
"selfish-trains-breathe",
"shaggy-points-cheer",
"shaggy-pumpkins-tap",
"sharp-trains-ring",
"shiny-glasses-switch",
"shiny-pumas-share",
"short-cheetahs-punch",
"short-eagles-search",
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
"silly-zebras-dream",
"silver-cats-appear",
"silver-weeks-roll",
"six-kangaroos-serve",
"sixty-dancers-lie",
"sixty-frogs-pump",
"sixty-months-listen",
"slimy-brooms-smoke",
Expand All @@ -258,6 +284,7 @@
"spicy-feet-buy",
"spotty-apples-march",
"spotty-boxes-do",
"spotty-ravens-sleep",
"spotty-roses-push",
"strong-cows-sit",
"stupid-suits-accept",
Expand All @@ -271,6 +298,7 @@
"tasty-terms-fly",
"ten-mugs-film",
"ten-nails-whisper",
"thick-doors-smile",
"thin-phones-drop",
"thirty-chicken-divide",
"thirty-doors-peel",
Expand All @@ -285,9 +313,12 @@
"two-pumas-doubt",
"two-terms-speak",
"violet-birds-scream",
"warm-icons-brake",
"weak-bears-cover",
"weak-elephants-grin",
"wicked-countries-explain",
"wicked-spoons-confess",
"wild-cougars-greet",
"wild-phones-smoke",
"wise-houses-shop",
"wise-lions-type",
Expand Down
21 changes: 21 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Change Log

## 1.0.0-alpha-v5.11

### Minor Changes

- Add `createOrganizationEnabled` param in `@clerk/backend` method `User.updateUser()` ([#2415](https://github.com/clerk/javascript/pull/2415)) by [@dimkl](https://github.com/dimkl)

Example:

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

const clerkClient = createClerkClient({...});
await clerkClient.users.updateUser('user_...', { createOrganizationEnabled: true })
```

### Patch Changes

- `OrganizationMembershipRole` should respect authorization types provided by the developer if those exist. ([#2408](https://github.com/clerk/javascript/pull/2408)) by [@panteliselef](https://github.com/panteliselef)

- Fixed an issue where errors returned from backend api requests are not converted to camelCase. ([#2423](https://github.com/clerk/javascript/pull/2423)) by [@Nikpolik](https://github.com/Nikpolik)

## 1.0.0-alpha-v5.10

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.10",
"version": "1.0.0-alpha-v5.11",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down Expand Up @@ -101,7 +101,7 @@
"tslib": "2.4.1"
},
"devDependencies": {
"@clerk/types": "4.0.0-alpha-v5.11",
"@clerk/types": "4.0.0-alpha-v5.12",
"@cloudflare/workers-types": "^3.18.0",
"@types/chai": "^4.3.3",
"@types/cookie": "^0.5.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 1.0.0-alpha-v5.12

### Patch Changes

- Updated dependencies [[`cfea3d9c0`](https://github.com/clerk/javascript/commit/cfea3d9c00950eee8d7e942d88bee1a56a5f842b), [`d18cae5fd`](https://github.com/clerk/javascript/commit/d18cae5fd9ba80d9e396b433ea5e21b27bfdaf59), [`394cecc6b`](https://github.com/clerk/javascript/commit/394cecc6b9a753f9eb7cce9a5d8b2d86a3c671df), [`fe2607b6f`](https://github.com/clerk/javascript/commit/fe2607b6fdeed83002db7e4a0c040ac0280e5ff7), [`2e4a43017`](https://github.com/clerk/javascript/commit/2e4a43017ef33b541949ba90e16bf5311ce8bc60), [`f5fb63cf1`](https://github.com/clerk/javascript/commit/f5fb63cf1dd51cd6cd0dba4d9eef871695ef06c3), [`bf09d18d6`](https://github.com/clerk/javascript/commit/bf09d18d6408ac89f8b9207d05e0f3660d27a6cf)]:
- @clerk/clerk-js@5.0.0-alpha-v5.12
- @clerk/clerk-react@5.0.0-alpha-v5.12

## 1.0.0-alpha-v5.11

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

## 5.0.0-alpha-v5.12

### Major Changes

- Path-based routing is now the default routing strategy if the `path` prop is filled. Additionally, if the `path` and `routing` props are not filled, an error will be thrown. ([#2338](https://github.com/clerk/javascript/pull/2338)) by [@octoper](https://github.com/octoper)

```jsx

// Without path or routing props, an error with be thrown
<UserProfile />
<CreateOrganization />
<OrganizationProfile />
<SignIn />
<SignUp />

// Alternative #1
<UserProfile path="/whatever"/>
<CreateOrganization path="/whatever"/>
<OrganizationProfile path="/whatever"/>
<SignIn path="/whatever"/>
<SignUp path="/whatever"/>

// Alternative #2
<UserProfile routing="hash_or_virtual"/>
<CreateOrganization routing="hash_or_virtual"/>
<OrganizationProfile routing="hash_or_virtual"/>
<SignIn routing="hash_or_virtual"/>
<SignUp routing="hash_or_virtual"/>
```

- Make the user name on <UserButton showName /> clickable, i.e. part of the button's trigger. ([#2411](https://github.com/clerk/javascript/pull/2411)) by [@marcelscruz](https://github.com/marcelscruz)

This change inverts the positions of `cl-userButtonTrigger` and `cl-userButtonBox`, the latter now being a child of the former.

- Consolidate `afterSignOutOneUrl` & `afterSignOutAllUrl` to `afterSignOutUrl` and drop usage of Dashboard settings in ClerkJS components. The Dashboard settings should only apply to the Account Portal application. ([#2414](https://github.com/clerk/javascript/pull/2414)) by [@dimkl](https://github.com/dimkl)

### Minor Changes

- Remove MemberRole Type`MemberRole` would always include the old role keys `admin`, `member`, `guest_member`. ([#2388](https://github.com/clerk/javascript/pull/2388)) by [@panteliselef](https://github.com/panteliselef)

If developers still depend on them after the introduction of custom roles, the can provide them as their custom types for authorization.

```ts
// clerk.d.ts
export {};

interface ClerkAuthorization {
permission: '';
role: 'admin' | 'basic_member' | 'guest_member';
}
```

- Update `@clerk/clerk-js` and `@clerk/clerk-react` to support the following examples: ([#2412](https://github.com/clerk/javascript/pull/2412)) by [@dimkl](https://github.com/dimkl)

```typescript
Clerk.signOut({ redirectUrl: '/' })

<SignOutButton redirectUrl='/' />
// uses Clerk.signOut({ redirectUrl: '/' })
<UserButton afterSignOutUrl='/after' />
// uses Clerk.signOut({ redirectUrl: '/after' })
<ClerkProvider afterSignOutUrl='/after' />
// uses Clerk.signOut({ redirectUrl: '/after' })
```

### Patch Changes

- Prevent submitting on enter in Organization Profile form when submit button is disabled. ([#2400](https://github.com/clerk/javascript/pull/2400)) by [@panteliselef](https://github.com/panteliselef)

- Bug fix: Clear feedback of input field if `setError` is called with undefined. ([#2399](https://github.com/clerk/javascript/pull/2399)) by [@panteliselef](https://github.com/panteliselef)

- Updated dependencies [[`fe2607b6f`](https://github.com/clerk/javascript/commit/fe2607b6fdeed83002db7e4a0c040ac0280e5ff7), [`2e4a43017`](https://github.com/clerk/javascript/commit/2e4a43017ef33b541949ba90e16bf5311ce8bc60)]:
- @clerk/types@4.0.0-alpha-v5.12

## 5.0.0-alpha-v5.11

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.11",
"version": "5.0.0-alpha-v5.12",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down Expand Up @@ -52,7 +52,7 @@
"dependencies": {
"@clerk/localizations": "2.0.0-alpha-v5.7",
"@clerk/shared": "2.0.0-alpha-v5.7",
"@clerk/types": "4.0.0-alpha-v5.11",
"@clerk/types": "4.0.0-alpha-v5.12",
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
"@floating-ui/react": "0.25.4",
Expand Down
7 changes: 7 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @clerk/elements

## 0.0.2-alpha-v5.1

### Patch Changes

- Updated dependencies [[`cfea3d9c0`](https://github.com/clerk/javascript/commit/cfea3d9c00950eee8d7e942d88bee1a56a5f842b), [`fe2607b6f`](https://github.com/clerk/javascript/commit/fe2607b6fdeed83002db7e4a0c040ac0280e5ff7), [`2e4a43017`](https://github.com/clerk/javascript/commit/2e4a43017ef33b541949ba90e16bf5311ce8bc60), [`f5fb63cf1`](https://github.com/clerk/javascript/commit/f5fb63cf1dd51cd6cd0dba4d9eef871695ef06c3)]:
- @clerk/clerk-react@5.0.0-alpha-v5.12

## 0.0.2-alpha-v5.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.0",
"version": "0.0.2-alpha-v5.1",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand Down Expand Up @@ -58,7 +58,7 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.11"
"@clerk/clerk-react": "5.0.0-alpha-v5.12"
},
"devDependencies": {
"@types/node": "^18.17.0",
Expand Down
Loading
Loading