Skip to content

Commit 54788c2

Browse files
committed
feat: added Node.js lts/dubnium support for runtime supported features
1 parent 1f3e42b commit 54788c2

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
node-version:
28+
- 10.13.0
29+
- 10
2830
- 12.0.0
2931
- 12
3032
os:

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
openid-client is a server side [OpenID][openid-connect] Relying Party (RP, Client) implementation for
66
Node.js runtime, supports [passport][passport-url].
77

8-
**WARNING: Node.js 12 or higher is required for openid-client@3 and above.** For older Node.js
9-
versions use [openid-client@2](https://github.com/panva/openid-client/tree/v2.x).
10-
118
## Implemented specs & features
129

1310
The following client/RP features from OpenID Connect/OAuth2.0 specifications are implemented by
@@ -224,12 +221,9 @@ private API and is subject to change between any versions.
224221

225222
#### How do I use it outside of Node.js
226223

227-
It is **only built for Node.js** environment.
228-
229-
#### How do I use it older Node.js versions
230-
231-
Use [openid-client@2](https://github.com/panva/openid-client/tree/v2.x) release line, but be sure
232-
to check its documentation as there were breaking changes between versions 2 and 3.
224+
It is **only built for ^10.13.0 || >=12.0.0 Node.js** environment - including openid-client in
225+
transpiled browser-environment targeted projects is not supported and may result in unexpected
226+
results.
233227

234228
#### What's new in 3.x?
235229

@@ -239,7 +233,6 @@ to check its documentation as there were breaking changes between versions 2 and
239233
- Added support for any additional token exchange parameters to support specifications such as
240234
Resource Indicators
241235
- Typed [errors][documentation-errors]
242-
- Coming soon™ - Typescript definitions
243236

244237
#### How to make the client send client_id and client_secret in the body?
245238

codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
coverage:
22
status:
3-
project: no
4-
patch: yes
5-
changes: yes
3+
project: off
4+
patch: off
5+
changes: off
66

77
comment:
88
layout: diff

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "mocha"
3838
},
3939
"dependencies": {
40-
"@panva/jose": "^1.6.1",
40+
"@panva/jose": "^1.8.0",
4141
"base64url": "^3.0.1",
4242
"got": "^9.6.0",
4343
"lodash": "^4.17.13",
@@ -51,19 +51,19 @@
5151
"@commitlint/cli": "^8.1.0",
5252
"@commitlint/config-conventional": "^8.1.0",
5353
"chai": "^4.2.0",
54-
"eslint": "^6.1.0",
54+
"eslint": "^6.2.1",
5555
"eslint-config-airbnb-base": "^14.0.0",
5656
"eslint-plugin-import": "^2.18.2",
57-
"husky": "^2.7.0",
57+
"husky": "^3.0.4",
5858
"mocha": "^6.2.0",
59-
"nock": "^11.0.0",
59+
"nock": "^11.3.1",
6060
"nyc": "^14.1.1",
6161
"readable-mock-req": "^0.2.2",
6262
"sinon": "^7.3.2",
6363
"timekeeper": "^2.2.0"
6464
},
6565
"engines": {
66-
"node": ">=12.0.0"
66+
"node": "^10.13.0 || >=12.0.0"
6767
},
6868
"commitlint": {
6969
"extends": [

0 commit comments

Comments
 (0)