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

    • [email protected]

      • 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. #11290
      • isobuild converts npm-discards.js to TypeScript. #10663
      • cordova 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
    • [email protected]

    • [email protected]

      • New package that updates React components using HMR. This is enabled by default in apps that have HMR enabled and use a supported React version. (docs) #11117
    • [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
    • ๐ŸŒฒ [email protected]

      • Updates dependencies and make debug available for use in non production environments. #11068

    ๐Ÿš€ Independent Releases

    • [email protected]

      • Fix issue with useTracker and Subscriptions when using deps. #306
      • Remove version constraint on core TypeScript package #308
    • 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.