Releases: balderdashy/waterline
v0.11.6
v0.11.4
- [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
0.11.3
v0.12.2
- [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 newselect
query modifier. - [ENHANCEMENT] Updated dependencies to remove warning messages when installing.
v0.12.1
Fixes an issue when searching by id
in schemaless mode. See #1326 for more details.
Thanks @akhan-netfore!
v0.11.2
Fixes an issue when searching by id
in schemaless mode. See #1326 for more details.
Thanks @akhan-netfore!
v0.12.0
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
v0.11.0
- 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 fromWLError
. - 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
- 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