Mmanishjha-04

meteor/v3/fibers-to-async-promises

No description available

meteorv3migration
Public
128 executions

Run locally

npx codemod meteor/v3/fibers-to-async-promises

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.