Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Latest commit

 

History

History
214 lines (108 loc) · 7.42 KB

CHANGELOG.md

File metadata and controls

214 lines (108 loc) · 7.42 KB

2.0.5 (2019-07-29)

Bug Fixes

2.0.4 (2019-07-24)

Bug Fixes

  • do not JSON.parse values already parsed by the postgres driver (55eaf6b)

2.0.3 (2019-07-24)

Bug Fixes

  • use bind parameter for json patches (fd6b5fa)

2.0.2 (2019-03-13)

Bug Fixes

  • pass query errors to client.release (035c5b5)

2.0.1 (2019-02-19)

Bug Fixes

  • enable updating uuid and uuid4 type fields (5bb9b98)

2.0.0 (2019-02-03)

Bug Fixes

  • update multi-update code to handle table aliasing (bcbe4d0)

chore

Code Refactoring

  • move connection handling into @knorm/knorm (db2e46e)
  • remove initClient and restoreClient options (4595588)

BREAKING CHANGES

  • This plugin now peer-depends on @knorm/knorm v2
  • Removed initClient and restoreClient options. Instead, use Connection.prototype.create and Connection.prototype.close for any logic to be run before creating and closing database connections.
  • These changes depend on v2 of @knorm/knorm

1.3.4 (2018-10-18)

Bug Fixes

  • json-patching: ignore undefined paths (789a98c)

1.3.3 (2018-10-15)

Bug Fixes

  • deps: update dependency pg to v7.5.0 (2219a72)

1.3.2 (2018-10-09)

Bug Fixes

1.3.1 (2018-10-03)

Bug Fixes

  • release the client if a one-off query fails (63cea63)

1.3.0 (2018-09-28)

Features

  • support { text, value } style raw queries (eb599cf)
  • support before and after query hooks (7c74c78)

1.2.2 (2018-09-25)

Bug Fixes

  • ignore limit and offset when unneeded (59f830f)

1.2.1 (2018-09-24)

Bug Fixes

  • handle first in Query.prototype.save (3fdd008)

1.2.0 (2018-09-23)

Bug Fixes

  • handle raw sql in JSON auto-casting (c86f402)

Features

  • support json-patching for updates (0d49635)

1.1.2 (2018-08-19)

Bug Fixes

  • support offset: 0 and limit: 0 (b370a4f)

1.1.1 (2018-08-13)

Bug Fixes

  • format primary fields to columns in update query (e1d2e1f)

1.1.0 (2018-07-19)

Features

  • allow parsing options in a connection string (ea1e625)

1.0.1 (2018-07-06)

Bug Fixes

  • ignore limit and offset on joined queries (87d9050)

1.0.0 (2018-06-27)

Bug Fixes

  • cast date and dateTime fields for update (bdf0bbd)
  • Field: use user-configured cast function if set (8ed93f8)
  • allow updating all rows or with a where clause (dc3a58f)
  • configure placeholder (25223dc)
  • do not directly manipulate knorm query props (982a412)
  • do not throw for already parsed JSON (f679604)
  • enable multi-updating for all current Knorm field types (ae003c6)
  • end transaction even if restoreClient fails (551bfd2)
  • explicitly handle @knorm/postgres options (5e3fc1f)
  • export the KnormPostgres constructor (c17e73c)
  • fix inadvertent sharing of clients (4b19ecf)
  • fix scoped transaction model names (3489b2f)
  • knorm => @knorm/knorm (31a0329)
  • move postgres-specific options from knorm (8bdcb8c)
  • no need to update placeholder (c8b860d)
  • parse json and jsonb fields after fetch (0ace985)
  • pass transaction to callback as parameter (f8d5314)
  • setBuilderOption => setOption (aaaeef9)

Features

  • add plugin name (51e3412)
  • hash all transaction models by name (9d32f76)
  • make connection config optional (a4edd86)
  • pass the client to the transaction callback (bdce3ea)
  • support ilike (4738a41)
  • support no-callback transactions (198e25c)