You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 785b4c9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ npm test
26
26
-`resolve.numbers` / `resolve.ref` - asset numbers and OID tokens to assets, in one request
27
27
-`assets.sendGuarded` - a batch as a compare-and-set on each asset's ChangeDate; changed assets come back `skipped`
28
28
-`batch.run` / `batch.reversible` - preview, snapshot, (confirm,) send guarded, and a receipt with a reverse batch. `confirm` sees the touched assets' names; aliased updates/executes are sent as written with `guard: false`; a failure after the send throws `BatchRecordError` carrying the receipt
29
+
-`TypeCache` - one instance's loaded type definitions, shared by many clients (`new AgilityApiClient(config, { types })`): a server that builds a client per user fetches each type once
29
30
-`createFetchTransport` - configurable HTTP transport: `credentials` for same-origin cookie auth, `onUnauthorized` to re-authenticate on a 401 (resends idempotent requests once), and a per-request `signal`; `client.withSignal(signal)` ties a whole client to one
30
31
-`ApiError` - typed API error; `CommandFailureError` - an api/asset batch in which commands failed (`failures` by index, plus the `response`)
for consumers in CI) vs. npmjs public. Rooms and slack both build in GitHub
349
-
Actions under `digital-ai`, so cross-org package read access matters.
377
+
-~~Publish target~~ — decided 2026-11-07: public npmjs, as
378
+
`@versionone/sdk` (the `@versionone` org already publishes there), starting
379
+
at `1.0.0-alpha.0` on the `alpha` dist-tag so `latest` is never a
380
+
prerelease. Not `v1sdk` 3.x: the 2.x package (`v1sdk`, last published
381
+
2022) stays as it is, because a new major of the same name would imply a
382
+
compatibility this SDK does not aim for. Publishing needs an `@versionone`
383
+
org owner to set up a token or trusted publisher.
384
+
- Dependency audit before the first publish — done 2026-11-07: no runtime
385
+
dependencies, and the built bundle imports nothing. `npm audit` found 13
386
+
issues, all in dev tooling (vitest/vite, tinypool, tsup/esbuild,
387
+
rimraf/glob); fixed by in-range updates plus vitest 3 → 5 and tsup 8 → 9.
388
+
`npm audit` is clean; unit and integration tiers pass on the new tools.
350
389
-~~Live instance for the integration tier from a cloud session~~ — done
351
390
2026-11-04: `V1_URL`/`V1_ACCESS_TOKEN` point at the API-testing instance
352
391
`https://www14.v1host.com/v1sdktesting`; `npm run test:integration` is
@@ -359,11 +398,16 @@ ESM" here means finishing the edges:
359
398
-[x] A3 loc2 (`loc2.localize`, `client.localize`; GET, POST past 2000 encoded chars, culture via Accept-Language)
360
399
-[x] A4 slack-shaped reads — `queryV1` wire module, `client.queryV1.query`/`queries` (read-only, idempotent, same row translation as api/asset)
361
400
-[x] A5 services port from gh-v1 — `resolve` (`client.resolve.numbers`/`.ref`), `guard` (`client.assets.sendGuarded`), `batch` (`client.batch.run`/`.reversible`)
362
-
-[ ] A6 CI + prerelease publish — CI (`.github/workflows/ci.yml`: verify on Node 20/22/24, `npm pack` artifact) and git-SHA installs (`prepare`) done; publish waits on the registry decision
-[ ] A6 CI + prerelease publish — CI (`.github/workflows/ci.yml`: verify on Node 20/22/24, `npm pack` artifact), git-SHA installs (`prepare`) and the dependency audit done; publish `@versionone/sdk@1.0.0-alpha.0` to npmjs with `--tag alpha` next (needs an org owner's token or trusted publisher)
0 commit comments