Mmanishjha-04

meteor/v3/removed-functions

No description available

Legacy
meteorv3migration
Public
10 downloads
0 stars
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 helps remove deprecated functions like Promise.await and Meteor.wrapAsync from your Meteor codebase, aligning it with the new best practices introduced in Meteor v3.

You can find the implementation of this codemod in the Studio here.

Removed Functions

In v3, some functions were removed as they no longer make sense in the current context. This codemod will automatically refactor your code to remove these functions:

  • Promise.await: It is no longer necessary. You can use await directly in your code.
  • Meteor.wrapAsync: It is no longer necessary. You can use async/await directly in your code.

Example Transformations

Promise.await to async/await

Before:

ts

After:

ts

Meteor.wrapAsync to async/await

Before:

ts

After:

ts

Ready to contribute?

Build your own codemod and share it with the community.