Skip to content

Commit

Permalink
release: version packages
Browse files Browse the repository at this point in the history
  • Loading branch information
silverhand-bot committed Jan 22, 2025
1 parent 96357de commit fa90640
Show file tree
Hide file tree
Showing 24 changed files with 128 additions and 65 deletions.
9 changes: 0 additions & 9 deletions .changeset/neat-glasses-think.md

This file was deleted.

45 changes: 0 additions & 45 deletions .changeset/wise-colts-guess.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/browser-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.0.24

### Patch Changes

- Updated dependencies [733e978]
- @logto/browser@3.0.4

## 2.0.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/browser-sample",
"version": "2.0.23",
"version": "2.0.24",
"license": "MIT",
"private": true,
"source": "public/index.html",
Expand Down
10 changes: 10 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## 3.0.4

### Patch Changes

- 733e978: support ssr for browser-based SDKs

Check if the `window` is defined, if not, ignore the storage operations, avoid breaking the server side rendering.

For this kind of SDKs, it doesn't make sense to be used in server side, because the auth state is usually stored in the client side which is not available in server side. So we can safely ignore the storage operations in server side.

## 3.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/browser",
"version": "3.0.3",
"version": "3.0.4",
"type": "module",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/capacitor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @logto/capacitor

## 3.0.4

### Patch Changes

- Updated dependencies [733e978]
- @logto/browser@3.0.4

## 3.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/capacitor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/capacitor",
"version": "3.0.3",
"version": "3.0.4",
"type": "module",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @logto/chrome-extension

## 0.1.18

### Patch Changes

- Updated dependencies [733e978]
- @logto/browser@3.0.4

## 0.1.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/chrome-extension",
"version": "0.1.17",
"version": "0.1.18",
"description": "Logto Chrome extension SDK",
"type": "module",
"files": [
Expand Down
7 changes: 7 additions & 0 deletions packages/next-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.2.8

### Patch Changes

- Updated dependencies [a0f91a3]
- @logto/next@4.2.0

## 2.2.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/next-sample",
"version": "2.2.7",
"version": "2.2.8",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/next-server-actions-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# next-server-actions-sample

## 2.3.11

### Patch Changes

- Updated dependencies [a0f91a3]
- @logto/next@4.2.0

## 2.3.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next-server-actions-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/next-server-actions-sample",
"version": "2.3.10",
"version": "2.3.11",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
46 changes: 46 additions & 0 deletions packages/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Change Log

## 4.2.0

### Minor Changes

- a0f91a3: support custom external session storage

Add `sessionWrapper` to the config, you can implement your own session wrapper to support custom external session storage.

Take a look at the example below:

```ts
import { MemorySessionWrapper } from './storage';

export const config = {
// ...
sessionWrapper: new MemorySessionWrapper(),
};
```

```ts
import { randomUUID } from 'node:crypto';

import { type SessionWrapper, type SessionData } from '@logto/next';

export class MemorySessionWrapper implements SessionWrapper {
private readonly storage = new Map<string, unknown>();

async wrap(data: unknown, _key: string): Promise<string> {
const sessionId = randomUUID();
this.storage.set(sessionId, data);
return sessionId;
}

async unwrap(value: string, _key: string): Promise<SessionData> {
if (!value) {
return {};
}

const data = this.storage.get(value);
return data ?? {};
}
}
```

You can implement your own session wrapper to support custom external session storage like Redis, Memcached, etc.

## 4.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/next",
"version": "4.1.0",
"version": "4.2.0",
"type": "module",
"module": "./lib/src/index.js",
"types": "./lib/src/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 2.1.23

### Patch Changes

- @logto/react@4.0.4

## 2.1.22

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/react-sample",
"version": "2.1.22",
"version": "2.1.23",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 4.0.4

### Patch Changes

- Updated dependencies [733e978]
- @logto/browser@3.0.4

## 4.0.3

### Patch Changes
Expand Down
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": "@logto/react",
"version": "4.0.3",
"version": "4.0.4",
"type": "module",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/vue-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 2.1.22

### Patch Changes

- @logto/vue@3.0.4

## 2.1.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/vue-sample",
"version": "2.1.21",
"version": "2.1.22",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 3.0.4

### Patch Changes

- Updated dependencies [733e978]
- @logto/browser@3.0.4

## 3.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/vue",
"version": "3.0.3",
"version": "3.0.4",
"type": "module",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit fa90640

Please sign in to comment.