Skip to content

Commit

Permalink
release: version packages (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverhand-bot authored Jul 24, 2024
1 parent ff8bcbb commit 7c65c7b
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 29 deletions.
5 changes: 0 additions & 5 deletions .changeset/chilly-spiders-deliver.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/nine-actors-leave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shy-files-remain.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/next-app-dir-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @logto/next-app-dir-sample

## 2.1.17

### Patch Changes

- Updated dependencies [a40b28f]
- Updated dependencies [ff8bcbb]
- @logto/next@3.4.0

## 2.1.16

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

## 2.1.17

### Patch Changes

- Updated dependencies [a40b28f]
- Updated dependencies [ff8bcbb]
- @logto/next@3.4.0

## 2.1.16

### 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.1.16",
"version": "2.1.17",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
20 changes: 20 additions & 0 deletions packages/next-server-actions-sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# next-server-actions-sample

## 2.2.0

### Minor Changes

- a40b28f: add getAccessToken to the server actions package

Previously, in order to get access tokens (and organization tokens) in App Router, you'll use `getLogtoContext` with config `{ getAccessToken: true }`, this won't cache the token and will make a network request every time you call it. That is because Next.js does not allow to write cookies in the server side: HTTP does not allow setting cookies after streaming starts, so you must use .set() in a Server Action or Route Handler.

This change adds a new function `getAccessToken` for you to get the access token in a server action or a route handler. It will cache the token and only make a network request when the token is expired.

And also, this change adds a new function `getOrganizationToken` for you to get the organization token.

The original method is deprecated and will be removed in the future.

### Patch Changes

- Updated dependencies [a40b28f]
- Updated dependencies [ff8bcbb]
- @logto/next@3.4.0

## 2.1.21

### 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.1.21",
"version": "2.2.0",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
16 changes: 16 additions & 0 deletions packages/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change Log

## 3.4.0

### Minor Changes

- a40b28f: add getAccessToken to the server actions package

Previously, in order to get access tokens (and organization tokens) in App Router, you'll use `getLogtoContext` with config `{ getAccessToken: true }`, this won't cache the token and will make a network request every time you call it. That is because Next.js does not allow to write cookies in the server side: HTTP does not allow setting cookies after streaming starts, so you must use .set() in a Server Action or Route Handler.

This change adds a new function `getAccessToken` for you to get the access token in a server action or a route handler. It will cache the token and only make a network request when the token is expired.

And also, this change adds a new function `getOrganizationToken` for you to get the organization token.

The original method is deprecated and will be removed in the future.

- ff8bcbb: support custom error handler for all methods in pages router

## 3.3.4

### Patch 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": "3.3.4",
"version": "3.4.0",
"type": "module",
"main": "./lib/src/index.cjs",
"module": "./lib/src/index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/nuxt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @logto/nuxt

## 0.3.3

### Patch Changes

- ea4555f: use warning to replace the error of empty configuration

## 0.3.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/nuxt",
"version": "0.3.2",
"version": "0.3.3",
"type": "module",
"exports": {
".": {
Expand Down

0 comments on commit 7c65c7b

Please sign in to comment.