Skip to content

Commit 38eadf3

Browse files
committed
Merge remote-tracking branch 'purescript/master' into merge-back-to-web-fetch
2 parents 83aad59 + d5e667a commit 38eadf3

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
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

bower.json

Lines changed: 9 additions & 2 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",
68
"url": "https://github.com/rowtype-yoga/purescript-fetch-core.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
}

src/Fetch/Core.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ module Fetch.Core
66

77
import Effect (Effect)
88
import Effect.Uncurried (EffectFn2, runEffectFn2)
9-
import Prim.Row as Row
109
import Fetch.Core.AbortController (AbortSignal)
1110
import Fetch.Core.Request (Request)
1211
import Fetch.Core.Response (Response)
12+
import Prim.Row as Row
1313
import Promise (Promise)
1414

1515
type FetchOptions =

src/Fetch/Core/Response.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import Data.ArrayBuffer.Types (ArrayBuffer, Uint8Array)
1717
import Effect (Effect)
1818
import Fetch.Core.Headers (Headers)
1919
import Foreign (Foreign)
20-
import Web.File.Blob (Blob)
2120
import Promise (Promise)
21+
import Web.File.Blob (Blob)
2222
import Web.Streams.ReadableStream (ReadableStream)
2323

2424
foreign import data Response :: Type

0 commit comments

Comments
 (0)