Jarred Sumner
54d25b8f6b
Update cp.test.ts
2023-09-30 17:09:27 -07:00
Jarred Sumner
c21be13be4
tweak github actions ( #6195 )
...
* Discord comments
* better
* better
* actions
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-30 02:50:38 -07:00
dave caruso
72bdd380af
add Socket.prototype; lol ( #5945 )
2023-09-29 15:42:06 -07:00
dave caruso
387f1260c9
Get Next.js Pages Router to work ( #6095 )
...
* hell
* make it so bun-debug-src
* teag
* wild
* yippee
* fas
* fix async hooks assertions
* yap
* yeah that's wild
* aa
* a
* increase time allowed
* so trivial
2023-09-28 03:53:24 -07:00
jhmaster
e60b3607c1
Complete rework of the majority of node:util, primarily util.inspect ( #4493 )
...
* 1st revision of new util.inspect impl. (not done)
* fix util.types.isArrayBuffer
* fix some utl tests and bugs
* fix node:tty missing primordials
* fix utl stackoverflow handling & some tests
* narrow down diff. context test
* util.inspect indirect circulars optimization
* temp workaround for buggy is...Function checks
* impl. Map/Set/Iterator entries inspection
* fix bigint & symbol objects inspection
* error inspection fixes
* misc util tests stuff
* inline getExternalValue stub
* leftovers
* util.inspect promise internals
* run bun fmt
* commit make js changes
* cut out unnecessary utl files
* reorganize utl folder structure
* remove browserify buffer check
* Try to revert git messing up uws somehow
This reverts commit 2c27e16e7d .
* commit src/js/out files again
* redo this edit too
* refresh js/out files
* Removed uws submodule
* tidy up
* unused primordials
* run fmt
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-09-27 23:51:49 -07:00
Ai Hoshino
a0081f9e29
fix(node:fs): fix fs.exists callback parameters ( #6097 )
...
Close : #6073
2023-09-27 03:40:45 -07:00
Dylan Conway
aec0d35f9b
no this value ( #6063 )
2023-09-25 23:27:55 -07:00
Jarred Sumner
6cde1d3b89
Add Module._extensions ( #5998 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-25 16:09:09 -07:00
Jarred Sumner
e34ff61339
Don't use arena in node:fs ( #5863 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 18:59:01 -07:00
Liz
b297fabd17
fix: correctly pass the encrypted(bool) property on "Socket" for express.js ( #5878 )
...
* fix: correctly pass the encrypted property on "Socket" for express.js
Express relies on this for setting the requests protocol.
Since this is on a dummy object, a property is simply set with the actual value.
Which seams okay as a workaround.
* chore: add generated files
* chore: add test
* refactor: set property directly rather then through a getter
2023-09-21 18:44:05 -07:00
dave caruso
b05e10cd8b
fix(node:fs): use the right copyFile constants ( #5874 )
2023-09-21 18:42:49 -07:00
Jarred Sumner
0b4a34bbd6
Fix test failures ( #5862 )
...
* Fix test failures
* Fixes #5851
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 07:56:44 -07:00
Jarred Sumner
d1e9b33cac
On Linux, respect memory limit from cgroups ( #5849 )
...
* Implement `process.constrainedMemory()`
* Add a comment
* Handle max
* Missing header
* We can use WTF::ramSize now
* Update WebKit
* Update ZigGlobalObject.cpp
* WebKit
* ✂️
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 07:25:18 -07:00
Ai Hoshino
7319142fd8
feat(node:dns): implement dns.lookupService ( #5613 )
...
* feat(node:dns): implement dns.lookupService
Close : #4347
* fix flags
* add `getSockaddr`
* fix sockaddr size
* flaky test
2023-09-20 18:43:08 -07:00
dave caruso
365fc0d39d
implement Module.prototype._compile ( #5840 )
2023-09-20 18:31:57 -07:00
dave caruso
34d191be67
feat(runtime): implement console._stdout ( #5842 )
...
* implement console._stdout
* nonenum
2023-09-20 18:28:07 -07:00
Ashcon Partovi
64a717ab33
Run bun fmt
2023-09-20 17:24:09 -07:00
Jarred Sumner
ff7f642099
Call Error.prepareStackTrace on new Error().stack ( #5802 )
...
* Always call `Error.prepareStackTrace`
* Support node:vm
* Remove this
* Handle more cases
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-20 05:52:59 -07:00
Jarred Sumner
1456c72648
Fixes #5800
...
Fixes #5800
2023-09-20 04:33:38 -07:00
Jarred Sumner
5defdf3e28
Fixes #5769 ( #5775 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 18:16:51 -07:00
Jarred Sumner
9d3f60d44e
Prettier
2023-09-18 21:30:17 -07:00
dave caruso
eb1dc7eede
fix(runtime/node): Allow new Buffer.alloc() + Upgrade WebKit ( #5699 )
...
* make bufferconstructor a static hash table
* chore: Upgrade WebKit to 4d995edbc44062b251be638818edcd88d7d14dd7
* make it constructable now
* fix comment
* yippee
* update CI workflows
2023-09-18 17:33:58 -07:00
dave caruso
333e217c32
feat(runtime): Implement console.Console ( #5448 )
...
* prototype
* asdfg
* It works!
* okay its done now fr
* self review
* ok
* fix
* fix test
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-18 16:29:56 -07:00
dave caruso
f77df12894
Fix HTTP listen behavior being non-compliant with node ( #5689 )
...
* Fix HTTP listen behavior being non-compliant with node
* Add error code for address in use
* use SystemError
---------
Co-authored-by: SuperAuguste <19855629+SuperAuguste@users.noreply.github.com >
2023-09-18 14:57:48 -07:00
Ciro Spaciari
4e0c589562
fix(child_process) unref next tick so exit/close event can be fired before application exits ( #5481 )
...
* unref next tick so exit callback can be called
* fmt + test
* oops
* add ref_count
* update pending
* comment and fix
2023-09-16 22:44:13 -07:00
MrPalixir
0a318ecca1
fix: node compatibility with empty path string ( #4693 )
...
Co-authored-by: MrPalixir <73360179+MrPalixir@users.noreply.github.com >
2023-09-16 18:51:18 -07:00
David Hewitt
43c463f078
fix(node/fs.watch): Check first char before trimming event filenames ( #5505 )
...
* Add failing test
* fix(node/fs.watch): Don't lose first char in event
* run prettier
2023-09-15 21:21:15 -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
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
dave caruso
503c808929
test ( #5244 )
2023-09-13 20:54:46 -07:00
Ai Hoshino
03d9bcd440
fix(node:dns): fix the crash. ( #5200 )
2023-09-13 17:43:10 -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
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