Skip to content

Migrate to js-promise #10

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
Aug 4, 2023
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
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"purescript-arraybuffer-types": "^3.0.2",
"purescript-effect": "^4.0.0",
"purescript-exceptions": "^6.0.0",
"purescript-js-promise": "https://github.com/purescript-contrib/purescript-js-promise.git#^1.0.0",
"purescript-nullable": "^6.0.0",
"purescript-prelude": "^6.0.0",
"purescript-tuples": "^7.0.0",
"purescript-web-promise": "https://github.com/purescript-web/purescript-web-promise.git#^3.0.0"
"purescript-prelude": "^6.0.1",
"purescript-tuples": "^7.0.0"
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
"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",
"rimraf": "^3.0.2"
},
"dependencies": {
"purs-tidy": "^0.9.2"
}
}
2 changes: 1 addition & 1 deletion src/Web/Streams/ReadableStream.purs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Data.Tuple (Tuple(..))
import Effect (Effect)
import Effect.Uncurried (EffectFn2, runEffectFn2)
import Prelude (Unit)
import Web.Promise (Promise)
import Promise (Promise)
import Web.Streams.QueuingStrategy (QueuingStrategy)
import Web.Streams.Reader (Reader)
import Web.Streams.Source (Source)
Expand Down
2 changes: 1 addition & 1 deletion src/Web/Streams/Reader.purs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Web.Streams.Reader where
import Data.Maybe (Maybe(..))
import Effect (Effect)
import Effect.Uncurried (EffectFn3, runEffectFn3)
import Web.Promise (Promise)
import Promise (Promise)

foreign import data Reader :: Type -> Type

Expand Down
2 changes: 1 addition & 1 deletion src/Web/Streams/Source.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Web.Streams.Source
import Effect (Effect)
import Prelude (Unit)
import Prim.Row as Row
import Web.Promise (Promise)
import Promise (Promise)
import Web.Streams.ReadableStreamController (ReadableStreamController)

foreign import data Source :: Type -> Type
Expand Down