Skip to content

Releases: jagi/meteor-astronomy

2.4.5

24 Jun 18:05
Compare
Choose a tag to compare
  • Decrease bundle size by limiting usage of lodash and rewriting imports to not include entire lodash but only functions that are used #622

2.4.4

24 Jun 18:03
Compare
Choose a tag to compare
  • Speed up multiple updates
  • Add index for the type property

2.4.3

05 Apr 09:14
Compare
Choose a tag to compare
  • Allow overriding the "type" property in selector for inherited classes #602

2.4.2

22 Mar 13:50
Compare
Choose a tag to compare
  • Pass meteor methods down the inheritance tree #596
  • Allow casting array elements for embedded field names
const user = new User();
// Now casting works also for array elements
user.set('phones.0', '123456789', {
  cast: true
});

2.4.1

12 Mar 18:56
Compare
Choose a tag to compare
  • Fix bug with lack of the Enum.js file

2.4.0

21 Feb 13:41
Compare
Choose a tag to compare
  • 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

14 Feb 14:14
Compare
Choose a tag to compare
  • 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 to false
Astro.config.defaults = false;
User.findOne(); // Default values won't be set

2.3.12

12 Jan 11:30
Compare
Choose a tag to compare
  • Fix console.warn error in MS Edge
  • Add missing lodash import

2.3.11

20 Dec 09:50
Compare
Choose a tag to compare
  • Fix #570 by not adding the _isNew property to classes without collection attached

2.3.10

16 Dec 12:04
Compare
Choose a tag to compare
  • Fix #564 a bug with not catching meteor method errors thrown on the client
  • Fix #551 by adding modules' aliases
  • Fix #560 and undeprecate _isNew also fixing the _isNew property in the beforeInit event