Skip to content

Releases: jagi/meteor-astronomy

2.7.3

24 Sep 08:15
Compare
Choose a tag to compare

2.7.2

20 May 15:11
Compare
Choose a tag to compare

2.7.1

04 Jan 23:57
Compare
Choose a tag to compare
  • Fix #671 by introducing several logging flags:
import { config } from "meteor/jagi:astronomy";

config.logs.deprecation = false; // Turn off deprecation warnings.
config.logs.nonExistingField = false; // Turn off warnings about non existing fields.
config.logs.classDuplicate = false; // Turn off class duplication warnings.
config.logs.typeDuplicate = false; // Turn off type duplication warnings.

2.7.0

27 Dec 12:40
Compare
Choose a tag to compare
  • Fix issue #694
    You can limit list of modified fields from the getModified and getModifiedValues methods to only include fields that will actually be saved using the save({ fields: [/* list of fields */] }) option.
beforeSave(e) {
  const doc = e.target;
  console.log(doc.getModified({ fields: e.fields }));
  console.log(doc.getModifiedValues({ fields: e.fields }));
}

2.6.3

28 Nov 22:52
Compare
Choose a tag to compare
  • Workaround for the issue #694. From now all the storage operation options are being passed to the event object. For example when calling the save method:
user.save({ fields: ["firstName"] });

The fields option will be available in the event handler.

events: {
  beforeSave(e) {
    if (
      e.fields &&
      e.fields.includes("firstName") &&
      e.currentTarget.isModified("firstName")
    ) {
      // Do something...
    }
  }
}

2.6.2

19 Oct 09:59
Compare
Choose a tag to compare
  • Revert to previous behavior before fix #689

2.6.1

18 Oct 21:09
Compare
Choose a tag to compare

2.6.0

18 Sep 23:21
Compare
Choose a tag to compare
Bump version to 2.5.8

2.5.8

28 May 23:51
Compare
Choose a tag to compare
  • Warn about type and class duplicates

2.5.7

11 Apr 21:05
Compare
Choose a tag to compare
  • the getValues method for the Enum types #669