Meteor v2.0 Release Notes
Release Date: 2021-01-20 // over 3 years ago-
๐ Changes
Highlights
๐ 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)โก๏ธ Hot Module Replacement (HMR): 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
๐ Meteor Version Release
-
meteor create my-app
now creates by default a project using React. If you want to create a new project using Blaze you should use the new option--blaze
.meteor create --react my-app
is still going to create a React project.meteor create --free
deploy for free to Cloud with one command:meteor deploy myapp.meteorapp.com --free
. (docs).meteor create --free --mongo
deploy including MongoDB in a shared instance for free to Cloud with one command:meteor deploy myapp.meteorapp.com --free --mongo
. (docs)isobuild
fixes a regression on recompiling node modules in different architectures. #11290isobuild
converts npm-discards.js to TypeScript. #10663cordova
ensures the pathname of the rootUrl is used in the mobile URL. [#11053](hhttps://github.com/meteor/meteor/pull/11053)- Add
file.hmrAvailable()
for compiler plugins to check if a file meets the minimum requirements to be updated with HMR #11117
-
- New package that enables Hot Module Replacement for the Meteor app and provides an API to configure how updates are applied. HMR reduces the feedback cycle while developing by updating modified javascript modules within the running application. (docs) #11117
- These packages have been updated to support HMR:
[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
,[email protected]
-
- New package that allows you to see build errors and server crashes in your browser during development. Requires the app to have HMR enabled. #11117
[email protected]
and[email protected]
- Extra parameters can now be added to reset password, verify e-mail and enroll account links that are generated for account e-mails. By default, these are added as search parameters to the generated url. You can pass them as an object in the appropriate functions. E.g.
Accounts.sendEnrollmentEmail(userId, email, null, extraParams);
. #11288
- Extra parameters can now be added to reset password, verify e-mail and enroll account links that are generated for account e-mails. By default, these are added as search parameters to the generated url. You can pass them as an object in the appropriate functions. E.g.
๐ฒ
[email protected]
- Updates dependencies and make debug available for use in non production environments. #11068
๐ Independent Releases
http
- It has been deprecated. #11068
๐ฅ Breaking changes
- ๐ฆ
http
package has been deprecated. Please start on migrating towards the fetch package instead.
Migration steps
โก๏ธ Simple run
meteor update
in your app.๐ฆ Great new features and no breaking changes (except one package deprecation). You can always check our [Roadmap](./Roadmap.md) to understand what is next.