@typesql/postgres 0.2.10 → 0.2.12

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/package.json +2 -2
  2. package/CHANGELOG.md +0 -174
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typesql/postgres",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "postgres.js adapter for TypeSQL.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@typesql/core": "0.8.0"
31
+ "@typesql/core": "0.9.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "postgres": ">=3"
package/CHANGELOG.md DELETED
@@ -1,174 +0,0 @@
1
- # @typesql/postgres
2
-
3
- ## 0.2.10
4
-
5
- ### Patch Changes
6
-
7
- - Breaking: TypeSQL is split into a dialect-neutral core and a PostgreSQL dialect. `@typesql/core` keeps what dialects share (`createSql`, queries, fragments, executors, row keys, transactions, migrations, the schema markers `Col`, `Nullable`, `Generated`, `View`, … and the type cache) and adds a dialect contract. PostgreSQL moves to `@typesql/core/postgres`: create a `sql` with `createSql<DB>(postgres, executor?)`, import `Json`, `PgCatalog`, `migrations()`, type maps and the function catalog from `@typesql/core/postgres` (which also re-exports the schema markers), and the engine types from `@typesql/core/postgres/engine` (was `@typesql/core/engine`). The Kysely, Drizzle and Prisma packages take the dialect the same way and read the schema from the client's type: `createSql(postgres, db)` (`createSql<DB>(postgres, db)` still picks a schema explicitly). `typesql introspect` and the Prisma generator import the column helpers from `@typesql/core/postgres` by default.
8
-
9
- - Updated dependencies:
10
- - @typesql/core@0.8.0
11
-
12
- ## 0.2.9
13
-
14
- ### Patch Changes
15
-
16
- - Validate packages against PostgreSQL behavior and built outputs instead of hand-written test suites.
17
-
18
- - Reorganize core internals and remove source comments and inline API documentation without changing SQL behavior.
19
-
20
- - Updated dependencies:
21
- - @typesql/core@0.7.6
22
-
23
- ## 0.2.8
24
-
25
- ### Patch Changes
26
-
27
- - Updated dependencies:
28
- - @typesql/core@0.7.5
29
-
30
- ## 0.2.7
31
-
32
- ### Patch Changes
33
-
34
- - Updated dependencies:
35
- - @typesql/core@0.7.4
36
-
37
- ## 0.2.6
38
-
39
- ### Patch Changes
40
-
41
- - Execute sql.prepare() queries with postgres.js prepared statements, including queries without parameters.
42
-
43
- - Updated dependencies:
44
- - @typesql/core@0.7.3
45
-
46
- ## 0.2.5
47
-
48
- ### Patch Changes
49
-
50
- - Updated dependencies:
51
- - @typesql/core@0.7.2
52
-
53
- ## 0.2.4
54
-
55
- ### Patch Changes
56
-
57
- - Updated dependencies:
58
- - @typesql/core@0.7.1
59
-
60
- ## 0.2.3
61
-
62
- ### Patch Changes
63
-
64
- - Updated dependencies:
65
- - @typesql/core@0.7.0
66
-
67
- ## 0.2.2
68
-
69
- ### Patch Changes
70
-
71
- - Build and type-check the package with `tsrs`.
72
-
73
- - Updated dependencies:
74
- - @typesql/core@0.6.1
75
-
76
- ## 0.2.1
77
-
78
- ### Patch Changes
79
-
80
- - The README is shorter: install, one example and links to the docs site, which now has the details it used to repeat.
81
-
82
- - Updated dependencies:
83
- - @typesql/core@0.6.0
84
-
85
- ## 0.2.0
86
-
87
- ### Minor Changes
88
-
89
- - `NoResultError`, `Executor` and `TransactionalSql` are no longer re-exported (from `@typesql/drizzle` also `Sql`, `Query`, `RowType`, `ParamsType`, `DefaultTypeMap` and `TypeMap`); import them from `@typesql/core`.
90
-
91
- - `createBigIntSql(sql)` is replaced by `createSql(sql, { bigint: true })`, and `PostgresJsBigIntSql<DB, Keys>` by `PostgresJsSql<DB, Keys, PostgresJsBigIntTypeMap>`.
92
-
93
- ### Patch Changes
94
-
95
- - The README's TypeScript Playground example uses `createSql(sql, { bigint: true })` instead of the removed `createBigIntSql`.
96
-
97
- - Updated dependencies:
98
- - @typesql/core@0.5.0
99
-
100
- ## 0.1.5
101
-
102
- ### Patch Changes
103
-
104
- - Updated dependencies:
105
- - @typesql/core@0.4.0
106
-
107
- ## 0.1.4
108
-
109
- ### Patch Changes
110
-
111
- - Updated dependencies:
112
- - @typesql/core@0.3.0
113
-
114
- ## 0.1.3
115
-
116
- ### Patch Changes
117
-
118
- - Updated dependencies:
119
- - @typesql/core@0.2.0
120
-
121
- ## 0.1.2
122
-
123
- ### Patch Changes
124
-
125
- - npm package pages link to the documentation site and the issue tracker, and list keywords.
126
-
127
- - READMEs link to an example in the TypeScript Playground.
128
-
129
- - Updated dependencies:
130
- - @typesql/core@0.1.2
131
-
132
- ## 0.1.1
133
-
134
- ### Patch Changes
135
-
136
- - Docs, package descriptions and error messages spell the project name TypeSQL.
137
-
138
- - Updated dependencies:
139
- - @typesql/core@0.1.1
140
-
141
- ## 0.1.0
142
-
143
- ### Minor Changes
144
-
145
- - Queries run from the `sql` bound to your client: `createSql<DB>(client)` then `sql("…").execute()` (or `executeTakeFirst`, `executeTakeFirstOrThrow`, `executeCount`), and `sql.transaction(async (tx) => …)` for transactions, nested with savepoints; the `query`, `one`, `maybeOne`, `many`, `execute`, `transaction` and `RowCountError` exports of `@typesql/pg` and `@typesql/postgres`, `query` and `execute` of `@typesql/kysely`, and `queryRaw` and `executeRaw` of `@typesql/prisma` are removed.
146
-
147
- ### Patch Changes
148
-
149
- - The README links to the type map tables on the new node-postgres and postgres.js adapter pages of the docs.
150
-
151
- - Updated dependencies:
152
- - @typesql/core@0.1.0
153
-
154
- ## 0.0.4
155
-
156
- ### Patch Changes
157
-
158
- - Queries have `executeCount()`, which resolves to the affected row count: an `Executor` may resolve to `{ rows, rowCount }` instead of the rows, as the `executor()` of `@typesql/pg`, `@typesql/postgres` and `@typesql/kysely` now do.
159
-
160
- - `execute(db, q)` resolves to 0 instead of `null` for statements without a count, such as DDL, and `PostgresJsRows["count"]` is `number | null`.
161
-
162
- - `createSql(executor, { rowKeys: "camelCase" })` (and the adapters' `createSql(client, { rowKeys: "camelCase" })`) camelCases the top-level row keys the way Kysely's `CamelCasePlugin` does, in the row types and in the rows `execute*` and the `query`/`one`/`maybeOne`/`many` helpers return, leaving JSON values untouched.
163
-
164
- - The type maps declare what parameters accept (`PgParamTypeMap`, `PostgresJsParamTypeMap`), so `int8`/`numeric` parameters take numbers and bigints and timestamp parameters take strings; postgres.js timestamp parameters also take epoch milliseconds.
165
-
166
- - Updated dependencies:
167
- - @typesql/core@0.0.4
168
-
169
- ## 0.0.3
170
-
171
- ### Patch Changes
172
-
173
- - Updated dependencies:
174
- - @typesql/core@0.0.3