mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Change 2.7.4 migration guide to 2.8
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user