Skip to content

Releases: balderdashy/waterline

v0.11.6

12 Nov 10:34
Compare
Choose a tag to compare

v0.11.4

05 Oct 20:43
Compare
Choose a tag to compare
  • [BUG] Fix auto-updating attributes to take into account custom column names. See #1360 for more details. Thanks to @jenjenut233 for the patch!

v0.11.3

05 Oct 20:41
Compare
Choose a tag to compare
v0.11.3 Pre-release
Pre-release
0.11.3

v0.12.2

08 Jun 23:29
Compare
Choose a tag to compare
  • [BUG] Fix issues with compatibility in alter auto-migrations. This was causing corrupted data depending on the permutation of adapter version and Waterline version. This should be fixed in the SQL adapters that support the new select query modifier.
  • [ENHANCEMENT] Updated dependencies to remove warning messages when installing.

v0.12.1

19 Mar 00:07
Compare
Choose a tag to compare

Fixes an issue when searching by id in schemaless mode. See #1326 for more details.

Thanks @akhan-netfore!

v0.11.2

19 Mar 00:07
Compare
Choose a tag to compare

Fixes an issue when searching by id in schemaless mode. See #1326 for more details.

Thanks @akhan-netfore!

v0.12.0

18 Mar 17:57
Compare
Choose a tag to compare

Finally adds support for projections! 🚀 🌟 🤘

You now have support for using .select() in both top level and association queries. Yeah it took until 2016 to get it added but we wanted to age it so it taste better.

User.find()
.select(['name', 'age'])
.populate('pets', { select: ['breed', 'name'] })
.exec(function(err, users) {});

The other big change is the ability to pass arbitrary data down to custom adapters. You have a few ways to do this:

First if you need to define custom values on an attribute for use with migrations for example you can add a meta key to an individual attribute and the values will be passed through when the schema is registered.

attributes: {
  name: {
    type: 'string',
    meta: {
      size: 256
    }
}

The other option is to pass meta values directly to a custom adapter function. Some examples are shown in #1325.

For a full roundup of changes view the updated Changelog.

v0.11.1

16 Mar 16:33
Compare
Choose a tag to compare
  • Better handle fatal errors in validations.

See Changelog for more info.

v0.11.0

05 Feb 22:13
Compare
Choose a tag to compare
  • Removed the second argument from .save() commands that returns the newly updated data that has been re-populated. This should increase performance and limit memory.
  • Errors coming from .save() now return actual Error objects that have been extended from WLError.
  • Fixes issue with dynamic finders not understanding custom columnName attributes.
  • Auto timestamps column names are now overridable.
  • Add support for an array of values to be passed into populate. ex .populate(['foo', 'bar']).
  • Ensures that createdAt and updatedAt are always the exact same on create.
  • Fixed issue with booleans not being cast correctly for validations.
  • Fixed bug where dates as primary keys would fail serialization.
  • Update support and patch some bugs in Many-To-Many through associations.

See the Changelog for more details.

v0.9.11

20 Dec 00:35
Compare
Choose a tag to compare
  • Fixes issue with attribute being removed when columnName is the same as the attribute. Thanks @cjsmith
  • Adds a .paginate method to the deferred query object. See #187 Thanks @m3talsmith
  • Adds a size schema attribute. See #194 Thanks @arielyang
  • Updated Readme to include documentation on sorts. Thanks @TheFuzzy
  • Fixed error handing with promises on Query objects. See #191 Thanks @leedm777
  • Allows validations to be functions. See #161 Thanks @ragulka
  • Updates minimum Anchor version to 0.9.7