pg-sql2 5.0.0-rc.4 → 5.0.0-rc.5

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/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.0.0-rc.4";
1
+ export declare const version = "5.0.0-rc.5";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // This file is autogenerated by /scripts/postversion.mjs
5
- exports.version = "5.0.0-rc.4";
5
+ exports.version = "5.0.0-rc.5";
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,16 +1,9 @@
1
1
  {
2
2
  "name": "pg-sql2",
3
- "version": "5.0.0-rc.4",
3
+ "version": "5.0.0-rc.5",
4
4
  "description": "Generate safe Postgres-compliant SQL with tagged template literals",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "pretest": "node dist/index.js",
9
- "test": "jest",
10
- "posttest": "yarn test:docs",
11
- "test:docs": "markdown-doctest",
12
- "prepack": "tsc -b"
13
- },
14
7
  "repository": {
15
8
  "type": "git",
16
9
  "url": "git+https://github.com/graphile/crystal.git"
@@ -34,17 +27,8 @@
34
27
  "url": "https://github.com/graphile/crystal/issues"
35
28
  },
36
29
  "homepage": "https://github.com/graphile/crystal/tree/main/utils/pg-sql2",
37
- "devDependencies": {
38
- "@types/debug": "^4.1.12",
39
- "@types/jest": "^30.0.0",
40
- "@types/node": "^22.19.1",
41
- "jest": "^30.2.0",
42
- "markdown-doctest": "^1.1.0",
43
- "ts-node": "^10.9.2",
44
- "typescript": "^5.9.3"
45
- },
46
30
  "dependencies": {
47
- "@graphile/lru": "^5.0.0-rc.4",
31
+ "@graphile/lru": "^5.0.0-rc.5",
48
32
  "tslib": "^2.8.1"
49
33
  },
50
34
  "files": [
package/CHANGELOG.md DELETED
@@ -1,308 +0,0 @@
1
- # pg-sql2
2
-
3
- ## 5.0.0-rc.4
4
-
5
- ### Patch Changes
6
-
7
- - [`a3722d6`](https://github.com/graphile/crystal/commit/a3722d613bc6fb9e32f167aae9a31eaa422ceef1)
8
- Thanks [@benjie](https://github.com/benjie)! - Refactor to enable TypeScript
9
- options rewriteRelativeImportExtensions and erasableSyntaxOnly (including
10
- using .ts extensions in source code)
11
- - Updated dependencies
12
- [[`a3722d6`](https://github.com/graphile/crystal/commit/a3722d613bc6fb9e32f167aae9a31eaa422ceef1)]:
13
- - @graphile/lru@5.0.0-rc.4
14
-
15
- ## 5.0.0-rc.3
16
-
17
- ### Patch Changes
18
-
19
- - [#2873](https://github.com/graphile/crystal/pull/2873)
20
- [`0772086`](https://github.com/graphile/crystal/commit/0772086411a55d56b4e345cff1eef133eee31b36)
21
- Thanks [@benjie](https://github.com/benjie)! - Update TypeScript configuration
22
- to support Node 22 minimum
23
-
24
- - [#2888](https://github.com/graphile/crystal/pull/2888)
25
- [`1a56db2`](https://github.com/graphile/crystal/commit/1a56db2f53bc455a3d3ba6555a2cd777b27b271c)
26
- Thanks [@benjaie](https://github.com/benjaie)! - Node v22+ is required for
27
- this module.
28
-
29
- - [#2869](https://github.com/graphile/crystal/pull/2869)
30
- [`afe31f0`](https://github.com/graphile/crystal/commit/afe31f09a5b204f79321f8db9b42440df23a1183)
31
- Thanks [@benjie](https://github.com/benjie)! - Don't allow recursion when
32
- calling `node[$$toSQL]()`; customize error message if `$$toSQL` was invoked.
33
-
34
- - [#2866](https://github.com/graphile/crystal/pull/2866)
35
- [`d3a1be9`](https://github.com/graphile/crystal/commit/d3a1be921d70d143a94ca376d9d08dd85269f5bf)
36
- Thanks [@benjie](https://github.com/benjie)! - More explicit types of exported
37
- PgSQL
38
-
39
- - Updated dependencies
40
- [[`0772086`](https://github.com/graphile/crystal/commit/0772086411a55d56b4e345cff1eef133eee31b36),
41
- [`1a56db2`](https://github.com/graphile/crystal/commit/1a56db2f53bc455a3d3ba6555a2cd777b27b271c)]:
42
- - @graphile/lru@5.0.0-rc.3
43
-
44
- ## 5.0.0-rc.2
45
-
46
- ### Patch Changes
47
-
48
- - [#2821](https://github.com/graphile/crystal/pull/2821)
49
- [`8cfe23f`](https://github.com/graphile/crystal/commit/8cfe23f6e694503ffb99a642f816e858275f5b4e)
50
- Thanks [@benjie](https://github.com/benjie)! - Add sql.json API
51
-
52
- - [#2829](https://github.com/graphile/crystal/pull/2829)
53
- [`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)
54
- Thanks [@benjie](https://github.com/benjie)! - Update dependency ranges.
55
-
56
- - Updated dependencies
57
- [[`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)]:
58
- - @graphile/lru@5.0.0-rc.2
59
-
60
- ## 5.0.0-rc.1
61
-
62
- ### Patch Changes
63
-
64
- - [#2740](https://github.com/graphile/crystal/pull/2740)
65
- [`31b388c`](https://github.com/graphile/crystal/commit/31b388c6d5546640af7dcf4e6021643e47892ed1)
66
- Thanks [@benjie](https://github.com/benjie)! - Support more comment strings.
67
-
68
- - [#2746](https://github.com/graphile/crystal/pull/2746)
69
- [`930240a`](https://github.com/graphile/crystal/commit/930240a4a7d3373f5691d495df752bb8fedac2af)
70
- Thanks [@jemgillam](https://github.com/jemgillam)! - New:
71
- `sql.comment("...", true)` forces comments to be included, even in production.
72
-
73
- - [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)
74
- Thanks [@benjie](https://github.com/benjie)! - Bump to release candidate
75
-
76
- - Updated dependencies
77
- [[`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)]:
78
- - @graphile/lru@5.0.0-rc.1
79
-
80
- ## 5.0.0-beta.9
81
-
82
- ### Patch Changes
83
-
84
- - [#2434](https://github.com/graphile/crystal/pull/2434)
85
- [`5a26196eff8fd1956d73e0b8fdf5cfcb7f01b7d3`](https://github.com/graphile/crystal/commit/5a26196eff8fd1956d73e0b8fdf5cfcb7f01b7d3)
86
- Thanks [@benjie](https://github.com/benjie)! - `util.inspect(someSql)` will
87
- now output a much nicer string
88
-
89
- - [#2482](https://github.com/graphile/crystal/pull/2482)
90
- [`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)
91
- Thanks [@benjie](https://github.com/benjie)! - Minimum version of Node.js
92
- bumped to Node 22 (the latest LTS).
93
-
94
- - [#2450](https://github.com/graphile/crystal/pull/2450)
95
- [`a87bbd76f1a8b60fd86de65922746d830cc160b4`](https://github.com/graphile/crystal/commit/a87bbd76f1a8b60fd86de65922746d830cc160b4)
96
- Thanks [@benjie](https://github.com/benjie)! - Type-only tweak
97
-
98
- - [#2525](https://github.com/graphile/crystal/pull/2525)
99
- [`c9cd0cc72a4db4b02b2bdf770161c9346cb4b174`](https://github.com/graphile/crystal/commit/c9cd0cc72a4db4b02b2bdf770161c9346cb4b174)
100
- Thanks [@benjie](https://github.com/benjie)! - `sql.getIdentifierSymbol(node)`
101
- method added to extract a symbol from an identifier node (if a node is an
102
- identifier node, otherwise return `null`).
103
- - Updated dependencies
104
- [[`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)]:
105
- - @graphile/lru@5.0.0-beta.4
106
-
107
- ## 5.0.0-beta.8
108
-
109
- ### Patch Changes
110
-
111
- - [#2329](https://github.com/graphile/crystal/pull/2329)
112
- [`e10c372dafbe0d6014b1e946349b22f40aa87ef9`](https://github.com/graphile/crystal/commit/e10c372dafbe0d6014b1e946349b22f40aa87ef9)
113
- Thanks [@benjie](https://github.com/benjie)! - Fix bug causing unhelpful throw
114
- on $type optimization on null - instead pass through to more helpful throw.
115
-
116
- - [#2341](https://github.com/graphile/crystal/pull/2341)
117
- [`3b0f5082b2272997ce33ce8823a4752513d19e28`](https://github.com/graphile/crystal/commit/3b0f5082b2272997ce33ce8823a4752513d19e28)
118
- Thanks [@benjie](https://github.com/benjie)! - Some of the pg-sql2 inputs are
119
- now marked Readonly to indicate we won't mutate them.
120
-
121
- - [#2320](https://github.com/graphile/crystal/pull/2320)
122
- [`3789326b2e2fdb86519acc75e606c752ddefe590`](https://github.com/graphile/crystal/commit/3789326b2e2fdb86519acc75e606c752ddefe590)
123
- Thanks [@benjie](https://github.com/benjie)! - Add new `withTransformer`
124
- functionality to enable embedding of non-SQL values into PgSQL fragments, for
125
- improved user ergonomics.
126
-
127
- - [#2384](https://github.com/graphile/crystal/pull/2384)
128
- [`412b92a0b1e03ad962521f630b57a996d8620cf6`](https://github.com/graphile/crystal/commit/412b92a0b1e03ad962521f630b57a996d8620cf6)
129
- Thanks [@benjie](https://github.com/benjie)! - Small optimization/fix to
130
- `arraysMatch` function.
131
-
132
- ## 5.0.0-beta.7
133
-
134
- ### Patch Changes
135
-
136
- - [#2250](https://github.com/graphile/crystal/pull/2250)
137
- [`7bf045282`](https://github.com/graphile/crystal/commit/7bf04528264c3b9c509f148253fed96d3394141d)
138
- Thanks [@benjie](https://github.com/benjie)! - Export version number.
139
-
140
- ## 5.0.0-beta.6
141
-
142
- ### Patch Changes
143
-
144
- - [#1994](https://github.com/graphile/crystal/pull/1994)
145
- [`ab08cbf9c`](https://github.com/graphile/crystal/commit/ab08cbf9c504c3cc22495a99a965e7634c18a6a3)
146
- Thanks [@benjie](https://github.com/benjie)! - Introduce
147
- `interface SQLable {[$toSQL](): SQL}` to `pg-sql2` and use it to simplify SQL
148
- fragments in various places.
149
-
150
- - [#1973](https://github.com/graphile/crystal/pull/1973)
151
- [`94a05064e`](https://github.com/graphile/crystal/commit/94a05064ea05108685ff71174a9f871ab5b4c147)
152
- Thanks [@benjie](https://github.com/benjie)! - Fix processing of GRAPHILE_ENV
153
- to allow "test"
154
-
155
- ## 5.0.0-beta.5
156
-
157
- ### Patch Changes
158
-
159
- - [#1924](https://github.com/graphile/crystal/pull/1924)
160
- [`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195)
161
- Thanks [@benjie](https://github.com/benjie)! - 🚨 TypeScript is now configured
162
- to hide interfaces marked as `@internal`. This may result in a few errors
163
- where you're accessing things you oughtn't be, but also may hide some
164
- interfaces that should be exposed - please file an issue if an API you were
165
- dependent on has been removed from the TypeScript typings. If that API happens
166
- to be `step.dependencies`; you should first read this:
167
- https://benjie.dev/graphql/ancestors
168
-
169
- ## 5.0.0-beta.4
170
-
171
- ### Patch Changes
172
-
173
- - [`2805edc68`](https://github.com/graphile/crystal/commit/2805edc68b90546bf71ffd293af4d87a79345825)
174
- Thanks [@benjie](https://github.com/benjie)! - Don't freeze object, so that it
175
- can be annotated as exportable.
176
-
177
- ## 5.0.0-beta.3
178
-
179
- ### Patch Changes
180
-
181
- - [#514](https://github.com/graphile/crystal-pre-merge/pull/514)
182
- [`c9848f693`](https://github.com/graphile/crystal-pre-merge/commit/c9848f6936a5abd7740c0638bfb458fb5551f03b)
183
- Thanks [@benjie](https://github.com/benjie)! - Update package.json repository
184
- information
185
-
186
- - Updated dependencies
187
- [[`c9848f693`](https://github.com/graphile/crystal-pre-merge/commit/c9848f6936a5abd7740c0638bfb458fb5551f03b)]:
188
- - @graphile/lru@5.0.0-beta.3
189
-
190
- ## 5.0.0-beta.2
191
-
192
- ### Patch Changes
193
-
194
- - [#496](https://github.com/benjie/crystal/pull/496)
195
- [`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1)
196
- Thanks [@benjie](https://github.com/benjie)! - Update dependencies (sometimes
197
- through major versions).
198
-
199
- - Updated dependencies
200
- [[`c9bfd9892`](https://github.com/benjie/crystal/commit/c9bfd989247f9433fb5b18c5175c9d8d64cd21a1)]:
201
- - @graphile/lru@5.0.0-beta.2
202
-
203
- ## 5.0.0-beta.1
204
-
205
- ### Patch Changes
206
-
207
- - [`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)
208
- Thanks [@benjie](https://github.com/benjie)! - Bump all packages to beta
209
-
210
- - Updated dependencies
211
- [[`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)]:
212
- - @graphile/lru@5.0.0-beta.1
213
-
214
- ## 5.0.0-alpha.3
215
-
216
- ### Patch Changes
217
-
218
- - [#370](https://github.com/benjie/crystal/pull/370)
219
- [`339fe20d0`](https://github.com/benjie/crystal/commit/339fe20d0c6e8600d263ce8093cd85a6ea8adbbf)
220
- Thanks [@benjie](https://github.com/benjie)! - Allow multiple instances of
221
- pg-sql2 and tamedevil to help handle package manager shenanigans.
222
-
223
- ## 5.0.0-alpha.2
224
-
225
- ### Patch Changes
226
-
227
- - [`82cc01152`](https://github.com/benjie/crystal/commit/82cc01152ee06dafce45299661afd77ad943d785)
228
- Thanks [@benjie](https://github.com/benjie)! - Performance overhaul and new
229
- cache method.
230
-
231
- - [`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)
232
- Thanks [@benjie](https://github.com/benjie)! - Upgrade to the latest
233
- TypeScript/tslib
234
-
235
- - Updated dependencies
236
- [[`98ae00f59`](https://github.com/benjie/crystal/commit/98ae00f59a8ab3edc5718ad8437a0dab734a7d69),
237
- [`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)]:
238
- - @graphile/lru@5.0.0-alpha.2
239
-
240
- ## 5.0.0-alpha.1
241
-
242
- ### Patch Changes
243
-
244
- - [`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)
245
- Thanks [@benjie](https://github.com/benjie)! - Alpha release - see
246
- https://postgraphile.org/news/2023-04-26-version-5-alpha
247
-
248
- - Updated dependencies
249
- [[`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)]:
250
- - @graphile/lru@5.0.0-alpha.1
251
-
252
- ## 5.0.0-1.1
253
-
254
- ### Patch Changes
255
-
256
- - [#260](https://github.com/benjie/crystal/pull/260)
257
- [`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)
258
- Thanks [@benjie](https://github.com/benjie)! - TypeScript v5 is now required
259
-
260
- - [#270](https://github.com/benjie/crystal/pull/270)
261
- [`f93c79b94`](https://github.com/benjie/crystal/commit/f93c79b94eb93ae04b1b2e0478f5106e1aca8ee2)
262
- Thanks [@benjie](https://github.com/benjie)! - Experimental: expose
263
- `symbolToIdentifier` on `sql.compile()` result (via special
264
- `$symbolToIdentifier` symbol key) so you can determine which identifiers were
265
- used for which symbols.
266
-
267
- - [#270](https://github.com/benjie/crystal/pull/270)
268
- [`53e164cbc`](https://github.com/benjie/crystal/commit/53e164cbca7eaf1e6e03c849ac1bbe1789c61105)
269
- Thanks [@benjie](https://github.com/benjie)! - When the same `sql.value()`
270
- node is used in multiple places, it will now be replaced with the same
271
- placeholder (`$1`, etc).
272
- - Updated dependencies
273
- [[`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)]:
274
- - @graphile/lru@5.0.0-1.1
275
-
276
- ## 5.0.0-0.4
277
-
278
- ### Patch Changes
279
-
280
- - [#257](https://github.com/benjie/crystal/pull/257)
281
- [`8f323bdc8`](https://github.com/benjie/crystal/commit/8f323bdc88e39924de50775891bd40f1acb9b7cf)
282
- Thanks [@benjie](https://github.com/benjie)! - When multiple versions of
283
- grafast or pg-sql2 are detected, a warning will be raised.
284
-
285
- ## 5.0.0-0.3
286
-
287
- ### Patch Changes
288
-
289
- - [`0ab95d0b1`](undefined) - Update sponsors.
290
-
291
- ## 5.0.0-0.2
292
-
293
- ### Patch Changes
294
-
295
- - [`9b296ba54`](undefined) - More secure, more compatible, and lots of fixes
296
- across the monorepo
297
-
298
- ## 5.0.0-0.1
299
-
300
- ### Patch Changes
301
-
302
- - [#125](https://github.com/benjie/crystal/pull/125)
303
- [`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)
304
- Thanks [@benjie](https://github.com/benjie)! - Initial changesets release
305
-
306
- - Updated dependencies
307
- [[`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)]:
308
- - @graphile/lru@5.0.0-0.1