Skip to content

Commit 153d1e0

Browse files
ci(repo): Version packages
1 parent be6bc90 commit 153d1e0

33 files changed

+181
-86
lines changed

.changeset/brown-chairs-invite.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

.changeset/famous-wolves-open.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/flat-papers-begin.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/sixty-carpets-stare.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.changeset/tender-brooms-look.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/agent-toolkit/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @clerk/agent-toolkit
22

3+
## 0.0.38
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`ced8912`](https://github.com/clerk/javascript/commit/ced8912e8c9fb7eb7846de6ca9a872e794d9e15d)]:
8+
- @clerk/backend@1.33.0
9+
310
## 0.0.37
411

512
### Patch Changes

packages/agent-toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/agent-toolkit",
3-
"version": "0.0.37",
3+
"version": "0.0.38",
44
"description": "Clerk Toolkit for AI Agents",
55
"homepage": "https://clerk.com/",
66
"bugs": {

packages/astro/CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# @clerk/astro
22

3+
## 2.8.0
4+
5+
### Minor Changes
6+
7+
- Introduce `treatPendingAsSignedOut` option to `getAuth` and `auth` from `clerkMiddleware` ([#5757](https://github.com/clerk/javascript/pull/5757)) by [@LauraBeatris](https://github.com/LauraBeatris)
8+
9+
By default, `treatPendingAsSignedOut` is set to `true`, which means pending sessions are treated as signed-out. You can set this option to `false` to treat pending sessions as authenticated.
10+
11+
```ts
12+
// `pending` sessions will be treated as signed-out by default
13+
const { userId } = getAuth(req, locals);
14+
```
15+
16+
```ts
17+
// Both `active` and `pending` sessions will be treated as authenticated when `treatPendingAsSignedOut` is false
18+
const { userId } = getAuth(req, locals, { treatPendingAsSignedOut: false });
19+
```
20+
21+
```ts
22+
clerkMiddleware((auth, context) => {
23+
const { redirectToSignIn, userId } = auth({ treatPendingAsSignedOut: false });
24+
25+
// Both `active` and `pending` sessions will be treated as authenticated when `treatPendingAsSignedOut` is false
26+
if (!userId && isProtectedRoute(context.request)) {
27+
return redirectToSignIn();
28+
}
29+
});
30+
```
31+
32+
### Patch Changes
33+
34+
- Updated dependencies [[`ced8912`](https://github.com/clerk/javascript/commit/ced8912e8c9fb7eb7846de6ca9a872e794d9e15d)]:
35+
- @clerk/backend@1.33.0
36+
337
## 2.7.5
438

539
### Patch Changes

packages/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/astro",
3-
"version": "2.7.5",
3+
"version": "2.8.0",
44
"description": "Clerk SDK for Astro",
55
"keywords": [
66
"auth",

packages/backend/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Change Log
22

3+
## 1.33.0
4+
5+
### Minor Changes
6+
7+
- Introduce `treatPendingAsSignedOut` option to `getAuth` ([#5842](https://github.com/clerk/javascript/pull/5842)) by [@LauraBeatris](https://github.com/LauraBeatris)
8+
9+
```ts
10+
// `pending` sessions will be treated as signed-out by default
11+
const { userId } = getAuth(req);
12+
```
13+
14+
```ts
15+
// Both `active` and `pending` sessions will be treated as authenticated when `treatPendingAsSignedOut` is false
16+
const { userId } = getAuth(req, { treatPendingAsSignedOut: false });
17+
```
18+
319
## 1.32.3
420

521
### Patch Changes

0 commit comments

Comments
 (0)