rxdart_codemod 0.1.5 icon indicating copy to clipboard operation
rxdart_codemod: ^0.1.5 copied to clipboard

A collection of codemods to upgrade your RxDart code from one version to the next

rxdart_codemod #

Build Status codecov

A utility for updating RxDart code from 0.22.x to 0.23.x.

RxDart 0.23.x removes the Observable class by taking advantage of extension methods. This change requires many small refactors, mostly around calling slightly different constructors.

This codemod runs through your codebase and performs these refactors so you don't have to!

Installation #

rxdart_codemod provides an executable via dart global packages.

In your terminal:

pub global activate rxdart_codemod 

Usage #

cd path/to/your/code
pub global run rxdart_codemod:22_to_23

Arguments #

    --[no-]recursive    Apply updates to Dart files in the current directory and all subdirectories recursively.
                        (defaults to on)

    --[no-]classes      Use Stream classes instead of Rx factories. Example: "TimerStream" instead of "Rx.timer"
                        (defaults to off)

-h, --help              Prints the help menu
13
likes
70
pub points
58%
popularity

Publisher

verified publisher iconbrianegan.com

A collection of codemods to upgrade your RxDart code from one version to the next

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

analyzer, args, codemod, source_span

More

Packages that depend on rxdart_codemod