Commit Graph

163 Commits

Author SHA1 Message Date
Connor Prussin
8295d8755e Clean up imports (#185)
* Clean up import declarations to only use qualified when necessary

* Remove unused imports
2021-11-18 22:16:35 -08:00
Connor Prussin
f58aa94484 Remove some stale doc references to make 2021-11-16 21:50:23 -08:00
Connor Prussin
6e886b91ac Add support for non string requests (#184)
* First version of supporting non-string requests

* Clean up

* Minor cleanup

* Simplify to directly export the stream

* Add nl

* Clean up & add more testing

Co-authored-by: sigma-andex <sigma.andex@pm.me>
2021-11-15 20:02:36 -08:00
Connor Prussin
beb4621f4b Update project setup (#183)
* Update project setup to use spago.

* Add license and repo info to spago.dhall

* Fix check.yaml

* Remove unused dependencies

* Remove --no-install from checks.yaml

* Minor cleanup

* Readd nix checks

* Migrate everything to spago & remove Makefile

* Split nix environment install from build in workflow

* Fix NIX_PATH

* Make build step of workflow build everything

* Fix github action

Co-authored-by: sigma-andex <sigma.andex@pm.me>
2021-11-12 23:46:59 -08:00
Thomas Honeyman
6ce52417f7 Migrate from purty to purs-tidy (#178)
* Replace purty with purs-tidy

* run purs-tidy
2021-11-06 12:37:31 -07:00
dependabot[bot]
af027845e9 Bump path-parse from 1.0.6 to 1.0.7 (#177)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-31 14:08:03 -07:00
Connor Prussin
c075df65d7 Ensure correct ordering on stream operations (#176) 2021-06-25 10:58:16 -07:00
Connor Prussin
1da43a09c4 Minor cleanup - remove unused imports 2021-06-25 10:25:17 -07:00
Jan Schulte
8f1730c00b Add documentation for a shutdown hook (#174) 2021-06-14 08:08:32 -07:00
Connor Prussin
2f815ce336 Rename 'master' branch to 'main' (#173) 2021-03-22 12:34:49 -07:00
Connor Prussin
43f89f139b Clean up github workflows (#172)
* Clean up workflows

* Remove build status badge
2021-03-22 12:20:17 -07:00
Connor Prussin
1ad5a08306 Add code formatting with purty (#171)
* Add code formatting with purty

* Purtify code
2021-03-22 12:02:36 -07:00
Connor Prussin
1ce9147917 Fix build status badge to point to github action 2021-03-20 16:10:29 -07:00
Connor Prussin
2ec5e6826d Update releasing guide to use pulp publish
Previously this was done in Travis CI but there's really no good reason to
manually push branches and let CI publish instead of just using the publish
command directly.
2021-03-20 16:08:23 -07:00
Connor Prussin
db23d9e5f0 v0.12.0 2021-03-20 15:47:30 -07:00
Connor Prussin
a888601e95 Release notes for v0.12.0 2021-03-20 15:44:36 -07:00
Connor Prussin
52f19fbabb Don't use echo -n since it's nonportable to OSX (#170) 2021-03-20 15:44:36 -07:00
Connor Prussin
c913cca696 Modernize tooling & fix CI (#168)
* Modernize tooling & fix CI

- Remove old spago & psc-package files
- Update dependencies
- Move to github actions instead of travis CI
- Use purescript 0.14.0 in nix-shell

* Re-add all referenced dependencies to bower file

* Build in a separate action step
2021-03-20 15:44:36 -07:00
Connor Prussin
2611d498b8 Release notes for v0.11.0 2021-03-04 09:39:26 -08:00
Victor Peter Rouven Müller
ab8c1fe88c Update to purescript 0.14 (#167) 2021-03-03 11:16:22 -08:00
Tim McIver
b3eb977096 Fix HTTPure.Utils.replacePlus (#166)
* Create failing test.

* Fix code so failing test passes.
2020-11-14 13:09:07 -08:00
dependabot[bot]
a81abca2d6 Bump lodash from 4.17.15 to 4.17.20 (#163)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 13:59:37 -07:00
dependabot[bot]
cba2cf01f6 Bump elliptic from 6.5.1 to 6.5.3 (#161)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-05 13:28:25 -07:00
dependabot[bot]
4b6aa3dcc5 Bump tree-kill from 1.2.1 to 1.2.2 (#162)
Bumps [tree-kill](https://github.com/pkrumins/node-tree-kill) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/pkrumins/node-tree-kill/releases)
- [Commits](https://github.com/pkrumins/node-tree-kill/compare/v1.2.1...v1.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-05 13:10:26 -07:00
dependabot[bot]
0708d729a6 Bump acorn from 7.1.0 to 7.1.1 (#156)
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/7.1.0...7.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-02 11:10:33 -07:00
paluh
896956b762 Expose original request url as a part of Request (#155) 2020-03-09 08:34:04 -07:00
Connor Prussin
61b88de59b #153 bind to 0.0.0.0 instead of localhost (#154)
* Bind to 0.0.0.0 instead of localhost

* Don't use nixjs for purescript

* Use lorri

* Use niv

* Use nix for travis build

* Clean up travis config
2020-02-26 16:43:38 -08:00
Drew Olson
91224a955f Add spago configuration (#152) 2020-02-24 17:20:40 -08:00
Connor Prussin
a12e63b879 v0.10.0 2019-12-03 13:36:39 -08:00
Connor Prussin
b47c9a2c6c Release notes for v0.10.0 2019-12-03 13:35:30 -08:00
Connor Prussin
52f88ccd81 Add envrc 2019-12-03 13:35:30 -08:00
Drew Olson
ac43b0d125 Update response functions to return MonadAff m => m Response (#150)
* Update Response functions to return MonadAffs

* Install psc-package for travis build
2019-09-29 20:57:15 -07:00
Connor Prussin
46fe320a78 Upgrade yarn dev deps 2019-09-25 17:49:04 -07:00
Connor Prussin
acd27f525a v0.9.0 2019-09-25 17:25:43 -07:00
Connor Prussin
64b88c70bb Release notes for v0.9.0 2019-09-25 17:03:20 -07:00
Gareth Smith
d37096dcce Add some type declarations to get compatibility with node-buffer 6.x. (#149)
Since node-buffer 6.x is not yet in the package set, compatibility with
node-buffer 5.x is maintained.
2019-09-24 17:09:29 -07:00
dependabot[bot]
ff89d67979 Bump mixin-deep from 1.3.1 to 1.3.2 (#148)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-23 13:46:29 -07:00
Gareth Smith
4d5518eff5 Update the tests to work with purescript-spec v4.0.0 (#147)
This version was already being pulled in by the package set, so the
tests were breaking.

Also update bower.json to match the package set dependencies.
2019-09-23 13:14:21 -07:00
Nick Saunders
88e1dcde9e Provide utils from purescript-globals instead of FFI (#145) 2019-08-16 12:03:38 -07:00
Connor Prussin
ae56c9f0a1 v0.8.3 2019-06-03 11:33:01 -07:00
Connor Prussin
413683cd09 Release notes for v0.8.3 2019-06-03 11:29:25 -07:00
Ping Chen
2a02d41954 Use Buffer.concat instead of string concatenation (#141)
* Bump dependency versions

* Use Buffer.concat, then convert to string on end
2019-06-03 10:43:10 -07:00
Connor Prussin
5af653076f Fix History.md to refer to 0.8.2 correctly 2019-05-20 23:59:42 -07:00
Connor Prussin
717a33739c v0.8.2 2019-05-20 23:55:21 -07:00
Connor Prussin
c3ea495b22 Merge branch 'v0.8.x' 2019-05-20 23:52:48 -07:00
Connor Prussin
e84c877fdc Update nix shell 2019-05-20 23:49:57 -07:00
Connor Prussin
7ac394cf66 Release notes for v0.8.1 2019-05-20 22:30:26 -07:00
Hardy Jones
5d7c2c8bda Use CaseInsensitiveString for Headers (#138)
* v0.8.1

* Add failing tests for `Headers`

There's currently a bug with `Headers`:
if a header is created with uppercase characters, it can never be found.
The problem is that we only look for lowercase characters in the
`Lookup` instance for `Headers`.

* Convert `Headers` to use `CaseInsensitiveString`

In an effort to be more true to HTTP,
we make the header keys case-insensitive.
This fixes the issue of looking up a header where the casing is different,
Since `CaseInsensitiveString`s compare in a way that ignore casing.

The API for consumers for `Headers` stays the same,
but we get more correct code.
A win for all!
2019-04-25 20:06:15 -07:00
Hardy Jones
c208dffb7b Add HTTP version (#137)
* v0.8.1

* Add the HTTP version to `Request`

The `node-http` `Request` has the HTTP version on it.
We can make it available in our `Request` for consumers.

We went the naive approach first and typed it as a string.
There is some structure to the version,
so we could attempt to parse it.
It's unclear what we would do if parsing failed though.

Maybe we want something like:
```PureScript
data Version
  = Known { major :: Int, minor :: Int }
  | Unknown String
```

That would allow us to parse the known format,
and fallback to accepting anything else.
It's definitely something to discuss anyway.

* Make HTTP version its own data type

There are only a handful of HTTP versions that are commonly used.
We can talk about those explicitly and fallback to any arbitrary version.

The changes here try to follow the patterns elsewhere in the code base.
Hopefully, it's not too far off.
2019-04-25 10:13:04 -07:00
Connor Prussin
92408f9636 v0.8.1 2019-02-26 22:18:26 -08:00