M

meteor/v3/fibers-to-async-promises

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 assists in removing the use of Fibers from your Meteor codebase, refactoring your code to utilize the modern async/await pattern introduced in Meteor v3.

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

Fibers Removal

With the release of Meteor v3, Fibers are no longer necessary. The async/await syntax provides a cleaner and more modern approach to handling asynchronous operations in your code. This codemod will automatically refactor your code to replace Fibers with async/await.

Example Transformation

Future to Promise with async/await

Before:

ts

After:

ts

Ready to contribute?

Build your own codemod and share it with the community.