Jarred Sumner
774e30d383
Make originalLine and originalColumn getter calls not observable ( #15951 )
2024-12-23 03:40:51 -08:00
Jarred Sumner
32c1fdf205
Rename estimateDirectMemoryUsageOf to estimateShallowMemoryUsageOf
2024-12-16 20:18:04 -08:00
Jarred Sumner
aada6f930f
Fix heap snapshots memory usage stats. Introduce estimateDirectMemoryUsageOf function in "bun:jsc" ( #15790 )
2024-12-16 20:16:23 -08:00
dave caruso
b39632c921
feat: new binding generator ( #15638 )
2024-12-10 12:43:17 -08:00
Dennis Dudek
1bb211df56
bustDirCache on FileSystemRouter.reload & fix of dir_cache keys in windows ( #15091 )
...
Co-authored-by: dave caruso <me@paperdave.net >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-11-27 12:21:32 -08:00
Michael H
0d6d4faa51
better printing for console.log types ( #15404 )
2024-11-26 14:27:39 -08:00
Dylan Conway
66ba6ba061
fix 14957 ( #15025 )
2024-11-06 19:41:39 -08:00
Jarred Sumner
240b2a539f
Introduce Bun.randomUUIDv7 ( #14858 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-10-29 16:39:09 -07:00
Jarred Sumner
070e5804ad
Implement crypto.hash() ( #14683 )
2024-10-19 12:14:23 -07:00
Dylan Conway
e5c00ab4b4
fix(CryptoHasher): throw error if update or digest are called after digest ( #14677 )
2024-10-19 02:21:41 +00:00
Ciro Spaciari
409e674526
feat(node:http2) Implement HTTP2 server support ( #14286 )
...
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-10-15 16:28:21 -07:00
Jarred Sumner
43a5c4a044
Implement Bun.inspect.table ( #14486 )
2024-10-11 21:35:49 -07:00
Jarred Sumner
af82a446df
Support hmac in Bun.CryptoHasher ( #14210 )
2024-09-27 23:33:22 -07:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
Jarred Sumner
55cdf69415
Make the error better on Windows when you do Bun.file(path).writer() ( #13536 )
2024-08-25 22:29:52 -07:00
Jarred Sumner
ef8fd12e43
Include "name" and lastModified when console.log'ing Blob or File ( #13435 )
2024-08-20 19:27:38 -07:00
Meghan Denny
9628ee76fc
windows: fix fs-promises-writeFile-async-iterator.test.ts [v2] ( #13164 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-13 00:24:23 -07:00
Jarred Sumner
3a245dd248
upgrade webkit ( #13192 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-08-12 23:17:17 -07:00
Jarred Sumner
5cbb6926f5
Add test for file descriptor leaks in FileSink ( #13181 )
2024-08-08 18:33:41 -07:00
dave caruso
bf8b6922bb
Fix memory leak when printing any error's source code. ( #12831 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-07-26 14:14:16 -07:00
Jarred Sumner
5f1b569c52
Fix crash when creating a new Worker with a numeric environment varia… ( #12810 )
2024-07-25 18:10:57 -07:00
Ciro Spaciari
f05f13780e
fix(CryptoHasher) check of .empty/null/undefined in update ( #12607 )
...
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
2024-07-16 16:33:35 -07:00
Jarred Sumner
b0018465cc
WebKit upgrade ( #12246 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-07-01 23:27:59 -07:00
Ashcon Partovi
d105b048b1
Use Buildkite for CI ( #11477 )
2024-06-27 14:56:07 -07:00
Jarred Sumner
60ef13e079
Fix assertion failure in Bun.escapeHTML with latin1 input ( #12185 )
2024-06-26 18:25:02 -07:00
Erik Dunteman
cab78045b7
Make console.log(someFunction) print AsyncFunction when appropriate ( #12136 )
...
Co-authored-by: Erik Dunteman <erik@MacBook-Pro.attlocal.net >
Co-authored-by: Erik Dunteman <erik@Eriks-MBP.attlocal.net >
2024-06-25 13:00:24 -07:00
Jarred Sumner
ff2080da1e
Fixes #12045 ( #12051 )
2024-06-21 22:45:28 -07:00
Jarred Sumner
864cbc1555
Fixes #301 ( #11988 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-06-20 16:14:26 -07:00
dave caruso
b76376f8a6
chore: upgrade zig to 0.13.0 ( #9965 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Grigory <grigory.orlov.set@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Meghan Denny <hello@nektro.net >
Co-authored-by: Kenta Iwasaki <63115601+lithdew@users.noreply.github.com >
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com >
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com >
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-06-20 13:48:39 -07:00
Jarred Sumner
323011980c
Add fuzzer-like test of methods ( #11436 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-05-30 15:12:29 -07:00
Zack Radisic
adde0af7b4
fix which when bin or PATH is rlly long ( #11218 )
2024-05-21 11:21:29 -07:00
Meghan Denny
5caca9cd48
add .bytes() method to various readables ( #11104 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-05-16 19:10:50 -07:00
Meghan Denny
86bcc49bef
node:http: allow setting response.statusCode and statusMessage [v2] ( #11082 )
2024-05-15 00:27:55 -07:00
Meghan Denny
4efe026b5f
test: unify how all files create a temp directory ( #11057 )
...
Co-authored-by: nektro <nektro@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-14 20:19:35 -07:00
Dylan Conway
94bf404c41
Print bun version on unhandled errors ( #10760 )
...
Co-authored-by: dave caruso <me@paperdave.net >
2024-05-02 15:06:14 -07:00
Jarred Sumner
3970339483
Use error handling callback in more places, emit 1015 when WSS TLS handshaking fails, micro-optimize ServerWebSocket, fix bug in util.inspect exceptions ( #10633 )
2024-04-29 13:57:23 -07:00
Jarred Sumner
024c274a3d
Support type import attribute with "text", "json", "toml", and "file" ( #10456 )
...
* Fixes #3449
Fixes https://github.com/oven-sh/bun/issues/10206
Fixes https://github.com/oven-sh/bun/issues/5710
* Apply formatting changes
* Update loaders.md
* Update text-loader-fixture-import.ts
* Add guide
* Update bundler_loader.test.ts
* Address comment
---------
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 15:35:34 -07:00
Grigory
233624b6ff
fix(which/windows): ignore file extension case ( #10102 )
...
* fix(which/windows): ignore file extension case
* feat(which): add test for `endsWithExtension` fun
* Revert "feat(which): add test for `endsWithExtension` fun"
This reverts commit fb3ad51de7 .
* add test
---------
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-04-15 05:03:44 -07:00
Jarred Sumner
36f1bd3694
Truncate source lines in error messages ( #9832 )
...
* Truncate source lines in error messages
* Update .prettierignore
* trim
* fix
* try
* fix
* 1 more time
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-04-03 02:46:10 -07:00
dave caruso
f02752577b
fix: which should use cwd if given a relative filepath ( #9761 )
...
* Revert "fix!: do not lookup cwd in which (#9691 )"
This reverts commit 4869ebff24 .
* fix which implementation to be more accurate
* t
* which tests windows
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-31 16:50:16 -07:00
dave caruso
c177e054f5
feat!: shell will now throw on error by default ( #9720 )
...
* make the shell throw by default
* make shell default to throws(true)
* ok
* mv tests
* a
* a
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-31 16:13:59 -07:00
dave caruso
d712254128
internal: remove secret hidden internals and introduce new way to call native code from js ( #8166 )
...
* oooooh magic
* stuff
* run format
* ok
* yippee
* run the formatter back
* finish things up
* fix webkit
* more
* [autofix.ci] apply automated fixes
* fix compile
* fix compilation on windows, it seems to not work though :(
* update
* a
* v
* ok
* [autofix.ci] apply automated fixes
* OOPS
* bump bun to reduce ci bugs
* a
* js2native is done!
* improve array binding
* rebase
* some final stuff
* wasi fixes
* os
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-29 21:47:11 -07:00
dave caruso
4869ebff24
fix!: do not lookup cwd in which ( #9691 )
...
* do not lookup cwd in which
* fix webkit submodule
* fix compilation on linux
* feedback
2024-03-29 16:42:17 -07:00
Ciro Spaciari
d030cce8bb
fix(windows) socket and timers/performance tests ( #9651 )
...
* WIP missing keepalive
* cleanup
* is a Bun.sleep bug?
* no bun sleep
* fix exception
* revert
* fix setTimeout/Bun.sleep
* add Bun.sleep keepalive test
* fixes
* one more bonus fix
* fix early firing of timers
* use localhost and pass the server.hostname
* opsie
2024-03-27 10:31:12 -07:00
dave caruso
e808cdb725
windows: fix argument handling in bin shim ( #9622 )
...
* awa
* update v5
* a
* [autofix.ci] apply automated fixes
* tarball
* a
* a
* blah
* [autofix.ci] apply automated fixes
* bump
* wah
* [autofix.ci] apply automated fixes
* farther
* a
* [autofix.ci] apply automated fixes
* im confused
* [autofix.ci] apply automated fixes
* Fix typo (#9623 )
* Fix crash in Bun.escapeHTML (#9619 )
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* Fixes #9610
* Implement `fs.openAsBlob` (#9628 )
* Implement `fs.openAsBlob`
* Use a function
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* Fix `bun install -g` not working on Docker
Closes #8753
* Revert "Fix `bun install -g` not working on Docker"
This reverts commit 20fce1a1be .
* what happens if nonblocking tty (#9608 )
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* merge
* a
* blah
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: sequencerr <45060278+sequencerr@users.noreply.github.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2024-03-26 22:38:01 -07:00
Jarred Sumner
d9b7b45080
Fix crash in Bun.escapeHTML ( #9619 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-25 14:37:20 -07:00
Jarred Sumner
d8a09d8517
Remove known-failing-on-windows
2024-03-24 12:13:24 -07:00
dave caruso
73a55cf075
windows: make more windows tests pass ( #9370 )
...
* run-eval.test.ts
* transpiler-cache.test.ts
* node net
* some open things
* a
* a
* yikes
* incredible
* run it back
* a
* this code is what i like to call, incorrect
* ok its all worng
* remove an assertion that is wrong again
* update test things and rebase
* performance test
* mark filesink with mkfifo as todo. see #8166
* hehe
* not done
* awa
* fs test pass
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-03-22 23:40:45 -07:00
Jarred Sumner
e124f08caf
A few fixes related to CommonJS module loading ( #9540 )
...
* Ensure we always deref the source code
* Move more work to concurrent transpiler
* Update NodeModuleModule.h
* Update string.zig
* Make `Bun.gc()` more effective
* Update text-loader-fixture-dynamic-import-stress.ts
* Update ZigSourceProvider.cpp
* Fixes #6946
* Update ModuleLoader.cpp
* Update ModuleLoader.cpp
* Fixes #8965
* Fixups
* Update ModuleLoader.cpp
* Update ModuleLoader.cpp
* Load it
* Update module_loader.zig
* Update module_loader.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-21 10:42:57 -07:00
Jarred Sumner
0948727243
Fixes #9521 ( #9530 )
...
* Fixes #9521
* Another test
* Update load-file-loader-a-lot.test.ts
* Update module_loader.zig
* comments
* Rename variable
* Update module_loader.zig
* Update exports.zig
* small cleanup
* bundows
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-03-21 00:06:24 -07:00