Skip to content

Latest commit

 

History

History
177 lines (117 loc) · 9.71 KB

History.md

File metadata and controls

177 lines (117 loc) · 9.71 KB

v2.0.0

  • BREAKING: find hooks have been removed (due to Meteor 3 compatibility)
  • Async hooks are now supported
  • Meteor 3.0 is now the minimum required Meteor version

v1.4.0

  • Test suite minimum Meteor version is 2.12 to support new counts and to be fully compatible with Meteor 3
  • Meteor 3.0-beta.0 is now a supported version, but not functionality wise (need to upgrade count functions in tests)

v1.3.2

  • Updated zodern:types to v1.0.13 @storytellercz
  • Updated Meteor 3 supported version to 3.0-rc.10 for migration support, but will release full 3.0 supported version soon. @storytellercz
  • Fix loop in before.find when retuning false PR by rikvdlooi

v1.3.1

  • Updated zodern:types to v1.0.10 @storytellercz
  • Meteor 3.0-beta.0 is now a supported version, but not functionality wise (need to upgrade count functions in code) @storytellercz

v1.3.0

v1.2.2

v1.2.1

  • Revert change in default behavior of getDocs PR @KoenLav

v1.2.0

v1.1.4

  • Fix: Replace and remove functions search indexes before splicing PR @jankapunkt
  • Specify which fields of a document to pull into the before/after update hooks #256 @znewsham
  • Added full CI suite for GitHub PR @jankapunkt

v1.1.3

  • Resolve conflict in Insert with autoform that resulted in lost callback #1710 @cpravetz
  • Added GitHub action to run linter

v1.1.2

  • Updated dev dependencies

v1.1.1

  • Added support for MongoDB 5.x => insertOne instead of insert PR @KoenLav

v1.1.0

  • Add compatibility to Meteor 2.3 while also maintaining backward compatibility.
  • Testing now on Node 12 and 14

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

  • If an async upsert operation returns an error, funnel it to the after.insert hook, fixes #185
  • Add a note in the README concerning the use of find in update and remove, closes #191
  • Handle mongo object _id (with result, ops, etc) in after insert by extracting the _id from ops, fixes meteor/meteor#7409

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 #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

  • Setting fetchPrevious to false should not prevent cloning options and modifier for use in after update hooks, fixes #97 and #138

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 #109 (comment)
  • Add MIT license file

v0.7.11

  • Fix update and insert by string _id (#89 and likely #90)

v0.7.10

  • Add tests to verify direct update and insert by string _id (#89)
  • Set api.versionsFrom to 1.0.3

v0.7.9

  • Add tests to verify hook functionality against CollectionFS (#84)

v0.7.8

  • Fix instances of direct calls returning raw data instead of the massaged versions (such as insert returning an object instead of _id) (#86, #73)

v0.7.7

  • Remove bind polyfill (#77)

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)