Jarred Sumner
681be10294
Make bun:jsc memoryUsage more accurate ( #3876 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-29 06:18:51 -07:00
0xflotus
dccf82b1c6
docs: fixed small errors ( #3879 )
...
* Update cache.md
* Update index.md
* Update macros.md
* Update writing.md
2023-07-29 03:58:45 -07:00
0xflotus
5563be99d3
fix: small error ( #3878 )
2023-07-29 03:32:24 -07:00
Jhorman Tito
bcb6dc7806
typo spawn.md ( #3875 )
2023-07-29 00:35:13 -07:00
Jarred Sumner
dae2928620
Update nodejs-apis.md
2023-07-28 23:58:59 -07:00
Jarred Sumner
05ef9ec141
Update nodejs-apis.md
2023-07-28 23:57:02 -07:00
Jarred Sumner
53cc4df191
Defer task destruction
bun-v0.7.1
2023-07-28 20:34:57 -07:00
Jarred Sumner
05716ff39b
Stat largefile test ( #3870 )
...
* Add test for stat on a large file
* Update fs.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-28 18:55:04 -07:00
Jarred Sumner
4f914cbfe8
Ignore when printing to stdout errors ( #3869 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-28 18:53:44 -07:00
Jarred Sumner
da7c1d84e9
Fix bug with /path/to/absolute/bun.lockb
2023-07-28 18:52:04 -07:00
Dylan Conway
aebec5b329
markBinding
2023-07-28 18:07:28 -07:00
Dylan Conway
c68d9ae634
optional parameter
2023-07-28 18:04:00 -07:00
Jarred Sumner
bd66a9a94c
Fixes #3868
...
Fixes #3868
Fixes #849
2023-07-28 17:53:12 -07:00
Jarred Sumner
1490cdc4ff
Fix assertion failure and possible infinite loop when printing as yarn lock files
2023-07-28 17:40:05 -07:00
Jarred Sumner
97009a49bd
Mark broken test as todo
2023-07-28 16:59:46 -07:00
Dylan Conway
d432448ac8
fix types and add message channel/port gc test
2023-07-28 16:55:49 -07:00
Dylan Conway
d614fdfaac
MessageChannel and MessagePort (#3860 )
...
* copy and format
* copy
* copy
* cleanup
* some tests
* spellcheck
* add types
* don't lock getting contextId
* array buffer test
2023-07-28 16:44:28 -07:00
Jarred Sumner
0a4e476a7c
mark tests as todo
2023-07-28 16:24:22 -07:00
Vlad Sirenko
9078b1286d
add fork to child_process ( #3851 )
...
* add fork to child_process
* fix export
* add test to child_process method `fork`
* fmt fork
* remove only from test
2023-07-28 16:00:43 -07:00
Tiramify (A.K. Daniel)
242d8655d8
feat(bun/test): Impl. expect().pass() & expect().fail() ( #3843 )
...
* Impl. pass & fail
* fix
* fix 2
* smol
2023-07-28 15:46:44 -07:00
Ai Hoshino
9b91e3c1a2
fix the chunk boundary (node:stream:createReadStream) ( #3853 )
...
* fix the slice boundary.
Close : #3668
* Add more boundary test case.
* fix end is 0.
2023-07-28 15:44:33 -07:00
Jarred Sumner
7a1ebec26f
Support file: URLs in fetch ( #3858 )
...
* Support file: URLs in `fetch`
* Update url.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-28 15:44:05 -07:00
Ciro Spaciari
e7c80b90b8
fix(tls) exposes native canonicalizeIP and fix rootCertificates ( #3866 )
...
* exposes native canonicalizeIP
* remove unintended duplicate
* add tests
* add tests for debug builds
* add rootCertificates test and fix len
* just randomize test ids on prisma
* remove work around and bump usockets with the actual fix
* fix case
* bump uws
2023-07-28 15:43:15 -07:00
Jarred Sumner
e110ccf84d
Fixes #3795 ( #3856 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-28 01:33:00 -07:00
Jarred Sumner
c2a744f0cc
Add todo
...
cc @cirospaciari
2023-07-28 00:34:54 -07:00
Jarred Sumner
38168f3c85
Update pull_request_template.md
2023-07-28 00:17:47 -07:00
Jarred Sumner
cbaab23f6d
Update pull_request_template.md
2023-07-28 00:17:26 -07:00
Jarred Sumner
3e5beb1279
Fix bug with // @bun annotation in main thread ( #3855 )
...
* Uncomment test
* Fix bug with // @bun + async transpiler
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-27 22:30:10 -07:00
Jarred Sumner
70b9bf743c
Add Bun.isMainThread
2023-07-27 22:28:28 -07:00
Jarred Sumner
f3153fbee9
Uncomment test
2023-07-27 20:46:25 -07:00
Ciro Spaciari
7fa71dd032
Resolve watch directories outside main thread + async iterator and symlink fixes ( #3846 )
...
* linux working pending tests with FSEvents
* add more tests, fix async iterator
* remove unnecessary check
* fix macos symlink on directories
* remove indirection layer
* todos
* fixes and some permission test
* fix opsie and make prisma test more reliable
* rebase with main
* add comptime check for macOS
* oops
* oops2
* fix symlinks cascade on FSEvents
* use JSC.WorkPool
* use withResolver, createFIFO and fix close event on async iterator
* remove unused events
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-07-27 19:23:54 -07:00
Jarred Sumner
52f39d728f
Update pull_request_template.md
2023-07-27 18:12:11 -07:00
Jarred Sumner
73eb59019a
Update pull_request_template.md
2023-07-27 18:11:28 -07:00
Jarred Sumner
3b24305b7c
Update pull_request_template.md
2023-07-27 18:10:49 -07:00
Jarred Sumner
1304779826
Update pull_request_template.md
2023-07-27 18:03:44 -07:00
Jarred Sumner
65d0884361
Update pull_request_template.md
2023-07-27 18:01:01 -07:00
Jarred Sumner
16fdc074ca
Update pull_request_template.md
2023-07-27 18:00:03 -07:00
Jarred Sumner
6b35fd847f
Create pull_request_template.md
2023-07-27 17:56:11 -07:00
Jarred Sumner
007f357495
Make readFile() async ( #3850 )
...
* less leaky
* async readfile
* Update types.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-27 16:55:49 -07:00
Jarred Sumner
16a7224ce5
Fix hot reloading in canary ( #3848 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-27 15:52:52 -07:00
Jarred Sumner
7c44773f38
Outdated copy
2023-07-27 15:22:53 -07:00
Jarred Sumner
85895bd248
Use putDirectIndex instead of initializeIndex ( #3839 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-27 14:45:32 -07:00
Luigi Pinca
6c2ec2868f
Remove no longer needed flag from benchmark documentation ( #3845 )
...
`Deno.serve()` was stabilized in version 1.35.0.
2023-07-27 13:27:54 -07:00
Jarred Sumner
704ee13392
Make readdir() async, fix crash in large directory trees ( #3838 )
...
* Fix unsafe GC behavior on large arrays returned by fs
* Fix crash in large arrays of strings
* async readdir
* Add tests for large number of files returned by readdir
* Move this down
* Fix encoding edgecase in path.join
* Async stat & lstat
* add test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-27 04:27:09 -07:00
Jarred Sumner
d7aebc2222
Remove lstat call in fs.watch ( #3836 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-27 03:34:18 -07:00
Jarred Sumner
dc0d767f27
Enable Promise.withResolvers()
...
https://github.com/tc39/proposal-promise-with-resolvers
Thanks @dcrousso
2023-07-26 23:52:57 -07:00
Jarred Sumner
86633e0af4
Start time performance improvements to build tools ( #3797 )
...
* Make os.cpus() faster on Linux
* Fix crash
See https://github.com/ziglang/zig/issues/16540
* Handle watcher_count == 0
* Add assertion
* Clean up lifetimes of fs watcher a little
* ✂️
* Use `errdefer`
* Make the error better
* Make os.cpus() more lazy
* Please don't translate-c on the entire C standard library
* immediately closing works correctly is still bug
* ops
* fmt+fixeup
* add back verbose
* free instead of destroy
* remove destroy option for watcher tasks
* flush verbose and add debug log
* fixup files
* use log for debug
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: cirospaciari <ciro.spaciari@gmail.com >
2023-07-26 21:35:49 -07:00
Jarred Sumner
ec2cf38ad8
[fetch] Ignore invalid Content-Encoding header ( #3834 )
...
Fixes #3802
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-26 20:24:36 -07:00
Colin McDonnell
34fd4df646
Fix broken anchors
2023-07-26 17:11:15 -07:00
Jarred Sumner
a6d54e5949
Update macro-test.test.ts
2023-07-26 16:56:26 -07:00