forked from teamplanes/graphql-rate-limit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from koshea/feature/node20plus
Update packages and github actions to run on node 20+
- Loading branch information
Showing
14 changed files
with
5,322 additions
and
3,499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,34 +11,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
node-version: [20.x, 22.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- name: Install node v${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Restore pnpm's global store | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/runner/.pnpm-store/v3 | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.0.2 | ||
run_install: | | ||
- args: [--frozen-lockfile, --reporter=silent] | ||
cache: "pnpm" | ||
- name: Install | ||
run: pnpm install --frozen-lockfile --reporter=silent | ||
- name: Lint | ||
run: pnpm run lint | ||
|
||
run: pnpm lint | ||
- name: Build dist | ||
run: pnpm run build | ||
|
||
run: pnpm build | ||
- name: Run tests | ||
run: pnpm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
"license": "MIT", | ||
"keywords": [], | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"prepare": "pnpm run build", | ||
"build": "tsup ./src/index.ts --format esm,cjs --legacy-output --dts", | ||
"example": "concurrently \"npm run build -w\" \"cd example && npm run dev\"", | ||
"example": "concurrently \"pnpm run build -w\" \"cd example && pnpm run dev\"", | ||
"fix": "eslint ./src/**/*.ts --fix", | ||
"test": "tsup ./src/index.ts && nyc --silent ava", | ||
"lint": "eslint ./src/**/*.ts" | ||
|
@@ -20,42 +20,43 @@ | |
"dist" | ||
], | ||
"engines": { | ||
"node": ">=12.0", | ||
"pnpm": ">=6" | ||
"node": ">=20.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@graphql-tools/utils": "^7.6.0", | ||
"graphql-shield": "^7.5.0", | ||
"@graphql-tools/utils": "^7.10.0", | ||
"graphql-shield": "^7.6.5", | ||
"lodash.get": "^4.4.2", | ||
"ms": "^2.1.3" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "*" | ||
}, | ||
"devDependencies": { | ||
"@graphql-tools/schema": "^7.1.3", | ||
"@types/lodash.get": "^4.4.6", | ||
"@types/ms": "^0.7.31", | ||
"@types/redis-mock": "^0.17.0", | ||
"@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"@graphql-tools/schema": "^7.1.5", | ||
"@types/lodash.get": "^4.4.9", | ||
"@types/ms": "^0.7.34", | ||
"@types/node": "^22.10.1", | ||
"@types/redis-mock": "^0.17.3", | ||
"@typescript-eslint/eslint-plugin": "^8.17.0", | ||
"@typescript-eslint/parser": "^8.17.0", | ||
"ava": "3.15.0", | ||
"concurrently": "^6.0.0", | ||
"eslint": "7.22.0", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-ava": "^11.0.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"graphql": "^15.5.0", | ||
"graphql-middleware": "^6.0.4", | ||
"concurrently": "^6.5.1", | ||
"eslint": "^8.57.1", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-ava": "^14.0.0", | ||
"eslint-plugin-import": "^2.31.0", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"graphql": "^15.9.0", | ||
"graphql-middleware": "^6.1.35", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.2.1", | ||
"prettier": "^3.4.2", | ||
"redis-mock": "^0.56.3", | ||
"standard-version": "^9.1.1", | ||
"ts-node": "^9.1.1", | ||
"tsup": "^4.8.19", | ||
"typescript": "^4.2.3" | ||
"standard-version": "^9.5.0", | ||
"ts-node": "^10.9.2", | ||
"tsup": "^8.3.5", | ||
"typescript": "^5.7.2" | ||
}, | ||
"ava": { | ||
"failFast": true, | ||
|
Oops, something went wrong.