axiam-sdk 1.0.0-alpha41 → 1.0.0-alpha44
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.
- package/README.md +34 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ Official TypeScript/JavaScript client SDK for [AXIAM](https://github.com/ilpanic
|
|
|
16
16
|
- **Registry:** [npmjs.com/package/axiam-sdk](https://www.npmjs.com/package/axiam-sdk) _(reserved, not yet published)_
|
|
17
17
|
- **Source:** [github.com/ilpanich/axiam-typescript-sdk](https://github.com/ilpanich/axiam-typescript-sdk)
|
|
18
18
|
- **License:** Apache-2.0
|
|
19
|
+
- **Node:** `>=22` — see [Supported Node versions](#supported-node-versions)
|
|
19
20
|
|
|
20
21
|
## Contract conformance
|
|
21
22
|
|
|
@@ -64,6 +65,39 @@ See [`CONTRACT.md`](./CONTRACT.md) for the full cross-language behavioral contra
|
|
|
64
65
|
npm install axiam-sdk
|
|
65
66
|
```
|
|
66
67
|
|
|
68
|
+
## Supported Node versions
|
|
69
|
+
|
|
70
|
+
| | Version | Why this one |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| **Floor** | 22 | The oldest release line still receiving security fixes. Node 18 went EOL 2025-04-30 and Node 20 on 2026-04-30. `engines.node` is `>=22`. |
|
|
73
|
+
| **Newest** | 26 | The current release line (out 2026-05, promoted to LTS 2026-10), and the line `@types/node` is pinned to. |
|
|
74
|
+
|
|
75
|
+
Node 24 (Active LTS) sits between the two and is supported.
|
|
76
|
+
|
|
77
|
+
**The SDK is built against the floor, and runs on everything up to the newest.**
|
|
78
|
+
Those are two different claims, and CI proves each separately: the gating
|
|
79
|
+
matrix in `sdk-ci-typescript.yml` runs `build`, `typecheck`, the full test
|
|
80
|
+
suite and the CommonJS-require smoke tests on **22 and on 26**. The floor leg
|
|
81
|
+
is what stops a Node 24-only built-in from slipping in; the newest leg is what
|
|
82
|
+
catches a removal, and is the runtime `tsc` is typechecking against. A line
|
|
83
|
+
between two green legs is interpolation, which is why the matrix is two legs
|
|
84
|
+
rather than four — the runtime-independent gates (bundle-grep, the token-leak
|
|
85
|
+
and TLS-lint greps, `npm audit`, the docs gate and the publish dry-run) run
|
|
86
|
+
once, on the floor.
|
|
87
|
+
|
|
88
|
+
If you are on a newer runtime than the floor you need do nothing: the
|
|
89
|
+
published bundle targets ES2022 and is forward-compatible, and the newest leg
|
|
90
|
+
is the evidence.
|
|
91
|
+
|
|
92
|
+
The browser persona (`axiam-sdk/browser`) has no Node floor at all — it needs
|
|
93
|
+
a runtime with `fetch`, `crypto.subtle` and `TextEncoder`, which every
|
|
94
|
+
currently supported browser has.
|
|
95
|
+
|
|
96
|
+
`test/core/versionPolicy.test.ts` fails the build if `engines.node`, the
|
|
97
|
+
`@types/node` pin and the CI matrix ever stop agreeing. They are three
|
|
98
|
+
independent declarations of the same fact and nothing else compares them —
|
|
99
|
+
before that test existed, all three disagreed at once.
|
|
100
|
+
|
|
67
101
|
## Two personas, tree-shaken subpath entries
|
|
68
102
|
|
|
69
103
|
`axiam-sdk` ships as **one package with two personas**, each reachable through its own
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiam-sdk",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-alpha44",
|
|
4
4
|
"description": "Official TypeScript/JavaScript client SDK for AXIAM IAM",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"types": "./dist/nestjs/index.d.ts",
|
|
89
89
|
"default": "./dist/nestjs/index.js"
|
|
90
90
|
}
|
|
91
|
-
}
|
|
91
|
+
},
|
|
92
|
+
"./package.json": "./package.json"
|
|
92
93
|
},
|
|
93
94
|
"files": [
|
|
94
95
|
"dist",
|
|
@@ -111,7 +112,7 @@
|
|
|
111
112
|
"authorization"
|
|
112
113
|
],
|
|
113
114
|
"engines": {
|
|
114
|
-
"node": ">=
|
|
115
|
+
"node": ">=22"
|
|
115
116
|
},
|
|
116
117
|
"scripts": {
|
|
117
118
|
"generate": "buf generate --template buf.gen.yaml",
|