From 5238ed706bd7f1c7d92549ddc07eb74d734c0151 Mon Sep 17 00:00:00 2001 From: nightmoose Date: Thu, 26 Nov 2026 11:51:28 -0500 Subject: [PATCH] chore(sdk-ts): bump to 0.4.2 (aligns with DataContractGate 0.4.2) --- sdks/typescript/CHANGELOG.md | 5 ++--- sdks/typescript/package-lock.json | 4 ++-- sdks/typescript/package.json | 2 +- sdks/typescript/src/client.ts | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/sdks/typescript/CHANGELOG.md b/sdks/typescript/CHANGELOG.md index 5abaed2e..b7889a3a 100644 --- a/sdks/typescript/CHANGELOG.md +++ b/sdks/typescript/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to `@nightmoose/contractgate-sdk`. -## Unreleased +## 0.4.2 — 2026-11-26 - `Contract.fromYaml` accepts ODCS v3.x documents (no `ontology`): fields are read from `schema[0].properties[]` (`logicalType`, or `physicalType` when it @@ -12,8 +12,7 @@ All notable changes to `@nightmoose/contractgate-sdk`. - `ontology` is optional in native contracts. - ODCS `date` and `timestamp` read as strings, and `unique` / quality rules are not checked locally (this SDK has no date type or quality rules). -- Needs a version bump (0.4.2, to line up with DataContractGate 0.4.2) before - the next npm publish. +- Version aligned with DataContractGate 0.4.2. ## 0.4.1 — 2026-10-28 diff --git a/sdks/typescript/package-lock.json b/sdks/typescript/package-lock.json index 05d97de7..e6c79b54 100644 --- a/sdks/typescript/package-lock.json +++ b/sdks/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nightmoose/contractgate-sdk", - "version": "0.4.1", + "version": "0.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nightmoose/contractgate-sdk", - "version": "0.4.1", + "version": "0.4.2", "license": "MIT", "dependencies": { "js-yaml": "^4.1.0" diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 1c8b2920..a30c2301 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@nightmoose/contractgate-sdk", - "version": "0.4.1", + "version": "0.4.2", "description": "Official TypeScript SDK for DataContractGate — HTTP client + local validator", "license": "MIT", "type": "module", diff --git a/sdks/typescript/src/client.ts b/sdks/typescript/src/client.ts index 31a9ea1a..59fd8ff0 100644 --- a/sdks/typescript/src/client.ts +++ b/sdks/typescript/src/client.ts @@ -20,7 +20,7 @@ import type { } from './types.js'; const DEFAULT_TIMEOUT_MS = 30_000; -const SDK_VERSION = '0.4.1'; +const SDK_VERSION = '0.4.2'; const USER_AGENT = `contractgate-typescript/${SDK_VERSION}`; // ---------------------------------------------------------------------------