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.
- We now support
Date
values asLiteral
s. This means you can escape and interpolate dates.
- The
SimplePostgres
functionsescape
andescapeLiteral
now clearly indicate that they always return astring
.
- Correctly bump version number this time.
- Upgrade to TypeScript 4.
- Export
SimplePostgres
type.
- Release this internal fork publicly, so we can use it as a dependency of other public packages. We'd still be interested in merging upstream later.
SimplePostgres.end
will shut down the associated connection pool and clear any internal timers. This should help tests exit cleanly.
- Fix broken package.
- Full native TypeScript support.
- Nested "transactions" using
SAVEPOINT
. - Native ECMAScript module support, including non-
default
exports for escaping and templating functions. - A number of new APIs, including one for parsing a URL into configuration options, which can then be further customized.
- Some configuration options may be slightly different if you use manual configuration.
- We now lint with
eslint
. - We now format code with
prettier
's default options. - Much of the code has been heavily overhauled.
- Test coverage has been updated to 100% line coverage using
c8
. - Escaping functions now always return
string
and nevernumber
.
- A few weird corner-cases should be better-defined, thanks to TypeScript.
- Unfortunately,
cancel
support has been removed, because I couldn't find any documented way to support it. (And because Faraday no longer uses it anywhere.)