@typed-sql/core 2.0.0-rc.0 → 2.0.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @typed-sql/core
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 29afc3d: Add conservative semantic primary/replica routing over application-owned databases, scoped
|
|
8
|
+
read-after-write pinning, explicit role requirements, stable unsafe-route errors, dialect runtime
|
|
9
|
+
semantic resolvers, and bounded abortable transaction retry policies with native PostgreSQL and
|
|
10
|
+
MySQL error classifiers. Parse and classify dialect locking reads so uncertain or affine work
|
|
11
|
+
always fails closed to primary.
|
|
12
|
+
- 3f063f6: Add deterministic, secret-free query manifests with bounded structural variants, inferred result
|
|
13
|
+
and parameter descriptions, semantic evidence, runtime-correlatable fingerprints, unresolved
|
|
14
|
+
entries, compatible parsing, canonical serialization, incremental per-file reuse, tsconfig project
|
|
15
|
+
discovery, and a dedicated CLI command.
|
|
16
|
+
- 6a7ae58: Add opt-in live query verification through grammar-owned PostgreSQL PREPARE and MySQL
|
|
17
|
+
COM_STMT_PREPARE adapters, bounded neutral comparison, deterministic secret-free proof artifacts,
|
|
18
|
+
offline cache validation, explicit unsupported classifications, CLI workflows, real database E2E,
|
|
19
|
+
and performance budgets.
|
|
20
|
+
- b06fd0a: Add grammar-neutral optional adapter capability discovery, typed PostgreSQL COPY import and export
|
|
21
|
+
through application-owned `pg-copy-streams`, and typed MySQL LOAD DATA import through mysql2's
|
|
22
|
+
application-owned infile stream. Bulk transfers preserve ordinary `INSERT` parameter evidence,
|
|
23
|
+
enforce structural row stability, apply bounded backpressure, support cancellation and progress,
|
|
24
|
+
and integrate with transaction ownership and conservative connection cleanup.
|
|
25
|
+
- 3050209: Add the dialect contract v4 semantic query evidence foundation. PostgreSQL and MySQL now report operation, dependencies, cardinality, volatility, locking, connection affinity, and required capabilities; compiler results add deterministic query and structural-variant fingerprints and conservatively merged source-mapped semantics. Schema snapshots can record function volatility, and the AST package exposes a neutral statement walker for grammar implementations.
|
|
26
|
+
- 1b054b6: Add an adapter-neutral, redacted database observation lifecycle for queries, cardinality contracts,
|
|
27
|
+
batches, PostgreSQL pipelines, streams, cancellation, and nested transactions. Runtime fingerprints
|
|
28
|
+
correlate with compiler structural variants while SQL, parameter values, connection configuration,
|
|
29
|
+
and driver causes remain excluded by default. Publish the optional OpenTelemetry bridge with current
|
|
30
|
+
database semantic conventions and explicit high-cardinality or exception-capture opt-ins.
|
|
31
|
+
- b4f1b6e: Add deterministic migration compatibility analysis across before/after schema snapshots and query
|
|
32
|
+
manifests. Reports classify both rolling-deployment directions, retain exact source and dependency
|
|
33
|
+
evidence, fail closed for unknown semantics, redact defaults and paths, and support configurable CI
|
|
34
|
+
severity through `typed-sql compat`.
|
|
35
|
+
- 87189c3: Add grammar-neutral `all`, `one`, and `maybeOne` execution with exact row types, stable cardinality
|
|
36
|
+
and cancellation errors, explicit adapter capabilities, AbortSignal support, and absolute deadlines.
|
|
37
|
+
The pg and mysql2 adapters conservatively discard interrupted connections, including transaction
|
|
38
|
+
leases, while the existing uncontrolled `execute` path remains unchanged.
|
|
39
|
+
- e654fae: Add opt-in Standard Schema V1 result validation with compile-time output compatibility, immutable
|
|
40
|
+
query attachment, sync and async validators, redacted fingerprinted errors, and consistent decoded-row
|
|
41
|
+
handling across buffered cardinality methods, batches, PostgreSQL pipelines, streams, and transactions.
|
|
42
|
+
- b2ec119: Add opt-in, grammar-neutral query-plan governance with PostgreSQL and MySQL structured EXPLAIN
|
|
43
|
+
adapters, transient application-owned samples, redacted fingerprint-keyed artifacts, absolute and
|
|
44
|
+
comparable regression budgets, explicit uncertainty, CLI capture and review, documentation, and
|
|
45
|
+
performance coverage.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 7ea5d2f: Match the Standard Schema V1 optional-property contract under `exactOptionalPropertyTypes` so
|
|
50
|
+
unwrapped Zod, Valibot, and other conforming validators are accepted directly.
|
|
51
|
+
|
|
52
|
+
## 2.0.0-rc.1
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- Publish the coherent 2.0.0-rc.1 release-candidate train.
|
|
57
|
+
|
|
3
58
|
## 2.0.0-rc.0
|
|
4
59
|
|
|
5
60
|
### Major Changes
|
|
@@ -8,7 +8,7 @@ export declare namespace StandardTypedV1 {
|
|
|
8
8
|
interface Props<Input = unknown, Output = Input> {
|
|
9
9
|
readonly version: 1;
|
|
10
10
|
readonly vendor: string;
|
|
11
|
-
readonly types?: Types<Input, Output
|
|
11
|
+
readonly types?: Types<Input, Output> | undefined;
|
|
12
12
|
}
|
|
13
13
|
interface Types<Input = unknown, Output = Input> {
|
|
14
14
|
readonly input: Input;
|
|
@@ -38,7 +38,7 @@ export declare namespace StandardSchemaV1 {
|
|
|
38
38
|
}
|
|
39
39
|
interface Issue {
|
|
40
40
|
readonly message: string;
|
|
41
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment
|
|
41
|
+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
42
42
|
}
|
|
43
43
|
interface PathSegment {
|
|
44
44
|
readonly key: PropertyKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-validation.d.ts","sourceRoot":"","sources":["../../../../src/result-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,4FAA4F;AAC5F,MAAM,WAAW,eAAe,CAAC,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,KAAK;IAC9D,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC5D;AAED,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