Skip to content

Latest commit

 

History

History
438 lines (239 loc) · 24.5 KB

CHANGELOG.md

File metadata and controls

438 lines (239 loc) · 24.5 KB

3.4.0 (2023-02-06)

Features

  • generate info object for clients to pass as the DBDataSource type parameter (57e05d2)
  • generate update schemas derived from the insert schemas (e32b2d6)

3.3.1 (2023-01-22)

Bug Fixes

  • check for null in isEmptyObject (a8641c7)
  • correctly handle insert of an empty object at the query builder level (cde95b0)

3.3.0 (2022-12-13)

Features

  • overhaul everything again and add update schemas (83b012e)

3.2.2 (2022-12-10)

Bug Fixes

  • nullable columns aren't optional in select, rip (cc3408d)

3.2.1 (2022-12-10)

Bug Fixes

  • nullable columns are also optional (2e78241)

3.2.0 (2022-12-10)

Features

  • modify insert types based on updatability (9b2d4f7)

Bug Fixes

  • correctly type expression generated columns (da792a1)
  • correctly type generated id columns (073cfad)

3.1.0 (2022-12-10)

Features

  • disable eslint by default (a363713)

Bug Fixes

  • zod date function is lowercase (f60bbbc)

3.0.0 (2022-12-10)

⚠ BREAKING CHANGES

  • overhaul everything to be Zod-based
  • update everything for latest slonik
  • remove dependency on apollo

Features

  • overhaul everything to be Zod-based (d3d2166)
  • update everything for latest slonik (cf6417c)

Bug Fixes

  • circular, recursive, and out-of-order relationships (4a42a4b)
  • default value expression (a98e6e8)
  • differentiate select and insert types (6aa881a)
  • import sources are strings, not identifiers (aa1817b)
  • remove dependency on apollo (98d9ef5)

2.5.0 (2022-06-02)

Features

  • allow query options to be overridden at call time (e827992)
  • allow query options to be overridden at call time (#446) (be19e5d)

2.4.0 (2022-04-13)

Features

  • add zod-based schema parsing capability (51a2957)
  • generate columnTypes as const rather than Record (8bda964)

2.3.0 (2022-04-05)

Features

2.2.0 (2022-04-05)

Features

  • auto-prime other loaders (4cdd9a0)

2.1.3 (2022-04-01)

Bug Fixes

  • make multi-column loaders actually castable (b9b7006)
  • make multi-column loaders actually castable (#415) (0889674)

2.1.2 (2022-03-31)

Bug Fixes

  • respect column casing in multi-column matchers (#414) (538b793)
  • respect column casing in multi-loaders (4072efc)

2.1.1 (2022-03-30)

Bug Fixes

2.1.0 (2022-03-30)

Features

  • implement multi-loader data function (d34b561)
  • initial implementation of createMulti loader (7d286ce)
  • multi-column loaders (#410) (c55f2a5)

2.0.0 (2022-01-28)

⚠ BREAKING CHANGES

  • datasources: improve api (#389)
  • datasources: make normalizers editable on a DS-by-DS basis
  • datasources: make public methods protected
  • datasources: remove deprecated methods

Bug Fixes

  • datasources: improve api (#389) (be80d23)
  • datasources: make normalizers editable on a DS-by-DS basis (63ee861)
  • datasources: make public methods protected (820b295)
  • datasources: remove deprecated methods (df45398)

1.9.4 (2022-01-24)

⚠ BREAKING CHANGES

  • deps: upgrade yargs
  • deps: upgrade slonik dependencies
  • deps: upgrade apollo dependencies

Bug Fixes

Miscellaneous Chores

  • deps: upgrade apollo dependencies (80151dd)
  • deps: upgrade slonik dependencies (d6e8464)
  • deps: upgrade yargs (381ef0c)

1.9.3 (2021-09-14)

Bug Fixes

  • generator: use case-sensitive collations (741cfab)
  • generator: use case-sensitive collations (#333) (be6a05d)

1.9.2 (2021-09-13)

Bug Fixes

  • generator: use case-insensitive collations (824dc27)

1.9.1 (2021-07-21)

Bug Fixes

  • insert: return array when given an array of one input (a9a4a8c)
  • insert: return array when given an array of one input (#285) (c4ef47b)

1.9.0 (2021-07-21)

Features

  • finders overhaul (#283) (3a3b446)
  • datasource: create new FinderFactory interface (d78a139)
  • datasource: extend loader to infer multi for finders (02b5be8)

1.8.1 (2021-07-02)

1.8.0 (2021-05-06)

Features

  • add method for counting by groups of columns (c6afe19)

Bug Fixes

  • fix incorrect types for count method (0d4796d)

1.7.1 (2021-04-19)

Bug Fixes

1.7.0 (2021-04-16)

Features

  • allow getData to be overridden in loader creation (ebb2a1e)
  • allow getData to be overridden in loader creation (#200) (abbde04)

1.6.0 (2021-03-31)

Features

  • enable custom operators through use of sql tokens (0254308)
  • enable custom operators through use of sql tokens (#192) (c4a77db)

1.5.3 (2021-03-17)

Bug Fixes

1.5.2 (2021-03-16)

Bug Fixes

1.5.1 (2020-12-28)

Bug Fixes

  • correct get types to allow forUpdate (d526d07)

1.5.0 (2020-12-28)

Features

  • support FOR UPDATE in select queries (30a59ce)

Bug Fixes

  • re-throw error after printing the message (4879697)
  • sort enum members alphabetically (5c2cd88), closes #63

1.4.2 (2020-12-10)

Bug Fixes

  • pass options through to loaders (0514a3c)

1.4.1 (2020-12-05)

Bug Fixes

  • improve json/jsonb generics for functionality and readability (523850a), closes #48
  • parse timestamps in house (1238371), closes #45
  • remove extra options from count query (0fc3e72), closes #47

1.4.0 (2020-12-04)

Features

1.3.0 (2020-12-04)

Features

  • allow column type to be overridden (9f82a6c)
  • generate several utility types in prep for json/b support (7df7056)
  • improved key/column transformation (975e6e9)
  • stringify JSON objects (abb6a5b)
  • type parameters for json/b (c47e13b)

1.2.5 (2020-12-03)

Bug Fixes

1.2.4 (2020-12-02)

Bug Fixes

  • insertOne/insertMany AllowSql (8490f1c)
  • insertOne/insertMany AllowSql (#37) (4a52e86)

1.2.3 (2020-12-02)

Bug Fixes

  • (more or less) return expected type when given zero rows to insert (f81ee80), closes #33
  • always return await for async functions (57b7c4a)
  • apparently CI can't handle ||= wat (0aa6b80)
  • handle the case of a single empty row (6d6afcb), closes #34
  • make camel-cased column names work on insert (6b2886c), closes #30
  • only override expected if it's not set (e9ef675), closes #32
  • parenthesis fail... and also logic fail (1a03238)

1.2.2 (2020-12-01)

Bug Fixes

  • allow insertion of non-uniform rows (a4af9ab), closes #28
  • allow raw sql in inserts (a8c94ca), closes #27

1.2.1 (2020-12-01)

Bug Fixes

  • add RETURNING clause to INSERT query (80a703e), closes #24
  • pass through options in update (ec891c0), closes #23

1.2.0 (2020-12-01)

Features

Bug Fixes

  • allow 'undefined' for values in update/where (8ec3fec), closes #17
  • columnType is optional (09c0362), closes #2
  • nullable fields are optional when inserting (fba3e1c), closes #20
  • remove table identifier from UPDATE SET clause (6dbf930)
  • temporarily just snake case columns (b2c7004), closes #21

1.1.0 (2020-11-30)

Features

Bug Fixes

  • remove newline. it does nothing (855b63f)

1.0.0 (2020-11-29)

Features

  • add options to enable/disable type gen (bf95288)
  • basic count query to reproduce existing behavior (02bbf59)
  • cli and generate command (ca0e563)
  • delete query (ef7ff06)
  • disable generation of certain database objects (faa663a)
  • enable loading database url/schema from node-config (edc4e9a)
  • first pass w/ basic features (8fe269b)
  • generate type objects (3782842)
  • groupBy, orderBy, and having clauses (b92f1a5)
  • import DBDataSource as-is from fallingfish (8e8b783)
  • insert query (a4fcc45)
  • insert type generation (9ee2258)
  • overhaul DBDataSource (50ec4bc)
  • query comments on database objects (46ad4c6)
  • QueryBuilder with WHERE clause generation (22da2f2)
  • select query builder with a single smoke test (3b415a3)
  • stub bin command (d4e13ff)
  • update query (f3538d5)

Bug Fixes

  • conditions stuff (59f18f4)
  • correctly set expected default with one row (6c3953d)
  • enable callers to properly disconnect db (5850fc3)
  • implicit order dependency with custom types (6b52230)
  • inverted hasDefault logic (444f875)
  • LoaderFactory types (1019ae4)
  • make pg-typegen executable (00182f6)
  • move columnTypes to constructor arg (f179d89)
  • only warn about unknown type once (0f56466)
  • orderBy ASC/DESC API (222833a), closes #3
  • pre-emptively stop removing comments from output (1495e35)
  • prefer udt_name over data_type for array elements (cfb9859)
  • register table types (01cfd17)
  • remove unnecessary declare keywords (d2086ca)
  • require or for delete query (cc6d75b)
  • update stuff i missed before (db10afd)