@functional-systems/lambdadb 0.8.1-dev.38730896042001 → 0.8.1-dev.39249041100001
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/CHANGELOG.md +8 -4
- package/README.md +38 -4
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
with backend `963d79e8866833f1deb1393ed00a9825d866c853`. Query `size`, dense
|
|
7
7
|
`knn.k`, and Bayesian `candidateSize` also support up to 1000 on that contract;
|
|
8
8
|
their server-side validation and request defaults remain unchanged.
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
- Aligned query resource documentation with backend
|
|
10
|
+
`234f6f97814bf0d60604fa45ab2907f1fce88b5a`: query results and hydrated candidate
|
|
11
|
+
bodies no longer have aggregate 64 MiB limits. Large results retain the
|
|
12
|
+
existing `docsUrl` format; shared temporary storage exhaustion returns HTTP
|
|
13
|
+
503 without partial results or rerank provider fallback. Internal transport
|
|
14
|
+
and rerank input budgets remain unchanged, as do Facet bucket, Fetch, and
|
|
15
|
+
List count limits. Source alignment does not establish deployment or package
|
|
16
|
+
publication.
|
|
13
17
|
|
|
14
18
|
## 0.8.1
|
|
15
19
|
|
package/README.md
CHANGED
|
@@ -209,8 +209,9 @@ and use a separate [pinned source contract](docs/OPENAPI_UPDATE.md#openapi-spec)
|
|
|
209
209
|
Query `size`, dense `knn.k`, Bayesian `candidateSize`, and
|
|
210
210
|
`rerank.candidateSize` support up to 1000 on the
|
|
211
211
|
[pinned backend contract](docs/OPENAPI_UPDATE.md#updating-query-limits).
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
Query results and hydrated candidate bodies no longer have an aggregate 64 MiB
|
|
213
|
+
limit. Large results use the existing `docsUrl` download format; exhaustion of
|
|
214
|
+
the server's shared temporary storage budget returns HTTP 503 without partial results.
|
|
214
215
|
See [query size and byte limits](docs/native-reranking.md#query-size-and-byte-limits).
|
|
215
216
|
Facet buckets, Fetch, and List retain their existing 100-item limits.
|
|
216
217
|
Source alignment does not establish deployment to your endpoint.
|
|
@@ -499,13 +500,46 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
499
500
|
<!-- Start Retries [retries] -->
|
|
500
501
|
## Retries
|
|
501
502
|
|
|
502
|
-
|
|
503
|
+
Retry behavior is configured by the SDK. Document write API requests use backoff
|
|
504
|
+
retries by default for HTTP `429`, all `5xx` responses (including `500`, `502`, `503`, and
|
|
505
|
+
`504`), and connection errors or transport timeouts. Per-call `retries` overrides
|
|
506
|
+
the client's `retryConfig`. The same retry settings apply to `*Safe` methods;
|
|
507
|
+
returning a Result does not disable retries.
|
|
503
508
|
|
|
504
509
|
For retryable `429` responses, the backoff implementation honors a valid
|
|
505
510
|
`Retry-After` header when present. The API does not guarantee that every `429`
|
|
506
511
|
contains this header.
|
|
507
512
|
|
|
508
|
-
|
|
513
|
+
For writes, an error does not prove that the mutation was not committed. The
|
|
514
|
+
response can be lost after a successful commit, and automatic retries can
|
|
515
|
+
reapply the write before the SDK returns an error or a successful response.
|
|
516
|
+
Retries do not provide exactly-once execution.
|
|
517
|
+
|
|
518
|
+
To inspect state before deciding whether to retry a write, disable automatic
|
|
519
|
+
retries on the initial call:
|
|
520
|
+
|
|
521
|
+
```typescript
|
|
522
|
+
import { LambdaDBClient } from "@functional-systems/lambdadb";
|
|
523
|
+
|
|
524
|
+
const client = new LambdaDBClient({
|
|
525
|
+
projectApiKey: "<YOUR_PROJECT_API_KEY>",
|
|
526
|
+
});
|
|
527
|
+
const collection = client.collection("my-collection");
|
|
528
|
+
|
|
529
|
+
await collection.docs.upsert(
|
|
530
|
+
{ docs: [{ id: "doc-1", title: "Updated title" }] },
|
|
531
|
+
{ retries: { strategy: "none" } },
|
|
532
|
+
);
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
This disables both HTTP-status and connection-error retries for that call.
|
|
536
|
+
Setting only `retryConnectionErrors: false` still allows retryable HTTP
|
|
537
|
+
responses, including `502` and `504`, to be retried. Disabling retries does not
|
|
538
|
+
cancel a server-side write or establish its outcome. After a failure, inspect
|
|
539
|
+
the target Branch state and consider the operation's semantics before issuing
|
|
540
|
+
another write. The SDK does not perform that reconciliation automatically.
|
|
541
|
+
|
|
542
|
+
To change the retry strategy for a single API call, pass `retries` in its request options:
|
|
509
543
|
```typescript
|
|
510
544
|
import { LambdaDBClient } from "@functional-systems/lambdadb";
|
|
511
545
|
|
|
@@ -37,8 +37,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
37
37
|
export declare const SDK_METADATA: {
|
|
38
38
|
readonly language: "typescript";
|
|
39
39
|
readonly openapiDocVersion: "1.1.1";
|
|
40
|
-
readonly sdkVersion: "0.8.1-dev.
|
|
40
|
+
readonly sdkVersion: "0.8.1-dev.39249041100001";
|
|
41
41
|
readonly genVersion: "2.798.0";
|
|
42
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.1-dev.
|
|
42
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.1-dev.39249041100001 2.798.0 1.1.1 @functional-systems/lambdadb";
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.1.1",
|
|
40
|
-
sdkVersion: "0.8.1-dev.
|
|
40
|
+
sdkVersion: "0.8.1-dev.39249041100001",
|
|
41
41
|
genVersion: "2.798.0",
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 0.8.1-dev.
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 0.8.1-dev.39249041100001 2.798.0 1.1.1 @functional-systems/lambdadb",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
37
37
|
export declare const SDK_METADATA: {
|
|
38
38
|
readonly language: "typescript";
|
|
39
39
|
readonly openapiDocVersion: "1.1.1";
|
|
40
|
-
readonly sdkVersion: "0.8.1-dev.
|
|
40
|
+
readonly sdkVersion: "0.8.1-dev.39249041100001";
|
|
41
41
|
readonly genVersion: "2.798.0";
|
|
42
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.1-dev.
|
|
42
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.1-dev.39249041100001 2.798.0 1.1.1 @functional-systems/lambdadb";
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -33,8 +33,8 @@ export function serverURLFromOptions(options) {
|
|
|
33
33
|
export const SDK_METADATA = {
|
|
34
34
|
language: "typescript",
|
|
35
35
|
openapiDocVersion: "1.1.1",
|
|
36
|
-
sdkVersion: "0.8.1-dev.
|
|
36
|
+
sdkVersion: "0.8.1-dev.39249041100001",
|
|
37
37
|
genVersion: "2.798.0",
|
|
38
|
-
userAgent: "speakeasy-sdk/typescript 0.8.1-dev.
|
|
38
|
+
userAgent: "speakeasy-sdk/typescript 0.8.1-dev.39249041100001 2.798.0 1.1.1 @functional-systems/lambdadb",
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=config.js.map
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functional-systems/lambdadb",
|
|
3
|
-
"version": "0.8.1-dev.
|
|
3
|
+
"version": "0.8.1-dev.39249041100001",
|
|
4
4
|
"author": "Functional Systems, Inc.",
|
|
5
5
|
"homepage": "https://github.com/lambdadb/lambdadb-typescript-client#readme",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -169,5 +169,5 @@
|
|
|
169
169
|
"main": "./dist/commonjs/index.js",
|
|
170
170
|
"types": "./dist/commonjs/index.d.ts",
|
|
171
171
|
"module": "./dist/esm/index.js",
|
|
172
|
-
"lambdadbSourceCommit": "
|
|
172
|
+
"lambdadbSourceCommit": "374ef91cf59e373a0ddb2a66bc47b8ff9ee81833"
|
|
173
173
|
}
|
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.1.1",
|
|
76
|
-
sdkVersion: "0.8.1-dev.
|
|
76
|
+
sdkVersion: "0.8.1-dev.39249041100001",
|
|
77
77
|
genVersion: "2.798.0",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 0.8.1-dev.
|
|
79
|
+
"speakeasy-sdk/typescript 0.8.1-dev.39249041100001 2.798.0 1.1.1 @functional-systems/lambdadb",
|
|
80
80
|
} as const;
|