Giter VIP home page Giter VIP logo

rxdart_codemod's Introduction

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

rxdart_codemod's People

Contributors

brianegan avatar

Stargazers

Rody Davis avatar Noah Coughlan avatar 脉脉不得语 avatar Ifiok Jr. avatar Andrew Chen avatar Jorge Coca avatar roastwind avatar Mariusz Baleczny avatar Tim Rijckaert avatar  avatar Petrus Nguyễn Thái Học avatar

Watchers

 avatar James Cloos avatar  avatar

rxdart_codemod's Issues

Version solving failed

When trying to run pub global activate rxdart_codemod , I get the following error:

Resolving dependencies... 
The current Dart SDK version is 2.4.0.

Because pub global activate depends on rxdart_codemod any which requires SDK version >=2.5.0 <3.0.0, version solving
  failed.

if I run flutter --version, I get the version to be:

Flutter 1.12.13+hotfix.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 0b8abb4724 (34 hours ago) • 2020-02-11 11:44:36 -0800
Engine • revision e1e6ced81d
Tools • Dart 2.7.0

I have no idea what the problem is, but I REALLY need to get my Observable.combineLastest2(first, second, (first, second) => [...first, ...second]) to the new StreamExtensions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.