Skip to content

Latest commit

 

History

History
460 lines (241 loc) · 8 KB

CHANGELOG.md

File metadata and controls

460 lines (241 loc) · 8 KB

CHANGELOG

Emoji Cheatsheet

  • ✏️ doc updates
  • 🐛 when fixing a bug
  • 🚀 when making general improvements
  • ✅ when adding tests
  • ⬆️ when upgrading dependencies
  • 🎉 when adding new features

Version History

v24.0.0

  • ⬆️ Update Drizzle to latest version

v23.0.0

  • ⬆️ Update Drizzle to latest version

v22.0.0

  • ⬆️ Update Drizzle to latest version

v21.2.0

  • 🚀 Add support for suppressing limit() in List with Infinity value

v21.1.0

  • 🚀 Stricter TS config to keep upstream TSC happy

v21.0.1

  • 🐛 Fix typing on sleep

v21.0.0

  • ⬆️ Update Drizzle to latest version

v19.2.1

  • 🐛 Count function was returning a string

v19.2.0

  • 🚀 Throw 404 error on commit that doesn't update any rows

v19.1.0

  • 🚀 Add support for GeometryZ

v19.0.0

  • ⬆️ Update PeerDep to drizzle-kit@22

v18.0.0

  • ⬆️ Update PeerDep to drizzle-kit@21

v17.2.1

  • 🐛 Fix bug where a normal insert wouldn't return a value

v17.2.0

  • 🚀 Allow upsert behavior to be defined on generate

v17.1.0

  • 🚀 Add generic .count() function

v17.0.1

  • ⬆️ Update Core Deps

v17.0.0

  • ⬆️ Update to drizzle-orm@0.30 which uses dates as strings for postgres.js

v16.0.0

  • 🎉 Remove JSON Schema output now that we use drizzle-typebox

v15.13.0

  • 🎉 Add Order Enum

v15.12.0

  • 🚀 Expose key helper fns

v15.11.1

  • 🚀 Simpler type defs

v15.11.0

  • 🐛 Fix query.order in list API

v15.10.2

  • ⬆️ Update Core Deps

v15.10.1

  • 🚀 more Types

v15.10.0

  • 🚀 Add TS strict mode

v15.9.0

  • 🐛 Set no-verify option in pgStructure as it uses node-pg

v15.8.0

  • 🚀 Setup Optional SSL Param for connection settings

v15.7.0

  • 🚀 Input type is now properly typed
  • 🚀 Not found error is now generic
  • ✅ Write basic test scaffolding

v15.6.1

  • Date => date-time

v15.6.0

  • Time type objects are now always strings, not unix epochs

v15.5.0

  • Perform migration before schema dump

v15.4.0

  • Custom migrationsFolder path through opts

v15.3.0

  • Handle empty table gracefully in stream mode

v15.2.0

  • Update Return Type

v15.1.1

  • Remove debug code

v15.1.0

  • Add toDriver for postgis integration

v15.0.5

  • Add npm ignore

v15.0.4

  • Just include types

v15.0.3

  • Just include types

v15.0.2

  • Just include types

v15.0.1

  • Add TS build step to release

v15.0.0

  • Update from slonik to drizzle and migrate to TS

v14.0.3

  • 🐛 Fix version

v14.0.2

  • 🐛 Allow false value as default when using Params.boolean

v14.0.1

  • 🐛 Consistent TZ

v14.0.1

  • ⬆️ Update Core Deps

v14.0.0

  • ⬆️ TimeStamps are now formatted as integer by default to align with Slonik Defaults

v13.3.0

  • ⬆️ Update core deps

v13.2.2

  • ⬆️ Fix null check

v13.2.1

  • ⬆️ Fix Batch-Error bug

v13.2.0

  • ⬆️ Update core deps

v13.1.0

  • 🚀 Add support for json[] and jsonb[]

v13.0.1

  • 🐛 Don't write internal schema props that AJV will reject

v13.0.0

  • 🎉 Automatically determine Primary Key (no longer always set to id)

v12.0.0

  • ⬆️ slonik@32 peerDependency

v11.6.2

  • 🐛 Fix string parsing for Params.string
  • 🐛 Fix string parsing for Params.number
  • 🐛 Fix string parsing for Params.integer

v11.6.1

  • 🐛 Fix string parsing for Params.boolean

v11.6.0

  • 🚀 Merge new schema with existing schema files to allow users to add non-automated key/values

v11.5.0

  • 🎉 Add support for writing view definitions to disk
  • 🚀 Remove columns from disk when they no longer exist in the database

v11.4.0

  • 🎉 Add support for Classes that should mirror a view

v11.3.0

  • 🚀 Remove internal _res property in favour of Schema.from
  • 🎉 Add Schema.from as helper for returning a JSON Schema for a class/instance

v11.2.0

  • 🎉 Add static Generic.commit fn

v11.1.0

  • 🎉 Add support for inserting/updating GeoJSON objects automatically

v11.0.0

  • ⬆️ slonik@31 peerDependency

v10.3.1

  • 🚀 internal improvements when patching via commit

v10.3.0

  • 🚀 Add light function arg checks to ensure pool/id are valid

v10.2.0

  • 🚀 Add error handling for duplicate constraint on commit

v10.1.0

  • 🚀 Add error handling for duplicate constraint on generate

v10.0.1

  • 🐛 this._fields is no longer a populated field

v10.0.0

  • 🚀 Use @openaddressses/batch-error to remove pin to @openaddresses/batch-schema

v9.4.0

  • 🚀 Add basic support for PostGIS Geometry type

v9.3.0

  • 🎉 Automatically generate description property from COMMENT

v9.2.0

  • 🐛 Throw a human readable error if the user passes properties to update that don't exist in the db
  • ✅ Tests for properties that don't exist in the database
  • ✅ Easier to manage pool.schemas tests

v9.1.0

  • 🐛 non-json arrays of any kind would fail to be insert/updated
  • ✅ Add basic Schema#write test

v9.0.0

  • 🚀 peerDep for @openaddresses/batch-schema@9

v8.1.0

  • :todo: Optionally write JSON Schemas to a given directory

v8.0.0

  • 🎉 Pool is now a custom wrapper around a slonik pool that provides JSON Schemas for each table
  • 🎉 Remove all _res and _patch as these are now automatically generated
  • 🎉 Pools are now stored when an object is created and as such many endpoints no longer require a pool arg

v7.3.0

  • 🎉 Add basic concept for parsing SQL query parameters

v7.2.2

  • 🐛 Fix sql type check when value is null

v7.2.1

  • 🐛 Fix sql type check

v7.2.0

  • 🎉 Add configurable retry for Pool.connect

v7.1.1

  • ⬆️ Update base deps

v7.1.0

  • 🎉 Add ability to patch/commit fields which are not present in the JSON schema

v7.0.1

  • 🐛 slonik.createPool now returns a promise

v7.0.0

  • ⬆️ Slonik@30
  • 🚀 Allow sql values to be passed through unchanged

v6.0.0

  • ⬆️ Slonik@29

v5.1.0

  • 🎉 Add support for Generic.Pool connection configuration

v5.0.1

  • 🐛 Fix NULL insertions
  • ⬆️ Update base deps

v5.0.0

  • 🚀 Move the _fields generation to the deserialize function to ensure that overriding the default generate or from functions still benefit from the default commit fn
  • 🚀 Move list responses to deserialize_list

v4.2.0

  • 🚀 Optimize commit SQL if patch param is passed

v4.1.1

  • 🐛 Return nbase on generate

v4.1.0

  • 🎉 Add support for automatically commiting JS Timestamps (ms => s)
  • ✅ Add Dockerfile & Docker Compose for running tests on CI
  • ⬆️ Update base deps

v4.0.0

  • ⬆️ @openaddresses/batch-schema >= 4 now required

v3.4.1

  • 🐛 Minor test updates to allow sequential test runs for GH Actions

v3.4.0

  • 🎉 Add generic.generate

v3.3.0

  • 🎉 Add generic.commit

v3.2.1

  • 🚀 Add automated npm releases

v3.2.0

  • 🎉 Add the ability to from & delete via a custom column (default: id)
  • 🎉 Add a static delete() function

v3.1.1

  • 🐛 ensure originalError is present when performing error code checks

v3.1.0

  • 🎉 Add .clear() function to allow clearing all entries in a table

v3.0.0

  • 🚀 Update ES Module System

v2.0.0

  • ⬆️ slonik@28 peerDependency

v1.3.0

  • 🚀 Fix ESLint errors and remove unused fn params

v1.2.1

  • ⬆️ Update base deps

v1.2.0

  • 🎉 Add support for object streams

v1.1.0

  • 🎉 Add ability for generic list(<pool>, <query>) fn
  • ✅ Framework testing strategy

v1.0.0

  • 🚀 Intial Release