openid-client 5.3.2 → 5.3.3

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.
package/README.md CHANGED
@@ -93,6 +93,11 @@ Node.js LTS releases Codename Erbium and newer LTS releases are supported.
93
93
  npm install openid-client
94
94
  ```
95
95
 
96
+ Note: Other javascript runtimes are not supported.
97
+ I recommend [panva/oauth4webapi][oauth4webapi], or a derivate thereof, if you're
98
+ looking for a similarly compliant and certified client software that's not dependent
99
+ on the Node.js runtime builtins.
100
+
96
101
  ## Quick start
97
102
 
98
103
  Discover an Issuer configuration using its published .well-known endpoints
@@ -252,8 +257,10 @@ private API and is subject to change between any versions.
252
257
 
253
258
  #### How do I use it outside of Node.js
254
259
 
255
- It is **only built for Node.js** environments - including openid-client in
256
- browser-environment targeted projects is not supported.
260
+ It is **only built for Node.js**. Other javascript runtimes are not supported.
261
+ I recommend [panva/oauth4webapi][oauth4webapi], or a derivate thereof, if you're
262
+ looking for a similarly compliant and certified client software that's not dependent
263
+ on the Node.js runtime builtins.
257
264
 
258
265
  #### How to make the client send client_id and client_secret in the body?
259
266
 
@@ -295,3 +302,4 @@ See [Customizing (docs)][documentation-customizing].
295
302
  [documentation-methods]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#client-authentication-methods
296
303
  [documentation-webfinger]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#issuerwebfingerinput
297
304
  [express-openid-connect]: https://www.npmjs.com/package/express-openid-connect
305
+ [oauth4webapi]: https://github.com/panva/oauth4webapi#readme
@@ -1,3 +1 @@
1
- const { serialize, deserialize } = require('v8');
2
-
3
- module.exports = globalThis.structuredClone || ((obj) => deserialize(serialize(obj)));
1
+ module.exports = globalThis.structuredClone || JSON.parse(JSON.stringify(obj));
@@ -1,9 +1,6 @@
1
- const v8 = require('v8');
2
-
3
1
  const jose = require('jose');
4
2
 
5
- const clone = globalThis.structuredClone || ((value) => v8.deserialize(v8.serialize(value)));
6
-
3
+ const clone = require('./deep_clone');
7
4
  const isPlainObject = require('./is_plain_object');
8
5
  const isKeyObject = require('./is_key_object');
9
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openid-client",
3
- "version": "5.3.2",
3
+ "version": "5.3.3",
4
4
  "description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",
5
5
  "keywords": [
6
6
  "auth",