Meteor Astronomy Versions Save

Model layer for Meteor

2.7.3

4 years ago
  • Fix #697

2.7.1

5 years ago
  • 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

5 years ago
  • 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

5 years ago
  • 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

5 years ago
  • Revert to previous behavior before fix #689

2.6.1

5 years ago
  • Fix #689

2.6.0

5 years ago

2.5.8

5 years ago
  • Warn about type and class duplicates

2.5.7

6 years ago
  • the getValues method for the Enum types #669