Skip to content

Releases: porsager/postgres

v2.0.0-beta.1

29 Sep 08:54
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release
  • Fix wrong api usage errors being swallowed a891603
  • Fix connection config errors being swallowed 869ab9b
  • Add no_prepare option - fixes #93 and #76 ce14949

v2.0.0-beta.0...v2.0.0-beta.1

v2.0.0-beta.0

14 Jun 11:55
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

Potential Breaking changes

  • Undefined values throws 758b5ee
  • Treat postgres bigint as string by default 4958e80
  • Default to 10 connections instead of number of cpus e61e8f4
  • Don't force 1700 (numeric), postgres casts better - Fixes #41 844e7f2
  • Fix unsafe queries wrongly making named prepared statements d354edf

Deprecated

  • Rename timeout option to idle_timeout 90865cd

New

  • Typescript support (#8) c55304e
  • Add cursor support 4156c3f
  • Better errors - include origin, query, parameters 7845fc7
  • Update license to the Unlicense (#80) e8e86f8
  • Add connect_timeout with a default of 30 seconds 2e01c2b
  • Add columns to result - fixes #18 d89f824
  • Add PostgresError type fc6804a
  • Add async stack to end of error stack a74e015

Fixes

  • Fix #49 and improve sql.array usage 22651e3
  • Fix connection timeout leak 5e3fff8
  • Fix stale connections after initial error 807f983
  • Fetch os.username() optimistically - fixes #51 a519e18
  • Fix some errors not throwing for current query 87b0943
  • Fix CONNECTION_CLOSED false and no host + port if path is false 93ad859
  • Fix end timeout race condition 60dc30f
  • Register array types properly 7d3ce4b

v1.0.2...v2.0.0-beta.0

v1.0.2

21 Jan 20:33
Compare
Choose a tag to compare
  • Fix standard postgres user env var (#20) cce5ad7
  • Ensure url or options is not falsy bc549b0
  • Add support for dynamic password b2ab9fb
  • Fix hiding pass from options 3f76b98

v1.0.1...v1.0.2

v1.0.1

03 Jan 15:30
Compare
Choose a tag to compare
  • Fix #3 url without db and trailing slash 45d4233
  • Fix stream promise - resolve with correct result 730df2c
  • Fix return value of unsafe query with multiple statements 748f198
  • Fix destroy before connected f682ca1
  • Fix params usage for file() call without options e4f12a4
  • Various Performance improvements

v1.0.0...v1.0.1