Meteor v2.4 Release Notes
Release Date: 2021-09-15 // over 2 years ago-
Highlights
- ๐ Typescript updated to v4.3.5
- ๐ฆ Email package now allows setting
Email.customTransport
to override sending method. - ๐ Use
createIndex
instead of_ensureIndex
to align with new MongoDB naming. - โฌ๏ธ Apollo skeleton has been upgraded for Apollo server v3
- โก๏ธ
reify
has been updated to v0.22.2 which reduces the overhead ofimport
statements and some uses ofexport ... from
, especially when a module is imported a large number of times or re-exports a large number of exports from other modules. PRs 1, 2 - Meteor NPM installer is now available for all platforms.
- ๐ DDP server now allows you to set publication strategies for your publications to control mergebox behavior
- ๐ On Windows Meteor should no longer be hanging on commands
Migration steps
- Replace all usage of
collection._ensureIndex
withcollection.createIndex
. You only need to rename the method as the functionality is the same. ๐ฆ 2. If you are using a well known service for the email package switch to usingMeteor.settings.packages.email
settings instead ofMAIL_URL
env variable. Alternatively you can utilize the newEmail.customTransport
function to override the default package behavior and use your own. Read the email docs for implementation details.
๐ Meteor Version Release
โก๏ธ Skeletons dependencies updated
-
meteor show
now reports if a package is deprecatedreify
update to v0.22.2 which bring optimizations for imports. PRs 1, 2- Apollo skeleton now uses Apollo server v3 - migration guide
- Upgraded
chalk
to v4.1.1 - Typescript updated to v4.3.5
METEOR_SETTINGS
is now accepted an all modes- Native file watchers are now disabled on Windows for many file-intensive actions (like,
create
,update
,build
etc.), this solves an issue with hanging Meteor commands on Windows
-
- npm dependencies have been updated
- Added hook to change runtime config delivered to the client app, read more
- Added hook to get notified when the app is updated, read more
@vlasky/[email protected]
- Added
addUpdateNotifyHook
that gets called when runtime configuration is updated
๐ฒ
[email protected]
- Switch from
cli-color
tochalk
to have the same dependency as meteor-tool - Fix detecting eval
- Copy over code from
Meteor._debug
toLog.debug
which will be deprecated in the future
- Switch from
-
- Modernized package code
- Add alternative API function that you can hook into to utilize your own sending method:
Email.customTransport
. Read the docs - Use
Meteor.settings
for easy setup to sending email via known providers. Read the docs
-
- One of three different publication strategies can be selected for any Meteor publication - SERVER_MERGE, NO_MERGE and NO_MERGE_NO_HISTORY. These control the behaviour of the Meteor mergebox, providing a compromise between client-server bandwidth usage and server side memory usage. See PR or the documentation for more details.
-
- Add
createIndex
as a collection function (in MongoDB since MongoDB v3). This is a new name for_ensureIndex
which MongoDB has deprecated and removed in MongoDB 5.0. Use of_ensureIndex
will show a deprecation warning on development.
- Add
-
- Migrated usage of
_ensureIndex
tocreateIndex
- Migrated usage of
-
- Migrated usage of
_ensureIndex
tocreateIndex
- Migrated usage of
-
- Migrated usage of
_ensureIndex
tocreateIndex
- Migrated usage of
-
- Migrated usage of
_ensureIndex
tocreateIndex
- Migrated usage of
-
- Migrated usage of
_ensureIndex
tocreateIndex
- Migrated usage of
-
- Added login handler hook, like in the Google package for easier management in React Native and similar apps. PR
๐ง
[email protected]
- Migrated usage of
_ensureIndex
tocreateIndex
- Migrated usage of
-
- Version bump to ensure changes from server & client runtime get propagated.
-
- Add option to temporarily replace
Tinytest.add
orTinytest.addAsync
byTinytest.only
orTinytest.onlyAsync
so only the tests added usingonly*
are going to be executed.
- Add option to temporarily replace
-
- Support for
Tinytest.only
andTinytest.onlyAsync
- Support for
-
- Update
reify
to0.22.2
- Update
-
@babel/[email protected]
- Code modernization
- Improved error handling
-
- Added tests
- Code modernization
-
@babel/[email protected]
-
- Updated dependencies
[email protected]
[email protected]
-
- Added
forEach
iterator to be more in-line with the ES use for iterations.each
is now deprecated, but will remain supported.
- Added