Releases: jagi/meteor-astronomy
Releases · jagi/meteor-astronomy
2.3.9
2.3.8
2.3.7
2.3.6
2.3.5
2.3.4
- #537 Improve casting empty string for required and optional fields
// Required fields:
item.set('number', '', {cast: true}); // Casts to 0
item.set('boolean', '', {cast: true}); // Casts to false
item.set('date', '', {cast: true}); // Does not cast
item.set('object', '', {cast: true}); // Does not cast
item.set('list', '', {cast: true}); // Does not cast
// Optional fields:
item.set('number', '', {cast: true}); // Casts to null
item.set('boolean', '', {cast: true}); // Casts to null
item.set('date', '', {cast: true}); // Casts to null
item.set('object', '', {cast: true}); // Casts to null
item.set('list', '', {cast: true}); // Casts to null
- #482 Deprecate using
doc._isNew
and introduce a newClass.isNew
method and fix a bug with wrong value of thedoc._isNew
property in theafterInit
event
const Item = Class.create({
name: 'Item',
collection: new Mongo.Collection('items'),
events: {
afterInsert(e) {
const doc = e.target;
Item.isNew(doc);
}
}
});
- #478 Allow options (transient, immutable, undefined) as the last argument of the
raw()
method. - Allow options (transient, immutable, undefined) as the last argument of the
get()
method. - #536 Extend child classes when extending parent class
- #475 Pass full path name in validation error object for double nested documents
- Small bug fixes and code cleaning
2.3.3
2.3.2
- Fix resolving values bug when using the "fields" options
2.3.1
- Fix a bug causing the
softremove
behavior not to work with version >=2.2.4
2.3.0
user.set({
firstName: 123 // Will be casted to the "123" string
}, {
cast: true
});
const user = new User(userFormData);
user.save({
cast: true
});
const user = new User(userFormData);
user.validate({
cast: true
});
const addressData = {
state: 'CA'
};
// Will not override the "city" property in address.
user.set('address', addressData, {
merge: true
});
- Allow turning off default values in the
find()
method
const users = User.find(selector, {
defaults: false
}).fetch();
- Allow turning off the resolve feature for performance improvements
Astro.config.resolving = false;