From 8a0d92d3d03cd91d5db0540a68217a17f0888869 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Wed, 5 Aug 2026 14:28:14 +0200 Subject: [PATCH] fix: install nRF Cloud libraries from NPM instead of JSR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These libraries are published to NPM now, so consume them as ordinary registry dependencies instead of through JSR's NPM compatibility layer (`npm:@jsr/nrfcloud__…`). The versions are pinned explicitly, without a caret. This also removes `@jsr:registry` and `allow-remote` from `.npmrc`. Nothing is installed from JSR anymore, and `allow-remote` only existed to permit JSR's remote tarball URLs, which NPM v12 blocks by default. Keeping it would leave remote tarball fetches enabled for every dependency in the tree for no reason. --- .npmrc | 2 -- package-lock.json | 34 ++++++++++++++++++---------------- package.json | 4 ++-- 3 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index b5a9f79..0000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -@jsr:registry=https://npm.jsr.io -allow-remote=root diff --git a/package-lock.json b/package-lock.json index b2ec119..ec563fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,12 +12,12 @@ "@aws-lambda-powertools/metrics": "2.34.0", "@middy/core": "7.7.2", "@middy/input-output-logger": "7.7.2", - "@nrfcloud/problem-detail": "npm:@jsr/nrfcloud__problem-detail@1.4.2", + "@nrfcloud/problem-detail": "1.4.3", "@sinclair/typebox": "0.34.52" }, "devDependencies": { "@bifravst/prettier-config": "1.1.17", - "@nrfcloud/validate-with-typebox": "npm:@jsr/nrfcloud__validate-with-typebox@^1.0.5", + "@nrfcloud/validate-with-typebox": "1.0.6", "@swc/core": "1.15.47", "@types/aws-lambda": "8.10.162", "@types/node": "25.9.5", @@ -151,28 +151,30 @@ } }, "node_modules/@nrfcloud/problem-detail": { - "name": "@jsr/nrfcloud__problem-detail", - "version": "1.4.2", - "resolved": "https://npm.jsr.io/~/11/@jsr/nrfcloud__problem-detail/1.4.2.tgz", - "integrity": "sha512-6oytyAdCQ2sMPCSiU9A02UAXt0rL+KBzGbpJCUu3qRAITeUAUCUnA7tIr5v1j/75b69Un23Vl3nOFNolkZKsIA==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/@nrfcloud/problem-detail/-/problem-detail-1.4.3.tgz", + "integrity": "sha512-AMnz0MdlXSMfbYQr4M9U7pdhHSJVxEYnhCGC5yhflQdobjUAhRgb1ngbIi0krzZgks0QwSjcxiR2RAPIOwaywA==", + "license": "BSD-3-Clause", "dependencies": { "@sinclair/typebox": "0.34.52" + }, + "engines": { + "node": ">=24.18.1 <25", + "npm": ">=12.0.2 <13" } }, - "node_modules/@nrfcloud/problem-detail/node_modules/@sinclair/typebox": { - "version": "0.34.52", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.52.tgz", - "integrity": "sha512-XiMQh7qqVlxZzcVD+kkGMNGMzcTrDMLWI7S4x7z1MkCkbDPrekpZXEUK0eZqZFMuHQg2a2DZOcDIh9o5v3Gonw==", - "license": "MIT" - }, "node_modules/@nrfcloud/validate-with-typebox": { - "name": "@jsr/nrfcloud__validate-with-typebox", - "version": "1.0.5", - "resolved": "https://npm.jsr.io/~/11/@jsr/nrfcloud__validate-with-typebox/1.0.5.tgz", - "integrity": "sha512-94PY6MVmXqhe1nmCGWvWqSLS91E8H9yuOW9lYHxubH3sGewnsnVaO9CR5gTpXh5GEIbjg9YYPKxJEtkN9bR47A==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@nrfcloud/validate-with-typebox/-/validate-with-typebox-1.0.6.tgz", + "integrity": "sha512-+2gVaYWiDH3qDj0pgJaCvGuptn98K0X8mlDrmPyMBiQ8BP4lZj1J3na8EX719quahdLfuEMYPC4Sw2Jj46tY3Q==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinclair/typebox": "0.34.52" + }, + "engines": { + "node": ">=24.18.1 <25", + "npm": ">=12.0.2 <13" } }, "node_modules/@sinclair/typebox": { diff --git a/package.json b/package.json index 435e41a..7400884 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "devDependencies": { "@bifravst/prettier-config": "1.1.17", - "@nrfcloud/validate-with-typebox": "npm:@jsr/nrfcloud__validate-with-typebox@^1.0.5", + "@nrfcloud/validate-with-typebox": "1.0.6", "@swc/core": "1.15.47", "@types/aws-lambda": "8.10.162", "@types/node": "25.9.5", @@ -69,7 +69,7 @@ "@aws-lambda-powertools/metrics": "2.34.0", "@middy/core": "7.7.2", "@middy/input-output-logger": "7.7.2", - "@nrfcloud/problem-detail": "npm:@jsr/nrfcloud__problem-detail@1.4.2", + "@nrfcloud/problem-detail": "1.4.3", "@sinclair/typebox": "0.34.52" } }