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
- The repository appears actively maintained, with recent updates on 2025-03-05 and 2025-03-06 (v3.0.3 and v3.0.4), and earlier maintenance in 2023 (v3.0.2).
- Update cadence looks bursty rather than steady, with two updates within about 1 day in early March 2025, followed by a long gap since the last known prior update in 2023.
AI summary generated Today
Recent updates
v3.0.4
3/6/2025Release 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
3/5/2025Release 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
2/8/2023Release 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
10/29/2020Release 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
10/29/2020This 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.
Breakingv2.0.0
10/22/2018v2.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.
Featuresv1.0.3
9/17/2018v1.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.
Featuresv1.0.2
12/9/2016Release 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.
Breakingv1.0.1
12/9/2016The 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
12/9/2016This 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.