@web-ts-toolkit/access-router-client 0.42.2 → 0.44.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.
package/llms.txt CHANGED
@@ -73,6 +73,8 @@ const grouped = await adapter.group(
73
73
  - `countAdvanced(filter, axiosRequestConfig?)` no longer accepts an `access` argument the server rejects
74
74
  - `SubDocumentListResponse<S>` carries `count` (the server's field), not `totalCount`; `ListModelResponse<T>` still carries `totalCount`
75
75
  - subdocument `create(data | data[], ...)` accepts a single object or an array; the response is always the post-create subdocument array
76
+ - `distinct(field, ...)` / `distinctAdvanced(field, filter, ...)` return `Response<unknown[]>` with no server-value stringification; narrow elements (e.g. `typeof v === 'string'`) before calling string methods
77
+ - service defaults accept null, string, boolean, finite numbers, valid `Date` values (detached per request), plain objects, and arrays; anything else throws `UnsupportedServiceDefaultValueError`. `sq` in adapter/service defaults applies to `list`, `listAdvanced`, `read`, `readAdvanced`, and `readAdvancedFilter` with per-call, service, then adapter precedence
76
78
  - `Response<TRaw, TData = TRaw, TError = unknown>` is a discriminated union (`SuccessResult<TRaw, TData> | FailureResult<TError>`); branch on `result.success` to narrow `raw`/`data`. On `success: false`, `data` is always `null` and `raw` is the unknown (or opt-in typed) server error payload. Only model/data list responses carry `totalCount`; subdocument list-like responses carry `count`; scalar and single responses carry neither
77
79
  - this package targets `@web-ts-toolkit/access-router` servers; plain Axios is simpler for non-access-router APIs
78
80
  - imports are named-only (`import { createAdapter }`); there is no default export
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@web-ts-toolkit/access-router-client",
3
3
  "description": "Typed client utilities for @web-ts-toolkit/access-router APIs",
4
4
  "homepage": "https://web-ts-toolkit.pages.dev/docs/packages/access-router-client",
5
- "version": "0.42.2",
5
+ "version": "0.44.0",
6
6
  "sideEffects": false,
7
7
  "keywords": [
8
8
  "axios",
@@ -36,7 +36,7 @@
36
36
  "safari >= 16"
37
37
  ],
38
38
  "dependencies": {
39
- "@web-ts-toolkit/utils": "0.42.2",
39
+ "@web-ts-toolkit/utils": "0.44.0",
40
40
  "axios": "^1.18.1"
41
41
  },
42
42
  "files": [