Skip to content

Commit 3f253aa

Browse files
authored
fix!: set minimum Node suppor to v20.17 (#780)
1 parent 1409b58 commit 3f253aa

File tree

8 files changed

+112
-114
lines changed

8 files changed

+112
-114
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ version: 2
77
updates:
88
- package-ecosystem: "npm" # See documentation for possible values
99
directory: "/" # Location of package manifests
10+
# https://github.com/dependabot/dependabot-core/issues/5226
11+
versioning-strategy: "increase"
1012
schedule:
11-
interval: "daily"
13+
interval: "weekly"
1214
labels:
1315
- dependencies
16+
ignore:
17+
- dependency-name: "@types/node"
18+
versions: ">=21.0.0"
19+
groups:
20+
development:
21+
dependency-type: "development"
1422
commit-message:
1523
prefix: fix
1624
prefix-development: chore
17-
include: scope
25+
include: scope

.github/workflows/node.js.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Node.js CI
5-
62
on:
73
push:
8-
branches: [ main, next, 1.x ]
4+
branches:
5+
- main
96
pull_request:
10-
branches: [ main, next, 1.x ]
11-
7+
branches:
8+
- main
129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
16-
1712
strategy:
1813
matrix:
19-
node-version: [18.x, 20.x, 22.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
14+
node-version:
15+
- 20.x
16+
- 22.x
17+
- 24.x
2218
steps:
23-
- uses: actions/checkout@v4
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v4
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
- run: npm ci
30-
- run: npm test
31-
- run: npm run build --if-present
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm ci
25+
- run: npm run ci

.github/workflows/release-please.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,19 @@ on:
22
push:
33
branches:
44
- main
5+
workflow_dispatch:
6+
inputs: {}
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
512
name: release-please
13+
614
jobs:
7-
release-please:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: googleapis/release-please-action@v4
11-
with:
12-
token: ${{ secrets.GH_PUSH_TOKEN }}
13-
release-type: node
14-
- uses: actions/checkout@v4
15-
if: ${{ steps.release.outputs.release_created }}
16-
- uses: actions/setup-node@v4
17-
with:
18-
node-version-file: '.nvmrc'
19-
cache: 'npm'
20-
registry-url: 'https://registry.npmjs.org'
21-
if: ${{ steps.release.outputs.release_created }}
22-
- run: npm ci
23-
if: ${{ steps.release.outputs.release_created }}
24-
- run: npm publish
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
27-
if: ${{ steps.release.outputs.release_created }}
15+
release-please:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: googleapis/release-please-action@v4
19+
with:
20+
release-type: node

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
20.17

lib/validator/policy-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Ajv, ValidateFunction } from "ajv";
22
import jsonLogic from "json-logic-js";
3-
import * as defaultSchema from "../../schemas/policy-2023-02.schema.json";
3+
import * as defaultSchema from "../../schemas/policy-2023-02.schema.json" with { type: "json" };
44
import { JsonLogicParser, JsonSchema, PolicyDocument } from "../types.js";
55
import { arrayify } from "../utils/arr.js";
66
import {

package-lock.json

Lines changed: 63 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)