Skip to content

Releases: haltcase/trilogy

v1.2.0

09 Jun 22:29
Compare
Choose a tag to compare
FEATURES
  • add initial Flow definitions (b9937b4)
  • add initial TypeScript definitions (3d9a2a5)
  • support multiple where clauses (ff481bb), closes #54

v1.1.0

24 Mar 17:13
Compare
Choose a tag to compare
BUG FIXES
  • findOne: error when no result and column provided (7394150)
FEATURES
  • drop fs-jetpack dependency (4a82ab6)

v1.0.0

16 Mar 07:06
Compare
Choose a tag to compare

We've officially arrived at 1.0.0!

But don't let that stop you from submitting issues if you come across problems,
or pull requests if there's something that can be improved or added.

Thanks for the help getting here!

BUG FIXES
  • incr|decr: do nothing with amounts of 0 (94dd9e0)

v1.0.0-rc.5

26 Feb 01:30
Compare
Choose a tag to compare
v1.0.0-rc.5 Pre-release
Pre-release

This is probably the last release candidate before 1.0.0!

...

I feel like I've said that before.

BUG FIXES
  • update: handle type definitions on update (eeda08c), closes #31

v1.0.0-rc.4

24 Feb 08:37
Compare
Choose a tag to compare
v1.0.0-rc.4 Pre-release
Pre-release

This is probably the last release candidate before 1.0.0!

BUG FIXES
  • native: ensure directory exists (f142cf4)

v1.0.0-rc.3

04 Feb 20:58
Compare
Choose a tag to compare
v1.0.0-rc.3 Pre-release
Pre-release

This release contains a breaking change regarding the return value of create().
You can follow the discussion leading up to this change in #21, #22, & #24.

Many thanks to @jonataswalker who put in a lot of effort for this one.

BUG FIXES
  • create: last object when auto-increment key (6c8acc1)
  • create: native vs sql.js last object handling (06cfca0)
  • model: sql.js not returning model on creations (06df94f)
  • tests.model: create() expected return value (baa6ad3)
FEATURES
  • create: return the created object (e551bbd)
PERFORMANCE
  • optimize findLastObject helper (e90cdff)
BREAKING CHANGES
  • create: The return value of create() is no longer the number of created objects. Instead, create() returns the created object.

v1.0.0-rc.2

17 Jan 08:33
Compare
Choose a tag to compare
v1.0.0-rc.2 Pre-release
Pre-release
BUG FIXES
  • only require sql.js if not using sqlite3 (123149d), closes #18

v1.0.0-rc.1

13 Jan 06:38
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release

🙌 Welcome to the very first official release candidate of Trilogy! 🙌

The next version will be v1.0.0 unless there are any significant issues discovered.

There have not been significant changes since v0.11.1.

BUG FIXES
  • enforcers: broken descriptor validation (459a485)
FEATURES
  • types: add Array and Object as valid types (421d079)

v0.11.1

10 Jan 08:51
Compare
Choose a tag to compare
v0.11.1 Pre-release
Pre-release

This is a small feature patch on top of v0.11.0 adding model() options that include the ability to set compound primary keys, multiple unique properties, and add timestamp properties (created_at and updated_at).

Note: the changes below are mostly from v0.11.0.

BUG FIXES
  • enforcers: verbose option validation (b000a5e)
  • findOne: sqlite3 response is an object (2f71f5f)
  • model: argument handling with no column (e76343c)
  • model: make model() async (e3d57f6)
  • native: fix affected row return value for native queries (2233a0f)
  • native: query return types (7519f9e)
  • query: return type should always be Promise (31cfed7)
  • models list type (f77aae5)
  • model existence check (5591860)
FEATURES
  • add hasModel(), dropModel(), and close() (00c0d66)
  • add raw() method for custom queries (2403e27)
  • change groupBy usages to group (772b252)
  • initial commit for rewrite (#14) (26f739f)
  • clear: add clear() method, safeguard remove() (ab671c1)
  • count: add ability to count tables in the database (de9a62d)
  • create: make create() return # rows affected (695753e)
  • model: add model options (dcc874e)
  • schema: add index as a valid column attribute (8873e34)
  • sql.js: add connection pool for managing sq.js backend (2df8381)
  • types: add 'timestamp' property type (6bd0710)
BREAKING CHANGES

Major breakage inbound. See #14 for more info and useful migration tips.

v0.10.0

17 Dec 21:50
Compare
Choose a tag to compare

🎉 Check out the new docs site at https://citycide.github.io/trilogy! Specifically, the super fresh API docs!

BUG FIXES
  • build: revert babel config to es2015 base (0e67048)
  • tests: fix error in deletion tests (#4) (85160d8), closes (#4)
  • tests: working directory discrepancy (3330d92)
FEATURES
  • addt'l createTable forms, coercion config, modularize, cjs export (d3bab02)
  • change schemaBuilder & queryBuilder to getters (4c82d3c)
BREAKING CHANGES
  • Any instances of retrieving knex's schema or query builder through trilogy must now use for example: db.queryBuilder.[method] instead of db.getQueryBuilder().[method]. The same applies to schema builder.
  • Any commonjs users requireing trilogy no longer need .default due to using commonjs export instead of Babel's export default fill.