Releases: jagi/meteor-astronomy
Releases · jagi/meteor-astronomy
2.4.5
2.4.4
- Speed up multiple updates
- Add index for the
type
property
2.4.3
2.4.2
2.4.1
- Fix bug with lack of the Enum.js file
2.4.0
- Union type
import { Class, Union } from 'meteor/jagi:astronomy';
const StringOrNumber = Union.create({
name: 'StringOrNumber',
types: [String, Number],
cast(value) {
if (typeof value !== 'string') {
return String(value);
}
return value;
}
});
const Item = Class.create({
name: 'Item',
fields: {
strOrNum: StringOrNumber
}
});
2.3.13
- Fix email validation so that it accepts all allowed characters
- Option to validate only modified fields
user.firstName = 'John';
user.validate({
modified: true
});
- Do not set default values on fetch if the
Astro.config.defaults
flag is set tofalse
Astro.config.defaults = false;
User.findOne(); // Default values won't be set
2.3.12
- Fix console.warn error in MS Edge
- Add missing lodash import