This codemod automates the migration of your Meteor project to version 3, updating function calls and modernizing your codebase to their renamed functions.
You can find the implementation of this codemod in the studio here
Table of Contents
Overview
This codemod performs the following transformations:
- Converts synchronous function calls to their asynchronous counterparts.
- Renames functions according to new API changes in Meteor v3.
Examples
Example 1: Synchronous to Asynchronous Function Conversion
This codemod turns synchronous function calls into their asynchronous equivalents.
Before
ts
After
ts
Example 2: Asset Retrieval Update
This codemod updates asset retrieval functions to use their asynchronous versions.
Before
ts
After
ts
Example 3: Binary Asset Retrieval Update
Before
ts
After
ts
Example 4: Email Addition Update
This codemod updates the Accounts.addEmail function to its asynchronous version.
Before
ts
After
ts