diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b86995bd..99063a4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,13 +5,13 @@ on: pull_request: branches: [main] env: - DEFAULT_NODE_VERSION: "18" + DEFAULT_NODE_VERSION: "23" jobs: setup: runs-on: ubuntu-latest strategy: matrix: - node-version: ["14", "18"] + node-version: ["18", "20", "22", "23"] steps: - name: Check out repository uses: actions/checkout@v4 diff --git a/README.md b/README.md index c4f645e4..353dfed5 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ Keycloak is an Open Source Identity and Access Management solution for modern Ap This repository contains the source code for the Keycloak Node.js adapter. This module makes it simple to implement a Node.js Connect-friendly application that uses Keycloak for its authentication and authorization needs. +## Supported Node.js versions + +The Keycloak Node.js adapter strives to be compatible with the versions that are [actively supported](https://github.com/nodejs/release#release-schedule) by the Node.js project. Support for versions of Node.js that are [considered end-of-life](https://github.com/nodejs/release?tab=readme-ov-file#end-of-life-releases) can be dropped in future releases, and will not be considered a breaking change that requires a major version bump. + ## Help and Documentation * [Documentation](https://www.keycloak.org/documentation.html) diff --git a/package-lock.json b/package-lock.json index a0f93bb1..c630458f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "tar-fs": "^2.1.1" }, "engines": { - "node": ">=14" + "node": "^18 || ^20 || ^22 || >=23" }, "optionalDependencies": { "chromedriver": "latest" diff --git a/package.json b/package.json index f921b8be..77b52f4b 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ ] }, "engines": { - "node": ">=14" + "node": "^18 || ^20 || ^22 || >=23" }, "repository": { "type": "git",