Skip to content
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 support #26

Open
jamauro opened this issue Dec 18, 2023 · 4 comments
Open

Meteor 3.0 support #26

jamauro opened this issue Dec 18, 2023 · 4 comments

Comments

@jamauro
Copy link
Contributor

jamauro commented Dec 18, 2023

Hey @wildhart, any plans for an update for Meteor 3.0 now that it’s nearing a beta?

Would love to upgrade a project to Meteor 3.0 early next year.

Thanks again for making this package!

@wildhart
Copy link
Owner

Hi @jamauro thank you for your interest in this package. I'll try to get a Meteor 3 version published over the week or so.

Note to self: add a comment on this doc when done: https://forums.meteor.com/t/meteor-3-0-packages-compatibility/60985

@wildhart
Copy link
Owner

@jamauro I have a version which works with Meteor 2.8, but I'm strugging to get the 3.0 alpha releases to install. Feel free try it though:

  • create a packages folder within your project root
  • clone the meteor_3.0_async branch into it:
mkdir packages
cd packages
git clone -b meteor_3.0_async https://github.com/wildhart/meteor.jobs.git
cd ..

Your project might pick up the new wildhart-jobs.d.ts type defintions from that file, if not copy it into a @types folder in your project root.

As with the migration from Mongo sync to async, you'll have to go through your job code and convert all references from the old ...method() to the new await ...methodAsync() methods. I've deliberately renamed all the methods which have become async so it's clear you need to await them...

Please test thoroughly...

@JanMP
Copy link

JanMP commented Jul 17, 2024

The dependency on mongo needs to be updated

While selecting package versions:
   error: Conflict: Constraint [email protected] is not satisfied by mongo 2.0.0.
   Constraints on package "mongo":
   * [email protected] <- top level
   * mongo@~2.0.0 <- top level
   * [email protected] <- cultofcoders:redis-oplog 3.0.0-rc.1
   * [email protected] || 2.0.0-rc300.0 <- alanning:roles 4.0.0-alpha.3 <- janmp:sdui 1.0.0
   * [email protected] <- accounts-base 3.0.0
   * [email protected] || 2.0.0-rc300.2 <- tunguska:reactive-aggregate 2.0.0
   * [email protected] <- montiapm:agent 3.0.0-beta.5
   * [email protected]||2.0.0-alpha300.10 <- montiapm:meteorx 2.3.1 <- montiapm:agent 3.0.0-beta.5
   * [email protected] <- wildhart:jobs 1.0.9

@aboire
Copy link

aboire commented Jul 29, 2024

meteor 3 : you need to change the observe to observeAsync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants