Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.36 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.36 KB

NoRedInk/http-upgrade-shim

Helping you gradually upgrade your application to the elm/http 2.0 API!

The APIs between elm/http 1.0 and 2.0 changed a lot. This shim consumes elm/http 2.0 and exposes an API that's mostly compatible with elm/http 1.0

Upgrading elm/http from 1.0 to 2.0

  1. Use elm-json to find out if any packages are preventing you from upgrading.
$ elm-json install elm/[email protected]

-- NO VALID PACKAGE VERSIONS FOUND ---------------------------------------------

Because NoRedInk/elm-string-conversions 1.0.0 depends on elm/http
1.0.0 <= v < 2.0.0 and this project depends on elm/http 2.0.0,
NoRedInk/elm-string-conversions 1.0.0 is incompatible with this project.

And because this project depends on NoRedInk/elm-string-conversions 1.0.0,
no valid set of package versions could be found.
  1. Copy the source code of any of those packages directly into your codebase, and, remove the packages from your elm.json
  2. Upgrade to elm/http 2.0 elm install elm/http
  3. In your code base as well as the packages copied over, replace import Http with import Http.Legacy as Http
  4. Done!

Limitations

  • This doesn't support Http.Progress
  • This hasn't been tested

NoRedInk