postgres-bytea is an npm package for decoding and encoding PostgreSQL bytea strings to and from Node.js Buffers. It provides `decode` for converting Postgres bytea formats (hex and escape) into buffers, plus `Decoder` and `Encoder` Transform streams for handling bytea data in COPY FROM and COPY TO contexts.
Project status
- Maintenance status: The repo shows a recent upstream push on 2025-12-17, including an v1.0.1 update, but there is a long gap since the prior major update (v3.0.0 in 2020), suggesting intermittent maintenance rather than steady active development.
- Update cadence: Updates appear irregular, with multi-year intervals between version bumps (2015, 2019, 2020, then 2025), so the cadence is not consistent relative to ongoing development.
AI summary generated
Recent updates
v1.0.1
No release notes were provided for v1.0.1. The code changes are limited to how buffers are constructed inside the bytea parser and a package version bump.
v3.0.0
v3.0.0 restructures the library to expose a dedicated `decode` implementation and adds streaming `Encoder` and `Decoder` Transform classes for Postgres bytea COPY use cases. The release notes section is empty, so the published changes are not documented by the publisher.
Featuresv2.0.0
Release v2.0.0 was published on 2019-04-25, but the publisher provided no release notes. Without documented changes, developers should review the repository diff between the previous version and v2.0.0 to identify potential API, behavior, or dependency changes.
v1.0.0
No release notes were provided for v1.0.0, so the specific changes, fixes, and upgrade considerations are not documented in the publisher materials. Because this is a major version baseline (1.0.0), developers should review the actual code diff and test integration points before upgrading, since compatibility-affecting changes may be undocumented.