Skip to content

Commit

Permalink
feat: upgrade project dependencies, nodejs version and fastify
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Min fastify is version set to 5
  • Loading branch information
sargisshahinyan committed Dec 11, 2024
1 parent 80846c0 commit 5254911
Show file tree
Hide file tree
Showing 13 changed files with 7,642 additions and 17,297 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- run: npm ci
- run: npm run lint
- run: npm run test
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- run: npm ci
- run: npm run lint
- run: npm run test
Expand All @@ -23,10 +23,10 @@ jobs:
runs-on: ubuntu-latest
name: "Create a new release & update changelog using semantic-release"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- run: npm ci
- run: npm run build
- name: semantic-release
Expand All @@ -44,12 +44,12 @@ jobs:
runs-on: ubuntu-latest
name: "Releases package to Github Packages registry"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
registry-url: https://npm.pkg.github.com/
scope: "@blastorg"
- run: npm ci
Expand All @@ -65,12 +65,12 @@ jobs:
runs-on: ubuntu-latest
name: "Releases package to NPM registry"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-tags: true
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
registry-url: https://registry.npmjs.org/
scope: "@blastorg"
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Package containing AWS DynamoDB caching plugin, which you can use to use DynamoD

## Requirements

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

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

Expand Down
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { includeIgnoreFile } from "@eslint/compat";
import path from "node:path";
import { fileURLToPath } from "node:url";
import config from "@blastorg/eslint-config-blast/ts-config.mjs";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const gitignorePath = path.resolve(__dirname, ".gitignore");

export default [
...config,
// Ignore files and folders from gitignore
includeIgnoreFile(gitignorePath),
{
ignores: ["eslint.config.mjs", "jest.config.js"],
},
];
Loading

0 comments on commit 5254911

Please sign in to comment.