Skip to content

Latest commit

 

History

History
123 lines (76 loc) · 5.97 KB

History.md

File metadata and controls

123 lines (76 loc) · 5.97 KB

v1.0.2

  • Specify which fields of a document to pull into the before/after update hooks #256 @znewsham

v1.0.1

  • Fix bug in upsert hook after.update not returning manipulated fields #258 @SimonSimCity

v1.0.0

  • Modernization of the package
  • BREAKING CHANGE: Minimum required Meteor version is now 1.7.0.5

v0.9.1

  • Fixed selector not being able to be modified when String or MongoID is used
  • Add npm prune --production to publication script to prevent addition of dev only packages to the bundle. Fixes issue #246

v0.9.0

  • BREAKING CHANGE: Minimum required Meteor version is now 1.6.1
  • Fix unsafe selector in before.find and before.findOne when called without arguments. This is potentially a BREAKING CHANGE for those who are relying on the current behavior of selector in before.find and before.findOne
  • Align return values with original methods when a hook returns false
  • Always run find hooks when fetching documents for update, upsert and remove hooks
  • Add support for update/upsert hooks to run on a different selector based on custom options when used together with a find hook that manipulates the selector based on custom options
  • Fix Meteor.publish override, the previous override resulted in false positives of autopublish warning
  • Use spacejam for headless testing, will make headless testing work locally
  • Add support for the new modifiers $max, $min and $currentDate
  • No longer fetch documents when no hooks are defined
  • Fix conflict with sewdn:collection-behaviours package
  • Updated dependencies and node version in tests

v0.8.3

v0.8.1

  • Provide helper CollectionHooks.modify that gives the developer server access to the typically client-only LocalCollection._modify
  • Fix doc having only _id property in after.insert triggered by an upsert when using $set, fixes Meteor-Community-Packages#156

v0.8.0

  • Add support for upsert hooks. This is potentially a breaking change for those relying on before.update for upsert, as the behavior has changed to fire before.upsert instead, and either after.insert or after.update depending on the outcome of the upsert operation

v0.7.15

  • When creating a sub-class of Mongo.Collection, the constructor of the sub-class will now be able to inherit from the wrapped constructor
  • Throwing an error in an async before hook will pass the error to the callback as the first argument

v0.7.14

v0.7.13

  • Move getUserId utility function to globally accessible CollectionHooks.getUserId

v0.7.12

  • Fix typo in update advice, where the local variable docIds was declared as docsIds and thus docIds was being leaked into global scope, causing weird side-effects as experienced in Meteor-Community-Packages#109 (comment)
  • Add MIT license file

v0.7.11

v0.7.10

v0.7.9

v0.7.8

v0.7.7

v0.7.6

  • Use versionsFrom 0.9.1
  • Fix new Meteor.Collection so as not to have to re-assign prototype

v0.7.5

v0.7.4

  • Update for Meteor 0.9.1

v0.7.3

  • Update for Meteor 0.9
  • Store the value of this.userId from a Meteor.publish function in an environment variable so it is preserved across yielding operations

v0.7.2

  • Allow specifying hook options on a per-collection basis

v0.7.1

  • Fix direct implementation and associated tests (#46)

v0.7.0

  • Implement second parameter options for all hooks (coll.before.update(func, {option: 123}))
  • Add global CollectionHooks.defaults to specify options that apply to all or specific hooks
  • Add fetchPrevious option, which must be set to false to prevent fetching this.previous (which can also be set via global CollectionHooks.defaults) (#41)

v0.6.7

  • Eliminate unnecessary reduction in performance from iterating through individual documents when no hooks are defined. (#38)

v0.6.6

  • Add automated testing and additional tests for userId in publish functions. (#21)
  • Add functions for direct operations on underlying collection, ignoring hooks. (#3)
  • Update argument/input logic of hooks for better compatibility with other packages. (#24)