@devhelm/sdk 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ import { createRequire } from 'node:module';
2
+ // Resolve the @devhelm/sdk version from package.json once at module load.
3
+ // createRequire(import.meta.url) gives us a CommonJS-style require anchored
4
+ // at this file's URL so the relative path stays valid both in src/ (during
5
+ // vitest runs) and in dist/ (after tsc emits compiled output) — package.json
6
+ // sits one level above either location.
7
+ //
8
+ // Why not import package.json with assertions: `with { type: 'json' }` is
9
+ // only stable on Node ≥ 20.10 and downstream bundlers (esbuild, Bun)
10
+ // handle it inconsistently. createRequire is universally supported on every
11
+ // Node version this SDK targets and adds zero build-time machinery.
12
+ const require = createRequire(import.meta.url);
13
+ const pkg = require('../package.json');
14
+ export const SDK_VERSION = pkg.version ?? 'unknown';
15
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAA;AAEzC,0EAA0E;AAC1E,4EAA4E;AAC5E,2EAA2E;AAC3E,6EAA6E;AAC7E,wCAAwC;AACxC,EAAE;AACF,0EAA0E;AAC1E,qEAAqE;AACrE,4EAA4E;AAC5E,oEAAoE;AACpE,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC9C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAuB,CAAA;AAE5D,MAAM,CAAC,MAAM,WAAW,GAAW,GAAG,CAAC,OAAO,IAAI,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devhelm/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "DevHelm SDK for TypeScript and JavaScript — typed client for monitors, incidents, alerting, and more",
5
5
  "author": "DevHelm <hello@devhelm.io>",
6
6
  "license": "MIT",