-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,37 @@ | ||
# Change Log | ||
|
||
## 5.42.0 | ||
|
||
### Minor Changes | ||
|
||
- Display a UI prompt while Clerk is running in Keyless mode. ([#4761](https://github.com/clerk/javascript/pull/4761)) by [@panteliselef](https://github.com/panteliselef) | ||
|
||
### Patch Changes | ||
|
||
- Add additional toast UI for the claim/keyless flow ([#4756](https://github.com/clerk/javascript/pull/4756)) by [@kaftarmery](https://github.com/kaftarmery) | ||
|
||
- Using the same peerDependencies semver for react and react-dom ([#4758](https://github.com/clerk/javascript/pull/4758)) by [@jacekradko](https://github.com/jacekradko) | ||
|
||
- Introduce `__internal_copyInstanceKeysUrl` as property in `ClerkOptions`. It is intented for internall usage from other Clerk SDKs and will be used in Keyless mode. ([#4755](https://github.com/clerk/javascript/pull/4755)) by [@panteliselef](https://github.com/panteliselef) | ||
|
||
- Bug fix: Use `afterSwitchSessionUrl` instead of using`afterSignInUrl`when switching sessions within`<UserButton/>`. ([#4726](https://github.com/clerk/javascript/pull/4726)) by [@panteliselef](https://github.com/panteliselef) | ||
|
||
- Add `claimedAt` proprty inside AuthConfig for the environment. It describes when a instance that was created from the Keyless mode was finally claimed. ([#4752](https://github.com/clerk/javascript/pull/4752)) by [@panteliselef](https://github.com/panteliselef) | ||
|
||
- Handle organization membership quote exceeded error during enterprise SSO ([#4763](https://github.com/clerk/javascript/pull/4763)) by [@mzhong9723](https://github.com/mzhong9723) | ||
|
||
- Introduce a `toJSON()` function on resources. ([#4604](https://github.com/clerk/javascript/pull/4604)) by [@anagstef](https://github.com/anagstef) | ||
|
||
This change also introduces two new internal methods on the Clerk resource, to be used by the expo package. | ||
|
||
- `__internal_getCachedResources()`: (Optional) This function is used to load cached Client and Environment resources if Clerk fails to load them from the Frontend API. | ||
- `__internal_reloadInitialResources()`: This funtion is used to reload the initial resources (Environment/Client) from the Frontend API. | ||
|
||
- Updated dependencies [[`66ad299e4b6496ea4a93799de0f1ecfad920ddad`](https://github.com/clerk/javascript/commit/66ad299e4b6496ea4a93799de0f1ecfad920ddad), [`dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d`](https://github.com/clerk/javascript/commit/dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d), [`e1748582d0c89462f48a482a7805871b7065fa19`](https://github.com/clerk/javascript/commit/e1748582d0c89462f48a482a7805871b7065fa19), [`7f7edcaa8228c26d19e9081979100ada7e982095`](https://github.com/clerk/javascript/commit/7f7edcaa8228c26d19e9081979100ada7e982095), [`dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d`](https://github.com/clerk/javascript/commit/dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d)]: | ||
- @clerk/[email protected] | ||
- @clerk/[email protected] | ||
- @clerk/[email protected] | ||
|
||
## 5.41.0 | ||
|
||
### Minor Changes | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,65 @@ | ||
# Change Log | ||
|
||
## 2.6.0 | ||
|
||
### Minor Changes | ||
|
||
- Introduce improved offline support for Expo. ([#4604](https://github.com/clerk/javascript/pull/4604)) by [@anagstef](https://github.com/anagstef) | ||
|
||
We're introducing an improved offline support for the `@clerk/clerk-expo` package to enhance reliability and user experience. This new improvement allows apps to bootstrap without an internet connection by using cached Clerk resources, ensuring quick initialization. | ||
|
||
It solves issues as the following: | ||
|
||
- Faster resolution of the `isLoaded` property and the `ClerkLoaded` component, with only a single network fetch attempt, and if it fails, it falls back to the cached resources. | ||
- The `getToken` function of `useAuth` hook now returns a cached token if network errors occur. | ||
- Developers can now catch and handle network errors gracefully in their custom flows, as the errors are no longer muted. | ||
|
||
How to use it: | ||
|
||
1. Install the `expo-secure-store` package in your project by running: | ||
|
||
```bash | ||
npm i expo-secure-store | ||
``` | ||
|
||
2. Use `import { secureStore } from "@clerk/clerk-expo/secure-store"` to import our implementation of the `SecureStore` API. | ||
3. Pass the `secureStore` in the `__experimental_resourceCache` property of the `ClerkProvider` to enable offline support. | ||
```tsx | ||
import { ClerkProvider, ClerkLoaded } from '@clerk/clerk-expo'; | ||
import { Slot } from 'expo-router'; | ||
import { tokenCache } from '../token-cache'; | ||
import { secureStore } from '@clerk/clerk-expo/secure-store'; | ||
export default function RootLayout() { | ||
const publishableKey = process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY!; | ||
if (!publishableKey) { | ||
throw new Error('Add EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY to your .env file'); | ||
} | ||
return ( | ||
<ClerkProvider | ||
publishableKey={publishableKey} | ||
tokenCache={tokenCache} | ||
__experimental_resourceCache={secureStore} | ||
> | ||
<ClerkLoaded> | ||
<Slot /> | ||
</ClerkLoaded> | ||
</ClerkProvider> | ||
); | ||
} | ||
``` | ||
### Patch Changes | ||
- Updated dependencies [[`e80166e08c8e230ce9ee48f2eaef3b27996b7557`](https://github.com/clerk/javascript/commit/e80166e08c8e230ce9ee48f2eaef3b27996b7557), [`66ad299e4b6496ea4a93799de0f1ecfad920ddad`](https://github.com/clerk/javascript/commit/66ad299e4b6496ea4a93799de0f1ecfad920ddad), [`dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d`](https://github.com/clerk/javascript/commit/dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d), [`e1748582d0c89462f48a482a7805871b7065fa19`](https://github.com/clerk/javascript/commit/e1748582d0c89462f48a482a7805871b7065fa19), [`85a36a8ed615c968e9b381be97db797d96f69acc`](https://github.com/clerk/javascript/commit/85a36a8ed615c968e9b381be97db797d96f69acc), [`63b95ad5c0463f4d10db08f18f97e7c94102930d`](https://github.com/clerk/javascript/commit/63b95ad5c0463f4d10db08f18f97e7c94102930d), [`7f7edcaa8228c26d19e9081979100ada7e982095`](https://github.com/clerk/javascript/commit/7f7edcaa8228c26d19e9081979100ada7e982095), [`c7d7f45947c151342cfb2f7ffd67628da4cebdd7`](https://github.com/clerk/javascript/commit/c7d7f45947c151342cfb2f7ffd67628da4cebdd7), [`dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d`](https://github.com/clerk/javascript/commit/dd3fdc7b2a96ddb90b33c6f1cefb055a60f99a9d)]: | ||
- @clerk/[email protected] | ||
- @clerk/[email protected] | ||
- @clerk/[email protected] | ||
- @clerk/[email protected] | ||
## 2.5.0 | ||
### Minor Changes | ||
|