Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elm/http 2.0 #76

Open
chevinbrown opened this issue Apr 16, 2019 · 5 comments
Open

elm/http 2.0 #76

chevinbrown opened this issue Apr 16, 2019 · 5 comments

Comments

@chevinbrown
Copy link

I'm working with this architecture example & an existing project that is using elm/http 2.0...is there a straightforward path to upgrading that API?

I've been attempting, but continually getting stuck...will happily do the gruntwork if I can get an assist to get started. 😃

@berenddeboer
Copy link

It's easy, your functions simply return Cmd Msg, instead of a Request object.

@chevinbrown
Copy link
Author

@berenddeboer, yes you're right...but that signature change carries across all callsites and I'm unsure of the best path forward to map Cmd Msg, which is what I'm really curious about.
Maybe you can provide more insight for this particular change as it relates to this project?

@jsmith-dev
Copy link

@berenddeboer 'it's easy' - 3mo ago... anyone feel like posting a Gist / Ellie or a pull-request of what this update to http 2.0 might look like in practice?

@nikolisgal
Copy link

Well if you are not looking to completly migrate existing calls but rather use Http 2.0 in the project for your own different api calls while experimenting with the particular project there is allso the
https://package.elm-lang.org/packages/NoRedInk/http-upgrade-shim/1.0.0/Http-Legacy
which can make transition phase a peace of cake essentially allows you to have both versions on the project at the same time.

@dwayne
Copy link

dwayne commented Apr 23, 2024

@chevinbrown @jsmith-dev I have a completely new implementation that uses the latest elm/http among other things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants