-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meteor 3.0 migration #444
Meteor 3.0 migration #444
Conversation
Support for asynchronous mongo methods
…r-collection2 into meteor-3
@StorytellerCZ @jankapunkt @klablink The test app got updated to 3.0-alpha.19 and the tests are passing. The meteortesting:mocha in use now is 3.0.3-alpha300.11 thanks to @Grubba27. Good call on you to mention your work in the excel file. I'd not have known otherwise. |
Perfect, a beta would be awesome |
coming up... |
A new version |
2400 unit tests and 821 e2e tests pass in our product with this release 🎉 The only thing we needed to do is to remove schema-index package |
Ah finally someone reported in 🎉, thank you @alisnic. Did you run into any problems? Did you have to go through any extra steps to migrate? I was thinking of releasing a new beta where we're no longer reliant on the NPM version of simple-schema and instead use @jankapunkt fork. What do you think? |
Currently I'm using these. https://github.com/wekan/wekan/blob/main/.meteor/versions#L4-L8 |
I have also tried this Meteor 3 PR, forking it to wekan/packages, but it does not work with Meteor 2.14. |
After doing |
Thanks for reporting it, @xet7. I'll look it into it. |
@xet7 at the first look, the versions are a bit of a mess. You are using v2 of collection hook, while schema-deny and schema-index are at v1, you will first need to manually update to v3 and use the npm version of simple-schema. Once that is aligned the error should go away. As far as I can see it has nothing to do with this PR and the v4 betas. Update: @xet7 I have a PR for you soon. |
Some libraries like quave:synced-cron https://github.com/quavedev/meteor-synced-cron/blob/7212459895924a866f8e45e98026164d5f43fd15/synced-cron-server.js#L221 Check for the code to return and exit. Absence of this code leads to errors
I've a fork of |
@harryadel I will update tests on |
After updating to beta 7 I can't run tests anymore: => Started proxy.
/home/jankapunkt/.meteor/packages/meteor-tool/.3.0.0-beta.0.ag3n3e.4pp4++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/runners/run-all.js:170
Console.log("Error starting Mongo (".concat(left, " left): ").concat(error.message));
^
[TypeError: Console.log is not a function
at /home/jankapunkt/.meteor/packages/meteor-tool/.3.0.0-beta.0.ag3n3e.4pp4++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/runners/run-all.js:170:19
at runNextTicks (node:internal/process/task_queues:60:5)
at listOnTimeout (node:internal/timers:540:9)
at processTimers (node:internal/timers:514:7)
] |
Will you please push your latest changes here so I can test things out? |
What is happening? We don't have any unique settings in this repo, not on purpose, at least. Feel free to reach me in pvt as well if you need help sending the PR. Contributions are always welcome. |
Sorry if this is super besides the point, I just want to mention that I remember |
I tried and it works. The app works.
|
@minhna There're two breaking changes first the replacement of NPM simpl-schema where we now use @jankapunkt fork and static/dynamic loading. But otherwise it's perfectly compatible. |
Do we have another way to load collection2 in test mode? I added that import to one of my test files (which reported error) and it works with other files but I feel it's not the right way doing it. |
You can also dynamically load it |
|
A continuation of @klablink work
You can test the changes locally by updating the package version to
4.0.0-beta.7