Back to Explore

bendrucker/postgres-array

GitHub
3 watchersOpen source

Last release:

A JavaScript npm package that parses PostgreSQL array column values given as a string, returning a JavaScript array. Useful for converting Postgres array literals like `{1,2,3}` into native arrays, with an optional transform function to process non-null elements.

Project status

  • Maintenance status: Quiet/dormant in practice, last upstream update was 2025-03-06, which is roughly 18 months ago relative to 2026-09-10.
  • Update cadence: Sporadic and clustered, with no updates between 2023-02-08 (v3.0.2) and 2025-03-05 to 2025-03-06 (v3.0.3 and v3.0.4), and earlier major changes occurring years apart.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v3.0.4

    Release v3.0.4 contains a small change to the postgres array parsing logic in index.js. No release notes were provided, and the code diff indicates a behavioral change in how certain malformed inputs are handled, plus an internal refactor of string parsing for quoted array elements.

  • v3.0.3

    Release v3.0.3 includes no published release notes. The code changes are centered on a substantial rewrite of the PostgreSQL array parser in index.js, plus test/benchmark updates.

  • v3.0.2

    Release v3.0.2 was published on 2023-02-08. The publisher did not provide any release notes, so the specific changes, potential breaking impacts, or fixes cannot be determined from the available information.

  • v3.0.1

    Release v3.0.1 has no published release notes. The code diff shows only small internal refactors in the parser implementation (switching var to const/let) plus a devDependency bump for the StandardJS linter.

  • v3.0.0

    This release (v3.0.0) primarily modernizes the project tooling and supported Node.js versions. There are no release notes provided, so the only “what changed” comes from the repo diff, which includes CI updates, engine requirement changes, and dev dependency bumps.

    Breaking
  • v2.0.0

    v2.0.0 refactors the internal array parser implementation and adds support for PostgreSQL array subscript/slice prefixes (for example, "[0:2]={1,2,3}"). The release notes section is empty, so consumers must rely on the actual code changes to understand what changed. Overall, the public API appears to remain the same (exports.parse), but environment requirements were tightened.

    Features
  • v1.0.3

    v1.0.3 primarily adds TypeScript type definitions for the library. The runtime code appears unchanged, with the diff limited to adding index.d.ts and updating package.json metadata to publish and expose those types.

    Features
  • v1.0.2

    Release v1.0.2 contains a small but behavior-changing update to postgres array parsing. The diff removes special handling for boolean literals in the parser and adjusts the test suite accordingly, but no release notes were provided.

    Breaking
  • v1.0.1

    The release v1.0.1 contains no documented changes because the publisher provided no release notes. The only actual code diff is a package.json version bump, from 0.0.0 to 1.0.1.

  • v0.0.1

    This release is version v0.0.1, published on 2016-12-09. No release notes were provided, so there is no documented information about new features, fixes, breaking changes, security updates, performance improvements, or migration steps.