meteor-astronomy

Model layer for Meteor

MIT License

Stars
606
Committers
22

Bot releases are hidden (Show)

meteor-astronomy -

Published by lukejagodzinski almost 8 years ago

  • Add Meteor methods' checks for the audit-argument-checks package
meteor-astronomy -

Published by lukejagodzinski almost 8 years ago

  • Fix #526 problem with not allowing executing Meteor methods on new document
meteor-astronomy -

Published by lukejagodzinski almost 8 years ago

  • Fix #525 security issue allowing to override invocation context
meteor-astronomy -

Published by lukejagodzinski almost 8 years ago

  • Fix not returning value from deprecated functions (getMethods, getMethod, hasMethod) in the methods module
meteor-astronomy -

Published by lukejagodzinski almost 8 years ago

  • New class property meteorMethods for defining Meteor methods that will be executed on the client and server like regular Meteor methods.
const User = Class.create({
  name: User,
  collection: Users,
  fields: {
    firstName: String,
    lastName: String
  },
  meteorMethods: {
    rename(first, last, invocation) {
      // invocation.isSimulation;
      // invocation.unblock();
      this.firstName = first;
      this.lastName = last;
      this.save();
    }
  }
});
const u = User.findOne();
// Possible ways of invocations.
u.rename('John', 'Smith', (err, result) => {
});
u.callMethod('rename', 'John', 'Smith', (err, result) => {
});
u.applyMethod('rename', ['John', 'Smith'], (err, result) => {
});

You can read more about Meteor methods in docs

  • methods have been renamed to helpers. You can still use the methods property but it's deprecated and will be removed in the future Astronomy releases.
meteor-astronomy -

Published by lukejagodzinski about 8 years ago

  • Fix the getChildren class method to get children on all depths
Parent.find(selector, {
  children: true // Get children, grand children and so on
});
Parent.find(selector, {
  children: 1 // Get only direct children
});
Parent.find(selector, {
  children: 2 // Get children and grand children
});
Parent.getChildren(/* default true */);
  • Add methods' checks for the audit-argument-checks package
  • Fix #513 infinite check loop of nested class for index definitions
meteor-astronomy -

Published by lukejagodzinski about 8 years ago

  • Fix #505 not casting nested fields before insert and update events
meteor-astronomy -

Published by lukejagodzinski about 8 years ago

New features:

  • Class level validation - having the Post class you can now validate by calling Post.validate(rawData) or Post.validateAll(rawData)
  • Ability to get check pattern - - having the Post class you can call const pattern = Post.getCheckPattern() to get pattern and use it in the check check(doc, pattern)

Fixes:

  • Fix #445 IE11 error with Number constructor
  • Fix not cloning options passed to the find() method
meteor-astronomy -

Published by lukejagodzinski about 8 years ago

  • Fix problem with incorrect values resolving in child classes
  • Add information about class name in ValidationError and resolveError method
meteor-astronomy -

Published by lukejagodzinski about 8 years ago

  • Consistent ID generation on client and server (works with the validated-method package)
  • Allow non ID selectors on the client when in simulation
  • Support nested indexes
  • By default clone class constructor argument and values being set using the set() method. Right now, if you don't want to clone by default, you can do so with the following code new Post(args, {clone: false}) and post.set(args, {clone: false}).
meteor-astronomy -

Published by lukejagodzinski over 8 years ago

BREAKING CHANGES!

  • Classes are secured by default
  • The children option set to true by default in the Class.find() method

NEW FEATURES!

  • Resolve optional field using function
  • Support for child classes in Class.update() and Class.remove() methods
  • Inheritance for non stored classes
  • Allow changing collection and typeField properties in child classes
  • The integer validator

... and bug fixes

meteor-astronomy -

Published by lukejagodzinski over 8 years ago

  • Pass validator name to the resolveError method
meteor-astronomy -

Published by lukejagodzinski over 8 years ago

meteor-astronomy -

Published by lukejagodzinski over 8 years ago

  • Enum getIdentifier() and getIdentifiers() methods
  • Replace "environment with "simulation" option
  • Allow updating only given fields
  • Add "secured" property
  • Bug fixes
meteor-astronomy -

Published by lukejagodzinski over 8 years ago

  • The "disableEvents" option in the find method
  • Put core utils into module
  • The getModifier method
  • Minimum Meteor cersion 1.3
  • Fix error with inserting undefined values
  • Fix error with not validating lists of documents
  • Other small fixes
meteor-astronomy -

Published by lukejagodzinski over 8 years ago

meteor-astronomy -

Published by lukejagodzinski over 8 years ago

meteor-astronomy -

Published by lukejagodzinski over 8 years ago

meteor-astronomy -

Published by lukejagodzinski over 8 years ago

meteor-astronomy -

Published by lukejagodzinski over 8 years ago