Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: clerk/javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @clerk/nextjs@4.7.3
Choose a base ref
...
head repository: clerk/javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8479ee85f2389518d134b027c7b490b4c45baa26
Choose a head ref
  • 7 commits
  • 23 files changed
  • 1 contributor

Commits on Jan 19, 2023

  1. fix(clerk-react): Do not throw missing key error if a Clerk instance …

    …is used
    
    Users can pass their own Clerk instance to ClerkProvider which is already initialised with a frontendApi or PK, so throwing the error in this case here will not work.
    nikosdouvlis committed Jan 19, 2023
    Copy the full SHA
    a300016 View commit details
  2. chore(release): Publish

     - @clerk/clerk-expo@0.11.3-staging.0
     - @clerk/nextjs@4.7.4-staging.0
     - @clerk/clerk-react@4.8.2-staging.0
     - @clerk/remix@2.0.3-staging.0
    nikosdouvlis committed Jan 19, 2023
    Copy the full SHA
    776c42f View commit details
  3. fix(clerk-react): Do not throw missing key error in isomorphicClerk.load

    As we already check for the key existence further down the different flows
    nikosdouvlis committed Jan 19, 2023
    Copy the full SHA
    8b3b763 View commit details
  4. chore(release): Publish

     - @clerk/clerk-expo@0.11.3-staging.1
     - @clerk/nextjs@4.7.4-staging.1
     - @clerk/clerk-react@4.8.2-staging.1
     - @clerk/remix@2.0.3-staging.1
    nikosdouvlis committed Jan 19, 2023
    Copy the full SHA
    cdeb46b View commit details
  5. chore(release): Publish

     - @clerk/clerk-expo@0.11.3
     - @clerk/nextjs@4.7.4
     - @clerk/clerk-react@4.8.2
     - @clerk/remix@2.0.3
    nikosdouvlis committed Jan 19, 2023
    Copy the full SHA
    c2fd4b6 View commit details
  6. Copy the full SHA
    944ebec View commit details
  7. chore(release): Publish

     - @clerk/backend-core@2.13.1
     - @clerk/edge@1.13.1
    nikosdouvlis committed Jan 19, 2023
    Copy the full SHA
    8479ee8 View commit details
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -24,9 +24,8 @@ labels: 'Status: Triage'
- [ ] `@clerk/themes`
- [ ] `@clerk/localizations`
- [ ] `@clerk/clerk-expo`
- [ ] `@clerk/backend-core`
- [ ] `@clerk/clerk-sdk-node`
- [ ] `@clerk/edge`
- [ ] `@clerk/backend`
- [ ] other:

### Version:
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ labels: 'Status: Feature Request'
- [ ] `@clerk/nextjs`
- [ ] `@clerk/remix`
- [ ] `@clerk/clerk-expo`
- [ ] `@clerk/backend-core`
- [ ] `@clerk/clerk-sdk-node`
- [ ] `@clerk/edge`
- [ ] `@clerk/localizations`
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -17,9 +17,7 @@
- [ ] `@clerk/localizations`
- [ ] `@clerk/clerk-expo`
- [ ] `@clerk/backend`
- [ ] `@clerk/backend-core`
- [ ] `@clerk/clerk-sdk-node`
- [ ] `@clerk/edge`
- [ ] `@clerk/shared`
- [ ] `build/tooling/chore`

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -40,8 +40,7 @@ yarn add @clerk/clerk-sdk-node

For package specific details on installation, architecture and usage usage, you can refer to the package's README file.

- [`@clerk/backend-core`](./packages/backend-core): Functionalities regarded as "core" for Clerk to operate with. _Authentication resolution, API Resources etc._
- [`@clerk/edge`](./packages/edge): Top level SDK for edge environments containing all required helpers and middleware.
- [`@clerk/backend`](./packages/backend): Functionalities regarded as "core" for Clerk to operate with. _Authentication resolution, API Resources etc._
- [`@clerk/clerk-sdk-node`](./packages/sdk-node): SDK for native Node.js environment and frameworks.
- [`@clerk/nextjs`](./packages/nextjs): Clerk package for Next.js.
- [`@clerk/clerk-js`](./packages/clerk-js): Core JavaScript implementation used by Clerk in the browser.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/backend-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [2.13.1](https://github.com/clerkinc/javascript/compare/@clerk/backend-core@2.13.0...@clerk/backend-core@2.13.1) (2023-01-19)

### Bug Fixes

- **backend-core,edge:** Mark @clerk/backend-core and @clerk/edge as deprecated ([944ebec](https://github.com/clerkinc/javascript/commit/944ebeccb99099c17926098710a150aa1eb74a65))

## [2.13.0](https://github.com/clerkinc/javascript/compare/@clerk/backend-core@2.13.0-staging.1...@clerk/backend-core@2.13.0) (2023-01-17)

**Note:** Version bump only for package @clerk/backend-core
4 changes: 4 additions & 0 deletions packages/backend-core/README.md
Original file line number Diff line number Diff line change
@@ -27,6 +27,10 @@

---

# Deprecation warning

This package has been deprecated in favor of the isomorphic [`@clerk/backend`](https://github.com/clerkinc/javascript) which is now used across all server-enabled Clerk packages. This package will not receive any future updates. It should not be used directly - please use as a reference only.

## Overview

This package provides Clerk Backend API core resources and low-level authentication utilities for JavaScript environments. It is mostly used as the base for other Clerk SDKs.
2 changes: 1 addition & 1 deletion packages/backend-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend-core",
"version": "2.13.0",
"version": "2.13.1",
"license": "MIT",
"description": "Clerk Backend API core resources and authentication utilities for JavaScript environments.",
"scripts": {
6 changes: 6 additions & 0 deletions packages/edge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [1.13.1](https://github.com/clerkinc/javascript/compare/@clerk/edge@1.13.0...@clerk/edge@1.13.1) (2023-01-19)

### Bug Fixes

- **backend-core,edge:** Mark @clerk/backend-core and @clerk/edge as deprecated ([944ebec](https://github.com/clerkinc/javascript/commit/944ebeccb99099c17926098710a150aa1eb74a65))

## [1.13.0](https://github.com/clerkinc/javascript/compare/@clerk/edge@1.13.0-staging.1...@clerk/edge@1.13.0) (2023-01-17)

**Note:** Version bump only for package @clerk/edge
4 changes: 4 additions & 0 deletions packages/edge/README.md
Original file line number Diff line number Diff line change
@@ -25,6 +25,10 @@

---

# Deprecation warning

This package has been deprecated in favor of the isomorphic [`@clerk/backend`](https://github.com/clerkinc/javascript) which is now used across all server-enabled Clerk packages. This package will not receive any future updates. It should not be used directly - please use as a reference only.

## Overview

This package is a wrapper around Clerk core capabilities with added functionality and helpers aimed towards different edge and serverless platforms.
4 changes: 2 additions & 2 deletions packages/edge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/edge",
"version": "1.13.0",
"version": "1.13.1",
"license": "MIT",
"description": "Clerk SDK for serverless and edge environments",
"keywords": [
@@ -38,7 +38,7 @@
"lint": "eslint ."
},
"dependencies": {
"@clerk/backend-core": "^2.13.0",
"@clerk/backend-core": "^2.13.1",
"@clerk/types": "^3.24.0",
"@peculiar/webcrypto": "1.4.1",
"@types/node": "16.18.6"
2 changes: 1 addition & 1 deletion packages/edge/src/info.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */
export const LIB_VERSION = '1.13.0';
export const LIB_VERSION = '1.13.1';
export const LIB_NAME = '@clerk/edge';
4 changes: 4 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [0.11.3](https://github.com/clerkinc/javascript/compare/@clerk/clerk-expo@0.11.2...@clerk/clerk-expo@0.11.3) (2023-01-19)

**Note:** Version bump only for package @clerk/clerk-expo

### [0.11.2](https://github.com/clerkinc/javascript/compare/@clerk/clerk-expo@0.11.1...@clerk/clerk-expo@0.11.2) (2023-01-17)

**Note:** Version bump only for package @clerk/clerk-expo
4 changes: 2 additions & 2 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-expo",
"version": "0.11.2",
"version": "0.11.3",
"license": "MIT",
"description": "Clerk.dev React Native/Expo library",
"keywords": [
@@ -28,7 +28,7 @@
},
"dependencies": {
"@clerk/clerk-js": "^4.23.1",
"@clerk/clerk-react": "^4.8.1",
"@clerk/clerk-react": "^4.8.2",
"base-64": "1.0.0",
"react-native-url-polyfill": "1.3.0"
},
4 changes: 4 additions & 0 deletions packages/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [4.7.4](https://github.com/clerkinc/javascript/compare/@clerk/nextjs@4.7.3...@clerk/nextjs@4.7.4) (2023-01-19)

**Note:** Version bump only for package @clerk/nextjs

### [4.7.3](https://github.com/clerkinc/javascript/compare/@clerk/nextjs@4.7.3-staging.0...@clerk/nextjs@4.7.3) (2023-01-18)

**Note:** Version bump only for package @clerk/nextjs
4 changes: 2 additions & 2 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/nextjs",
"version": "4.7.3",
"version": "4.7.4",
"license": "MIT",
"description": "Clerk.dev SDK for NextJS",
"keywords": [
@@ -38,7 +38,7 @@
},
"dependencies": {
"@clerk/backend": "^0.4.1",
"@clerk/clerk-react": "^4.8.1",
"@clerk/clerk-react": "^4.8.2",
"@clerk/clerk-sdk-node": "^4.6.1",
"@clerk/types": "^3.24.0",
"tslib": "2.4.1"
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [4.8.2](https://github.com/clerkinc/javascript/compare/@clerk/clerk-react@4.8.1...@clerk/clerk-react@4.8.2) (2023-01-19)

### Bug Fixes

- **clerk-react:** Do not throw missing key error if a Clerk instance is used ([a300016](https://github.com/clerkinc/javascript/commit/a3000164483e7ed947d448f7593e0ce4dd110db3))
- **clerk-react:** Do not throw missing key error in isomorphicClerk.load ([8b3b763](https://github.com/clerkinc/javascript/commit/8b3b763ed67d3af101573627fc7b00fb0a526b9b))

### [4.8.1](https://github.com/clerkinc/javascript/compare/@clerk/clerk-react@4.8.0...@clerk/clerk-react@4.8.1) (2023-01-17)

### Bug Fixes
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-react",
"version": "4.8.1",
"version": "4.8.2",
"license": "MIT",
"description": "Clerk.dev React library",
"keywords": [
18 changes: 10 additions & 8 deletions packages/react/src/contexts/ClerkProvider.tsx
Original file line number Diff line number Diff line change
@@ -19,14 +19,16 @@ export type ClerkProviderProps = IsomorphicClerkOptions & {

function ClerkProviderBase(props: ClerkProviderProps): JSX.Element {
const { initialState, children, ...restIsomorphicClerkOptions } = props;
const { frontendApi = '', publishableKey = '' } = restIsomorphicClerkOptions;

if (!publishableKey && !frontendApi) {
errorThrower.throwMissingFrontendApiOrPublishableKeyError();
} else if (publishableKey && !isPublishableKey(publishableKey)) {
errorThrower.throwInvalidPublishableKeyError({ key: publishableKey });
} else if (frontendApi && !isLegacyFrontendApiKey(frontendApi)) {
errorThrower.throwInvalidFrontendApiError({ key: frontendApi });
const { frontendApi = '', publishableKey = '', Clerk: userInitialisedClerk } = restIsomorphicClerkOptions;

if (!userInitialisedClerk) {
if (!publishableKey && !frontendApi) {
errorThrower.throwMissingFrontendApiOrPublishableKeyError();
} else if (publishableKey && !isPublishableKey(publishableKey)) {
errorThrower.throwInvalidPublishableKeyError({ key: publishableKey });
} else if (frontendApi && !isLegacyFrontendApiKey(frontendApi)) {
errorThrower.throwInvalidFrontendApiError({ key: frontendApi });
}
}

return (
2 changes: 1 addition & 1 deletion packages/react/src/info.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/** DO NOT EDIT: This file is automatically generated by ../scripts/info.js */
export const LIB_VERSION = '4.8.1';
export const LIB_VERSION = '4.8.2';
export const LIB_NAME = '@clerk/clerk-react';
6 changes: 1 addition & 5 deletions packages/react/src/isomorphicClerk.ts
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ import type {
HeadlessBrowserClerkConstrutor,
IsomorphicClerkOptions,
} from './types';
import { errorThrower, inClientSide, isConstructor, loadScript } from './utils';
import { inClientSide, isConstructor, loadScript } from './utils';

export interface Global {
Clerk?: HeadlessBrowserClerk | BrowserClerk;
@@ -97,10 +97,6 @@ export default class IsomorphicClerk {
return;
}

if (!this.publishableKey && !this.frontendApi) {
errorThrower.throwMissingFrontendApiOrPublishableKeyError();
}

// Store frontendAPI value on window as a fallback. This value can be used as a
// fallback during ClerkJS hot loading in case ClerkJS fails to find the
// "data-clerk-frontend-api" attribute on its script tag.
4 changes: 4 additions & 0 deletions packages/remix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

### [2.0.3](https://github.com/clerkinc/javascript/compare/@clerk/remix@2.0.2...@clerk/remix@2.0.3) (2023-01-19)

**Note:** Version bump only for package @clerk/remix

### [2.0.2](https://github.com/clerkinc/javascript/compare/@clerk/remix@2.0.2-staging.0...@clerk/remix@2.0.2) (2023-01-18)

**Note:** Version bump only for package @clerk/remix
4 changes: 2 additions & 2 deletions packages/remix/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/remix",
"version": "2.0.2",
"version": "2.0.3",
"license": "MIT",
"description": "Clerk.dev SDK for Remix",
"keywords": [
@@ -32,7 +32,7 @@
},
"dependencies": {
"@clerk/backend": "^0.4.1",
"@clerk/clerk-react": "^4.8.1",
"@clerk/clerk-react": "^4.8.2",
"@clerk/types": "^3.24.0",
"cookie": "0.5.0",
"tslib": "2.4.1"