Skip to content

Releases: jagi/meteor-astronomy

2.3.9

03 Dec 16:07
Compare
Choose a tag to compare
  • Temporary fix #556 for detecting $inc and $push modifiers on document update

2.3.8

01 Dec 14:21
Compare
Choose a tag to compare
  • Fix #557 not retrieving multiple raw values of nested fields

2.3.7

26 Nov 11:29
Compare
Choose a tag to compare
  • Fix #546 wrong merging of Date fields

2.3.6

22 Nov 00:21
Compare
Choose a tag to compare
  • Fix #538 - cast default values

2.3.5

21 Nov 13:34
Compare
Choose a tag to compare
  • Fix #541 deprecation warning during inheritance

2.3.4

17 Nov 12:48
Compare
Choose a tag to compare
  • #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 new Class.isNew method and fix a bug with wrong value of the doc._isNew property in the afterInit 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

13 Nov 21:01
Compare
Choose a tag to compare
  • Fix #534 a bug when non object values were unnecessary resolved

2.3.2

10 Nov 11:58
Compare
Choose a tag to compare
  • Fix resolving values bug when using the "fields" options

2.3.1

10 Nov 11:22
Compare
Choose a tag to compare
  • Fix a bug causing the softremove behavior not to work with version >=2.2.4

2.3.0

08 Nov 16:05
Compare
Choose a tag to compare
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;