Skip to content

Commit 38a46e1

Browse files
chore(deps): downgrade node engine, keep node v22 for development and update docs (#59)
* chore(deps): upgrade other dependencies, add new file .nvmrc with minimum development Node version, downgrade Node engine needed (only upgrading openid-client we will need to require >=20 due to fetch API) * chore: update GitHub Actions to run on the node version defined at .nvmrc * docs: fix typo README.md Co-authored-by: Demetrius Feijóo <[email protected]> --------- Co-authored-by: Demetrius Feijóo <[email protected]>
1 parent c92527e commit 38a46e1

File tree

6 files changed

+203
-134
lines changed

6 files changed

+203
-134
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: corepack enable
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22
18+
node-version-file: '.nvmrc'
1919
cache: 'pnpm'
2020
- run: pnpm install
2121
- name: Lint

.github/workflows/npm-publish-library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- run: corepack enable
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 22
17+
node-version-file: '.nvmrc'
1818
cache: 'pnpm'
1919
registry-url: 'https://registry.npmjs.org'
2020
- name: Install

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.14.0

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,17 @@ The parameter `AuthHandlerParams['cookieName']` has been renamed to `AuthHandler
4545

4646
See our starters:
4747

48-
- [Next.js](https://github.com/storyblok/custom-app-examples/tree/main/app-nextjs-starter)
48+
- [Next.js](https://github.com/storyblok/space-tool-plugins/tree/main/space-plugins/nextjs-starter)
4949

50-
### Install the app
50+
### Install the library
5151

52-
Install with npm:
52+
Install with:
5353

5454
```shell
55+
# npm
5556
npm install @storyblok/app-extension-auth
56-
```
57-
58-
or with Yarn:
5957

60-
```shell
58+
#yarn
6159
yarn add @storyblok/app-extension-auth
6260
```
6361

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@storyblok/app-extension-auth",
33
"description": "A typed JavaScript library for handling authentication with Storyblok apps.",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"license": "MIT",
66
"repository": {
77
"type": "git",
@@ -23,17 +23,17 @@
2323
"test": "jest"
2424
},
2525
"engines": {
26-
"node": ">=22"
26+
"node": ">=14.21.3"
2727
},
28-
"packageManager": "pnpm@9.1.1",
28+
"packageManager": "pnpm@10.8.0",
2929
"dependencies": {
3030
"@storyblok/region-helper": "1.1.0",
3131
"jsonwebtoken": "^9.0.0",
3232
"openid-client": "^5.7.1"
3333
},
3434
"devDependencies": {
3535
"@eslint/eslintrc": "^3.3.1",
36-
"@eslint/js": "^9.23.0",
36+
"@eslint/js": "^9.24.0",
3737
"@jest-mock/express": "^3.0.0",
3838
"@rollup/plugin-commonjs": "28.0.3",
3939
"@rollup/plugin-json": "6.1.0",
@@ -43,7 +43,7 @@
4343
"@types/jsonwebtoken": "^9.0.9",
4444
"@types/node": "22.14.0",
4545
"dotenv": "^16.4.7",
46-
"eslint": "9.23.0",
46+
"eslint": "9.24.0",
4747
"eslint-config-prettier": "^10.1.1",
4848
"eslint-plugin-functional": "^9.0.1",
4949
"eslint-plugin-prefer-arrow": "^1.2.3",
@@ -61,7 +61,7 @@
6161
"rollup-plugin-visualizer": "^5.14.0",
6262
"ts-jest": "^29.3.1",
6363
"tsutils": "^3.21.0",
64-
"typescript": "^5.8.2",
65-
"typescript-eslint": "^8.29.0"
64+
"typescript": "^5.8.3",
65+
"typescript-eslint": "^8.29.1"
6666
}
6767
}

0 commit comments

Comments
 (0)