@milaboratories/pl-client 3.8.0 → 3.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-client",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "description": "New TS/JS client for Platform API",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -30,9 +30,9 @@
30
30
  "undici": "~7.16.0",
31
31
  "utility-types": "^3.11.0",
32
32
  "yaml": "^2.8.0",
33
- "@milaboratories/pl-model-common": "1.42.0",
33
+ "@milaboratories/ts-helpers": "1.8.2",
34
34
  "@milaboratories/pl-http": "1.2.4",
35
- "@milaboratories/ts-helpers": "1.8.2"
35
+ "@milaboratories/pl-model-common": "1.42.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@protobuf-ts/plugin": "2.11.1",
@@ -41,9 +41,9 @@
41
41
  "openapi-typescript": "^7.10.0",
42
42
  "typescript": "~5.9.3",
43
43
  "vitest": "^4.1.3",
44
- "@milaboratories/ts-builder": "1.5.0",
45
44
  "@milaboratories/build-configs": "2.0.0",
46
- "@milaboratories/ts-configs": "1.2.3"
45
+ "@milaboratories/ts-configs": "1.2.3",
46
+ "@milaboratories/ts-builder": "1.5.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=22.19.0"
@@ -15,7 +15,7 @@
15
15
  * - `@platforma-sdk/block-tools` — copies it onto the published manifest
16
16
  * - `@milaboratories/pl-middle-layer` — checks it at install time
17
17
  */
18
- export type BackendCapability = "auth:v2" | "treeFilter:v1" | "wasm:v1";
18
+ export type BackendCapability = "auth:v2" | "treeFilter:v2" | "wasm:v1";
19
19
 
20
20
  /** True iff `capabilities` advertises the requested token. */
21
21
  export function hasCapability(
@@ -64,6 +64,6 @@ test("login falls back to getJwtToken when backend lacks auth:v2", async () => {
64
64
  test("hasCapability proxies to underlying LLPlClient", () => {
65
65
  const { client, ll } = makeStub({ hasAuthV2: true });
66
66
  expect(client.hasCapability("auth:v2")).toBe(true);
67
- expect(client.hasCapability("treeFilter:v1")).toBe(false);
67
+ expect(client.hasCapability("treeFilter:v2")).toBe(false);
68
68
  expect(ll.hasCapability).toHaveBeenCalledWith("auth:v2");
69
69
  });
@@ -1759,7 +1759,7 @@ export interface ResourceAPI_Tree_Request {
1759
1759
  /**
1760
1760
  * Optional per-(resource, field) filter. Unset / nil means
1761
1761
  * "keep all fields" (current Tree behavior). Servers advertise
1762
- * support via "treeFilter:v1" in
1762
+ * support via "treeFilter:v2" in
1763
1763
  * MaintenanceAPI.Ping.Response.capabilities; old servers ignore this
1764
1764
  * field.
1765
1765
  *
@@ -4303,13 +4303,13 @@ export interface MaintenanceAPI_Ping_Response {
4303
4303
  * per-token by the client:
4304
4304
  * - Optimization hint. Client picks between a fast path and a
4305
4305
  * fallback without probing by trial-and-error; missing tokens
4306
- * just cause the fallback to run (e.g. "treeFilter:v1").
4306
+ * just cause the fallback to run (e.g. "treeFilter:v2").
4307
4307
  * - Install-time gate. Client refuses to install a block whose
4308
4308
  * manifest declares a required capability the server doesn't
4309
4309
  * advertise; missing tokens fail closed (e.g. "wasm:v1").
4310
4310
  *
4311
4311
  * Each entry is an opaque token "<feature>:<version>" (e.g.
4312
- * "treeFilter:v1"). The field is unset on servers predating this
4312
+ * "treeFilter:v2"). The field is unset on servers predating this
4313
4313
  * mechanism, which the client treats as "no optional capabilities
4314
4314
  * advertised" — fallback for hints, fail-closed for gates.
4315
4315
  *