Meteor v1.7.0.1 Release Notes

Release Date: 2018-05-29 // almost 6 years ago
  • 💥 Breaking changes

    • The aggregate method of raw Mongo collections now returns an AggregationCursor rather than returning the aggregation result directly. To obtain an array of aggregation results, you will need to call the .toArray() method of the cursor: ```js // With MongoDB 2.x, callback style: rawCollection.aggregate( pipeline, (error, results) => {...} );

    // With MongoDB 2.x, wrapAsync style: const results = Meteor.wrapAsync( rawCollection.aggregate, rawCollection )(pipeline);

    // With MongoDB 3.x, callback style: rawCollection.aggregate( pipeline, (error, aggregationCursor) => { ... const results = aggregationCursor.toArray(); ... } );

    // With MongoDB 3.x, wrapAsync style: const results = Meteor.wrapAsync( rawCollection.aggregate, rawCollection )(pipeline).toArray();

      [Issue #9936](https://github.com/meteor/meteor/issues/9936)
    
    ### Migration Steps
    
    * ⚡️ Update `@babel/runtime` (as well as other Babel-related packages) and 
      `meteor-node-stubs` to their latest versions:
      ```sh
      meteor npm install @babel/runtime@latest meteor-node-stubs@latest
    

    🔄 Changes

    • ⏪ Reverted an optimization introduced in Meteor 1.7 to stop scanning node_modules for files that might be of interest to compiler plugins, since the intended workarounds (creating symlinks) did not satisfy all existing use cases. We will revisit this optimization in Meteor 1.8. mozfet/meteor-autoform-materialize#43

    • ⚡️ After updating to Meteor 1.7 or 1.7.0.1, you should update the @babel/runtime npm package (as well as other Babel-related packages) to their latest versions, along with the meteor-node-stubs package, by running the following command:

      meteor npm install @babel/runtime@latest meteor-node-stubs@latest