Skip to content

Commit 2717b12

Browse files
feat: upgrade project dependencies, nodejs version and fastify
BREAKING CHANGE: Min fastify is version set to 5
1 parent 80846c0 commit 2717b12

File tree

14 files changed

+6780
-17933
lines changed

14 files changed

+6780
-17933
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/pull-request.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
test-and-build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 18
15+
node-version: "22"
1616
- run: npm ci
1717
- run: npm run lint
1818
- run: npm run test

.github/workflows/release.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
install-and-test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 18
15+
node-version: 22
1616
- run: npm ci
1717
- run: npm run lint
1818
- run: npm run test
@@ -23,11 +23,11 @@ jobs:
2323
runs-on: ubuntu-latest
2424
name: "Create a new release & update changelog using semantic-release"
2525
steps:
26-
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 18
30-
- run: npm ci
29+
node-version: "22"
30+
- run: npm ci --ignore-scripts
3131
- run: npm run build
3232
- name: semantic-release
3333
run: npx semantic-release
@@ -44,17 +44,17 @@ jobs:
4444
runs-on: ubuntu-latest
4545
name: "Releases package to Github Packages registry"
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
with:
4949
fetch-tags: true
50-
- uses: actions/setup-node@v3
50+
- uses: actions/setup-node@v4
5151
with:
52-
node-version: 18
52+
node-version: 22
5353
registry-url: https://npm.pkg.github.com/
5454
scope: "@blastorg"
5555
- run: npm ci
5656
- run: npm run build
57-
- run: npm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks
57+
- run: npm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks --allow-same-version
5858
- run: npm publish
5959
env:
6060
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -65,17 +65,17 @@ jobs:
6565
runs-on: ubuntu-latest
6666
name: "Releases package to NPM registry"
6767
steps:
68-
- uses: actions/checkout@v3
68+
- uses: actions/checkout@v4
6969
with:
7070
fetch-tags: true
71-
- uses: actions/setup-node@v3
71+
- uses: actions/setup-node@v4
7272
with:
73-
node-version: 18
73+
node-version: 22
7474
registry-url: https://registry.npmjs.org/
7575
scope: "@blastorg"
7676
- run: npm ci
7777
- run: npm run build
78-
- run: npm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks
78+
- run: npm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version --no-commit-hooks --allow-same-version
7979
- run: npm publish
8080
env:
8181
NODE_AUTH_TOKEN: ${{secrets.NPMJS_READWRITE_TOKEN}}

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm exec commitlint --edit --extends @commitlint/config-conventional
1+
npx commitlint --edit --extends @commitlint/config-conventional

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v22

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Package containing AWS DynamoDB caching plugin, which you can use to use DynamoD
77

88
## Requirements
99

10-
In order to install this package you need at lease Node version 18 installed on your operating system of choice.
10+
In order to install this package you need at lease Node version 22 installed on your operating system of choice.
1111

1212
Then you need a DynamoDB table set up in your region of choice with the structure matching:
1313

eslint.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import tseslint from "typescript-eslint";
2+
3+
export default tseslint.config(
4+
tseslint.configs.eslintRecommended,
5+
tseslint.configs.recommendedTypeChecked,
6+
{
7+
languageOptions: {
8+
parserOptions: {
9+
projectService: true,
10+
tsconfigRootDir: import.meta.dirname,
11+
},
12+
},
13+
},
14+
{
15+
rules: {
16+
"@typescript-eslint/restrict-template-expressions": [
17+
"error",
18+
{
19+
allowNullish: true,
20+
allowBoolean: true,
21+
allowNumber: true,
22+
},
23+
],
24+
},
25+
},
26+
);

0 commit comments

Comments
 (0)