Skip to content
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

chore: simplify creation of fetch error #2327

Closed
wants to merge 987 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
987 commits
Select commit Hold shift + click to select a range
16c4128
fix: flaky abort test (#1863)
KhafraDev Jan 18, 2023
c9d4a6b
fix: flaky abort test
ronag Jan 19, 2023
9d5f231
5.15.1
ronag Jan 19, 2023
2d2512c
fix: don't load websockets w/o crypto support (#1868)
KhafraDev Jan 19, 2023
22d2f70
fix: don't include websockets in node bundle (#1869)
merceyz Jan 19, 2023
f61a902
fix: don't set socket on client before init
ronag Jan 20, 2023
d6ba9e5
Fix fetch parameters not being applied correctly (#1870)
xconverge Jan 20, 2023
5883598
fix: typo in contributing.md (#1874)
debadree25 Jan 20, 2023
1813408
chore(performance#38): Performance improvements (#1871)
metcoder95 Jan 20, 2023
d7602f6
perf(util): improve isFormDataLike checks (#1875)
mateonunez Jan 21, 2023
9457c97
5.15.2
ronag Jan 22, 2023
69ede10
Add feature to specify custom headers for proxies (#1877)
Sebmaster Jan 22, 2023
d0a99c2
fix: don't swallow llhttp loading error
ronag Jan 23, 2023
81b1521
5.16.0
ronag Jan 23, 2023
bdb1d08
fix(wpts): Blob is a global getter in >=v19.x.x (#1880)
KhafraDev Jan 24, 2023
f02ab5b
doc: fix anchor links dispatcher.stream (#1881)
RafaelGSS Jan 25, 2023
25a8aac
wpt: make runner more resilient (#1884)
KhafraDev Jan 26, 2023
47f574d
Make test pass in v19.x (#1879)
mcollina Jan 26, 2023
196c4da
remove timeout-minutes in github action
mcollina Jan 27, 2023
a9dabd5
Correct the type of DispatchOptions["headers"] (#1896)
pan93412 Jan 29, 2023
67e9796
perf(content-type parser): faster string collector (#1894)
KhafraDev Jan 29, 2023
f4693d6
feat: expose content-type parser (#1895)
KhafraDev Jan 29, 2023
0c75102
Update DispatchOptions type (#1889)
xconverge Jan 29, 2023
055780a
fix: update error type definitions (#1888)
rafaelcr Jan 30, 2023
db0b5ca
fix: ensure connection header is a string (#1900)
ronag Feb 1, 2023
2b260c9
fix: throw if invalid content-type header (#1901)
ronag Feb 1, 2023
0986381
fix(fetch): use semicolon for Cookie header delimiter (#1906)
KhafraDev Feb 3, 2023
208f7cf
perf: use FastBuffer (#1907)
ronag Feb 4, 2023
16b7a68
5.17.0
ronag Feb 4, 2023
d2be675
fix: bad buffer slice
ronag Feb 4, 2023
ce6a53b
5.17.1
ronag Feb 4, 2023
b4c0e5a
Add ability to set TCP keepalive (#1904)
xconverge Feb 4, 2023
b06f19f
use faster timers (#1908)
ronag Feb 5, 2023
3bc7b4c
fix: ensure header value is a string (#1899)
ronag Feb 6, 2023
6641f93
fix: flaky test
ronag Feb 6, 2023
9dceb21
5.18.0
ronag Feb 6, 2023
7827031
fix(fetch): raise AbortSignal max event listeners (#1910)
KhafraDev Feb 7, 2023
c0ba75f
fix: content-disposition header parsing (#1911)
climba03003 Feb 8, 2023
0a59535
fix: remove test (#1916)
KhafraDev Feb 8, 2023
ba5ef44
feat: add Headers.prototype.getSetCookie (#1915)
KhafraDev Feb 8, 2023
87fa734
fix(headers): clone getSetCookie list & add getSetCookie type (#1917)
KhafraDev Feb 9, 2023
e155c6d
doc(mock): update out-of-date reply documentation (#1913)
p9f Feb 10, 2023
aebb232
fix(types): add missing keepAlive params (#1918)
SkeLLLa Feb 13, 2023
f7c6c6a
Make the fetch() abort test pass locally, on Linux and Mac, Node 18 a…
mcollina Feb 13, 2023
f5c89e5
Bumped v5.19.0
mcollina Feb 13, 2023
a2eff05
Merge pull request from GHSA-5r9g-qh6m-jxff
ronag Feb 13, 2023
f2324e5
Merge pull request from GHSA-r6ch-mqf9-qc9w
Trott Feb 13, 2023
6c32c0f
lint fixes
mcollina Feb 13, 2023
984d53b
Bumped v5.19.1
mcollina Feb 13, 2023
2971280
perf: improve cookie parsing performance (#1931)
KhafraDev Feb 15, 2023
f73ec63
fix: disable websocket wpts in ci :( (#1932)
KhafraDev Feb 15, 2023
c2387e8
fix: Allow “undefined“ as value in headers (#1929)
pan93412 Feb 15, 2023
eae6807
feat: Support autoSelectFamily when connecting. (#1914)
ShogunPanda Feb 15, 2023
8b8bfa7
fix: copy cookies when cloning haders (#1936)
KhafraDev Feb 16, 2023
eaf4dc9
test: more logs in wpt runner (#1933)
KhafraDev Feb 16, 2023
30dafe3
feat: change headersTimeout and bodyTimeout to 300s (#1937)
kyrylkov Feb 17, 2023
28b9dea
Bumped v5.20.0
mcollina Feb 18, 2023
d8d9a96
Create scorecard.yml (#1942)
RafaelGSS Feb 20, 2023
d04ec2b
ci: timeout CI jobs after 15 minutes (#1946)
dominykas Feb 21, 2023
5851019
test(wpt): respect variants (#1951)
panva Feb 21, 2023
ab494d2
fix: improve isFormDataLike compat (#1953)
ronag Feb 21, 2023
bc8e2b8
fix: flaky fetch tests (#1956)
KhafraDev Feb 22, 2023
474f54f
test(wpt): include all testing files (#1954)
KhafraDev Feb 22, 2023
0beedf9
fix: remove unneeded fetch tests (#1960)
KhafraDev Feb 22, 2023
e959307
fix: use normal timers for delays < 1s (#1961)
ronag Feb 22, 2023
b13312d
perf: optimize happy path (#1955)
anonrig Feb 22, 2023
178a97c
fix: 🐛 add URL upstream variations in BalancedPool types (#1966)
jimmy-guzman Feb 22, 2023
0faf03e
test(wpt): handle uncaught exceptions (#1965)
KhafraDev Feb 23, 2023
324f3e3
Fix failing wpts (#1967)
KhafraDev Feb 23, 2023
236df29
test(wpt): add results to an existing WPT Report (#1944)
panva Feb 23, 2023
e461407
fix: strengthen isStream condition checking (#1969)
debadree25 Feb 23, 2023
987d23d
fix: implement basic policy container (#1970)
KhafraDev Feb 24, 2023
06f77a9
TypeScript type fixes, for #1949 (#1968)
joshxyzhimself Feb 24, 2023
49c6b48
websocket: separate connection logic from websocket (#1973)
KhafraDev Feb 26, 2023
97ab273
README: h3 not showing ### as a header (#1975)
hilleer Feb 27, 2023
2f463fc
wptrunner: expose gc (#1974)
KhafraDev Feb 27, 2023
41aab94
perf: cork socket before writing (#1982)
ronag Mar 2, 2023
4885b11
fix: fast timers and event loop lag (#1977)
ronag Mar 3, 2023
71c3605
fix: correctly calculate resource timing duration (#1988)
amilajack Mar 4, 2023
3606c35
wpt: update tests (#1984)
KhafraDev Mar 4, 2023
a0afde8
fix: undici stream throwOnError (#1995)
dancastillo Mar 10, 2023
babed9c
fix: remove unnecessary WeakRef (#2000)
ronag Mar 10, 2023
0d2f4f1
Add missing import (#1997)
blazingzephyr Mar 10, 2023
65eea9b
feat: add abort signal to body.dump() (#1993)
debadree25 Mar 10, 2023
06c6488
fix(fetch): third party abortcontrollers throwing errors (#2002)
KhafraDev Mar 11, 2023
1bbcfa2
Improve ProxyAgent example with autentication (#2004)
egmen Mar 13, 2023
90d45fa
Add clientFactory option to ProxyAgent (#2003)
andrewfecenko Mar 13, 2023
98b63b2
Bumped v5.21.0
mcollina Mar 13, 2023
f04f9fa
Fix typo in kPipelining symbol (#2005)
andrewfecenko Mar 13, 2023
a64eb26
fix(fetch): remove `undefined` error cause (#2006)
aduh95 Mar 13, 2023
ebf0b45
chore(deps-dev): bump tsd from 0.25.0 to 0.27.0 (#2007)
dependabot[bot] Mar 13, 2023
6ec8f4e
build(deps-dev): bump wait-on from 6.0.1 to 7.0.1 (#1820)
dependabot[bot] Mar 13, 2023
4e1e0d0
fix(wpt): set global META_TITLE for the runner (#2008)
panva Mar 14, 2023
6fd7477
fix: issue 2009 (#2013)
KhafraDev Mar 17, 2023
7276126
build(deps-dev): bump typescript from 4.9.5 to 5.0.2 (#2018)
dependabot[bot] Mar 20, 2023
e6fc80f
added descriptive error messages for URL parser (#2016)
RishabhKodes Mar 22, 2023
f0271d4
fix(fetch): remove content-length header on redirect (#2022)
KhafraDev Mar 25, 2023
a9ef509
fix(fetch): remove assertion on request.body.source on redirect (#202…
macno Mar 28, 2023
dc8d111
fix: skip failing test in node >= v19.8 (#2034)
KhafraDev Mar 29, 2023
9013a23
fetch: treat content-encoding as case-insensitive & remove x-deflate …
KhafraDev Mar 31, 2023
7ae1779
perf(fetch): use string comparisons for url schemes (#2038)
KhafraDev Apr 1, 2023
549e7ed
util: replace util.toUSVString with String.prototype.toWellFormed (#2…
KhafraDev Apr 1, 2023
a6d1474
build(deps): bump github/codeql-action from 2.2.4 to 2.2.9 (#2039)
dependabot[bot] Apr 1, 2023
3d21d22
build(deps-dev): bump concurrently from 7.6.0 to 8.0.1 (#2041)
dependabot[bot] Apr 3, 2023
5f3b8e1
Small performance improvements (#2044)
anonrig Apr 4, 2023
eceaf9a
fix(types): Add missing Blob import (#2047)
dpogue Apr 4, 2023
816dcaa
fix: set window option properly (#2048)
KhafraDev Apr 5, 2023
a1846e5
fetch: fix leak (#2049)
ronag Apr 8, 2023
2d94417
5.21.1
ronag Apr 8, 2023
fb84aac
Content disposition parsing (#2051)
KhafraDev Apr 8, 2023
0562e9b
fix: clear set-cookie headers (#2052)
KhafraDev Apr 8, 2023
b20405e
5.21.2
ronag Apr 9, 2023
31884e6
build(deps-dev): bump tsd from 0.27.0 to 0.28.1 (#2042)
dependabot[bot] Apr 9, 2023
8c07892
build(deps): bump ossf/scorecard-action from 2.1.2 to 2.1.3 (#2040)
dependabot[bot] Apr 9, 2023
fa4ba00
fix: handle opaque origin in sameOrigin (#2053)
KhafraDev Apr 9, 2023
dfaec78
test: add typescript import test back (#2054)
KhafraDev Apr 9, 2023
5ca10aa
fix: use getMaxListeners when available (#2063)
KhafraDev Apr 12, 2023
ded60f6
feat: allow overriding hwm (#2057)
ronag Apr 13, 2023
8349d26
fix: there is no sync connector (#2059)
ronag Apr 13, 2023
25c3230
fix: rename .wasm to -wasm to appease jest (#2064)
KhafraDev Apr 13, 2023
9aa639b
fix: set content-length when using FormData body w/ request (#2066)
KhafraDev Apr 14, 2023
6eb954c
refactor: unify error body handling (#2060)
ronag Apr 14, 2023
2ff2e1d
fix: close and destroy overlap (#2068)
ronag Apr 14, 2023
852bf6e
remove node 12 from test matrix (#2069)
ronag Apr 14, 2023
3e91915
fix: don't leak socket if client is destroyed while connecting (#2058)
ronag Apr 14, 2023
97154f5
fix: flaky leak test (#2070)
ronag Apr 14, 2023
3b3ee20
test: update wpts (#2073)
KhafraDev Apr 16, 2023
472c40e
perf: latin1 (#2075)
ronag Apr 16, 2023
9041e9f
fix: mock fetch headers shouldn't be an array (#2080)
KhafraDev Apr 19, 2023
6870d5b
5.22.0
ronag Apr 20, 2023
6197e93
Cache storage (#2076)
KhafraDev Apr 20, 2023
27569e9
test: skip content-disposition test in node 18 (#2081)
KhafraDev Apr 20, 2023
674e2b6
Cache storage cleanup (#2082)
KhafraDev Apr 21, 2023
eeaa073
Cache storage fixes (#2083)
KhafraDev Apr 22, 2023
1b3fed9
test: improve test coverage for ErrorEvent and MessageEvent (#2085)
KhafraDev Apr 23, 2023
286d5ec
test: remove --experimental-wasm-simd (#2087)
KhafraDev Apr 23, 2023
7fe5a0d
websocket: add websocketinit (#2088)
KhafraDev Apr 23, 2023
a3efc98
feat(websocket): allow setting custom headers (#2089)
KhafraDev Apr 24, 2023
699d3e8
test: fix tests failing only on node v20 (#2096)
KhafraDev Apr 26, 2023
8ffad9d
fix: skip set content-length when FormData value is stream (#2091)
fengmk2 Apr 27, 2023
73c59dd
doc: update outdated command in contributing.md (#2099)
jazelly Apr 28, 2023
ba18823
cache: fix most failing WPTs (#2100)
KhafraDev Apr 28, 2023
3c514d8
feat: allow build:wasm to auto detect platform (#2102)
jazelly Apr 29, 2023
48f2078
docs: updated Error documentation (fixes #2090) (#2092)
titanism Apr 30, 2023
56e7624
mimesniff: fix many broken tests (#2103)
KhafraDev Apr 30, 2023
72ca86a
test: fix failing tests (#2097)
KhafraDev May 1, 2023
c1c8d83
build(deps): bump github/codeql-action from 2.2.9 to 2.3.2 (#2105)
dependabot[bot] May 1, 2023
ab2e0ce
fix: more informative error message to tell that the server doesn't m…
songkeys May 3, 2023
4688da2
Fix bug in 16-bit frame length when buffer is a subarray (#2106)
jawj May 3, 2023
790b35d
update wpts (#2108)
KhafraDev May 4, 2023
4cda7d5
fix: update error definitions (#2112)
dfilatov May 8, 2023
241dfaf
fix: make assertion a noop (#2111)
ronag May 8, 2023
9d30456
5.22.1
ronag May 11, 2023
135ad3f
bump engines to node >= 16 (#2119)
ronag May 12, 2023
09e9068
Revert "bump engines to node >= 16 (#2119)" (#2121)
ronag May 12, 2023
f5f7c18
fetch: set referrer properly (#2125)
KhafraDev May 15, 2023
51fa0fe
fix: support truncated gzip (#2126)
jimmywarting May 15, 2023
5281fa8
workflow: apply security best practices (#2130)
step-security-bot May 22, 2023
fe174cb
build(deps): bump actions/upload-artifact from 3.1.0 to 3.1.2 (#2135)
dependabot[bot] May 22, 2023
4592bb7
build(deps): bump actions/dependency-review-action from 2.5.1 to 3.0.…
dependabot[bot] May 22, 2023
49fd30d
build(deps): bump node from 18-alpine to 20-alpine in /build (#2131)
dependabot[bot] May 22, 2023
bdaf3e4
build(deps): bump pkgjs/action from 0.1.6 to 0.1.7 (#2136)
dependabot[bot] May 22, 2023
c5f3bdd
build(deps): bump actions/checkout from 3.1.0 to 3.5.2 (#2132)
dependabot[bot] May 22, 2023
4d73c90
build(deps-dev): bump jsdom from 21.1.2 to 22.1.0 (#2142)
dependabot[bot] May 29, 2023
8047105
build(deps): bump fastify/github-action-merge-dependabot (#2148)
dependabot[bot] Jun 1, 2023
a3e0fdc
fix(pr): use correct pr template file (#2141)
AugustinMauroy Jun 2, 2023
2032e89
Additional WebSocket send tests to cover all payload size categories …
jawj Jun 7, 2023
c415fbb
fix: reverse decompression order of "Content-Encoding" encodings (fix…
rychkog Jun 14, 2023
593c56c
fix: keep running WPTs if a test times out (#2165)
KhafraDev Jun 20, 2023
23e62c4
feat: add build environment info (#2168)
mhdawson Jun 23, 2023
e66e2c6
fix: forward error reason to fetch controller (#2172)
KhafraDev Jun 27, 2023
06f51a6
stricter types for bodymixin.json (#2181)
KhafraDev Jul 7, 2023
22bdbd8
chore: Renable autoSelectFamily tests. (#2180)
ShogunPanda Jul 7, 2023
151e9a9
build(deps): bump actions/dependency-review-action from 3.0.4 to 3.0.…
dependabot[bot] Jul 12, 2023
e22448d
build(deps): bump github/codeql-action from 2.3.2 to 2.20.3 (#2185)
dependabot[bot] Jul 12, 2023
eb24cc8
fix: fetch resource timing performance entry names should be strings …
GaryWilber Jul 14, 2023
4140ab5
build(deps): bump actions/checkout from 3.5.2 to 3.5.3 (#2176)
dependabot[bot] Jul 17, 2023
0b3c47c
build(deps): bump fastify/github-action-merge-dependabot (#2177)
dependabot[bot] Jul 19, 2023
b287cae
build(deps): bump ossf/scorecard-action from 2.1.3 to 2.2.0 (#2178)
dependabot[bot] Jul 19, 2023
512cdad
build(deps): bump step-security/harden-runner from 2.4.0 to 2.4.1 (#2…
dependabot[bot] Jul 19, 2023
1037578
test: fix `autoselectfamily` on platforms without IPv6 support (#2197)
LiviaMedeiros Jul 28, 2023
bae93dc
fix: make multipart/form-data boundary string more consistent (#2196)
LiviaMedeiros Jul 28, 2023
d92d617
docs: add proxy agent options docs (#2193)
dancastillo Jul 28, 2023
4477dc2
build(deps): bump github/codeql-action from 2.20.3 to 2.21.2 (#2205)
dependabot[bot] Aug 1, 2023
caca936
feat: make use of `addAbortListener` where applicable (#2195)
atlowChemi Aug 2, 2023
59abe3f
5.23.0
ronag Aug 3, 2023
c83b084
build(deps): bump step-security/harden-runner from 2.4.1 to 2.5.0 (#2…
dependabot[bot] Aug 3, 2023
f08379c
better stack trace for body.json (#2215)
KhafraDev Aug 17, 2023
37b7a49
allow http & https websocket urls (#2218)
KhafraDev Aug 21, 2023
403c249
build(deps-dev): bump @sinonjs/fake-timers from 10.3.0 to 11.1.0 (#2221)
dependabot[bot] Aug 21, 2023
dd09c00
fix: pass ProxyAgent proxy status code error (#2162)
NBNGaming Aug 23, 2023
37e7fd8
fix failing test (#2223)
KhafraDev Aug 24, 2023
5c3c694
Update MockPool.md intercept method description (#2220)
capaj Aug 24, 2023
111fd23
Update wpts (#2226)
KhafraDev Aug 26, 2023
43910c3
build(deps): bump github/codeql-action from 2.21.2 to 2.21.5 (#2240)
dependabot[bot] Sep 1, 2023
08c2914
build(deps): bump actions/setup-node from 3.6.0 to 3.8.1 (#2237)
dependabot[bot] Sep 1, 2023
faf836c
build(deps): bump fastify/github-action-merge-dependabot (#2236)
dependabot[bot] Sep 1, 2023
58cfdea
build(deps): bump actions/checkout from 3.5.3 to 3.6.0 (#2241)
dependabot[bot] Sep 1, 2023
68e2275
build(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.…
dependabot[bot] Sep 1, 2023
6653fca
fix: aborting request with non-object error (#2243)
KhafraDev Sep 3, 2023
92ddf0c
fix: preserve file path when parsing formdata (#2245)
jimmywarting Sep 4, 2023
83cb522
build(deps-dev): bump tsd from 0.28.1 to 0.29.0 (#2246)
dependabot[bot] Sep 4, 2023
932e5f6
Updated benchmarks (#2250)
mcollina Sep 7, 2023
b95f3e1
Fix fetch in node v20.6.0 (#2251)
mcollina Sep 8, 2023
ea4f257
Maybe fix v20 (#2252)
mcollina Sep 8, 2023
a8a5d0a
feat: Add H2 support (#2061)
metcoder95 Sep 8, 2023
fd09517
docs: fix tables in README (#2254)
regseb Sep 8, 2023
1360d1f
Fix http2 fetch test (#2253)
mcollina Sep 8, 2023
9fa8224
Bumped v5.24.0
mcollina Sep 8, 2023
e39a632
fix: h2 without body (#2258)
metcoder95 Sep 10, 2023
1e2e752
ci: remove duplicated runs (#2265)
metcoder95 Sep 15, 2023
a41c6e6
improve documentation of timeouts by making the units clear in all pl…
mcfedr Sep 15, 2023
a926023
expose websocket in node bundle (#2217)
KhafraDev Sep 15, 2023
b0d3ca7
test: fix Fetch/HTTP2 tests (#2263)
metcoder95 Sep 16, 2023
8c5577b
fix undici when node is built with --without-ssl (#2272)
KhafraDev Sep 19, 2023
4d7c319
Fix type definition for Client Interceptors (#2269)
ComradeCow Sep 19, 2023
d1e867e
Fix http2 agent (#2275)
mcollina Sep 20, 2023
985b381
Bumped v5.25.0
mcollina Sep 20, 2023
5c2e597
Add publish types script (#2273)
Ethan-Arrowood Sep 20, 2023
e8a6674
5.25.1
Sep 20, 2023
c86279c
undici-types@5.25.1
Sep 20, 2023
a732603
Add Khaf to releasers (#2276)
mcollina Sep 21, 2023
ba95ff6
fix: fix request with readable mode is object (#2279)
killagu Sep 22, 2023
b85ac78
fix loading websockets when node is built w/ --without-ssl (#2282)
KhafraDev Sep 22, 2023
4013c4b
Bumped v5.25.2
mcollina Sep 22, 2023
5936219
perf: improve parse-url implementation (#2286)
anonrig Sep 25, 2023
a78f8a8
test: enable websockets inclusion in WPTReport (#2284)
panva Sep 28, 2023
8591eb7
remove npm run test from pre-commit hook (#2296)
dancastillo Sep 30, 2023
5addbb7
perf: use @fastify/busboy (#2211)
gurgunday Sep 30, 2023
5f190b1
Disable FinalizationRegistry if NODE_V8_COVERAGE is set (#2298)
mcollina Oct 1, 2023
7649153
Bumped v5.23.3
mcollina Oct 1, 2023
96f1425
undici-types@5.25.3
mcollina Oct 1, 2023
678f026
build(deps): bump actions/checkout from 3.6.0 to 4.1.0 (#2299)
dependabot[bot] Oct 1, 2023
5a75005
build(deps): bump actions/dependency-review-action from 3.0.8 to 3.1.…
dependabot[bot] Oct 1, 2023
4024468
Further automate publishing of undici-types using GitHub Actions work…
Ethan-Arrowood Oct 2, 2023
7c2486d
feat: disable FinalizationRegistry if NODE_V8_COVERAGE is set (#2304)
ivan-tymoshenko Oct 3, 2023
5e654f3
Bumped v5.23.4
mcollina Oct 3, 2023
0fde27d
use npm install instead of npm ci (#2309)
Ethan-Arrowood Oct 4, 2023
fcc1e39
change default header to `node` (#2310)
Ethan-Arrowood Oct 5, 2023
898040d
chore: change order of the pseudo-headers (#2308)
kyrylodolynskyi Oct 5, 2023
e645012
fix: Agent.Options.factory should accept URL object or string as para…
nicole0707 Oct 5, 2023
2de330f
build(deps-dev): bump sinon from 15.2.0 to 16.1.0 (#2312)
dependabot[bot] Oct 5, 2023
af78c98
test: handle npm ignore-scripts settings (#2313)
panva Oct 6, 2023
045d4db
feat: respect `--max-http-header-size` Node.js flag (#2234)
balazsorban44 Oct 6, 2023
e5c9d70
fix(#2311): End stream after body sent (#2314)
metcoder95 Oct 6, 2023
470ee38
disallow setting host header in fetch (#2322)
KhafraDev Oct 9, 2023
882ff6d
[StepSecurity] ci: Harden GitHub Actions (#2325)
step-security-bot Oct 10, 2023
1970637
Simplify fetch error creation
fedyk Oct 10, 2023
2333b11
apply same pattern to fetch/body.js
fedyk Oct 11, 2023
f541cb6
adjust fetch/response.js
fedyk Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://editorconfig.org/

root = true

[*]
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ deprecations (removed features) here -->

## Status

KEY: S = Skipped, x = complete
<!-- KEY: S = Skipped, x = complete -->


- [ ] I have read and agreed to the [Developer's Certificate of Origin][cert]
- [ ] Tested
Expand Down
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10

- package-ecosystem: docker
directory: /build
schedule:
interval: daily

- package-ecosystem: pip
directory: /test/wpt/tests/resources/test
schedule:
interval: daily
18 changes: 12 additions & 6 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@ on:
- push
- pull_request

permissions:
contents: read

jobs:
benchmark_current:
name: benchmark current
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false
ref: ${{ github.base_ref }}
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16
node-version: lts/*
- name: Install Modules
run: npm i
- name: Run Benchmark
Expand All @@ -26,11 +30,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16
node-version: lts/*
- name: Install Modules
run: npm i
- name: Run Benchmark
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "0 0 * * 1"

permissions:
contents: read

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript", "python", "typescript"]
# CodeQL supports [ $supported-codeql-languages ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Harden Runner
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.3.3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.3.3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.3.3
with:
category: "/language:${{matrix.language}}"
27 changes: 27 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
with:
egress-policy: audit

- name: 'Checkout Repository'
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: 'Dependency Review'
uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034 # v3.1.0
13 changes: 9 additions & 4 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ name: Fuzzing

on: [push, pull_request]

permissions:
contents: read

jobs:
fuzzing:
name: Fuzz
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 16.x
node-version: lts/*

- name: Install
run: |
Expand All @@ -24,7 +29,7 @@ jobs:
run: |
npm run fuzz

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: ${{ failure() }}
with:
name: undici-fuzz-results-${{ github.sha }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint
on: [push, pull_request]
permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: lts/*
- run: npm install
- run: npm run lint
65 changes: 33 additions & 32 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,42 @@

name: Node CI

on: [push, pull_request]
on:
push:
branches:
- current
- next
- 'v*'
pull_request:

jobs:
build:
name: Test
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

uses: pkgjs/action/.github/workflows/node-test.yaml@v0.1.7
with:
runs-on: ubuntu-latest, windows-latest
test-command: npm run coverage:ci
timeout-minutes: 15
post-test-steps: |
- name: Coverage Report
uses: codecov/codecov-action@v3
include: |
- runs-on: ubuntu-latest
node-version: 16.8
exclude: |
- runs-on: windows-latest
node-version: 14
- runs-on: windows-latest
node-version: 16
automerge:
if: >
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: fastify/github-action-merge-dependabot@59fc8817458fac20df8884576cfe69dbb77c9a07 # v3.9.1
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: |
npm install

- name: Unit test (no coverage)
run: |
npm test

- name: Unit test (coverage)
run: |
npm run coverage:ci

- name: Test types
run: |
npm run test:typescript

- name: Coverage report
uses: codecov/codecov-action@v1
github-token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/publish-undici-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: node scripts/generate-undici-types-package-json.js
- run: cd types
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading