Linus Unnebäck
ace7536c95
fix: properly encode url with unicode characters ( #1291 )
...
* fix: properly encode url with unicode characters
* release: 2.6.3
2021-09-20 16:09:10 +02:00
Jimmy Wärting
152214ca2f
Fix(package.json): Corrected main file path in package.json ( #1274 )
...
* fix main configuration in package.json
* pinned a breaking change in codecov & teeny-request
2021-09-06 14:58:28 +02:00
Antoni Kepinski
b5e2e41b2b
update version number
2020-09-05 14:58:33 +02:00
Antoni Kepinski
2358a6c256
Honor the `size` option after following a redirect and revert data uri support
...
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
2020-09-05 14:55:39 +02:00
Sesamestrong
8c197f8982
docs: Fix typos and grammatical errors in README.md ( #686 )
2019-10-21 15:32:52 +13:00
Ramit Mittal
1e99050f94
fix: Change error message thrown with redirect mode set to error ( #653 )
...
The original error message does not provide enough information about what went wrong. It simply states a configuration setting.
2019-10-11 09:26:58 +13:00
Richie Bendall
244e6f63d4
docs: Show backers in README
2019-10-07 20:23:11 +13:00
dsuket
6a5d192034
fix: Properly parse meta tag when parameters are reversed ( #682 )
2019-10-07 19:58:27 +13:00
Richie Bendall
47a24a03eb
chore: Add opencollective badge
2019-10-02 22:00:55 +13:00
Richie Bendall
7b136627c5
chore: Add funding link
2019-10-02 21:50:00 +13:00
Boris Bosiljcic
5535c2ed47
fix: Check for global.fetch before binding it ( #674 )
2019-09-16 23:52:22 +12:00
Richie Bendall
1d5778ad0d
docs: Add Discord badge
2019-09-08 10:00:54 +12:00
Richie Bendall
eb3a57255b
feat: Data URI support ( #659 )
...
Adds support for Data URIs using native methods in Node 5.10.0+
2019-09-08 09:44:40 +12:00
Steve Moser
086be6fc74
Remove --save option as it isn't required anymore ( #581 )
2019-08-09 11:17:25 +02:00
David Frank
95286f52bb
v2.6.0 ( #638 )
...
* Update readme and changelog for `options.agent`
- Fix content-length issue introduced in v2.5.0
* More test coverage for `extractContentType`
* Slightly improve test performance
* `Response.url` should not return null
* Document `Headers.raw()` usage better
* 2.6.0
2019-05-16 14:38:28 +08:00
edgraaff
bf8b4e8db3
Allow agent option to be a function ( #632 )
...
Enable users to return HTTP/HTTPS-specific agent based on request url
2019-05-05 20:12:33 +08:00
David Frank
0c2294ec48
2.5.0 release ( #630 )
...
* redirected property
* changelog update
* readme update
* 2.5.0
2019-05-01 13:05:32 +08:00
David Frank
0fc414c2a8
Allow third party blob implementation ( #629 )
...
* Support making request with any blob that have stream() method
* don't clone blob when cloning request
* check for blob api that node-fetch uses
2019-05-01 11:44:27 +08:00
Justin Beckwith
d8f5ba0e97
build: disable generation of package-lock since it is not used ( #623 )
2019-05-01 11:19:06 +08:00
Justin Beckwith
1fe1358642
test: enable --throw-deprecation for tests ( #625 )
2019-05-01 11:15:05 +08:00
Justin Beckwith
a35dcd14a3
chore(deps): address deprecated url-search-params package ( #622 )
2019-05-01 11:14:11 +08:00
David Frank
b3ecba5e81
2.4.1 release ( #619 )
...
* changelog update
* package.json update
2019-04-27 14:50:25 +08:00
mcuppi
1a88481fbd
Fix Blob for older node versions and webpack. ( #618 )
...
`Readable` isn't a named export
2019-04-27 14:34:01 +08:00
David Frank
c9805a2868
2.4.0 release ( #616 )
...
* changelog update
* package.json update
2019-04-27 01:20:20 +08:00
David Frank
49d77600a7
Pass custom timeout to subsequent requests on redirect ( #615 )
2019-04-27 00:46:53 +08:00
Andrew Leedham
cfc8e5bad2
Swap packagephobia badge for flat style ( #592 )
2019-04-27 00:27:31 +08:00
Muhammet Öztürk
2a2d4384af
Adding Brotli Support ( #598 )
...
* adding brotli support
* support old node versions
* better test
2019-04-27 00:20:15 +08:00
David Frank
05f5ac12a2
Node 12 compatibility ( #614 )
...
* dev package bump
* test invalid header differently as node 12 no longer accepts invalid headers in response
* add node v10 in travis test list as node 12 has been released
2019-04-27 00:11:52 +08:00
Jimmy Wärting
432c9b01ea
support reading blob with stream ( #608 )
2019-04-16 18:29:17 +08:00
Jimmy Wärting
0ad136d49f
Added new reading method to blob
2019-04-15 22:46:11 +02:00
Jimmy Wärting
bee2ad8db7
ignore buffers recalculation
2019-04-15 22:44:07 +02:00
David Frank
e996bdab73
Quick readme update
2019-01-16 14:43:24 +08:00
Kevin (Kun) "Kassimo" Qian
1c2f07ffb8
Headers should not accept empty field name ( #562 )
2018-12-29 17:04:44 +08:00
Jimmy Wärting
7d3293200a
Unify internal body as buffer ( #552 )
2018-11-15 22:50:32 +08:00
Jonathan Puckey
35a4abe825
Fix spelling mistake ( #551 )
2018-11-15 11:38:19 +08:00
Jimmy Wärting
2d0fc689c6
Clone URLSearchParams to avoid mutation ( #547 )
...
* And make sure Request/Response set Content-Type per Fetch Spec
* And make sure users can read the body as string via text()
2018-11-14 00:36:44 +08:00
David Frank
5367fe6a97
v2.3.0 ( #548 )
...
* doc update
* handle corrupted location header during redirect
2018-11-13 14:35:09 +08:00
David Frank
d1ca2dfbb9
Workaround lack of global context in react-native ( #545 )
2018-11-13 12:43:27 +08:00
Joseph Nields
ecd3d52c55
Add support for AbortSignal to cancel requests ( #539 )
...
Thx @jnields @FrogTheFrog @TimothyGu for their work!
2018-11-13 12:40:11 +08:00
David Frank
1daae67e9e
Fix import style to workaround node < 10 and webpack issues. ( #544 )
...
* fix import rule for stream PassThrough
* avoid named export for compatibility below node 10
* compress flag should not overwrite accept encoding header
* doc update
* 2.2.1
2018-11-05 17:42:51 +08:00
David Frank
8cc909f5ee
update readme to add credits and call for collaborators ( #540 )
...
* also pin chai-string to ~1.3.0 as chai-string 1.5.0 introduce a breaking change that breaks our node v4 CI.
2018-10-24 14:44:16 +08:00
Jared Kantrowitz
745a27c389
README update ( #504 )
...
* v2.x readme overhaul with additions discussed in #448
added "comments" (TODO link references) for changes suggested but not yet implemented for future discussion/prs
clarified "native stream" to be "native Node streams"
adjusted all uses of http to https to encourage secure protocol usage
adjusted whatwg to proper case, WHATWG
made code block tags consistent as `js` instead of `javascript`
uppercased all method option values (post vs POST)
added spec-compliant node to the `response.ok` api section
* fix left over cruft, inconsistent hierarchy
2018-09-01 19:23:02 +08:00
Timothy Gu
09ef40e8a8
2.2.0
2018-07-22 14:31:00 -07:00
Timothy Gu
1d4ab5a0de
Switch to .mjs for ES module output for Node.js compat
...
This also reverts commit 60cf26c2f3
.
2018-07-22 14:06:25 -07:00
Timothy Gu
6868e4aa59
Add __esModule property to exports object
...
Fixes : #442
2018-07-22 14:06:25 -07:00
Timothy Gu
c01a5d22d4
Move .default assignment to plugins
2018-07-22 14:06:25 -07:00
Timothy Gu
6d7daa27c7
Migrate from mocha --compilers ( #491 )
2018-07-22 14:05:40 -07:00
Steven
ecd82580aa
Add badge to display install size ( #455 )
2018-07-22 13:34:32 -07:00
Timothy Gu
de66b388ac
Update dependencies ( #488 )
2018-07-22 09:22:10 -07:00
Timothy Gu
ed9e886cf3
Support web workers ( #487 )
...
Fixes : #485
2018-07-22 09:21:46 -07:00