M

meteor/v3/renamed-functions

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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

Ready to contribute?

Build your own codemod and share it with the community.