From 6d150ba7a4474d36d627db01289d0ad86d272342 Mon Sep 17 00:00:00 2001 From: Steven Borrelli Date: Thu, 19 Nov 2026 12:43:05 +0000 Subject: [PATCH] Prepare the v0.9.0 release Bump the version to 0.9.0, which the publish job checks against the requested release version. Declare Node 22 as the minimum. kubernetes-models, a runtime dependency, already requires it, but the README said 18 and package.json said nothing, so npm gave no warning on older versions. Stop publishing the Vitest config. tsconfig.json excluded vitest.config.ts at the root, but the file lives in src/, so it was compiled into dist/ and shipped in the package. Update fast-uri to 3.1.9 in the lockfile to clear its advisories. It reaches us through kubernetes-models' ajv; consumers resolve their own copy, so this only affects this repository's installs. Remove the root Dockerfile. It ran dist/main.js, which this SDK does not have, so the image could never start, and nothing builds it. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Steven Borrelli --- Dockerfile | 13 ------------- README.md | 2 +- package-lock.json | 13 ++++++++----- package.json | 5 ++++- tsconfig.json | 2 +- 5 files changed, 14 insertions(+), 21 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 2bfd54d..0000000 --- a/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node:26 AS build-env -COPY . /function -WORKDIR /function - -RUN npm ci --no-fund -RUN npm run build - -FROM gcr.io/distroless/nodejs26-debian13 AS image -COPY --from=build-env /function /function -EXPOSE 9443 -USER nonroot:nonroot -WORKDIR /function -CMD ["dist/main.js"] diff --git a/README.md b/README.md index 968c3db..32cba9a 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ See [USAGE.md](USAGE.md) for complete examples and API documentation. ### Prerequisites -- Node.js 18+ +- Node.js 22+ - npm or yarn - Docker (for building container images) - protoc (Protocol Buffer compiler) - `brew install protobuf` diff --git a/package-lock.json b/package-lock.json index ad22062..6d7d980 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@crossplane-org/function-sdk-typescript", - "version": "0.8.0", + "version": "0.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@crossplane-org/function-sdk-typescript", - "version": "0.8.0", + "version": "0.9.0", "license": "Apache-2.0", "dependencies": { "@bufbuild/protobuf": "^2.15.0", @@ -27,6 +27,9 @@ "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-eslint": "^8.60.0", "vitest": "^5.0.0" + }, + "engines": { + "node": ">=22" } }, "node_modules/@babel/helper-string-parser": { @@ -2432,9 +2435,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz", - "integrity": "sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", "funding": [ { "type": "github", diff --git a/package.json b/package.json index 4dac171..5e73fef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@crossplane-org/function-sdk-typescript", - "version": "0.8.0", + "version": "0.9.0", "description": "A Crossplane Function SDK for Typescript", "keywords": [ "crossplane", @@ -65,5 +65,8 @@ "allowScripts": { "protobufjs@7.6.5": true, "fsevents@2.3.3": true + }, + "engines": { + "node": ">=22" } } diff --git a/tsconfig.json b/tsconfig.json index 0c741e0..c0b9518 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "node_modules", "src/proto/**", "**/*.test.ts", - "vitest.config.ts" + "src/vitest.config.ts" ], "compilerOptions": { // File Layout