Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Releases: dmfay/massive-js

v4.6.3

13 Jan 04:52
Compare
Choose a tag to compare

Decompose schemas are now properly applied to insert and update functions.

v4.6.2

08 Jan 22:42
Compare
Choose a tag to compare

Fixes an edge case where foreign tables can be double-counted if they inherit from other tabkes, preventing initialization.

v4.6.1

08 Jan 22:40
Compare
Choose a tag to compare

Security release since a vulnerability was found in earlier versions of marked, a transitive dependency of JSDoc.

v4.6.0

01 Jan 18:31
Compare
Choose a tag to compare

Massive now composes database APIs more intelligently. Now you can have a companies table and a db/companies script directory, and use both! db.companies will be a table with the usual set of query and persistence functions, but it's also a namespace for your scripts and you can db.companies.doSomethingComplicated().

There are only a couple of scenarios that won't work with this:

  • if a script or function would overwrite a default API function (like companies.findOne)
  • if a script and a function resolve to the same path

In both cases, you'll get an exception on spinup.

v2.7.3

26 Dec 18:07
Compare
Choose a tag to compare

Updates the deasync dependency to fix an error in older versions.

v4.5.0

12 Nov 06:50
Compare
Choose a tag to compare

New

  • Deep insert: now you can insert a record along with related rows in a single transaction!
  • Variadic functions are supported!

Deprecated

  • db.run will be removed in a future release. Update your code to use db.query instead.

v4.4.0

10 Oct 14:15
Compare
Choose a tag to compare

Adds the ability to toggle materialized views on or off (required if you're using a version of Postgres older than 9.3).

v4.3.0

29 Sep 04:32
Compare
Choose a tag to compare

The order option uses standard JavaScript object/array path notation for elements in JSON fields instead of the native Postgres traversers, making it consistent with JSON usage in criteria objects. Sort direction is also now case-insensitive.

v4.2.0

29 Sep 04:29
Compare
Choose a tag to compare

New feature: simpler decompose schemas: use an array of columns instead of a map if you aren't changing any names.

v4.1.0

17 Sep 20:40
Compare
Choose a tag to compare
  • Bulk insert can accommodate records with different key sets: [{field1: 'value1'}, {field2: 'value2'}] is valid assuming there are no NOT NULL constraints in play.
  • Empty array values are now handled properly in insert and update.