Skip to content

Update to v0.14.0-rc3 #20

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 5 commits into from
Dec 16, 2020
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: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main

with:
purescript: 0.14.0-rc3
- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output

- name: Install dependencies
run: spago install

- name: Build source
run: spago build --no-install --purs-args '--censor-lib --strict'

- name: Run tests
run: spago test --no-install
18 changes: 9 additions & 9 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "git://github.com/purescript-contrib/purescript-form-urlencoded.git"
"url": "https://github.com/purescript-contrib/purescript-form-urlencoded.git"
},
"ignore": [
"**/.*",
Expand All @@ -14,15 +14,15 @@
"package.json"
],
"dependencies": {
"purescript-globals": "^4.1.0",
"purescript-maybe": "^4.0.0",
"purescript-newtype": "^3.0.0",
"purescript-prelude": "^4.0.0",
"purescript-strings": "^4.0.0",
"purescript-tuples": "^5.0.0",
"purescript-foldable-traversable": "^4.1.1"
"purescript-maybe": "master",
"purescript-newtype": "master",
"purescript-prelude": "master",
"purescript-strings": "master",
"purescript-tuples": "master",
"purescript-js-uri": "https://github.com/purescript-contrib/purescript-js-uri.git#main",
"purescript-foldable-traversable": "master"
},
"devDependencies": {
"purescript-assert": "^4.1.0"
"purescript-assert": "master"
}
}
2 changes: 1 addition & 1 deletion packages.dhall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200911-2/packages.dhall sha256:872c06349ed9c8210be43982dc6466c2ca7c5c441129826bcb9bf3672938f16e
https://raw.githubusercontent.com/purescript/package-sets/prepare-0.14/src/packages.dhall

in upstream
2 changes: 1 addition & 1 deletion spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, "console"
, "effect"
, "foldable-traversable"
, "globals"
, "js-uri"
, "maybe"
, "newtype"
, "prelude"
Expand Down
4 changes: 2 additions & 2 deletions src/Data/FormURLEncoded.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Data.String (joinWith, split) as String
import Data.String.Pattern (Pattern(..))
import Data.Traversable (traverse)
import Data.Tuple (Tuple(..))
import Global (decodeURIComponent, encodeURIComponent)
import JSURI (decodeURIComponent, encodeURIComponent)

-- | `FormURLEncoded` is an ordered list of key-value pairs with possible duplicates.
newtype FormURLEncoded = FormURLEncoded (Array (Tuple String (Maybe String)))
Expand Down Expand Up @@ -37,7 +37,7 @@ encode = map (String.joinWith "&") <<< traverse encodePart <<< toArray
encodePart = case _ of
Tuple k Nothing -> encodeURIComponent k
Tuple k (Just v) -> (\key val -> key <> "=" <> val) <$> encodeURIComponent k <*> encodeURIComponent v

-- | Decode `FormURLEncoded` from `application/x-www-form-urlencoded`.
decode :: String -> Maybe FormURLEncoded
decode = map FormURLEncoded <<< traverse decodePart <<< String.split (Pattern "&")
Expand Down