git.iko.soy/rowtype-yoga/purescript-yoga-fetch
on main help sign in
12 files changed+19−16
since splitsnapshots
unifiedsplit
README.md+7−2 bower.json−2 spago.dhall+1−1 src/Fetch/Impl/Impl.purs−3 src/Fetch.js → src/Yoga/Fetch/Fetch.js src/Fetch.purs → src/Yoga/Fetch/Fetch.purs+2−2 src/Yoga/Fetch/Impl/Impl.purs+3 src/Fetch/Impl/Node.js → src/Yoga/Fetch/Impl/Node.js src/Fetch/Impl/Node.purs → src/Yoga/Fetch/Impl/Node.purs+2−2 src/Fetch/Impl/Window.js → src/Yoga/Fetch/Impl/Window.js src/Fetch/Impl/Window.purs → src/Yoga/Fetch/Impl/Window.purs+2−2 test/Main.purs+2−2
README.md+7−2
@@ -1,8 +1,13 @@
1+**⚠️ DEPRECATION NOTICE**
2+
3+This library will not be developed further. Check out [`purescript-fetch`](https://github.com/rowtype-yoga/purescript-fetch) library, which is isomorphic and uses the new, native fetch library, is more type-safe and more user-friendly.
4+
5+
16# 📬 purescript-yoga-fetch
27
38A simple wrapper for the JavaScript fetch API.
49
5−**Note**: This is a fork of [milkis](https://github.com/justinwoo/purescript-milkis) ([MIT Licence](./LICENSE/milkis.LICENSE)).
10+**Note**: This is a fork of [milkis](https://github.com/justinwoo/purescript-milkis) ([MIT Licence](./LICENCE/purescript-milkis.LICENSE)).
611
712## Table of Contents
813* [usage](#usage)
@@ -13,4 +18,4 @@ A simple wrapper for the JavaScript fetch API.
1318
1419## Migrate from `purescript-milkis`
1520
16−`purescript-yoga-fetch` is a drop-in replacement for `purescript-milkis`. Just change the imports from `Milkis` to `Fetch`.
21+`purescript-yoga-fetch` is a drop-in replacement for `purescript-milkis`. Just change the imports from `Milkis` to `Yoga.Fetch`.
bower.json−2
@@ -18,12 +18,10 @@
1818 "purescript-aff-promise": "^v4.0.0",
1919 "purescript-arraybuffer-types": "^v3.0.2",
2020 "purescript-effect": "^v4.0.0",
21− "purescript-either": "^v6.0.0",
2221 "purescript-foreign": "^v7.0.0",
2322 "purescript-foreign-object": "^v4.0.0",
2423 "purescript-newtype": "^v5.0.0",
2524 "purescript-prelude": "^v6.0.0",
26− "purescript-strings": "^v6.0.0",
2725 "purescript-typelevel-prelude": "^v7.0.0",
2826 "purescript-unsafe-coerce": "^v6.0.0"
2927 }
spago.dhall+1−1
@@ -1,4 +1,4 @@
1−{ name = "fetch"
1+{ name = "yoga-fetch"
22, license = "MIT"
33, repository = "https://github.com/rowtype-yoga/purescript-yoga-fetch.git"
44, dependencies =
src/Fetch/Impl/Impl.pursdeleted−3
@@ -1,3 +0,0 @@
1−module Fetch.Impl (FetchImpl) where
2−
3−foreign import data FetchImpl ∷ Type
src/Fetch.js → src/Yoga/Fetch/Fetch.jsrenamed

The content is the same.

src/Fetch.purs → src/Yoga/Fetch/Fetch.pursrenamed+2−2
@@ -1,4 +1,4 @@
1−module Fetch
1+module Yoga.Fetch
22 ( URL(..)
33 , Fetch
44 , Response
@@ -40,7 +40,7 @@ import Effect.Aff (Aff)
4040import Foreign (Foreign)
4141import Foreign.Object (Object)
4242import Foreign.Object as Object
43−import Fetch.Impl (FetchImpl)
43+import Yoga.Fetch.Impl (FetchImpl)
4444import Prelude (class Eq, class Show, ($))
4545import Type.Row (class Union)
4646import Unsafe.Coerce (unsafeCoerce)
src/Yoga/Fetch/Impl/Impl.pursnew file+3
@@ -0,0 +1,3 @@
1+module Yoga.Fetch.Impl (FetchImpl) where
2+
3+foreign import data FetchImpl ∷ Type
src/Fetch/Impl/Node.js → src/Yoga/Fetch/Impl/Node.jsrenamed

The content is the same.

src/Fetch/Impl/Node.purs → src/Yoga/Fetch/Impl/Node.pursrenamed+2−2
@@ -1,7 +1,7 @@
1−module Fetch.Impl.Node
1+module Yoga.Fetch.Impl.Node
22 ( nodeFetch
33 ) where
44
5−import Fetch.Impl (FetchImpl)
5+import Yoga.Fetch.Impl (FetchImpl)
66
77foreign import nodeFetch ∷ FetchImpl
src/Fetch/Impl/Window.js → src/Yoga/Fetch/Impl/Window.jsrenamed

The content is the same.

src/Fetch/Impl/Window.purs → src/Yoga/Fetch/Impl/Window.pursrenamed+2−2
@@ -1,7 +1,7 @@
1−module Fetch.Impl.Window
1+module Yoga.Fetch.Impl.Window
22 ( windowFetch
33 ) where
44
5−import Fetch.Impl (FetchImpl)
5+import Yoga.Fetch.Impl (FetchImpl)
66
77foreign import windowFetch ∷ FetchImpl
test/Main.purs+2−2
@@ -8,8 +8,8 @@ import Data.String (null)
88import Effect (Effect)
99import Effect.Aff (attempt, launchAff_)
1010import Foreign.Object as Object
11−import Fetch as Fetch
12−import Fetch.Impl.Node (nodeFetch)
11+import Yoga.Fetch as Fetch
12+import Yoga.Fetch.Impl.Node (nodeFetch)
1313import Test.Spec (describe, it)
1414import Test.Spec.Assertions (fail, shouldEqual, shouldContain)
1515import Test.Spec.Reporter.Console (consoleReporter)