Skip to content

Commit

Permalink
Small performance improvement in onStop & version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Aug 22, 2024
1 parent d46b0c2 commit 4d0228a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/publish_composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down
6 changes: 3 additions & 3 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
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'
})

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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 4d0228a

Please sign in to comment.