diff --git a/README.md b/README.md index 4a9e00e..40ad479 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,19 @@ Built to power [pgsql-parser](https://github.com/pyramation/pgsql-parser), this > 🎯 **Want to parse + deparse (full round trip)?** > We highly recommend using [`pgsql-parser`](https://github.com/launchql/pgsql-parser) which leverages a pure TypeScript deparser that has been battle-tested against 23,000+ SQL statements and is built on top of libpg-query. +### 🔀 Multi-Version Support with @pgsql/parser + +> **Need to support multiple PostgreSQL versions at runtime?** +> Use [`@pgsql/parser`](https://github.com/launchql/libpg-query-node/tree/main/parser) for dynamic version selection — parse SQL with PostgreSQL 15, 16, or 17 in a single package! +> +> ```typescript +> import { parse } from '@pgsql/parser'; +> +> // Parse with specific PostgreSQL version +> const result15 = await parse('SELECT * FROM users', 15); +> const result17 = await parse('SELECT * FROM users', 17); +> ``` + ## Installation ```sh @@ -61,6 +74,7 @@ This repository contains multiple packages to support different PostgreSQL versi | Package | Description | PostgreSQL Versions | npm Package | |---------|-------------|---------------------|-------------| | **[libpg-query](https://github.com/launchql/libpg-query-node/tree/main/versions)** | Lightweight parser (parse only) | 13, 14, 15, 16, 17 | [`libpg-query`](https://www.npmjs.com/package/libpg-query) | +| **[@pgsql/parser](https://github.com/launchql/libpg-query-node/tree/main/parser)** | Multi-version parser (runtime selection) | 15, 16, 17 | [`@pgsql/parser`](https://www.npmjs.com/package/@pgsql/parser) | | **[@pgsql/types](https://github.com/launchql/libpg-query-node/tree/main/types)** | TypeScript type definitions | 13, 14, 15, 16, 17 | [`@pgsql/types`](https://www.npmjs.com/package/@pgsql/types) | | **[@pgsql/enums](https://github.com/launchql/libpg-query-node/tree/main/enums)** | TypeScript enum definitions | 13, 14, 15, 16, 17 | [`@pgsql/enums`](https://www.npmjs.com/package/@pgsql/enums) | | **[@libpg-query/parser](https://github.com/launchql/libpg-query-node/tree/main/full)** | Full parser with all features | 17 only | [`@libpg-query/parser`](https://www.npmjs.com/package/@libpg-query/parser) | @@ -85,6 +99,7 @@ npm install @pgsql/enums ### Which Package Should I Use? - **Just need to parse SQL?** → Use `libpg-query` (lightweight, all PG versions) +- **Need multiple versions at runtime?** → Use `@pgsql/parser` (dynamic version selection) - **Need TypeScript types?** → Add `@pgsql/types` and/or `@pgsql/enums` - **Need fingerprint, normalize, or deparse?** → Use `@libpg-query/parser` (PG 17 only) @@ -94,6 +109,7 @@ npm install @pgsql/enums For detailed API documentation and usage examples, see the package-specific READMEs: - **libpg-query** - [Parser API Documentation](https://github.com/launchql/libpg-query-node/tree/main/versions/17) +- **@pgsql/parser** - [Multi-Version Parser Documentation](https://github.com/launchql/libpg-query-node/tree/main/parser) - **@pgsql/types** - [Types Documentation](https://github.com/launchql/libpg-query-node/tree/main/types/17) - **@pgsql/enums** - [Enums Documentation](https://github.com/launchql/libpg-query-node/tree/main/enums/17) - **@libpg-query/parser** - [Full Parser Documentation](https://github.com/launchql/libpg-query-node/tree/main/full) @@ -183,7 +199,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -191,6 +207,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/enums/13/README.md b/enums/13/README.md index cbfcb64..c16bfe0 100644 --- a/enums/13/README.md +++ b/enums/13/README.md @@ -62,6 +62,7 @@ Our latest is built with PostgreSQL 17 enum definitions. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/enums/13/package.json b/enums/13/package.json index 3b3c77b..9f4a0df 100644 --- a/enums/13/package.json +++ b/enums/13/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/enums/14/README.md b/enums/14/README.md index 48d0278..68e6286 100644 --- a/enums/14/README.md +++ b/enums/14/README.md @@ -62,6 +62,7 @@ Our latest is built with PostgreSQL 17 enum definitions. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/enums/14/package.json b/enums/14/package.json index a78453e..2347edb 100644 --- a/enums/14/package.json +++ b/enums/14/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/enums/15/README.md b/enums/15/README.md index 0e0e6af..7fcecf3 100644 --- a/enums/15/README.md +++ b/enums/15/README.md @@ -62,6 +62,7 @@ Our latest is built with PostgreSQL 17 enum definitions. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/enums/15/package.json b/enums/15/package.json index 4a03861..3258170 100644 --- a/enums/15/package.json +++ b/enums/15/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/enums/16/README.md b/enums/16/README.md index 3e7d0e5..c2861b6 100644 --- a/enums/16/README.md +++ b/enums/16/README.md @@ -62,6 +62,7 @@ Our latest is built with PostgreSQL 17 enum definitions. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/enums/16/package.json b/enums/16/package.json index 3e8f6a5..6806ff0 100644 --- a/enums/16/package.json +++ b/enums/16/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/enums/17/README.md b/enums/17/README.md index 32020af..70966ff 100644 --- a/enums/17/README.md +++ b/enums/17/README.md @@ -62,6 +62,7 @@ Our latest is built with PostgreSQL 17 enum definitions. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/enums/17/package.json b/enums/17/package.json index ec9ca07..1d39991 100644 --- a/enums/17/package.json +++ b/enums/17/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/full/README.md b/full/README.md index 9dff5da..db119ba 100644 --- a/full/README.md +++ b/full/README.md @@ -370,7 +370,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -378,6 +378,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/parser/README.md b/parser/README.md index 459287c..fb4b479 100644 --- a/parser/README.md +++ b/parser/README.md @@ -109,7 +109,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -117,6 +117,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/parser/package.json b/parser/package.json index 250504b..a010626 100644 --- a/parser/package.json +++ b/parser/package.json @@ -1,6 +1,7 @@ { "name": "@pgsql/parser", "version": "1.0.0", + "author": "Dan Lynch ", "description": "Multi-version PostgreSQL parser with dynamic version selection", "main": "./wasm/index.cjs", "module": "./wasm/index.js", @@ -43,15 +44,8 @@ "ast", "multi-version" ], - "author": "", "license": "MIT", - "dependencies": { - "@pgsql/types": "^17.6.0" - }, "devDependencies": { - "@types/node": "^20.0.0", - "rimraf": "^5.0.10", - "typescript": "^5.0.0", "vitest": "^1.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 001dee8..a9e7eb6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -79,20 +79,7 @@ importers: version: 0.8.0 parser: - dependencies: - '@pgsql/types': - specifier: ^17.6.0 - version: 17.6.0 devDependencies: - '@types/node': - specifier: ^20.0.0 - version: 20.19.1 - rimraf: - specifier: ^5.0.10 - version: 5.0.10 - typescript: - specifier: ^5.0.0 - version: 5.8.3 vitest: specifier: ^1.0.0 version: 1.6.1(@types/node@20.19.1) diff --git a/types/13/README.md b/types/13/README.md index 92292ff..5d3a082 100644 --- a/types/13/README.md +++ b/types/13/README.md @@ -87,6 +87,7 @@ Our latest is built with PostgreSQL 17 AST types. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/types/13/package.json b/types/13/package.json index fd286de..b0bb62e 100644 --- a/types/13/package.json +++ b/types/13/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/types/14/README.md b/types/14/README.md index 92292ff..5d3a082 100644 --- a/types/14/README.md +++ b/types/14/README.md @@ -87,6 +87,7 @@ Our latest is built with PostgreSQL 17 AST types. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/types/14/package.json b/types/14/package.json index d11f708..2e46ada 100644 --- a/types/14/package.json +++ b/types/14/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/types/15/README.md b/types/15/README.md index 92292ff..5d3a082 100644 --- a/types/15/README.md +++ b/types/15/README.md @@ -87,6 +87,7 @@ Our latest is built with PostgreSQL 17 AST types. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/types/15/package.json b/types/15/package.json index c6897c7..ed869e5 100644 --- a/types/15/package.json +++ b/types/15/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/types/16/README.md b/types/16/README.md index 92292ff..5d3a082 100644 --- a/types/16/README.md +++ b/types/16/README.md @@ -87,6 +87,7 @@ Our latest is built with PostgreSQL 17 AST types. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/types/16/package.json b/types/16/package.json index 11d9eb5..05bcd08 100644 --- a/types/16/package.json +++ b/types/16/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/types/17/README.md b/types/17/README.md index 92292ff..5d3a082 100644 --- a/types/17/README.md +++ b/types/17/README.md @@ -87,6 +87,7 @@ Our latest is built with PostgreSQL 17 AST types. * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/types/17/package.json b/types/17/package.json index 01d5041..8e8bb70 100644 --- a/types/17/package.json +++ b/types/17/package.json @@ -7,7 +7,7 @@ "module": "esm/index.js", "types": "index.d.ts", "homepage": "https://github.com/launchql/libpg-query-node", - "license": "SEE LICENSE IN LICENSE", + "license": "MIT", "publishConfig": { "access": "public", "directory": "dist" diff --git a/versions/13/README.md b/versions/13/README.md index 489aa29..f60f188 100644 --- a/versions/13/README.md +++ b/versions/13/README.md @@ -237,7 +237,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -245,6 +245,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/versions/14/README.md b/versions/14/README.md index 489aa29..f60f188 100644 --- a/versions/14/README.md +++ b/versions/14/README.md @@ -237,7 +237,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -245,6 +245,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/versions/15/README.md b/versions/15/README.md index 489aa29..f60f188 100644 --- a/versions/15/README.md +++ b/versions/15/README.md @@ -237,7 +237,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -245,6 +245,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/versions/16/README.md b/versions/16/README.md index 489aa29..f60f188 100644 --- a/versions/16/README.md +++ b/versions/16/README.md @@ -237,7 +237,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -245,6 +245,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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. diff --git a/versions/17/README.md b/versions/17/README.md index 489aa29..f60f188 100644 --- a/versions/17/README.md +++ b/versions/17/README.md @@ -237,7 +237,7 @@ Built on the excellent work of several contributors: * **[Dan Lynch](https://github.com/pyramation)** — official maintainer since 2018 and architect of the current implementation * **[Lukas Fittl](https://github.com/lfittl)** for [libpg_query](https://github.com/pganalyze/libpg_query) — the core PostgreSQL parser that powers this project -* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM for better interoperability +* **[Greg Richardson](https://github.com/gregnr)** for AST guidance and pushing the transition to WASM and multiple PG runtimes for better interoperability * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser @@ -245,6 +245,7 @@ Built on the excellent work of several contributors: * [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. * [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`. +* [@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. * [@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. * [@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. * [@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.