A JavaScript date/time output parser for PostgreSQL, which converts Postgres date and time strings into JavaScript Date objects while aiming to match Postgres behavior and preserve accuracy. Useful when you need reliable parsing of Postgres output into JS Date values (supported for Postgres versions 9.6 and later).
Project status
- The source appears maintained, with an upstream push recorded on 2026-02-08, even though the latest documented version updates in the provided feed are from 2021.
- The apparent update cadence is low based on the available version history, with v2.1.0 dated 2021-06-30, then v2.0.1 on 2021-03-09, and v2.0.0 on 2020-10-29.
AI summary generated Today
Recent updates
v2.1.0
6/30/2021Release notes for v2.1.0 are missing. The code diff shows the package gaining TypeScript declaration files (index.d.ts) plus type-check tests (tsd), and the test script now runs tsd in addition to standard and tape.
Featuresv2.0.1
3/9/2021v2.0.1 contains no release notes, but the code diff shows a substantial rewrite of the Postgres date parsing logic in index.js. The previous regex-based implementation was replaced with a new custom parser class (PGDateParser) that manually tokenizes and parses the input string, with new timezone, sign, BC, and infinity handling paths.
v2.0.0
10/29/2020Release v2.0.0 was published on 2020-10-29, but no release notes were provided by the publisher. As a result, the changes, potential breaking behavior, and migration requirements cannot be determined from the available documentation.
v1.0.7
8/28/2020No release notes were provided for v1.0.7. The code changes are limited to timezone offset handling in the date parsing logic, including a new special-case for ISO strings ending with +00 and a guard to avoid applying an offset when it is zero.
v1.0.6
8/5/2020Release v1.0.6 updates the core date parsing behavior for Postgres timestamp outputs, specifically how fractional seconds are converted into JavaScript milliseconds. The release notes are empty, so the change is only discoverable by inspecting the code diff and the updated test expectations.
v1.0.5
4/13/2020v1.0.5 updates the date parsing logic, CI configuration, and a dev dependency version. There are no release notes provided, so the key behavior change is only discoverable from the code diff.
v1.0.4
4/3/2019Release v1.0.4 updates the postgres-date parser implementation and its tests. The release notes field is empty, so the actual behavior changes come entirely from the code diff, mainly around how BC years and years in the 0-99 range are converted into JavaScript Date values.
Breakingv1.0.3
7/6/2016v1.0.3 makes internal changes to how ISO-like dates are parsed and how time zone offsets are recognized. There are no published release notes for this version, so consumers must rely on the actual code diff to understand behavioral changes.
Breakingv1.0.2
5/19/2016Release v1.0.2 includes a small code change to the date parsing logic and an accompanying test update. No release notes were provided, so changes are inferred from the actual diff.
Featuresv1.0.1
12/31/2015Release v1.0.1 was published, but no release notes were provided by the publisher. As a result, there is no documented information about new features, bug fixes, security updates, or breaking changes in this release.