Changelog
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
1.2.0 - 2026-03-10
Added
- Full TypeScript support — all source files migrated to
src/with strict typings - Dual ESM + CJS build output via
tsup— tree-shakable and bundler-friendly src/types/index.ts— exported interfaces for all method options and return typessrc/utils/validation.ts— sharedparsePoint()helper and typed assertion guardssrc/utils/logger.ts— structured debug logger (enabled viaPOSTGIS_DEBUG=true)- Vitest test runner replacing Jest — same API, native ESM support, faster execution
vitest.config.tswith v8 coverage providertsup.config.tsfor production-ready dual bundle generation.prettierrc— Prettier code formatting config.editorconfig— cross-editor indentation and line ending consistency.npmignore— reduces install footprint by excludingsrc/, tests, and docsLICENSEfile (MIT)CONTRIBUTING.md— fork, branch, commit, and PR guidelinesCODE_OF_CONDUCT.md— Contributor Covenant 2.1SECURITY.md— private vulnerability disclosure process and SQL injection warningCHANGELOG.md— this file- GitHub Actions
ci.yml— lint + test + build on every push/PR - GitHub Actions
docs.yml— VitePress docs auto-deploy to GitHub Pages - GitHub Actions
publish.yml— npm + GitHub Packages publish on release - VitePress documentation site under
docs/ examples/directory with basic usage, GeoJSON export, and MVT server examples- Expanded npm keywords for better discoverability
Changed
intersect_point,nearest, andtransform_pointnow throw a descriptiveErrorwith message"Invalid point format ..."instead of crashing with aTypeError_executeQueryreturn is nowres.rows ?? []— no more fragile fallback chainpackage.jsonlicensecorrected fromISC→MIT- Updated
package.jsonwithexports,types,sideEffects: false,fileswhitelist,engines,funding, and expandedkeywords eslint.config.mjsupgraded to includetypescript-eslintrules
Fixed
- License mismatch between
package.json(ISC) and README (MIT) — now consistently MIT
1.0.6 - 2025-01-15
Added
- Initial public release
list_tables,list_columns,query_tablebbox,centroidintersect_feature,intersect_pointgeojson,geobuf,mvtnearest,transform_point- Jest test suite with mocked pg.Client