Frequently Asked Questions
What is Fibers?
Meteor was designed at a time when callback hell was a development issue, so the team decided it at the time to use fibers (coroutines) to make building applications much more straightforward with synchronous-looking code. The Meteor fibers implementation is based on node-fibers, which is no longer supported as of NodeJS v16.0.0.
The main reason for this migration is to remove the dependency on fibers and make Meteor compatible with the latest versions of Node.js.
For more information about fibers, you can check this talk from Ben Newman and this Stack Overflow answer.
What is the Meteor v3 release schedule?
Meteor 3 official version is already out! You can check our posts about it on the Forums and blog.
Will MongoDB Collection Methods be removed from the client?
No, we will not remove any MongoDB collection method from the client.
On the client side, all can remain the same. You can use both sync and async methods. All should continue working as they are.
For example:
// 2.x in the client side
const docs = MyCollection.find({ _id: '123' }).fetch();
// v3.0 in the client side
const docs = MyCollection.find({ _id: '123' }).fetch();
No changes are necessary. If you want to use the async methods to maintain isomorphic code, you can do it like this:
// 2.x in the client side
const docs = MyCollection.find({ _id: '123' }).fetch();
// v3.0 in the client side, this will work anywhere
const docs = await MyCollection.find({ _id: '123' }).fetchAsync();
Will MongoDB Collection Methods be removed from the server?
Yes, we will remove those MongoDB collection methods that do not end with *Async
.
You can only use the methods with the *Async
suffix on the server side.
For example:
// 2.x in the server side
Meteor.methods({
myMethod() {
const doc = MyCollection.findOne({ _id: '123' });
}
});
// v3.0 in the server side
Meteor.methods({
async myMethod() {
const doc = await MyCollection.findOneAsync({ _id: '123' });
}
});
Methods that will be only available in the client are: -findOne
; -insert
; -remove
; -update
; -upsert
;
If you leave any code using one of these methods in the server side, you will get an error, like this one below:
findOne is not available on the server. Please use findOneAsync instead.
When will React packages for Meteor be ready for version 3.0?
We consider React packages to be ready. You can check more information on the react page.
When will Blaze be ready for version 3.0?
Blaze 3 is out and compatible with Meteor 3. You can check the post about it here.
When will XYZ package be ready for version 3.0?
Meteor core packages are the responsibility of Meteor Software and are all being migrated. If you encounter issues with any of them, let us know, please open an issue in our repo.
This is the list of all core packages.
For those packages that are not in the core but are maintained by the community, we hope that the community can work on them, but if for some reason that is not possible, you can always ping us on Slack or in the Forums.