Skip to content

Migrate to js-promise #13

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

Merged
merged 4 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .tidyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"importSort": "ide",
"importWrap": "source",
"indent": 2,
"operatorsFile": null,
"ribbon": 1,
"typeArrowPlacement": "first",
"unicode": "never",
"width": null
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
## [Unreleased]

Breaking changes:
- Migrated from `web-promise` to `js-promise`

New features:

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"purescript-effect": "^4.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-http-methods": "^6.0.0",
"purescript-js-promise": "https://github.com/purescript-contrib/purescript-js-promise.git#^1.0.0",
"purescript-prelude": "^6.0.0",
"purescript-record": "^4.0.0",
"purescript-typelevel-prelude": "^7.0.0",
"purescript-web-file": "^4.0.0",
"purescript-web-promise": "https://github.com/purescript-web/purescript-web-promise.git#^3.0.0",
"purescript-web-streams": "https://github.com/purescript-web/purescript-web-streams.git#^3.0.0"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "eslint src && pulp build -- --censor-lib --strict"
"build": "eslint src && purs-tidy check --config-require src/**/*.purs && pulp build -- --censor-lib --strict"
},
"devDependencies": {
"eslint": "^7.15.0",
"pulp": "16.0.0-0",
"eslint": "^8.28.0",
"pulp": "^16.0.2",
"purescript-psa": "^0.8.2",
"purs-tidy": "^0.9.2",
"rimraf": "^3.0.2"
}
}
2 changes: 1 addition & 1 deletion src/Web/Fetch.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module Web.Fetch
import Effect (Effect)
import Effect.Uncurried (EffectFn2, runEffectFn2)
import Prim.Row as Row
import Promise (Promise)
import Web.Fetch.AbortController (AbortSignal)
import Web.Fetch.Request (Request)
import Web.Fetch.Response (Response)
import Web.Promise (Promise)

type FetchOptions =
( keepalive :: Boolean
Expand Down
2 changes: 1 addition & 1 deletion src/Web/Fetch/Response.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module Web.Fetch.Response where

import Data.ArrayBuffer.Types (ArrayBuffer, Uint8Array)
import Effect (Effect)
import Promise (Promise)
import Web.Fetch.Headers (Headers)
import Web.File.Blob (Blob)
import Web.Promise (Promise)
import Web.Streams.ReadableStream (ReadableStream)

foreign import data Response :: Type
Expand Down