From f217d9244cb271c8e39fba50410738ff623757d2 Mon Sep 17 00:00:00 2001 From: tomaThomas Date: Sat, 12 Oct 2024 13:12:11 +0200 Subject: [PATCH] feat: Add support for keycloak-js@26 Signed-off-by: tomaThomas --- README.md | 2 +- package-lock.json | 28 ++++----------------- package.json | 2 +- projects/example/docker-compose.yml | 3 +-- projects/keycloak-angular/package.json | 4 +-- projects/keycloak-angular/tsconfig.lib.json | 2 +- tsconfig.json | 2 +- 7 files changed, 12 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 4044e08f..a98acb27 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Note that `keycloak-js` is a peer dependency of Keycloak Angular. This change al | Angular | keycloak-js | keycloak-angular | Support | | :-----: |:-----------:| :--------------: | :-----------------: | -| 18.x | 18 - 25 | 16.x.x | New Features / Bugs | +| 18.x | 18 - 26 | 16.x.x | New Features / Bugs | | 17.x | 18 - 25 | 15.x.x | Bugs | | 16.x | 18 - 25 | 14.x.x | - | | 15.x | 18 - 21 | 13.x.x | - | diff --git a/package-lock.json b/package-lock.json index d2d81d5b..a452336f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "karma-coverage-istanbul-reporter": "~3.0.3", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "^2.1.0", - "keycloak-js": "^25.0.0", + "keycloak-js": "^26.0.0", "ng-packagr": "^18.0.0", "prettier": "^3.3.2", "rxjs": "^7.8.1", @@ -9841,12 +9841,6 @@ "jiti": "bin/jiti.js" } }, - "node_modules/js-sha256": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.11.0.tgz", - "integrity": "sha512-6xNlKayMZvds9h1Y1VWc0fQHQ82BxTXizWPEtEeGvmOUYpBRy4gbWroHLpzowe6xiQhHpelCQiE7HEdznyBL9Q==", - "dev": true - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -9950,15 +9944,6 @@ "node >= 0.2.0" ] }, - "node_modules/jwt-decode": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-4.0.0.tgz", - "integrity": "sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==", - "dev": true, - "engines": { - "node": ">=18" - } - }, "node_modules/karma": { "version": "6.4.3", "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.3.tgz", @@ -10217,14 +10202,11 @@ } }, "node_modules/keycloak-js": { - "version": "25.0.0", - "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-25.0.0.tgz", - "integrity": "sha512-7vNDYWbi9H2LqeNvkpADL/Y/25KgG+3Byc5epd1eNAXM32FNi1DRMsbdiIHpzrTZhYlxZRWeDGhbLYIwmoMonw==", + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-26.0.0.tgz", + "integrity": "sha512-uUvoc6luDuAOQ74i4/wKm1tGduYcJ/2jSh29Krekkt+ytn1mLL+mHug27FfpwgxcTb6yx+uL0OcehXwl3WIRMQ==", "dev": true, - "dependencies": { - "js-sha256": "^0.11.0", - "jwt-decode": "^4.0.0" - } + "license": "Apache-2.0" }, "node_modules/keyv": { "version": "4.5.4", diff --git a/package.json b/package.json index a1c97504..623e2f8d 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "karma-coverage-istanbul-reporter": "~3.0.3", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "^2.1.0", - "keycloak-js": "^25.0.0", + "keycloak-js": "^26.0.0", "ng-packagr": "^18.0.0", "prettier": "^3.3.2", "rxjs": "^7.8.1", diff --git a/projects/example/docker-compose.yml b/projects/example/docker-compose.yml index 6d3d462f..c96b0845 100644 --- a/projects/example/docker-compose.yml +++ b/projects/example/docker-compose.yml @@ -1,7 +1,6 @@ -version: '3' services: keycloak: - image: quay.io/keycloak/keycloak:25.0.0 + image: quay.io/keycloak/keycloak:26.0.0 environment: KEYCLOAK_ADMIN: admin KEYCLOAK_ADMIN_PASSWORD: admin diff --git a/projects/keycloak-angular/package.json b/projects/keycloak-angular/package.json index 0bd2e987..1fd98cd8 100644 --- a/projects/keycloak-angular/package.json +++ b/projects/keycloak-angular/package.json @@ -1,6 +1,6 @@ { "name": "keycloak-angular", - "version": "16.0.1", + "version": "16.0.2", "description": "Easy Keycloak setup for Angular applications", "repository": { "type": "git", @@ -29,7 +29,7 @@ "@angular/common": "^18", "@angular/core": "^18", "@angular/router": "^18", - "keycloak-js": "^18 || ^19 || ^20 || ^21 || ^22 || ^23 || ^24 || ^25" + "keycloak-js": "^18 || ^19 || ^20 || ^21 || ^22 || ^23 || ^24 || ^25 || ^26" }, "dependencies": { "tslib": "^2.3.1" diff --git a/projects/keycloak-angular/tsconfig.lib.json b/projects/keycloak-angular/tsconfig.lib.json index 1c5cbb88..11eaa706 100644 --- a/projects/keycloak-angular/tsconfig.lib.json +++ b/projects/keycloak-angular/tsconfig.lib.json @@ -3,7 +3,7 @@ "compilerOptions": { "module": "es2015", "declarationMap": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "declaration": true, "sourceMap": true, "inlineSources": true, diff --git a/tsconfig.json b/tsconfig.json index 7881dc7d..2f39758d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "esModuleInterop": true, "sourceMap": true, "declaration": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "experimentalDecorators": true, "target": "ES2022", "typeRoots": ["node_modules/@types"],