diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eaaf71..425ba7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.8.10 +* Bump `versionsFrom` compat for Meteor 3.0 [@storytellercz](https://github.com/sponsors/StorytellerCZ) +* Update `meteortesting:mocha` to v3.2.0 [@storytellercz](https://github.com/sponsors/StorytellerCZ) +* Small performance improvement in `onStop` [@storytellercz](https://github.com/sponsors/StorytellerCZ) + ## v1.8.9 * Update `zodern:types` to v1.0.13 [@storytellercz](https://github.com/sponsors/StorytellerCZ) * Bump `versionsFrom` compat for Meteor 3.0-rc.0 [@storytellercz](https://github.com/sponsors/StorytellerCZ) diff --git a/lib/publish_composite.js b/lib/publish_composite.js index 46f095a..432e993 100644 --- a/lib/publish_composite.js +++ b/lib/publish_composite.js @@ -17,7 +17,7 @@ function publishComposite (name, options) { } this.onStop(() => { - publications.forEach(pub => pub.unpublish()) + for (const pub of publications) { pub.unpublish() } }) await Promise.all(publications.map(p => p.awaitPromises())) diff --git a/package.js b/package.js index 84d4766..b0ff7bb 100644 --- a/package.js +++ b/package.js @@ -2,7 +2,7 @@ Package.describe({ name: 'reywood:publish-composite', summary: 'Publish a set of related documents from multiple collections with a reactive join.', - version: '1.8.9', + version: '1.8.10', git: 'https://github.com/Meteor-Community-Packages/meteor-publish-composite' }) @@ -10,7 +10,7 @@ Package.onUse((api) => { Npm.depends({ 'lodash.isequal': '4.5.0' }) - api.versionsFrom(['1.8.3', '2.8.1', '3.0-rc.0']) + api.versionsFrom(['1.8.3', '2.8.1', '3.0']) api.use([ 'check', 'ecmascript', @@ -44,7 +44,7 @@ Package.onTest((api) => { 'mongo' ], ['client', 'server']) api.use([ - 'meteortesting:mocha@3.0.3-beta300.0' + 'meteortesting:mocha@3.2.0' ], 'client') api.use([ 'reywood:publish-composite',