Jarred Sumner
593ad71891
[bun-types] Add missing serialization option to Bun.spawn
2024-05-17 02:58:14 -07:00
Jarred Sumner
ca4d2fcbba
A couple fixes to TypeScript types
2024-05-16 23:26:42 -07:00
Meghan Denny
c7d7bc120a
node:crypto: add shake128 and shake256 ( #11134 )
2024-05-16 23:16:59 -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
Jarred Sumner
f58249e361
Fix loading bun-types in development ( #11110 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-05-16 00:46:28 -07:00
Jarred Sumner
735f5d4b62
Setup clang-tidy (C++ linter) ( #7961 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-05-15 20:35:39 -07:00
Meghan Denny
1589a1230d
Revert "Align arguments of connect() in node:tls and node:net to Node ( #10854 )" ( #10908 )
2024-05-07 20:33:42 -07:00
Henrik Storck
6217d78567
fix: Align arguments of connect() in node:tls and node:net to Node ( #10870 )
...
Co-authored-by: dave caruso <me@paperdave.net >
2024-05-07 15:03:38 -07:00
dave caruso
9ba7d420d5
chore: upload release artifacts by hash so bun.report can remap them ( #10819 )
2024-05-04 20:34:59 -07:00
codershiba
b4ae0ed0ca
chore(types): Remove type for parseArgs ( #10777 )
2024-05-02 20:51:48 -07:00
Meghan Denny
e45cd749e5
chore(zig): add a new lint for using bun.FD.cwd() ( #10683 )
2024-05-01 16:12:09 -07:00
Eric L. Goldstein
2a401486d9
Remove util.styleText type overrides because @types/node has them now ( #10746 )
2024-05-01 12:53:08 -07:00
Dylan Conway
3106b890ac
Skip threadlocal destructors at exit on Windows ( #10723 )
2024-05-01 01:27:12 -07:00
Jarred Sumner
ee0e69702e
Fix run URLs in CI comments
2024-04-30 01:03:39 -07:00
Ashcon Partovi
589f941aea
UDP support ( #7271 )
...
Co-authored-by: Georgijs Vilums <georgijs@bun.sh >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
Co-authored-by: Georgijs Vilums <=>
2024-04-26 15:25:24 -07:00
Meghan Denny
e3689e7e83
node:crypto: add blake2b512, sha512-224, sha3-* ( #10383 )
...
* node:crypto: add blake2b512, sha512-224, sha3-*
* update submodule
* flesh out rest of api
* remove new bun.newCatchable
* add SHA512_224 to HashClasses
* remove SHA512_224 js class
* better allocation
* remove memcpy in path where buffer is provided to us
* add back benchmark
* move zig crypto things into specific struct
* Apply formatting changes
* centralize algorithm definitions into one spot
* rsa-256 was deleted
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 19:35:27 -07:00
Meghan Denny
0f8d74e3dc
node:*: fix some typescript errors ( #10310 )
...
* node:*: fix some typescript errors
* add dom to tsconfig
* fix url regression
* fix diagnostics_channel regression
* use $isJSArray instead of ArrayIsArray
* $isArray wasnt actually a real builtin
* Revert "$isArray wasnt actually a real builtin"
This reverts commit 319926b538 .
* Apply formatting changes
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2024-04-22 18:24:07 -07:00
Jarred Sumner
c405a4bd21
Fixes #10304 ( #10407 )
2024-04-22 13:03:36 -07:00
Jarred Sumner
c604c57a32
Upgrade to LLVM 17, fix linux debug build, upgrade JSC, remove some C API usages ( #10161 )
...
* Upgrade to LLVM 17, JSC, remove more C API usages
* [autofix.ci] apply automated fixes
* Update scripts/setup.sh
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
* more
* update
* bump
* Fix unused variable
* Fix merge conflict
* [autofix.ci] apply automated fixes
* Increase limit
* double the limit
* CI
* Update CMakeLists.txt
* Update CMakeLists.txt
* Upgrade
* Upgrade more things
* Bump
* Remove ld64 flag
* typo
* Update Dockerfile
* update
* Update
* Up
* asd
* up
* Upgrade
* Bump!
* Fix crash
* Remove unnecessary cahnge
* Propagate canary flag + bump macOS 13
* Upgrades
---------
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>
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-04-21 19:03:01 -07:00
Jarred Sumner
707fd7f1ea
Update mimalloc ( #10408 )
...
* Update mimalloc
* Update runner.node.mjs
2024-04-20 20:48:55 -07:00
dave caruso
5bdc5bebb1
feat: crash reporter followup ( #10365 )
...
* think about the future
* waaaaaaaaaaa
* a
* testing
* make it faster
* fire
* macos and linux
* stuff
* a
* a
* CI
* buh
* disable in debug
* Apply formatting changes
* a
* a
* Apply formatting changes
* more review comment resolution
* a
* a
* oh no i started writing macos code from within windows i should stop and switch devices again
* rookie mistake
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
2024-04-19 20:50:37 -07:00
Ciro Spaciari
e0f583df75
feat(SNI) Bun.serve/tls ( #10364 )
...
* add SNI support
* add some Bun.serve tests
* more tests
* wip move addServername to
* move addServerName
* clean
* fix types
* cleanup
* make TS happy
* opsie revert back
* version this
* internals
* opsie
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-19 17:11:05 -07:00
Jarred Sumner
26428d5e1c
[CI] Fixup windows
2024-04-18 20:52:37 -07:00
Jarred Sumner
f663472d5f
[CI] Normalize filepaths relative to cwd in output
2024-04-18 18:52:47 -07:00
Jarred Sumner
6f67c63873
Formatting tweak
2024-04-18 18:44:49 -07:00
Jarred Sumner
a78668eb4c
fix(bundler): fix a crash while computing character frequencies
...
* Fixes #10344
* Update bundler_compile.test.ts
* Apply formatting changes
* Track comments when bundling
* Fix embedded files and add test
* Make this const
* Update runner.node.mjs
* Prefill process arch/platform in bun build --compile
* nitpick
---------
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2024-04-18 12:35:59 -07:00
Jarred Sumner
074205d963
Fix generate comment in CI
2024-04-17 17:37:33 -07:00
dave caruso
c99d7ed331
feat: overhaul the crash handler ( #10203 )
...
* some work
* linux things
* linux things
* feat: tracestrings on Windows
* bwaa
* more work on the crash handler
* okay
* adgadsgbcxcv
* ya
* dsafds
* a
* wuh
* a
* bru h
* ok
* yay
* window
* alright
* oops
* yeah
* a
* a
* OOM handling
* fix on window
2024-04-17 15:32:25 -07:00
Ashcon Partovi
20d8261405
Fix permissions in workflows
2024-04-17 15:07:54 -07:00
liudonghua
51bb5f3a04
Update platform.ts to fix isWindowsAVX2 implementation. ( #10313 )
...
The isWindowsAVX2 function is not working as expected due to the stdout endwith `\r\n`. So the simple `stdout == "True"` will never true.
2024-04-17 00:26:57 -07:00
Ashcon Partovi
c18c25f390
Testing workflows ( #10157 )
...
* Testing workflows
* Testing workflows
* Testing workflows
* Testing workflows
* Testing workflows
* Testing workflows
* Update .github/workflows/run-test.yml
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-16 19:39:06 -07:00
Meghan Denny
2ae48f3314
lint: ban comparing against undefined in Zig ( #10288 )
2024-04-16 14:37:09 -07:00
Georgijs
24a411f904
Correctly handle duplicate column names in sqlite joins ( #10285 )
...
* add tests
* working
* cleanup
* fix compile
* fix naming and comment
* fix lints in test
* apply suggested fixes
2024-04-15 14:02:28 -07:00
Jarred Sumner
3f10d5250a
[bun:sqlite] Support sqlite3_file_control, better closing behavior, implement Disposable ( #10262 )
...
* [bun:sqlite] Support `sqlite_file_control`, better closing behavior, support `using` statements
* docs+flaky test
* Simplify the implementation
2024-04-15 13:06:30 -07:00
Ciro Spaciari
74d91f6b51
feat(SSL_renegociate) ( #10256 )
...
* allow client renegotiation and allow server renegotiation with limits matching nodejs behavior
* wip before the refactoring and context separation
* investigate if BoringSSL can send a SSL_renegotiate request or only accept
* format-off
* option to disable server renegotiation
* allow tls options on https
* dead_socket when connectError
* propagate cert error
* test
* move the logic to the right place
* cleanup
* Update test/js/node/tls/renegotiation.test.ts
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-04-15 05:00:41 -07:00
Jarred Sumner
21ad40e86c
Allow SSL negotiation for clients ( #10239 )
...
@lithdew
2024-04-13 02:43:10 -07:00
Meghan Denny
70023bc4ed
linter: ergonomics and new rules ( #10197 )
...
* linter: allow a trailing field
* linter: dont fail if no matches are found
* lint: only import 'bun' once
* lint: ban std.mem.indexOfAny
* linter: ignore commented out code and ignore benchmarks
* this was testing nothing
* lint: ban std.debug.print
* this wasnt testing anything either
2024-04-11 22:26:23 -07:00
Jarred Sumner
19da72fe34
Truncate failing output in internal test runner
2024-04-11 21:30:07 -07:00
Meghan Denny
7d673dd7d8
node:child_process: fix propagation of windowsHide and windowsVerbatimArguments option ( #10193 )
2024-04-11 20:24:47 -07:00
Jarred Sumner
d00b5b94ea
Make receiving data over TCP faster on Windows ( #10191 )
2024-04-11 20:10:09 -07:00
Jarred Sumner
688844b472
refactor: ban std.debug.assert ( #10168 )
...
* Ban `std.debug.assert`
* Create .clangd
* Update lint.yml
* Update linter.ts
* update
* lint
* Update linter.ts
* Update linter.ts
* update
* Update linter.ts
* update
* Update linter.ts
* more
* Update install.zig
* words
* Remove UB
2024-04-11 17:52:29 -07:00
Jarred Sumner
459bcdc5ac
Concurrent uninstalls ( #10111 )
...
* Concurrent uninstalls
* Try disabling concurrency
* Get `rm` tests to pass on Windows
* Fix more things
* Undisable concurrency
* handle error
* Deflake
* [autofix.ci] apply automated fixes
* Undo
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-10 05:09:14 -07:00
Jarred Sumner
5baa2fbb87
Use a different cache dir in each test file
2024-04-08 07:39:21 -07:00
Jarred Sumner
d615c11a57
Force non-zero exit code whenever bun install has any packages which failed to install ( #10041 )
...
* If any failed to install, always exit with non-zero
* [autofix.ci] apply automated fixes
* This test should fail
* Update bun-link.test.ts
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-07 16:12:16 -07:00
Tomer Horowitz
0b0bf353fa
docs: Updated Bun.nanoseconds documentation ( #9986 )
2024-04-06 02:47:47 -07:00
Jarred Sumner
20085d8ddc
Merge conflict fix
2024-04-05 15:41:45 -07:00
Jarred Sumner
5735feac5d
Redo file watcher + Fix EBUSY when saving lockfile on Windows ( #9972 )
...
* Fix `EBUSY` when saving lockfile on Windows
* Redo file watcher wrapper on Windows
* Update lockfile.zig
* Update win_watcher.zig
* Update src/bun.js/node/node_fs.zig
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
* Add retry logic
* Comments
* more careful
* smaller
* Fix garbage
* Normalize the paths
* hmmm
* [autofix.ci] apply automated fixes
* try
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-05 15:40:05 -07:00
Eric L. Goldstein
05fb044577
Add types for node:util styleText() ( #9945 )
2024-04-05 13:31:50 -07:00
dave caruso
0cdad4bebb
fix(bun-release): support windows in npm package ( #9873 )
...
* fix npm install on windows
* try again
* again
* copy less file
* revert changes
* remove package.json from git
* okay
* now?
2024-04-03 23:16:48 -07:00
Ciro Spaciari
1cde9bcdac
fix(server) fix body-stream ( #9898 )
...
* some fixes
* WIP
* wip wip
* more debug
* closer
* sending a really big payload at once is still broken
* now we need to avoid segfault happening inside onWritable after destroy
* opsie
* cleanup
* more cleanup
* more WIP, closer need to fix cork
* fix cork actually not writing non-optional data
* make onWritable return actually do something
* actually clean the on writable handler
* remove unreachable condition
* we are not looping anymore
* little revert
* fix possible fault
* inform backpressure on chunked encoding
* just queue when tryEnd
* remove unreachable code
2024-04-03 20:25:05 -07:00