Commit Graph

427 Commits

Author SHA1 Message Date
Jarred Sumner
ee4602b4ca Merge branch 'main' into jarred/process-change 2024-03-07 13:19:58 -08:00
Jarred Sumner
76e6141235 Deflake 2024-03-07 13:09:53 +01:00
dave caruso
e8374ebd82 feat: implement util.styleText (#9287)
* feat: implement util.styleText

* i forgot to test
2024-03-07 03:20:08 -08:00
Jarred Sumner
3106aefbd3 Cleanup test 2024-03-07 03:15:14 -08:00
Jarred Sumner
ad13b044cc Merge and hopefully don't breka things along teh way 2024-03-07 03:07:48 -08:00
Jarred Sumner
73890cb708 Make it bigger 2024-03-07 02:35:32 -08:00
Jarred Sumner
20bb1c2bca Fix a test 2024-03-06 19:45:01 -08:00
Jarred Sumner
f601c39020 Update child_process.test.ts 2024-03-06 17:42:58 -08:00
Jarred Sumner
2c0e8c99a9 Merge branch 'main' into jarred/process-change 2024-03-06 17:39:48 -08:00
cirospaciari
0f223cb72c always run expect 2024-03-06 21:42:43 -03:00
cirospaciari
ce82aeccc6 oops 2024-03-06 19:43:02 -03:00
cirospaciari
b113490a7d some fixes 2024-03-06 19:36:03 -03:00
Meghan Denny
8fc08752e5 node:http: emit 'socket' event after calling http.request() (#9270)
* node:http: emit 'socket' event after calling http.request()

* add reference links for why this is how it is

* add guards to not waste time

* add a regression test

* use test harness port number
2024-03-05 23:01:32 -08:00
Jarred Sumner
09e7aaa17d Fixups 2024-03-05 22:47:13 -08:00
Jarred Sumner
b8a2ef88f1 Merge branch 'main' into jarred/process-change 2024-03-05 20:17:53 -08:00
Meghan Denny
bb3295ba84 node:url implement domainToASCII and domainToUnicode (#9257)
* node:url implement domainToASCII and domainToUnicode

* fix arg checks

* remove unneeded use of WTF::Vector

* tidy

* throw a js error if icu fails

* add a ton more tests, fix ascii guard, upconvert latin1

* even more tests

* add a comment for this guard

* use ASSERT_NOT_REACHED() instead of raise(SIGABRT)
2024-03-05 19:46:38 -08:00
Jarred Sumner
76ed3256cf Make this test less flaky on windows 2024-03-05 19:24:21 -08:00
Ashcon Partovi
c837903e4e Fix new Request("/") not working with node-fetch (#9246)
* Fix `new Request("/")` not working with `node-fetch`

* Address review

* Address review 2

* Fix bad test
2024-03-05 16:51:52 -08:00
Jarred Sumner
a9345921df Make it pass on windows 2024-03-05 15:32:41 -08:00
Jarred Sumner
1c9d2bec1c Merge branch 'main' into jarred/process-change 2024-03-05 13:54:25 -08:00
Jarred Sumner
a96a744629 Make this test less flaky on Windows 2024-03-05 13:45:28 -08:00
Yash Singh
bd2176ffb0 fix: format specifier without characters in between (#9209)
* fix: format specifier without spaces in between, resolves #9208

* chore: test in console-log.test.ts
2024-03-04 17:46:19 -08:00
Jarred Sumner
3234d522bb Merge branch 'main' into jarred/process-change 2024-03-04 16:49:58 -08:00
ErikOnBike
4f0a497660 Fix lost constructors in Node.js module classes (#9245) 2024-03-04 16:12:22 -08:00
Jarred Sumner
24c44c6309 Merge branch 'main' into jarred/process-change 2024-03-04 00:27:27 -08:00
argosphil
4257457c6a Allow relative paths in cpAsync again (#9184)
* allow relative paths in cpAsync again

* test for #9024

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-03-03 16:30:34 -08:00
Cameron Haley
b5cea9a20c Avoid manually destroying stream when IncomingMessage stream is done reading (#9219)
* Avoid manually destroying stream when IncomingMessage stream is done reading

* Add test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-03 16:29:13 -08:00
Jarred Sumner
27aa8d66f0 Merge branch 'main' into jarred/process-change 2024-02-29 18:23:10 -08:00
Meghan Denny
2fb6733eeb windows: pass test/js/node/process/process.test.js (#9161) 2024-02-28 20:25:05 -08:00
Jarred Sumner
ce63926249 Support signal codes in subprocess.kill(), resolve file path 2024-02-28 19:45:52 -08:00
Cameron Haley
bfdad44460 Fix issue where process.stdin is ended too early (#9155)
* Fix issue wherein process.stdin is ended too early

* [autofix.ci] apply automated fixes

* test: Generate prisma client on 'big' schema

* Update test/js/third_party/prisma/helper.ts

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-02-28 19:03:08 -08:00
Jarred Sumner
16814cdddb Make this test less flaky on Windows 2024-02-28 17:17:22 -08:00
Jarred Sumner
27a0deab5f Make this test less flaky on Windows 2024-02-28 17:03:00 -08:00
Jarred Sumner
52b8f84a19 Merge branch 'main' into jarred/process-change 2024-02-28 14:23:03 -08:00
Jarred Sumner
dc6af25b54 Fix ownKeys issue (#9154) 2024-02-28 14:22:25 -08:00
Jarred Sumner
f3c494f9c0 Merge branch 'main' into jarred/process-change 2024-02-27 16:02:33 -08:00
Jarred Sumner
fd6fd78f0f Fixes #9120 (#9128)
* Fixes #9120

* Update buffer.test.js

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-26 19:15:28 -08:00
Jarred Sumner
56d936b36f Merge branch 'main' into jarred/process-change 2024-02-26 18:56:37 -08:00
Jarred Sumner
57eb04f6f4 [internal] Switch back to prettier (#9109)
* Switch back to prettier

* wip

* Update .prettierignore

* Update .prettierignore

* ignores

* Update .prettierignore

* Rest

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-26 11:13:02 -08:00
Jarred Sumner
c954be2ae3 Merge branch 'main' into jarred/process-change 2024-02-25 19:26:35 -08:00
Jarred Sumner
92dec0a871 Implement util.types.isKeyObject (#9091)
* Implement util.types.isKeyObject

* just use inherits

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-25 14:30:05 -08:00
Cameron Haley
2333c94f8e Fix prisma generate by emitting readable event on EoF (#9101)
* Add test for ensuring the 'readable' event is emitted on end

* Run emitReadable on nextTick instead of as microtask

* perf: Store intermediate variables

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-02-25 13:01:07 -08:00
Jarred Sumner
4ba1d4d7c8 Add missing fdatasync (#9092)
* Add missing fdatasync

* don't use /tmp/ since it might not support fdatasync on linux

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-24 15:47:14 -08:00
Meghan Denny
ed339b367d improve Bun.stringWidth's algorithm (#9022)
* improve Bun.stringWidth's algorithm

* add a bunch more tests from string-width package

* make typescript happy

* undo typescript changes

* use better #define check for debug mode

* properly handle latin1 width tests

* support grapheme clusters

* fix trailing newline

* visibleUTF16WidthFn- add fast path for leading ascii

* add firstNonASCII16IgnoreMin

* fix firstNonASCII16CheckMin

* vectorize visibleUTF16WidthFn

* support emoji variation selector

* expose stringWidth in release mode too

* vectorize visibleLatin1Width

* support ambiguousIsNarrow option

* add typescript definition for stringWidth
2024-02-22 19:16:17 -08:00
Jarred Sumner
2d71bce242 Merge branch 'main' into jarred/process-change 2024-02-21 21:02:49 -08:00
Jarred Sumner
2c6cd24393 Implement expect().toBeOneOf(), fix small memory leaks in expect matchers (#9043)
* Add .toBeOneOf

* Fix memory leaks in .toContain(), .toInclude(), toContainKeys(), toBeTypeOf(), toEqualIgnoringWhitespace

* Handle exception

* Ignore non-bool

* Propagate errors when the message callback throws

* fixups

* Update preload.ts

* Update jest-extended.test.js

* Update expect.zig

* comments

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-21 18:31:14 -08:00
Jarred Sumner
6184542682 Add BUN_DEBUG flag to control where debug logs go (#9019)
* Add `BUN_DEBUG` flag to control where debug logs go

* Update all the actions

* Configure temp

* use spawn instead of rm

* Use CLOSE_RANGE_CLOEXEC

* Make some tests more reproducible

* Update hot.test.ts

* Detect file descriptor leaks and wait for stdout

* Update runner.node.mjs

* Update preload.ts

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2024-02-21 14:13:43 -08:00
Jarred Sumner
78291af8de [child_process] Fix neglecting to drain stdout/stderr pipes
cc @jdalton @paperdave
2024-02-20 16:16:52 -08:00
Jarred Sumner
b201cc3aed Use socket instead of pipe 2024-02-19 19:33:28 -08:00
Jarred Sumner
27bdf3a11d Merge branch 'main' into jarred/process-change 2024-02-19 16:32:25 -08:00