Back to Meteor

Migrating to Meteor 2.0

guide/source/2.0-migration.md

0.8.3.12.7 KB
Original Source

Most of the new features in Meteor 2.0 are either applied directly behind the scenes (in a backwards compatible manner) or are opt-in. For a complete breakdown of the changes, please refer to the changelog.

The above being said, there is a thing to note.

<h3 id="hmr">Hot Module Replacement</h3>

Updates the javascript modules in a running app that were modified during a rebuild. Reduces the feedback cycle while developing so you can view and test changes quicker (it even updates the app before the build has finished). Enabled by adding the hot-module-replacement package to an app. React components are automatically updated by default using React Fast Refresh. Integrations with other libraries and view layers can be provided by third party packages. Support for Blaze is coming soon. This first version supports app code in the modern web architecture. (docs) #11117

<h3 id="free-cloud">Free tier for Meteor Cloud is back</h3>

Free deploy on Cloud: Deploy for free to Cloud with one command: meteor deploy myapp.meteorapp.com --free. (docs)

Deploy including MongoDB on Cloud: Deploy including MongoDB in a shared instance for free to Cloud with one command: meteor deploy myapp.meteorapp.com --free --mongo. (docs)

<h2 id="older-versions">Migrating from a version older than 1.12?</h2>

If you're migrating from a version of Meteor older than Meteor 1.12, there may be important considerations not listed in this guide (which specifically covers 1.12 to 2.0). Please review the older migration guides for details: