Skip to content

Commit 39f6f7e

Browse files
authored
Merge pull request #1 from purescript-contrib/merge-back-to-web-fetch
Merge back to web fetch
2 parents 83aad59 + 58c7c70 commit 39f6f7e

27 files changed

+70
-54
lines changed

.tidyrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"importSort": "ide",
3+
"importWrap": "source",
4+
"indent": 2,
5+
"operatorsFile": null,
6+
"ribbon": 1,
7+
"typeArrowPlacement": "first",
8+
"unicode": "never",
9+
"width": null
10+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
55
## [Unreleased]
66

77
Breaking changes:
8+
- Migrated from `web-promise` to `js-promise`
89

910
- Fork from web-fetch
1011
- Rename package

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# purescript-fetch-core
22

3-
[![Latest release](http://img.shields.io/github/release/rowtype-yoga/purescript-fetch-core.svg)](https://github.com/rowtype-yoga/purescript-fetch-core/releases)
4-
[![Build status](https://github.com/rowtype-yoga/purescript-fetch-core/workflows/CI/badge.svg?branch=master)](https://github.com/rowtype-yoga/purescript-fetch-core/actions?query=workflow%3ACI+branch%3Amaster)
3+
[![Latest release](http://img.shields.io/github/release/purescript-contrib/purescript-js-fetch.svg)](https://github.com/purescript-contrib/purescript-js-fetch/releases)
4+
[![Build status](https://github.com/purescript-contrib/purescript-js-fetch/workflows/CI/badge.svg?branch=master)](https://github.com/purescript-contrib/purescript-js-fetch/actions?query=workflow%3ACI+branch%3Amaster)
55
[![Pursuit](https://pursuit.purescript.org/packages/purescript-fetch-core/badge)](https://pursuit.purescript.org/packages/purescript-fetch-core)
66

77
Types and low-level implementations for the [WHATWG Fetch Living Standard](https://fetch.spec.whatwg.org/).
@@ -11,9 +11,9 @@ For a high-level library see [`purescript-fetch`](https://github.com/rowtype-yog
1111
## Installation
1212

1313
```
14-
spago install fetch-core
14+
spago install js-fetch
1515
```
1616

1717
## Documentation
1818

19-
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-fetch-core).
19+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-js-fetch).

bower.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
{
22
"name": "purescript-fetch-core",
3-
"license": ["MIT"],
3+
"license": [
4+
"MIT"
5+
],
46
"repository": {
57
"type": "git",
6-
"url": "https://github.com/rowtype-yoga/purescript-fetch-core.git"
8+
"url": "https://github.com/purescript-contrib/purescript-js-fetch.git"
79
},
8-
"ignore": ["**/.*", "node_modules", "bower_components", "output"],
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
916
"dependencies": {
1017
"purescript-arraybuffer-types": "^v3.0.2",
1118
"purescript-arrays": "^v7.0.0",

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "eslint src && pulp build -- --censor-lib --strict",
5+
"build": "eslint src && purs-tidy check --config-require src/**/*.purs && pulp build -- --censor-lib --strict",
66
"test": "spago -x test.dhall test"
77
},
88
"devDependencies": {
9-
"eslint": "^7.15.0",
10-
"pulp": "16.0.0-0",
9+
"eslint": "^8.28.0",
10+
"pulp": "^16.0.2",
1111
"purescript-psa": "^0.8.2",
12+
"purs-tidy": "^0.9.2",
1213
"rimraf": "^3.0.2"
1314
}
1415
}

spago.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
, packages = ./packages.dhall
2323
, sources = [ "src/**/*.purs" ]
2424
, license = "MIT"
25-
, repository = "https://github.com/rowtype-yoga/purescript-fetch-core.git"
25+
, repository = "https://github.com/purescript-contrib/purescript-js-fetch.git"
2626
}
File renamed without changes.

src/Fetch/Core.purs renamed to src/JS/Fetch/Core.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
module Fetch.Core
1+
module JS.Fetch
22
( FetchOptions
33
, fetch
44
, fetchWithOptions
55
) where
66

77
import Effect (Effect)
88
import Effect.Uncurried (EffectFn2, runEffectFn2)
9+
import JS.Fetch.AbortController (AbortSignal)
10+
import JS.Fetch.Request (Request)
11+
import JS.Fetch.Response (Response)
912
import Prim.Row as Row
10-
import Fetch.Core.AbortController (AbortSignal)
11-
import Fetch.Core.Request (Request)
12-
import Fetch.Core.Response (Response)
1313
import Promise (Promise)
1414

1515
type FetchOptions =
File renamed without changes.

src/Fetch/Core/AbortController.purs renamed to src/JS/Fetch/Fetch/AbortController.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Fetch.Core.AbortController where
1+
module JS.Fetch.AbortController where
22

33
import Effect (Effect)
44
import Prelude (Unit)

0 commit comments

Comments
 (0)