Skip to content

Commit

Permalink
add partial for node upgrade callout
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaxyz committed Jan 14, 2025
1 parent 3af4844 commit 68f9e16
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 32 deletions.
2 changes: 2 additions & 0 deletions docs/_partials/upgrade-node-express.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> [!IMPORTANT]
> The Node SDK is no longer supported. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
3 changes: 1 addition & 2 deletions docs/backend-requests/handling/nodejs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: Handling requests with the Node SDK
description: Learn how to handle authenticated requests with Clerk's Node SDK.
---

> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

## Node SDK Middleware

Expand Down
9 changes: 1 addition & 8 deletions docs/references/express/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ title: Clerk Express SDK
description: Learn how to integrate Clerk into your Express application using the Clerk Express SDK.
---

The Clerk Express SDK is the recommended method for integrating Clerk into your Express application.

See the [quickstart](/docs/quickstarts/express) to get started.

{/* TODO: Remove callout when Node SDK is removed from docs */}

> [!IMPORTANT]
> If you are upgrading from the Node SDK, see the [upgrade guide](/docs/upgrade-guides/node-to-express) for more information.
The Clerk Express SDK is the recommended method for integrating Clerk into your Express application. Refer to the [quickstart](/docs/quickstarts/express) to get started.

## Methods

Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/backend.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/chrome-extension.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/expo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/fastify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down
4 changes: 2 additions & 2 deletions docs/upgrade-guides/core-2/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
> [!IMPORTANT]
> The Node SDK is no longer supported. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down
9 changes: 3 additions & 6 deletions docs/upgrade-guides/core-2/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,7 @@ As part of this release, some of the top-level exports of `@clerk/nextjs` have b
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

The `@clerk/nextjs/api` subpath was removed completely. It re-exported helpers from `@clerk/clerk-sdk-node` and its types. If you relied on these, import from `@clerk/clerk-sdk-node` directly instead.

Expand Down Expand Up @@ -532,8 +531,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down Expand Up @@ -746,8 +744,7 @@ As part of this major version, a number of previously deprecated props, argument
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

The import subpath `@clerk/nextjs/api` has been removed. This includes the following imports:

Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: Upgrading `@clerk/clerk-sdk-node` to Core 2
description: "Learn how to upgrade Clerk's Node SDK to the latest version."
---

> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

{/* WARNING: This is a generated file and should not be edited directly. To update its contents, see the "upgrade" package in the clerk/javascript repo. */}

Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down
3 changes: 1 addition & 2 deletions docs/upgrade-guides/core-2/remix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ The `orgs` claim was part of the `JwtPayload`. Here are a few examples of where
</AccordionPanel>

<AccordionPanel>
> [!CAUTION]
> On January 8, 2025, the Node SDK will no longer be available. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express).
<Include src="_partials/upgrade-node-express.mdx" />

```typescript {{ filename: '@clerk/clerk-sdk-node' }}
import { clerkClient } from '@clerk/clerk-sdk-node'
Expand Down

0 comments on commit 68f9e16

Please sign in to comment.