@logto/next 3.2.5 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/src/index.d.ts +1 -0
  2. package/package.json +10 -14
@@ -5,6 +5,7 @@ import { type GetServerSidePropsResult, type GetServerSidePropsContext, type Nex
5
5
  import { type NextApiRequestCookies } from 'next/dist/server/api-utils/index.js';
6
6
  import LogtoNextBaseClient from './client.js';
7
7
  import type { LogtoNextConfig } from './types.js';
8
+ export type { LogtoNextConfig } from './types.js';
8
9
  export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, ReservedResource, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@logto/node';
9
10
  export type { AccessTokenClaims, IdTokenClaims, LogtoContext, InteractionMode, LogtoErrorCode, } from '@logto/node';
10
11
  export default class LogtoClient extends LogtoNextBaseClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/next",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "type": "module",
5
5
  "main": "./lib/src/index.cjs",
6
6
  "module": "./lib/src/index.js",
@@ -46,26 +46,22 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@edge-runtime/cookies": "^4.0.0",
49
- "@logto/node": "^2.4.7"
49
+ "@logto/node": "^2.5.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@silverhand/eslint-config": "^5.0.0",
53
- "@silverhand/ts-config": "^5.0.0",
54
- "@silverhand/ts-config-react": "^5.0.0",
55
- "@swc/core": "^1.3.50",
56
- "@swc/jest": "^0.2.24",
57
- "@types/jest": "^29.5.0",
52
+ "@silverhand/eslint-config": "^6.0.1",
53
+ "@silverhand/ts-config": "^6.0.0",
54
+ "@silverhand/ts-config-react": "^6.0.0",
55
+ "@vitest/coverage-v8": "^1.4.0",
58
56
  "eslint": "^8.57.0",
59
- "jest": "^29.5.0",
60
- "jest-location-mock": "^2.0.0",
61
- "jest-matcher-specific-error": "^1.0.0",
62
57
  "lint-staged": "^15.0.0",
63
58
  "next": "^14.0.0",
64
59
  "next-test-api-route-handler": "^4.0.0",
65
60
  "prettier": "^3.0.0",
66
61
  "react": "^18.2.0",
67
62
  "react-dom": "^18.2.0",
68
- "typescript": "^5.3.3"
63
+ "typescript": "^5.3.3",
64
+ "vitest": "^1.4.0"
69
65
  },
70
66
  "peerDependencies": {
71
67
  "next": ">=12"
@@ -83,7 +79,7 @@
83
79
  "check": "tsc --noEmit",
84
80
  "build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c",
85
81
  "lint": "eslint --ext .ts src",
86
- "test": "jest",
87
- "test:coverage": "node test.cjs && jest --silent --coverage"
82
+ "test": "vitest",
83
+ "test:coverage": "node test.cjs && vitest --silent --coverage"
88
84
  }
89
85
  }