Skip to content

Commit e02c9c0

Browse files
Merge pull request #306 from Meteor-Community-Packages/migrate/3.0
Migrate for Meteor 3.0
2 parents e09a88d + 8b787ab commit e02c9c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2756
-2135
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
],
88
"parserOptions": {
99
"sourceType": "module",
10+
"ecmaVersion": 2022,
1011
"ecmaFeatures": {
1112
"modules": true
1213
}

.github/workflows/codelint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Install Node.js
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v4
1818
with:
19-
node-version: '14.x'
19+
node-version: '20.x'
2020

2121
- name: Install Dependencies
2222
run: |

.github/workflows/testsuite.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
meteorRelease:
15-
- '--release 2.3'
16-
- '--release 2.8.1'
17-
- '--release 2.14'
18-
# Latest version
15+
- '--release 3.0.4'
1916
steps:
2017
- name: Checkout code
2118
uses: actions/checkout@v4
@@ -29,6 +26,7 @@ jobs:
2926
run: |
3027
curl https://install.meteor.com | /bin/sh
3128
npm i -g @zodern/mtest
29+
3230
- name: Run Tests
3331
run: |
3432
mtest --package ./ --once ${{ matrix.meteorRelease }}

History.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## v2.0.0
2+
3+
* BREAKING: find hooks have been removed (due to Meteor 3 compatibility)
4+
* Async hooks are now supported
5+
* Meteor 3.0 is now the minimum required Meteor version
6+
7+
## v1.4.0
8+
* Test suite minimum Meteor version is 2.12 to support new counts and to be fully compatible with Meteor 3
9+
* Meteor `3.0-beta.0` is now a supported version, but not functionality wise (need to upgrade `count` functions in tests)
10+
111
## v1.3.2
212
* Updated `zodern:types` to v1.0.13 [@storytellercz](https://github.com/sponsors/StorytellerCZ)
313
* Updated Meteor 3 supported version to `3.0-rc.10` for migration support, but will release full 3.0 supported version soon. [@storytellercz](https://github.com/sponsors/StorytellerCZ)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ test.before.find(function (userId, selector, options) {
195195
});
196196
```
197197

198-
__Important:__ This hook does not get called for `after.update` hooks (see https://github.com/Meteor-Community-Packages/meteor-collection-hooks/pull/297).
198+
__Important:__
199+
- The function used as `before.find` hook cannot be async
200+
- This hook does not get called for `after.update` hooks (see https://github.com/Meteor-Community-Packages/meteor-collection-hooks/pull/297).
199201

200202
--------------------------------------------------------------------------------
201203

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Meteor } from 'meteor/meteor'
22
import { Tracker } from 'meteor/tracker'
33
import { CollectionHooks } from './collection-hooks.js'
44

5-
import './advices'
5+
import './wrappers.js'
66

77
CollectionHooks.getUserId = function getUserId () {
88
let userId

0 commit comments

Comments
 (0)