Skip to content

Commit 4b3f7e8

Browse files
committed
1 parent ace8935 commit 4b3f7e8

File tree

12 files changed

+78
-9
lines changed

12 files changed

+78
-9
lines changed

packages/deparser/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,35 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.2.0](https://github.com/launchql/pgsql-parser/compare/[email protected]@17.2.0) (2025-06-21)
7+
8+
9+
### Code Refactoring
10+
11+
* **deparser:** improve entry point handling with proper type guards ([a240d13](https://github.com/launchql/pgsql-parser/commit/a240d1313b9a57035656d7b00c7f664d90946248))
12+
13+
14+
### Features
15+
16+
* **deparser:** add ParseResult support, array handling, and configurable function delimiters ([1815fff](https://github.com/launchql/pgsql-parser/commit/1815fff259940adcb1d619b6e8479cf59b11115f))
17+
18+
19+
### BREAKING CHANGES
20+
21+
* **deparser:** Removed unused stmt() and version() methods. Use deparse() with appropriate node types instead.
22+
23+
The deparser now properly handles:
24+
1. ParseResult from libpg-query (bare or wrapped)
25+
2. Wrapped RawStmt nodes
26+
3. Arrays of Nodes
27+
4. Single Node statements
28+
29+
Note: ParseResult.stmts contains RawStmt objects directly (not wrapped as nodes)
30+
31+
32+
33+
34+
635
# [17.1.0](https://github.com/launchql/pgsql-parser/compare/[email protected]@17.1.0) (2025-06-21)
736

837

packages/deparser/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pgsql-deparser",
3-
"version": "17.1.0",
3+
"version": "17.2.0",
44
"author": "Dan Lynch <[email protected]>",
55
"description": "PostgreSQL AST Deparser",
66
"main": "index.js",
@@ -48,6 +48,6 @@
4848
"libpg-query": "17.3.3"
4949
},
5050
"dependencies": {
51-
"@pgsql/types": "^17.1.0"
51+
"@pgsql/types": "^17.2.0"
5252
}
5353
}

packages/enums/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.2.0](https://github.com/launchql/pgsql-parser/compare/[email protected]@17.2.0) (2025-06-21)
7+
8+
**Note:** Version bump only for package pgsql-enums
9+
10+
11+
12+
13+
614
# [17.1.0](https://github.com/launchql/pgsql-parser/compare/[email protected]@17.1.0) (2025-06-21)
715

816
**Note:** Version bump only for package pgsql-enums

packages/enums/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pgsql-enums",
3-
"version": "17.1.0",
3+
"version": "17.2.0",
44
"author": "Dan Lynch <[email protected]>",
55
"description": "PostgreSQL AST enums for pgsql-parser",
66
"main": "index.js",

packages/parser/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.2.0](https://github.com/launchql/pgsql-parser/compare/[email protected]@17.2.0) (2025-06-21)
7+
8+
**Note:** Version bump only for package pgsql-parser
9+
10+
11+
12+
13+
614
# [17.1.0](https://github.com/launchql/pgsql-parser/compare/[email protected]@17.1.0) (2025-06-21)
715

816
**Note:** Version bump only for package pgsql-parser

packages/parser/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pgsql-parser",
3-
"version": "17.1.0",
3+
"version": "17.2.0",
44
"author": "Dan Lynch <[email protected]>",
55
"description": "The real PostgreSQL query parser",
66
"main": "index.js",
@@ -42,7 +42,7 @@
4242
"database"
4343
],
4444
"dependencies": {
45-
"@pgsql/types": "^17.1.0",
45+
"@pgsql/types": "^17.2.0",
4646
"libpg-query": "17.3.3",
4747
"minimist": "^1.2.6"
4848
}

packages/transform/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.2.0](https://github.com/launchql/pgsql-parser/compare/@pgsql/[email protected]...@pgsql/[email protected]) (2025-06-21)
7+
8+
**Note:** Version bump only for package @pgsql/transform
9+
10+
11+
12+
13+
614
# 17.1.0 (2025-06-21)
715

816

packages/transform/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgsql/transform",
3-
"version": "17.1.0",
3+
"version": "17.2.0",
44
"author": "Dan Lynch <[email protected]>",
55
"description": "Transform PostgreSQL AST types for pgsql-parser",
66
"main": "index.js",

packages/types/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [17.2.0](https://github.com/launchql/pgsql-parser/compare/@pgsql/[email protected]...@pgsql/[email protected]) (2025-06-21)
7+
8+
**Note:** Version bump only for package @pgsql/types
9+
10+
11+
12+
13+
614
# [17.1.0](https://github.com/launchql/pgsql-parser/compare/@pgsql/[email protected]...@pgsql/[email protected]) (2025-06-21)
715

816
**Note:** Version bump only for package @pgsql/types

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgsql/types",
3-
"version": "17.1.0",
3+
"version": "17.2.0",
44
"author": "Dan Lynch <[email protected]>",
55
"description": "PostgreSQL AST types for pgsql-parser",
66
"main": "index.js",

0 commit comments

Comments
 (0)