Releases: jagi/meteor-astronomy
Releases · jagi/meteor-astronomy
2.7.3
2.7.2
2.7.1
- 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
- Fix issue #694
You can limit list of modified fields from thegetModified
andgetModifiedValues
methods to only include fields that will actually be saved using thesave({ 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
- 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
2.6.1
2.6.0
Bump version to 2.5.8
2.5.8
- Warn about type and class duplicates