Change 2.7.4 migration guide to 2.8

This commit is contained in:
Frederico Maia Arantes
2022-08-12 11:23:33 +02:00
parent 51eae8f772
commit 63ac3356ce

View File

@@ -1,9 +1,9 @@
---
title: Migrating to Meteor 2.7.4
description: How to migrate your application to Meteor 2.7.4.
title: Migrating to Meteor 2.8
description: How to migrate your application to Meteor 2.8.
---
Meteor `2.7.4` introduce the new MongoDB Package Async API. For a complete breakdown of the changes, please refer to the [changelog](http://docs.meteor.com/changelog.html).
Meteor `2.8` introduce the new MongoDB Package Async API. For a complete breakdown of the changes, please refer to the [changelog](http://docs.meteor.com/changelog.html).
For this new async API, we have new methods like `findOneAsync`, which behaves exactly like the `findOne` method, but it now returns a promise that needs to be resolved to get the data.
@@ -64,9 +64,9 @@ The last option is easier for a quick fix. Just bear in mind that the function `
Also, remember to add the `ecmascript` package, otherwise the async won't work. The `ecmascript` package has the build plugin that compiles await and async to run within fibers.
<h2 id="older-versions">Migrating from a version older than 2.7.4?</h2>
<h2 id="older-versions">Migrating from a version older than 2.8?</h2>
If you're migrating from a version of Meteor older than Meteor 2.7.4, there may be important considerations not listed in this guide. Please review the older migration guides for details:
If you're migrating from a version of Meteor older than Meteor 2.8, there may be important considerations not listed in this guide. Please review the older migration guides for details:
* [Migrating to Meteor 2.7](2.7-migration.html) (from 2.6)
* [Migrating to Meteor 2.6](2.6-migration.html) (from 2.5)