🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@pgsql/types

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pgsql/types - npm Package Compare versions

Comparing version
17.5.2
to
17.5.3
+2
-1
LICENSE
The MIT License (MIT)
Copyright (c) 2020 Dan Lynch <pyramation@gmail.com>
Copyright (c) 2021 Dan Lynch <pyramation@gmail.com>
Copyright (c) 2025 Interweb, Inc. <developers@hyperweb.io>

@@ -5,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@pgsql/types",
"version": "17.5.2",
"version": "17.5.3",
"author": "Dan Lynch <pyramation@gmail.com>",
"description": "PostgreSQL AST types for pgsql-parser",
"description": "PostgreSQL AST types from the real Postgres parser",
"main": "index.js",
"module": "esm/index.js",
"types": "index.d.ts",
"homepage": "https://github.com/launchql/pgsql-parser",
"homepage": "https://github.com/launchql/libpg-query-node",
"license": "SEE LICENSE IN LICENSE",
"publishConfig": {
"access": "public",
"directory": "dist"
"directory": "dist",
"tag": "pg17"
},
"repository": {
"type": "git",
"url": "https://github.com/launchql/pgsql-parser"
"url": "https://github.com/launchql/libpg-query-node"
},
"bugs": {
"url": "https://github.com/launchql/pgsql-parser/issues"
"url": "https://github.com/launchql/libpg-query-node/issues"
},
"keywords": [],
"devDependencies": {
"pg-proto-parser": "^1.28.2"
},
"scripts": {
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
"clean": "rimraf dist",
"prepare": "npm run build",
"build": "npm run build:proto && npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
"build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
"build": "pnpm run clean && tsc && tsc -p tsconfig.esm.json && pnpm run copy",
"build:dev": "pnpm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && pnpm run copy",
"build:proto": "ts-node scripts/pg-proto-parser",
"lint": "eslint . --fix",
"test": "jest",
"test:watch": "jest --watch"
},
"devDependencies": {
"pg-proto-parser": "^1.28.2"
},
"keywords": [],
"gitHead": "dfffa6417d453373e59e6e57449ee813fb547403"
}
"prepare:types": "node -e \"require('../../scripts/prepare-types.js').preparePackageForPublish('.')\"",
"lint": "eslint . --fix"
}
}

@@ -8,9 +8,9 @@ # @pgsql/types

<p align="center" width="100%">
<a href="https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml">
<img height="20" src="https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml/badge.svg" />
<a href="https://github.com/launchql/libpg-query-node/actions/workflows/ci.yml">
<img height="20" src="https://github.com/launchql/libpg-query-node/actions/workflows/ci.yml/badge.svg" />
</a>
<!-- <a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/npm/dt/@pgsql/types"></a> -->
<!-- <a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/npm/dw/@pgsql/types"/></a> -->
<a href="https://github.com/launchql/pgsql-parser/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgsql-parser?filename=packages%2Ftypes%2Fpackage.json"/></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/npm/dt/@pgsql/types"></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/npm/dw/@pgsql/types"/></a>
<a href="https://github.com/launchql/libpg-query-node/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
<a href="https://www.npmjs.com/package/@pgsql/types"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/libpg-query-node?filename=types%2F17%2Fpackage.json"/></a>
</p>

@@ -75,2 +75,14 @@

## Versions
Our latest is built with PostgreSQL 17 AST types.
| PG Major Version | libpg_query | npm dist-tag
|--------------------------|-------------|---------|
| 17 | 17-6.1.0 | [`pg17`](https://www.npmjs.com/package/@pgsql/types/v/latest)
| 16 | 16-5.2.0 | [`pg16`](https://www.npmjs.com/package/@pgsql/types/v/pg16)
| 15 | 15-4.2.4 | [`pg15`](https://www.npmjs.com/package/@pgsql/types/v/pg15)
| 14 | 14-3.0.0 | [`pg14`](https://www.npmjs.com/package/@pgsql/types/v/pg14)
| 13 | 13-2.2.0 | [`pg13`](https://www.npmjs.com/package/@pgsql/types/v/pg13)
## Related

@@ -80,4 +92,2 @@

* [pgsql-deparser](https://github.com/launchql/pgsql-parser/tree/main/packages/deparser): A streamlined tool designed for converting PostgreSQL ASTs back into SQL queries, focusing solely on deparser functionality to complement `pgsql-parser`.
* [pgsql-enums](https://github.com/launchql/pgsql-parser/tree/main/packages/pgsql-enums): A utility package offering easy access to PostgreSQL enumeration types in JSON format, aiding in string and integer conversions of enums used within ASTs to compliment `pgsql-parser`
* [@pgsql/enums](https://github.com/launchql/pgsql-parser/tree/main/packages/enums): Provides PostgreSQL AST enums in TypeScript, enhancing type safety and usability in projects interacting with PostgreSQL AST nodes.
* [@pgsql/types](https://github.com/launchql/pgsql-parser/tree/main/packages/types): Offers TypeScript type definitions for PostgreSQL AST nodes, facilitating type-safe construction, analysis, and manipulation of ASTs.

@@ -87,2 +97,3 @@ * [@pgsql/utils](https://github.com/launchql/pgsql-parser/tree/main/packages/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.

* [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.
## Disclaimer

@@ -89,0 +100,0 @@