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
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
Dylan Conway
895f3824b5
update test
2023-09-11 10:43:33 -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
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
Alex Lam S.L
bc2b55fdee
fix checkout/build failure due to src/deps/uws ( #4505 )
2023-09-05 19:16:11 +03:00
Ai Hoshino
f1b109d5dd
fix(syscall): fix handling syscall errno ( #4461 )
...
* fix(syscall): fix handling syscall errno
Close : #4198
* remove unused code
* add more tests
* remove unused code
2023-09-03 17:30:30 -07:00
Dylan Conway
0019073c8a
fix Bun.serve with tls and Bun.file ( #4450 )
...
* check sendfile ctx
* add test
* undo blob check
* undo undo and add assert
2023-09-01 20:10:54 -07:00
dave caruso
5288178c86
fix(runtime): fs.cp edge cases ( #4439 )
...
* yippee
* enable cpSync tests
* much better
* that doesnt actually do anything
* lose
2023-08-31 23:04:19 -07:00
dave caruso
0a5d2a8195
feat(node:fs): add cp/cpSync/promises.cp + async copyFile ( #4340 )
...
* half working disaster code
* this
* async copyFile
* .
* its failing symlink tests
* asdfg
* asdf
* hmm
* okay i think ti works
* small edits
* fix test on linux
* i hate atomics / atomics hate me back <3
* add a message in the builtins bundler that 0.8 is needed. it breaks on older versions lol.
* fixed
* rebase
2023-08-30 18:30:06 -07:00
Ciro Spaciari
908018a4df
fix(http/https) disable decompress on http/https client ( #4399 )
...
* disable decompress on http/https module
* make js again
2023-08-30 13:50:09 -03:00
Jarred Sumner
f24ca39004
Fix bug in util/types.{isGeneratorFunction,isAsyncFunction}
2023-08-30 00:19:39 -07:00
dave caruso
a846852818
fix(node-fetch): use stream.Readable instead of web streams ( #4394 )
...
* fix blobFrom
* fix(node-fetch): use stream.Readable instead of web streams
* uncomment
* comment why
2023-08-29 19:45:16 -07:00
Ai Hoshino
3f4bc625ff
parse unix socket path param in http.server ( #4390 )
2023-08-29 19:39:12 -07:00
Dylan Conway
de58e9d583
emit open and call close callback ( #4384 )
2023-08-29 09:44:45 -07:00
Ai Hoshino
c53372c9f3
feat(node:dns): implement dns.reverse. ( #4332 )
...
* feat(node:dns): implement `dns.reverse`.
Close : #4299
* fix dns reverse for ipv6
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-28 20:10:33 -07:00
Dylan Conway
d1c2d6b25c
use options.fd if provided for fs.Read/WriteStream ( #4378 )
...
* use `options.fd` over path
* tests
* fix `@clack/prompts`
* == null
2023-08-28 20:08:08 -07:00
Ai Hoshino
efe987e8d1
Fix some edge cases in the env param of spawn. ( #4364 )
...
Close : #4362
2023-08-27 23:58:31 -07:00
Ai Hoshino
6e57556fad
Fix(node:http): fix URL formatting when using a proxy. ( #4297 )
...
Close : #4295
2023-08-24 17:17:18 -07:00
Ai Hoshino
339d2c7f19
Make the server not crash if an error occurs in dev build. ( #4300 )
...
Close : #4298
2023-08-24 17:16:51 -07:00
Jarred Sumner
c99a9ba33a
Implement File
2023-08-21 01:29:06 -07:00
Jarred Sumner
f75b949524
Fixes #1675 ( #4230 )
...
* Fixes https://github.com/oven-sh/bun/issues/1675
* Add fallback for Bun.write
* Update blob.zig
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-20 21:29:09 -07:00
Jarred Sumner
65280853ac
Fix test failures from 3a9a6c63a ( #4231 )
...
cc @Hanaasagi
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-20 19:22:55 -07:00
Dylan Conway
db09ed15fd
tty ReadStream, WriteStream, and readline rawmode ( #4179 )
...
* tty `WriteStream`, `ReadStream`, and rawmode
* tests
* refactor prototypes
* fix failing test
* fix test and library usage
* more merge
* fix child_process test
* create pseudo terminal for tty tests
* match node logic
* handle invalid tty
* close descriptors
* move tests to another process
* fix test again
* fix test on linux
2023-08-19 00:11:24 -07:00
dave caruso
26036a390b
Implement BigIntStats ( #4208 )
...
* Implement BigIntStats
* changes
* rename test
* comment
* test changes?
2023-08-18 19:59:03 -07:00
dave caruso
6fd0043f6b
Add util.inspect.custom support to util.inspect/Bun.inspect/console.log ( #4194 )
...
* start work on util.inspect.custom
* asdf
* finish util inspect custom inspect
* inspect
* fix tests
* revert
* tidy
* revert
* oops
* test
* fix issues
2023-08-17 20:56:52 -07:00
dave caruso
0424fd8f6e
Support Nitro ( #4098 )
...
* Add formatWithOptions
* tests and tweaks
* adjust
* changes
* hi
* add mark/measure stubs
* stuff
* allow unix absolute paths here
* typo
* rebase
* fix stats
2023-08-17 19:34:05 -07:00
dave caruso
f74585ff01
Allow IncomingRequest.req to be overwritten. ( #4154 )
...
* Allow IncomingRequest.req to be overwritten.
* add test
* fix test
* yoo
2023-08-17 14:57:43 -07:00
Ai Hoshino
b2f8ef4dff
Fix(node:fs): add buffer parameter in fs.read callback. ( #4191 )
...
Close : #4178
2023-08-17 14:27:33 -07:00
Jarred Sumner
c6d3b375b8
async realpath ( #4117 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 22:15:07 -07:00
dave caruso
74f9fabd01
add util.formatWithOptions ( #4090 )
...
* Add formatWithOptions
* tests and tweaks
* adjust
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-10 13:09:03 -07:00
Ai Hoshino
385d440694
Fix constructing buffer from a UTF16 string with the Latin1 encoding. ( #4086 )
...
Close : #3914
2023-08-09 09:45:50 -07:00
dave caruso
1941dbbd71
Set exports to {} in user-constructed CommonJSModuleRecords ( #4076 )
2023-08-08 19:37:36 -07:00
dave caruso
320cdcf97e
Fix require("console") #3820 ( #4073 )
...
* Fix #3820
* Add Module (#4074 )
2023-08-08 18:23:33 -07:00
Ai Hoshino
511f6bdf79
1. Check if the argument is an empty string in path.format. ( #4064 )
...
2. Avoid duplicating '/' at the beginning of the path.
Close : #4005
2023-08-08 07:03:18 -07:00
dave caruso
5497accbdb
Add env option for node:worker_threads ( #4052 )
...
* almost works
* env stuff
* test fixes
* wtfmove
* ok
* ok
* ref by default
* it now does the ref stuff by default
* cool
2023-08-07 23:58:38 -07:00
Jarred Sumner
f2f227720b
WASM test analyzer ( #4043 )
...
* wasm
* WASM test scanner
* Update Makefile
* Update Makefile
* Configurable heap limit
* slightly better error
* Update js_parser.zig
* Update path.test.js
* Update node.mjs
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-07 18:51:16 -07:00
Ai Hoshino
5ce393aab8
Fix path.normalize edge case. ( #4042 )
...
Close : #4041
2023-08-07 06:44:04 -07:00
Jarred Sumner
0665733b03
Fixes #4029 and fixes #4022 ( #4032 )
...
* Fixes #4029 and Fixes #4022
Fixes #4029
Fixes #4022
* Add test for all the fetches
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 20:39:40 -07:00