Skip to content

Commit eee7260

Browse files
authored
Merge pull request #192 from axa-group/ntk/node14
Version 5.0.0
2 parents c14ea59 + b555488 commit eee7260

5 files changed

Lines changed: 44 additions & 46 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
node-version: [^12.20, ^14.15, ^16]
13+
node-version: [^14.15, ^16.13, ^18]
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

7+
## [5.0.0](https://github.com/axa-group/oauth2-mock-server/compare/v4.3.2...v5.0.0) — 2022-06-27
8+
9+
### Changed
10+
11+
- **Breaking:** No longer support Node.js 12
12+
- Add support for Node.js 18
13+
714
## [4.3.2](https://github.com/axa-group/oauth2-mock-server/compare/v4.3.1...v4.3.2) — 2022-06-27
815

916
### Changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The purpose of this package is to provide an easily configurable OAuth 2 server,
1313
1414
## Development prerequisites
1515

16-
- [Node.js 12.0+](https://nodejs.org/)
16+
- [Node.js 14+](https://nodejs.org/)
1717
- [Yarn 1.15.2+](https://classic.yarnpkg.com/lang/en/)
1818

1919
## How to use
@@ -180,12 +180,12 @@ It also provides a convenient way, through event emitters, to programmatically c
180180
// Simulate a custom token introspection response body
181181
service.once('beforeIntrospect', (introspectResponse, req) => {
182182
introspectResponse.body = {
183-
active: true,
184-
scope: "read write email",
185-
client_id: "<client_id>",
186-
username: "dummy",
187-
exp: 1643712575
188-
};
183+
active: true,
184+
scope: 'read write email',
185+
client_id: '<client_id>',
186+
username: 'dummy',
187+
exp: 1643712575,
188+
};
189189
});
190190
```
191191

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oauth2-mock-server",
3-
"version": "4.3.2",
3+
"version": "5.0.0",
44
"description": "OAuth 2 mock server",
55
"keywords": [
66
"oauth",
@@ -19,7 +19,7 @@
1919
},
2020
"license": "MIT",
2121
"engines": {
22-
"node": "^12.20 || ^14.15 || ^16",
22+
"node": "^14.15 || ^16.13 || ^18",
2323
"yarn": "^1.15.2"
2424
},
2525
"repository": {
@@ -64,7 +64,7 @@
6464
"@types/express": "^4.17.13",
6565
"@types/jest": "^28.1.3",
6666
"@types/lodash.isplainobject": "^4.0.7",
67-
"@types/node": "^12.20.55",
67+
"@types/node": "^14.18.21",
6868
"@types/supertest": "^2.0.12",
6969
"@types/uuid": "^8.3.4",
7070
"@typescript-eslint/eslint-plugin": "^5.29.0",
@@ -73,7 +73,7 @@
7373
"eslint-config-prettier": "^8.5.0",
7474
"eslint-plugin-import": "^2.26.0",
7575
"eslint-plugin-jest": "^26.5.3",
76-
"eslint-plugin-jsdoc": "^38.1.6",
76+
"eslint-plugin-jsdoc": "^39.3.3",
7777
"eslint-plugin-prettier": "^4.0.0",
7878
"jest": "^28.1.1",
7979
"jest-junit": "^14.0.0",
@@ -85,9 +85,6 @@
8585
"typescript": "^4.7.4"
8686
},
8787
"resolutions": {
88-
"@types/node": "^12",
89-
"@types/superagent": "4.1.14",
90-
"superagent": "7.1.6",
91-
"eslint-plugin-jsdoc": "^38"
88+
"@types/node": "^14"
9289
}
9390
}

yarn.lock

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,14 @@
291291
dependencies:
292292
"@jridgewell/trace-mapping" "0.3.9"
293293

294-
"@es-joy/jsdoccomment@~0.22.1":
295-
version "0.22.2"
296-
resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.22.2.tgz#1c972f56a265ada7facbd0770a6caea6a391f5c8"
297-
integrity sha512-pM6WQKcuAtdYoqCsXSvVSu3Ij8K0HY50L8tIheOKHDl0wH1uA4zbP88etY8SIeP16NVCMCTFU+Q2DahSKheGGQ==
294+
"@es-joy/jsdoccomment@~0.31.0":
295+
version "0.31.0"
296+
resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.31.0.tgz#dbc342cc38eb6878c12727985e693eaef34302bc"
297+
integrity sha512-tc1/iuQcnaiSIUVad72PBierDFpsxdUHtEF/OrfqvM1CBAsIoMP51j52jTMb3dXriwhieTo289InzZj72jL3EQ==
298298
dependencies:
299299
comment-parser "1.3.1"
300300
esquery "^1.4.0"
301-
jsdoc-type-pratt-parser "~2.2.5"
301+
jsdoc-type-pratt-parser "~3.1.0"
302302

303303
"@eslint/eslintrc@^1.3.0":
304304
version "1.3.0"
@@ -791,10 +791,10 @@
791791
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a"
792792
integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==
793793

794-
"@types/node@*", "@types/node@^12", "@types/node@^12.20.55":
795-
version "12.20.55"
796-
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
797-
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
794+
"@types/node@*", "@types/node@^14", "@types/node@^14.18.21":
795+
version "14.18.21"
796+
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.21.tgz#0155ee46f6be28b2ff0342ca1a9b9fd4468bef41"
797+
integrity sha512-x5W9s+8P4XteaxT/jKF0PSb7XEvo5VmqEWgsMlyeY4ZlLK8I6aH6g5TPPyDlLAep+GYf4kefb7HFyc7PAO3m+Q==
798798

799799
"@types/prettier@^2.1.5":
800800
version "2.6.3"
@@ -824,10 +824,10 @@
824824
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
825825
integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==
826826

827-
"@types/superagent@*", "@types/superagent@4.1.14":
828-
version "4.1.14"
829-
resolved "https://registry.yarnpkg.com/@types/superagent/-/superagent-4.1.14.tgz#ca2eed4fad671e704d3d0f33aaf099edb4a5b857"
830-
integrity sha512-iiXaOL2wSbnSY4qg0mFPWJHL9iwyEsoNYwaHF2w58/fsVAQJlj+KUfFAFZu+nzbz+b7dUprJEAc+O9vhHHhQTA==
827+
"@types/superagent@*":
828+
version "4.1.15"
829+
resolved "https://registry.yarnpkg.com/@types/superagent/-/superagent-4.1.15.tgz#63297de457eba5e2bc502a7609426c4cceab434a"
830+
integrity sha512-mu/N4uvfDN2zVQQ5AYJI/g4qxn2bHB6521t1UuH09ShNWjebTqN0ZFuYK9uYjcgmI0dTQEs+Owi1EO6U0OkOZQ==
831831
dependencies:
832832
"@types/cookiejar" "*"
833833
"@types/node" "*"
@@ -1638,18 +1638,17 @@ eslint-plugin-jest@^26.5.3:
16381638
dependencies:
16391639
"@typescript-eslint/utils" "^5.10.0"
16401640

1641-
eslint-plugin-jsdoc@^38, eslint-plugin-jsdoc@^38.1.6:
1642-
version "38.1.6"
1643-
resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-38.1.6.tgz#7dfa2a6d38f550935c6a3668a1fc5a05b19e4069"
1644-
integrity sha512-n4s95oYlg0L43Bs8C0dkzIldxYf8pLCutC/tCbjIdF7VDiobuzPI+HZn9Q0BvgOvgPNgh5n7CSStql25HUG4Tw==
1641+
eslint-plugin-jsdoc@^39.3.3:
1642+
version "39.3.3"
1643+
resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-39.3.3.tgz#75dd67ce581e7527a69f27800138cc0f9c388236"
1644+
integrity sha512-K/DAjKRUNaUTf0KQhI9PvsF+Y3mGDx/j0pofXsJCQe/tmRsRweBIXR353c8nAro0lytZYEf7l0PluBpzKDiHxw==
16451645
dependencies:
1646-
"@es-joy/jsdoccomment" "~0.22.1"
1646+
"@es-joy/jsdoccomment" "~0.31.0"
16471647
comment-parser "1.3.1"
16481648
debug "^4.3.4"
16491649
escape-string-regexp "^4.0.0"
16501650
esquery "^1.4.0"
1651-
regextras "^0.8.0"
1652-
semver "^7.3.5"
1651+
semver "^7.3.7"
16531652
spdx-expression-parse "^3.0.1"
16541653

16551654
eslint-plugin-prettier@^4.0.0:
@@ -2796,10 +2795,10 @@ js-yaml@^4.1.0:
27962795
dependencies:
27972796
argparse "^2.0.1"
27982797

2799-
jsdoc-type-pratt-parser@~2.2.5:
2800-
version "2.2.5"
2801-
resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-2.2.5.tgz#c9f93afac7ee4b5ed4432fe3f09f7d36b05ed0ff"
2802-
integrity sha512-2a6eRxSxp1BW040hFvaJxhsCMI9lT8QB8t14t+NY5tC5rckIR0U9cr2tjOeaFirmEOy6MHvmJnY7zTBHq431Lw==
2798+
jsdoc-type-pratt-parser@~3.1.0:
2799+
version "3.1.0"
2800+
resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-3.1.0.tgz#a4a56bdc6e82e5865ffd9febc5b1a227ff28e67e"
2801+
integrity sha512-MgtD0ZiCDk9B+eI73BextfRrVQl0oyzRG8B2BjORts6jbunj4ScKPcyXGTbB6eXL4y9TzxCm6hyeLq/2ASzNdw==
28032802

28042803
jsesc@^2.5.1:
28052804
version "2.5.2"
@@ -3335,11 +3334,6 @@ regexpp@^3.2.0:
33353334
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2"
33363335
integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==
33373336

3338-
regextras@^0.8.0:
3339-
version "0.8.0"
3340-
resolved "https://registry.yarnpkg.com/regextras/-/regextras-0.8.0.tgz#ec0f99853d4912839321172f608b544814b02217"
3341-
integrity sha512-k519uI04Z3SaY0fLX843MRXnDeG2+vHOFsyhiPZvNLe7r8rD2YNRjq4BQLZZ0oAr2NrtvZlICsXysGNFPGa3CQ==
3342-
33433337
require-directory@^2.1.1:
33443338
version "2.1.1"
33453339
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
@@ -3609,7 +3603,7 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
36093603
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
36103604
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
36113605

3612-
superagent@7.1.6, superagent@^7.1.3:
3606+
superagent@^7.1.3:
36133607
version "7.1.6"
36143608
resolved "https://registry.yarnpkg.com/superagent/-/superagent-7.1.6.tgz#64f303ed4e4aba1e9da319f134107a54cacdc9c6"
36153609
integrity sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==

0 commit comments

Comments
 (0)