This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@logto/js@4.0.0
Major Changes
c491de1: remove verifyIdToken() util function, now it's in @logto/client
This change removes the dependency of jose which keeps the package clean.
Minor Changes
c491de1: update prompt usage to allow multiple values
Logto config supports both Prompt and Prompt[] types now.
Added Prompt.None enum value.
2febe71: add buildAngularAuthConfig() to build angular-auth-oidc-client config in a Logto way
Also add a new type LogtoAngularConfig.
Patch Changes
c491de1: use .toString() for URLSearchParams passing to requester
Some fetch implementation doesn't support URLSearchParams directly, so we need to convert it to string before passing it to the requester.
26619ed: use TypeScript 5.3.3
@logto/next@3.0.0
Major Changes
26619ed: remove explicit crypto module imports since Node now has global WebCrypto variable by default
Marking this as a major change since it may break current code if you are using Node 18. It should be fine if you are using Node LTS. See https://nodejs.org/api/globals.html#crypto_1 for more information.
Patch Changes
b71e7c7: The page router SDK will now update cookie when access token changed
26619ed: use TypeScript 5.3.3
Updated dependencies [88495b2]
Updated dependencies [864caab]
Updated dependencies [864caab]
Updated dependencies [26619ed]
@logto/node@2.4.0
@logto/react@3.0.0
Major Changes
204cdcd: refactor LogtoContextProps and LogtoContext
This version marks as major because it changes the exported LogtoContextProps type. In most cases, this should not affect you.
Removed loadingCount and setLoadingCount from LogtoContextProps.
Added isLoading and setIsLoading to LogtoContextProps.
Export LogtoContext.
Patch Changes
26619ed: use TypeScript 5.3.3
Updated dependencies [26619ed]
@logto/browser@2.2.3
@logto/client@2.4.0
Minor Changes
c491de1: support custom jwt verifier
Now it's possible to pass a JwtVerifier instance to the Logto client adapter to verify the JWT token. The client also has a built-in verifier that keeps the same behavior as before.
c491de1: provide a shim version without importing jose (@logto/client/shim)
It can avoid the use of jose package which is useful for certain environments that don't support native modules like crypto. (e.g. React Native)
To use the shim client:
import { StandardLogtoClient } from "@logto/client/shim";
The StandardLogtoClient class is identical to the original LogtoClient class, except it doesn't have the default JWT verifier implemented.
c491de1: update prompt usage to allow multiple values
Logto config supports both Prompt and Prompt[] types now.
Added Prompt.None enum value.
Patch Changes
88495b2: export JwtVerifier type
c491de1: refactor adapter types
generateState(), generateCodeVerifier(), generateCodeChallenge() now accept both Promise and non-Promise return types.
the navigate function now calls with a second parameter which has the state information. ({ redirectUri?: string; for: 'sign-in' | 'sign-out' })
26619ed: use TypeScript 5.3.3
Updated dependencies [c491de1]
Updated dependencies [c491de1]
Updated dependencies [26619ed]
Updated dependencies [c491de1]
Updated dependencies [2febe71]
@logto/js@4.0.0
@logto/node@2.4.0
Minor Changes
88495b2: add session utils and types
Extracted from @logto/next, these utilities are useful for any Node.js application that needs to manage Logto sessions with encryption.
864caab: implement reusable CookieStorage for Node environment
It can be used to store and retrieve encrypted cookies in Node.js environment for Logto.
Patch Changes
864caab: remove node-fetch from dependencies (native fetch is available from Node.js v17.5.0, we are targeting v20+)
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@logto/js@4.0.0
Major Changes
c491de1: remove
verifyIdToken()
util function, now it's in@logto/client
This change removes the dependency of
jose
which keeps the package clean.Minor Changes
c491de1: update prompt usage to allow multiple values
Prompt
andPrompt[]
types now.Prompt.None
enum value.2febe71: add
buildAngularAuthConfig()
to buildangular-auth-oidc-client
config in a Logto wayAlso add a new type
LogtoAngularConfig
.Patch Changes
c491de1: use
.toString()
forURLSearchParams
passing to requesterSome
fetch
implementation doesn't supportURLSearchParams
directly, so we need to convert it to string before passing it to the requester.26619ed: use TypeScript 5.3.3
@logto/next@3.0.0
Major Changes
26619ed: remove explicit crypto module imports since Node now has global WebCrypto variable by default
Marking this as a major change since it may break current code if you are using Node 18. It should be fine if you are using Node LTS. See https://nodejs.org/api/globals.html#crypto_1 for more information.
Patch Changes
@logto/react@3.0.0
Major Changes
204cdcd: refactor LogtoContextProps and LogtoContext
This version marks as major because it changes the exported
LogtoContextProps
type. In most cases, this should not affect you.loadingCount
andsetLoadingCount
fromLogtoContextProps
.isLoading
andsetIsLoading
toLogtoContextProps
.LogtoContext
.Patch Changes
@logto/client@2.4.0
Minor Changes
c491de1: support custom jwt verifier
Now it's possible to pass a
JwtVerifier
instance to the Logto client adapter to verify the JWT token. The client also has a built-in verifier that keeps the same behavior as before.c491de1: provide a shim version without importing
jose
(@logto/client/shim
)It can avoid the use of
jose
package which is useful for certain environments that don't support native modules likecrypto
. (e.g. React Native)To use the shim client:
The
StandardLogtoClient
class is identical to the originalLogtoClient
class, except it doesn't have the default JWT verifier implemented.c491de1: update prompt usage to allow multiple values
Prompt
andPrompt[]
types now.Prompt.None
enum value.Patch Changes
88495b2: export
JwtVerifier
typec491de1: refactor adapter types
generateState()
,generateCodeVerifier()
,generateCodeChallenge()
now accept both Promise and non-Promise return types.{ redirectUri?: string; for: 'sign-in' | 'sign-out' }
)26619ed: use TypeScript 5.3.3
Updated dependencies [c491de1]
Updated dependencies [c491de1]
Updated dependencies [26619ed]
Updated dependencies [c491de1]
Updated dependencies [2febe71]
@logto/node@2.4.0
Minor Changes
88495b2: add session utils and types
Extracted from
@logto/next
, these utilities are useful for any Node.js application that needs to manage Logto sessions with encryption.864caab: implement reusable
CookieStorage
for Node environmentIt can be used to store and retrieve encrypted cookies in Node.js environment for Logto.
Patch Changes
node-fetch
from dependencies (native fetch is available from Node.js v17.5.0, we are targeting v20+)@logto/sveltekit@0.1.0
Minor Changes
Patch Changes
@logto/browser@2.2.3
Patch Changes
@logto/capacitor@1.1.2
Patch Changes
@logto/express@2.3.1
Patch Changes
@logto/remix@2.1.1
Patch Changes
@logto/vue@2.2.2
Patch Changes
@logto/sveltekit-sample@0.1.0
Minor Changes
@logto/browser-sample@2.0.3
Patch Changes
@logto/express-sample@2.0.1
Patch Changes
@logto/next-app-dir-sample@2.1.2
Patch Changes
@logto/next-sample@2.1.2
Patch Changes
@logto/next-server-actions-sample@2.1.5
Patch Changes
@logto/passportjs-sample@1.0.1
Patch Changes
@logto/react-sample@2.1.1
Patch Changes
@logto/vue-sample@2.1.1
Patch Changes