@typed-sql/postgres 2.0.0-rc.1 → 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @typed-sql/postgres
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
+ - 6a7ae58: Add opt-in live query verification through grammar-owned PostgreSQL PREPARE and MySQL
13
+ COM_STMT_PREPARE adapters, bounded neutral comparison, deterministic secret-free proof artifacts,
14
+ offline cache validation, explicit unsupported classifications, CLI workflows, real database E2E,
15
+ and performance budgets.
16
+ - b06fd0a: Add grammar-neutral optional adapter capability discovery, typed PostgreSQL COPY import and export
17
+ through application-owned `pg-copy-streams`, and typed MySQL LOAD DATA import through mysql2's
18
+ application-owned infile stream. Bulk transfers preserve ordinary `INSERT` parameter evidence,
19
+ enforce structural row stability, apply bounded backpressure, support cancellation and progress,
20
+ and integrate with transaction ownership and conservative connection cleanup.
21
+ - 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.
22
+ - 1b054b6: Add an adapter-neutral, redacted database observation lifecycle for queries, cardinality contracts,
23
+ batches, PostgreSQL pipelines, streams, cancellation, and nested transactions. Runtime fingerprints
24
+ correlate with compiler structural variants while SQL, parameter values, connection configuration,
25
+ and driver causes remain excluded by default. Publish the optional OpenTelemetry bridge with current
26
+ database semantic conventions and explicit high-cardinality or exception-capture opt-ins.
27
+ - 87189c3: Add grammar-neutral `all`, `one`, and `maybeOne` execution with exact row types, stable cardinality
28
+ and cancellation errors, explicit adapter capabilities, AbortSignal support, and absolute deadlines.
29
+ The pg and mysql2 adapters conservatively discard interrupted connections, including transaction
30
+ leases, while the existing uncontrolled `execute` path remains unchanged.
31
+ - e654fae: Add opt-in Standard Schema V1 result validation with compile-time output compatibility, immutable
32
+ query attachment, sync and async validators, redacted fingerprinted errors, and consistent decoded-row
33
+ handling across buffered cardinality methods, batches, PostgreSQL pipelines, streams, and transactions.
34
+ - b2ec119: Add opt-in, grammar-neutral query-plan governance with PostgreSQL and MySQL structured EXPLAIN
35
+ adapters, transient application-owned samples, redacted fingerprint-keyed artifacts, absolute and
36
+ comparable regression budgets, explicit uncertainty, CLI capture and review, documentation, and
37
+ performance coverage.
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [7ea5d2f]
42
+ - Updated dependencies [29afc3d]
43
+ - Updated dependencies [3f063f6]
44
+ - Updated dependencies [6a7ae58]
45
+ - Updated dependencies [af27a0e]
46
+ - Updated dependencies [b06fd0a]
47
+ - Updated dependencies [3050209]
48
+ - Updated dependencies [1b054b6]
49
+ - Updated dependencies [b4f1b6e]
50
+ - Updated dependencies [87189c3]
51
+ - Updated dependencies [e654fae]
52
+ - Updated dependencies [b2ec119]
53
+ - @typed-sql/core@2.0.0
54
+ - @typed-sql/ast@2.0.0
55
+ - @typed-sql/schema@2.0.0
56
+
3
57
  ## 2.0.0-rc.1
4
58
 
5
59
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed-sql/postgres",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0",
4
4
  "description": "PostgreSQL grammar, schema introspection, type resolution, and driver-neutral runtime codecs for typed-sql.",
5
5
  "license": "MIT",
6
6
  "author": "Lojhan",
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@types/pg": "8.23.1",
42
- "@typed-sql/core": "2.0.0-rc.1",
43
- "@typed-sql/schema": "2.0.0-rc.1",
44
- "@typed-sql/ast": "2.0.0-rc.1"
42
+ "@typed-sql/ast": "2.0.0",
43
+ "@typed-sql/core": "2.0.0",
44
+ "@typed-sql/schema": "2.0.0"
45
45
  },
46
46
  "scripts": {
47
47
  "test": "poku test --reporter=compact --enforce",