Ciro Spaciari
cb057e61ba
fix(request) handle undefined/null/empty signal on request ( #5503 )
...
* handle undefined/null/empty signal on request
* better approach
2023-09-15 21:19:26 -07:00
Ciro Spaciari
b54e3f3c04
fix(corking) uncork if needed ( #5525 )
...
* fix size limit
* uncork if needed instead of terminating
* undo unrelated changes
2023-09-15 21:18:57 -07:00
dave caruso
29b22175bf
feat(runtime): add process.binding uv/natives/config + make global object properties lazy ( #5355 )
...
* binding uv
* we did that
* some more bindings
* fix doc
* fix uv
* yo
* static hash table nonsense <3
* huge refactor to the global object i am not ready for merge conflicts
* it works part 3
* lose
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-15 08:22:06 -07:00
Jarred Sumner
75697890ce
Rename this file
2023-09-15 07:10:30 -07:00
Jarred Sumner
a39b0d86a0
Fixes #5465 ( #5468 )
...
* Fixes #5465
Fixes #5465
* Update tty.js
* Update InternalModuleRegistryConstants.h
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 06:53:39 -07:00
Jarred Sumner
898962770e
Implement URL.canParse ( #5463 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 05:36:06 -07:00
Ai Hoshino
7d0db82bb3
fix(proxy): allow empty string http_proxy env. ( #5464 )
...
Close : #5380
2023-09-15 05:24:03 -07:00
Jarred Sumner
20f61b2369
Fix test
2023-09-15 04:10:05 -07:00
Jarred Sumner
9168be4f15
Add missing "size" getter to URLSearchParams prototype
2023-09-15 03:50:03 -07:00
Dylan Conway
d26addeca1
dup and close file descriptors ( #5341 )
...
* track one shot fds
* dup fd
* skip for rearm on mac
* dup if fd
* cleanup
* force unregister on close
* deinitForceUnregister
* test
* add prompts
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-15 01:39:42 -07:00
Ciro Spaciari
da7db2230f
fix(nitro) fix sourcemaps and JSSink closing ( #5422 )
...
* fix JSSink progress on sourcemap checking
* fix sourcemaps
* update JSSink fix
* undo + tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-14 23:25:01 -07:00
Dylan Conway
94e9f8bdca
fix http set cookie headers ( #5428 )
...
* allow multiple set-cookie values
* make it work for `getHeader`
* move `getHeader` to cpp
* remove set-cookie check
* move `setHeader` to cpp
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-14 23:03:20 -07:00
Jarred Sumner
ced69d3818
async-ify all node:fs functions ( #5360 )
...
* async all node:fs functions
* draw the rest of the owl
* LLVM & Clang 16
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-14 21:26:37 -07:00
Dylan Conway
308237752a
v8 date parser tests ( #5332 )
...
* Create v8-date-parser.test.js
* one more test
* add permalinks and enable parser in bun
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-14 19:43:11 -07:00
dave caruso
e8d58f24af
fix(runtime): emit node:net connect error event vs throw ( #5336 )
...
* fix(runtime): emit `node:net` connect error event vs throw
* oops
* finally
* ok
* we are good
2023-09-14 17:30:30 -07:00
Ciro Spaciari
fa2ef0972b
fix(Bun.serve) fix buffering edge case ( #5152 )
...
* fix buffering clean
* fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error
* fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error
* oops
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-13 21:48:30 -07:00
dave caruso
9976e3f528
fix(runtime): make most globals configurable/deletable, allow resuming the console iterator ( #5216 )
...
* Fix #5177
* Fix #5175
* make most globals deletable/overridable
* not done
* cool
* a
* done
* fix test
* oops
* yippee
2023-09-13 21:39:36 -07:00
dave caruso
503c808929
test ( #5244 )
2023-09-13 20:54:46 -07:00
Ciro Spaciari
d37602f316
fix(BunFile.slice) fix slice when length is greater than the size ( #5186 )
...
* check the limits for file, when slicing
* check eof
* undo test
2023-09-13 19:49:43 -07:00
Ai Hoshino
03d9bcd440
fix(node:dns): fix the crash. ( #5200 )
2023-09-13 17:43:10 -07:00
Ciro Spaciari
972a6f29cc
fix(console.log) fix printing long custom format ( #5164 )
...
* avoid overflow
* Update src/bun.js/bindings/exports.zig
* add mongodb inspect test
* bun db test
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-13 17:41:47 -07:00
WingLim
932fa35f99
feat(nodejs): implement os.availableParallelism ( #5109 )
...
* feat(nodejs): implement `os.availableParallelism`
* chore: do not throw error as same as node
* refactor: use `navigator.hardwareConcurrency`
2023-09-13 17:41:09 -07:00
David Hewitt
c3455c0cee
fix(node/fetch): Make data URL fetch consistent with node ( #5126 )
2023-09-13 05:35:39 -07:00
iidebyo
9101774593
avoid inserting extraneous"accept-encoding" header ( #5057 )
...
* add no extraneous accept-encoding header test
* ensure fetch honors no decompress opt
* fix format on test/js/node/http/node-http.test.ts
2023-09-13 02:02:25 -07:00
Dylan Conway
a3166457d3
Update node-dns.test.js
2023-09-12 16:50:11 -07:00
Alex Lam S.L
015f0a6e9a
fix up with prettier ( #5092 )
2023-09-12 05:53:55 -07:00
David Hewitt
07a6443a80
fix(node/path): Prevent memory corruption in parse ( #5083 )
...
* Add failing test for issue #4954
* fix(node/path): Return results with toValueGC
2023-09-12 05:05:00 -07:00
Ciro Spaciari
8615b8ad6b
add NODE_TLS_REJECT_UNAUTHORIZED ( #4829 )
2023-09-11 21:52:31 -07:00
Ai Hoshino
f267c1d097
fix(path): Fix edge case in path.relative ( #4811 )
...
Close : #4789
2023-09-11 17:53:43 -07:00
Ai Hoshino
c4507a5db3
Fix Buffer.from to handle double-byte hex encoding strings ( #4933 )
...
Close : #4919
2023-09-11 17:27:12 -07:00
Ciro Spaciari
c9a0ea96cd
fix(BunFile) .slice offset on macOS ( #4991 )
...
* fix offset
* simplify error
2023-09-11 17:19:43 -07:00
Dylan Conway
895f3824b5
update test
2023-09-11 10:43:33 -07:00
Jarred Sumner
edea4f095a
Fixes #4588 ( #4804 )
...
* Fixes #4588
* typo
* fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-10 21:40:46 -07:00
Chris Hutchinson
8139a20c9f
fix: remove from bun-server.test.ts test case ( #4709 )
2023-09-09 19:03:28 -07:00
Ashcon Partovi
ffe4f561a3
Fix listen() using unix socket if argument is a valid port ( #4620 )
...
* Fix listen() using unix socket if argument is a valid port
Fixes #4582
* Add test
2023-09-08 16:27:44 -07:00
Jarred Sumner
822a00c4d5
Fix a couple important bugs ( #4560 )
2023-09-07 21:07:00 -08:00
dave caruso
36e5a072a9
revert ( #4539 )
...
* Revert "remove native events from streams"
This reverts commit e063a47a53 .
* finish revert
* remove accidental submodule
* dfghj
2023-09-07 07:45:00 -07:00
dave caruso
57a06745a4
Progress for Next.js ( #4468 )
...
* L
* ipc
* asdfghjkl
* dfghjk
* it works!
* types
* patches for next.js
* sdfghj
* wsdfgn,./
* this
* yolo
* okay loser
* asdfghjk
* add some more APIs
* MESS
* sdfghjkl
* remove native events from streams
* stuff
* remove lazy(primordials) test
* debugging
* okay
* less fake extensions object
* fix `Buffer.toString()` args logic
* fix deserialize
* make tests work
* add test for `Buffer.toString` args
* Update server.zig
* remove test
* update test
* Update spawn-streaming-stdin.test.ts
* fix linux build
* Update fs.test.ts
* cli message improvements
* dfshaj
* Fix fs.watch bug maybe?
* remove
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2023-09-07 04:58:44 -07:00
Ciro Spaciari
4360ec83b4
feat(fetch) rejectUnauthorized and checkServerIdentity ( #4514 )
...
* enable root certs on fetch
* rebase
* fix lookup
* some fixes and improvements
* fmt
* more fixes
* more fixes
* check detached onHandshake
* fix promise case
* fix cert non-Native
* add fetch tls tests
* more one test
2023-09-06 22:23:24 -07:00
dave caruso
a79440f0c3
fix(runtime): fix events.once not working ( #4520 )
2023-09-06 07:13:05 -07:00
Dylan Conway
70a5cfe908
fix text decode trim ( #4495 )
...
* remove trim
* separate function
* a test
* trim when `stream` is true
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-05 17:53:31 -07:00
Jarred Sumner
1bd5b245b8
Align process.nextTick execution order with Node ( #4409 )
...
* Align `process.nextTick` execution order with Node
* some tests
* formatting
* fixups
* fix the test failures
* simplify the logic here
* push it up
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2023-09-05 17:52:57 -07:00
dave caruso
acfd028e8f
feat(runtime): Implement fs.watchFile ( #4467 )
...
* really lame prototype
* uses threads but badly
* it works i guess
* unwatchFile but lame
* it works
* test
* a
* aomitcs
* fix unwatching race condition
* use hasPendingActivity and GC stuff better
* test
* revert this
2023-09-05 17:41:39 -07:00
dave caruso
6f8a393492
fix(node:net): emit close event on connection error ( #4336 )
...
* emit close event on connection error
* re-review
* add test
2023-09-05 16:59:40 -07:00
Ciro Spaciari
6e50dd210f
fix(fetch) always use readable stream if it is available ( #4503 )
...
* always use readable stream if it is available
* use bun sleep
* fix tests
* rm uws dep
2023-09-05 15:22:09 -07:00
Ciro Spaciari
d268097ded
fix SSL proxy tunneling on fetch ( #4510 )
2023-09-05 15:21:34 -07:00
Alex Lam S.L
bc2b55fdee
fix checkout/build failure due to src/deps/uws ( #4505 )
2023-09-05 19:16:11 +03:00
Dylan Conway
7dae4db52a
fix ipv6 localhost fetch ( #4498 )
...
* `node` null for localhost getaddrinfo
* more test
2023-09-05 06:12:54 -07:00
Ciro Spaciari
f1afd58338
fix zlib deflate on fetch ( #4483 )
...
* fix zlib deflate on fetch
* mention issue on test
* more tests
* oops
2023-09-04 17:37:47 -07:00
Ciro Spaciari
2d80f94eda
fix(HTMLRewriter) buffer response before transform ( #4418 )
...
* html rewriter response buffering
* pipe the data when marked as used
* fix empty response
* add some fetch tests
* deinit parent stream
* fix decompression
* keep byte_reader alive
* update builds
* remove nonsense
* was not nonsense after all
* protect tmp ret value from GC, fix readable strong ref deinit/init
* fmt
* if we detach the stream we cannot update the fetch stream
* detach checking source
* more tests, progress with javascript and Direct sink
* drop support for pure readable stream for now
* more fixes
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-04 12:26:49 -07:00