@pgsql/cli 1.31.11 → 1.32.1
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 +7 -81
- package/README.md +1 -19
- package/dist/README.md +2 -0
- package/dist/package.json +14 -10
- package/package.json +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,174 +3,100 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [1.
|
|
6
|
+
## [1.32.1](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.32.0...@pgsql/cli@1.32.1) (2025-11-23)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pgsql/cli
|
|
9
9
|
|
|
10
|
+
# [1.32.0](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.11...@pgsql/cli@1.32.0) (2025-11-23)
|
|
10
11
|
|
|
12
|
+
**Note:** Version bump only for package @pgsql/cli
|
|
11
13
|
|
|
14
|
+
## [1.31.11](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.10...@pgsql/cli@1.31.11) (2025-08-08)
|
|
12
15
|
|
|
16
|
+
**Note:** Version bump only for package @pgsql/cli
|
|
13
17
|
|
|
14
18
|
## [1.31.10](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.9...@pgsql/cli@1.31.10) (2025-07-23)
|
|
15
19
|
|
|
16
20
|
**Note:** Version bump only for package @pgsql/cli
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
22
|
## [1.31.9](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.8...@pgsql/cli@1.31.9) (2025-07-17)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @pgsql/cli
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
26
|
## [1.31.8](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.7...@pgsql/cli@1.31.8) (2025-07-01)
|
|
31
27
|
|
|
32
28
|
**Note:** Version bump only for package @pgsql/cli
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
30
|
## [1.31.7](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.6...@pgsql/cli@1.31.7) (2025-07-01)
|
|
39
31
|
|
|
40
32
|
**Note:** Version bump only for package @pgsql/cli
|
|
41
33
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
34
|
## [1.31.6](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.5...@pgsql/cli@1.31.6) (2025-07-01)
|
|
47
35
|
|
|
48
36
|
**Note:** Version bump only for package @pgsql/cli
|
|
49
37
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
38
|
## [1.31.5](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.4...@pgsql/cli@1.31.5) (2025-06-27)
|
|
55
39
|
|
|
56
40
|
**Note:** Version bump only for package @pgsql/cli
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
42
|
## [1.31.4](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.3...@pgsql/cli@1.31.4) (2025-06-27)
|
|
63
43
|
|
|
64
44
|
**Note:** Version bump only for package @pgsql/cli
|
|
65
45
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
46
|
## [1.31.3](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.2...@pgsql/cli@1.31.3) (2025-06-26)
|
|
71
47
|
|
|
72
48
|
**Note:** Version bump only for package @pgsql/cli
|
|
73
49
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
50
|
## [1.31.2](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.1...@pgsql/cli@1.31.2) (2025-06-24)
|
|
79
51
|
|
|
80
52
|
**Note:** Version bump only for package @pgsql/cli
|
|
81
53
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
54
|
## [1.31.1](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.31.0...@pgsql/cli@1.31.1) (2025-06-23)
|
|
87
55
|
|
|
88
56
|
**Note:** Version bump only for package @pgsql/cli
|
|
89
57
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
58
|
# [1.31.0](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.30.2...@pgsql/cli@1.31.0) (2025-06-23)
|
|
95
59
|
|
|
96
60
|
**Note:** Version bump only for package @pgsql/cli
|
|
97
61
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
62
|
## [1.30.2](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.30.1...@pgsql/cli@1.30.2) (2025-06-23)
|
|
103
63
|
|
|
104
64
|
**Note:** Version bump only for package @pgsql/cli
|
|
105
65
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
66
|
## [1.30.1](https://github.com/launchql/pgsql-parser/compare/@pgsql/cli@1.30.0...@pgsql/cli@1.30.1) (2025-06-23)
|
|
111
67
|
|
|
112
68
|
**Note:** Version bump only for package @pgsql/cli
|
|
113
69
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
70
|
# 1.30.0 (2025-06-23)
|
|
119
71
|
|
|
120
|
-
|
|
121
72
|
### Features
|
|
122
73
|
|
|
123
|
-
|
|
124
|
-
|
|
74
|
+
- implement unified @pgsql/cli package ([b009a17](https://github.com/launchql/pgsql-parser/commit/b009a172c3c93033573745e80354a7dac973e2bf))
|
|
125
75
|
|
|
126
76
|
### BREAKING CHANGES
|
|
127
77
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
78
|
+
- Binary renamed from pg-proto-parser to pgsql. Command structure changed from subcommands to main commands.
|
|
133
79
|
|
|
134
80
|
## [1.29.2](https://github.com/launchql/pgsql-parser/compare/@launchql/proto-cli@1.29.1...@launchql/proto-cli@1.29.2) (2025-06-22)
|
|
135
81
|
|
|
136
82
|
**Note:** Version bump only for package @launchql/proto-cli
|
|
137
83
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
84
|
## [1.29.1](https://github.com/launchql/pgsql-parser/compare/@launchql/proto-cli@1.29.0...@launchql/proto-cli@1.29.1) (2025-06-22)
|
|
143
85
|
|
|
144
86
|
**Note:** Version bump only for package @launchql/proto-cli
|
|
145
87
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
88
|
# [1.29.0](https://github.com/launchql/pgsql-parser/compare/@launchql/proto-cli@1.28.1...@launchql/proto-cli@1.29.0) (2025-06-22)
|
|
151
89
|
|
|
152
90
|
**Note:** Version bump only for package @launchql/proto-cli
|
|
153
91
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
92
|
## [1.28.1](https://github.com/launchql/pgsql-parser/compare/@launchql/proto-cli@1.28.0...@launchql/proto-cli@1.28.1) (2025-06-21)
|
|
159
93
|
|
|
160
94
|
**Note:** Version bump only for package @launchql/proto-cli
|
|
161
95
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
96
|
# [1.28.0](https://github.com/launchql/pgsql-parser/compare/@launchql/proto-cli@1.27.0...@launchql/proto-cli@1.28.0) (2025-06-21)
|
|
167
97
|
|
|
168
98
|
**Note:** Version bump only for package @launchql/proto-cli
|
|
169
99
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
100
|
# [1.27.0](https://github.com/launchql/pgsql-parser/compare/@launchql/proto-cli@1.26.0...@launchql/proto-cli@1.27.0) (2025-06-21)
|
|
175
101
|
|
|
176
102
|
**Note:** Version bump only for package @launchql/proto-cli
|
package/README.md
CHANGED
|
@@ -248,22 +248,4 @@ pgsql proto-gen --inFile pg_query.proto --outDir out
|
|
|
248
248
|
The command options remain largely the same, with some improvements:
|
|
249
249
|
- `codegen` → `proto-gen`
|
|
250
250
|
- `protogen` → `proto-fetch`
|
|
251
|
-
- Boolean flags now use kebab-case (e.g., `--enumsJSON` → `--enums-json`)
|
|
252
|
-
|
|
253
|
-
## Related
|
|
254
|
-
|
|
255
|
-
* [pgsql-parser](https://www.npmjs.com/package/pgsql-parser): The real PostgreSQL parser for Node.js, providing symmetric parsing and deparsing of SQL statements with actual PostgreSQL parser integration.
|
|
256
|
-
* [pgsql-deparser](https://www.npmjs.com/package/pgsql-deparser): A streamlined tool designed for converting PostgreSQL ASTs back into SQL queries, focusing solely on deparser functionality to complement `pgsql-parser`.
|
|
257
|
-
* [@pgsql/parser](https://www.npmjs.com/package/@pgsql/parser): Multi-version PostgreSQL parser with dynamic version selection at runtime, supporting PostgreSQL 15, 16, and 17 in a single package.
|
|
258
|
-
* [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): Offers TypeScript type definitions for PostgreSQL AST nodes, facilitating type-safe construction, analysis, and manipulation of ASTs.
|
|
259
|
-
* [@pgsql/enums](https://www.npmjs.com/package/@pgsql/enums): Provides TypeScript enum definitions for PostgreSQL constants, enabling type-safe usage of PostgreSQL enums and constants in your applications.
|
|
260
|
-
* [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): A comprehensive utility library for PostgreSQL, offering type-safe AST node creation and enum value conversions, simplifying the construction and manipulation of PostgreSQL ASTs.
|
|
261
|
-
* [@pgsql/traverse](https://www.npmjs.com/package/@pgsql/traverse): PostgreSQL AST traversal utilities for pgsql-parser, providing a visitor pattern for traversing PostgreSQL Abstract Syntax Tree nodes, similar to Babel's traverse functionality but specifically designed for PostgreSQL AST structures.
|
|
262
|
-
* [pg-proto-parser](https://www.npmjs.com/package/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
|
|
263
|
-
* [libpg-query](https://github.com/launchql/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries.
|
|
264
|
-
|
|
265
|
-
## Disclaimer
|
|
266
|
-
|
|
267
|
-
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
|
|
268
|
-
|
|
269
|
-
No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
|
|
251
|
+
- Boolean flags now use kebab-case (e.g., `--enumsJSON` → `--enums-json`)
|
package/dist/README.md
CHANGED
|
@@ -250,6 +250,8 @@ The command options remain largely the same, with some improvements:
|
|
|
250
250
|
- `protogen` → `proto-fetch`
|
|
251
251
|
- Boolean flags now use kebab-case (e.g., `--enumsJSON` → `--enums-json`)
|
|
252
252
|
|
|
253
|
+
---
|
|
254
|
+
|
|
253
255
|
## Related
|
|
254
256
|
|
|
255
257
|
* [pgsql-parser](https://www.npmjs.com/package/pgsql-parser): The real PostgreSQL parser for Node.js, providing symmetric parsing and deparsing of SQL statements with actual PostgreSQL parser integration.
|
package/dist/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgsql/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"description": "Unified CLI for PostgreSQL AST parsing, deparsing, and code generation",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "esm/index.js",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"homepage": "https://github.com/launchql/pgsql-parser/tree/master/packages/pgsql-cli#readme",
|
|
10
|
-
"license": "
|
|
10
|
+
"license": "MIT",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"pgsql": "index.js"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"copy": "
|
|
26
|
-
"clean": "
|
|
27
|
-
"
|
|
25
|
+
"copy": "makage assets",
|
|
26
|
+
"clean": "makage clean dist",
|
|
27
|
+
"prepublishOnly": "npm run build",
|
|
28
28
|
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
|
|
29
29
|
"build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
|
|
30
30
|
"dev": "ts-node src/index",
|
|
@@ -51,10 +51,14 @@
|
|
|
51
51
|
"glob": "8.0.3",
|
|
52
52
|
"minimist": "1.2.8",
|
|
53
53
|
"mkdirp": "3.0.1",
|
|
54
|
-
"nested-obj": "^0.
|
|
55
|
-
"pg-proto-parser": "
|
|
56
|
-
"pgsql-deparser": "
|
|
57
|
-
"pgsql-parser": "
|
|
54
|
+
"nested-obj": "^0.1.1",
|
|
55
|
+
"pg-proto-parser": "1.30.1",
|
|
56
|
+
"pgsql-deparser": "17.12.1",
|
|
57
|
+
"pgsql-parser": "17.9.1"
|
|
58
58
|
},
|
|
59
|
-
"
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/minimist": "^1.2.5",
|
|
61
|
+
"makage": "^0.1.3"
|
|
62
|
+
},
|
|
63
|
+
"gitHead": "da3ab5c3f032c80958902486ef4fd6dc236e0e12"
|
|
60
64
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgsql/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"description": "Unified CLI for PostgreSQL AST parsing, deparsing, and code generation",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "esm/index.js",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"homepage": "https://github.com/launchql/pgsql-parser/tree/master/packages/pgsql-cli#readme",
|
|
10
|
-
"license": "
|
|
10
|
+
"license": "MIT",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"pgsql": "index.js"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"copy": "
|
|
26
|
-
"clean": "
|
|
27
|
-
"
|
|
25
|
+
"copy": "makage assets",
|
|
26
|
+
"clean": "makage clean dist",
|
|
27
|
+
"prepublishOnly": "npm run build",
|
|
28
28
|
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
|
|
29
29
|
"build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
|
|
30
30
|
"dev": "ts-node src/index",
|
|
@@ -51,10 +51,14 @@
|
|
|
51
51
|
"glob": "8.0.3",
|
|
52
52
|
"minimist": "1.2.8",
|
|
53
53
|
"mkdirp": "3.0.1",
|
|
54
|
-
"nested-obj": "^0.
|
|
55
|
-
"pg-proto-parser": "
|
|
56
|
-
"pgsql-deparser": "
|
|
57
|
-
"pgsql-parser": "
|
|
54
|
+
"nested-obj": "^0.1.1",
|
|
55
|
+
"pg-proto-parser": "1.30.1",
|
|
56
|
+
"pgsql-deparser": "17.12.1",
|
|
57
|
+
"pgsql-parser": "17.9.1"
|
|
58
58
|
},
|
|
59
|
-
"
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/minimist": "^1.2.5",
|
|
61
|
+
"makage": "^0.1.3"
|
|
62
|
+
},
|
|
63
|
+
"gitHead": "da3ab5c3f032c80958902486ef4fd6dc236e0e12"
|
|
60
64
|
}
|