Commit Graph

12264 Commits

Author SHA1 Message Date
Alexandre Lavoie
5a1023a49b Hotfix for CMake 4.0.0 (#18881)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2025-04-10 20:31:03 -07:00
Jarred Sumner
bed2f9a7b1 Improve documentation for bun-inspector-protocol package (#18762) 2025-04-10 20:28:23 -07:00
Teodor Atroshenko
b38e5e82af docs: add missing static methods of S3Client (#18821)
Co-authored-by: Don Isaac <donald.isaac@gmail.com>
2025-04-10 19:43:17 -07:00
190n
35025fe161 Fix m_terminationException assertion failure with spawnSync (#18936) 2025-04-10 19:42:39 -07:00
190n
e9c3f9186e chore: remove unneeded undefined default (#18926) 2025-04-10 15:47:46 -07:00
Jarred Sumner
f575d3ff24 Fixes #18899 (#18920) 2025-04-10 14:58:46 -07:00
Don Isaac
27f83c38af fix(test): test.failing when tests use a done callback (#18930) 2025-04-10 14:52:29 -07:00
chloe caruso
c1dc5f1b73 remove some usingnamespaces (#18765) 2025-04-10 14:16:30 -07:00
Alistair Smith
89d82a0b1b fix #18755 (#18929) 2025-04-10 14:06:18 -07:00
Don Isaac
75988aa14a test(http): port over some of express' test suite (#18927) 2025-04-10 14:01:27 -07:00
Meghan Denny
06e0c876f5 ci: make update scripts use the correct sha (#18916) 2025-04-09 23:08:43 -07:00
Jarred Sumner
93855bd88c Fix setImmediate slowness (#18889) 2025-04-09 20:03:26 -07:00
Jarred Sumner
950ce32cd0 Fix finalizer in ExternalStringImpl::create (#18914) 2025-04-09 17:15:57 -07:00
pfg
b00e8037c5 Unblock importing html files with non-html loader (#18912) 2025-04-09 16:51:34 -07:00
Ciro Spaciari
4ccf5c03dc fix(crypto) fix setAAD undefined checks (#18905) 2025-04-09 16:50:08 -07:00
Meghan Denny
8c7c42055b js: fix crash loading custom sqlite bin instead of lib (#18887) 2025-04-09 16:44:52 -07:00
Don Isaac
1d6bdf745b fix(cli/test): improve filtering DX (#18847)
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com>
2025-04-09 16:41:32 -07:00
Alistair Smith
9f023d7471 @types/bun: fix crypto[.subtle] (#18901) 2025-04-09 16:31:22 -07:00
Don Isaac
44f252539a fix: mark JSPromise.rejectedPromiseValue as deprecated (#18549)
### What does this PR do?
`JSPromise.rejectedPromiseValue` does not notify the VM about the promise it creates, meaning unhandled rejections created this way do not trigger `unhandledRejection`. This is leading to accidental error suppression in (likely) a lot of places. Additionally it returns a `JSValue` when really it should be returning a `*JSPromise`, making Zig bindings more type-safe.

This PR renames `rejectedPromiseValue` to `dangerouslyCreateRejectedPromiseValueWithoutNotifyingVM` and marks it as deprecated. It does _not_ modify code calling this function, meaning no behavior changes should occur. We should slowly start replacing its usages with `rejectedPromise`

## Changelog
- Rename `rejectedPromiseValue` to `dangerouslyCreateRejectedPromiseValueWithoutNotifyingVM`
- Mark `JSPromise.asValue` as deprecated. It takes a `*JSGlobalObject` but never uses it. New code should use `toJS()`
- Refactors `blob` to make null checks over `destination_blob.source` a release assertion
- `ErrorBuilder.reject` uses `rejectedPromiseValue` when 1.3 feature flag is enabled
2025-04-09 13:27:51 -07:00
Meghan Denny
44f70b4301 Bump 2025-04-08 23:59:29 -07:00
chloe caruso
9a329c04cc pass test-module-globalpaths-nodepath.js (#18879) bun-v1.2.9 2025-04-08 21:32:19 -07:00
Jarred Sumner
f677ac322c Rename redis.disconnect to redis.close (#18880) 2025-04-08 19:59:08 -07:00
Jarred Sumner
03f3a59ff5 Always disable stop if necessary timer (#18882) 2025-04-08 19:17:20 -07:00
chloe caruso
4a44257457 pass test-require-exceptions.js (#18873) 2025-04-08 18:13:28 -07:00
Jarred Sumner
f912fd8100 Fix typo 2025-04-08 16:54:48 -07:00
Don Isaac
dff1f555b4 test: get zig build test working (#18207)
### What does this PR do?
Lets us write and run unit tests directly in Zig.

Running Zig unit tests in CI is blocked by https://github.com/ziglang/zig/issues/23281. We can un-comment relevant code once this is fixed.

#### Workflow
> I'll finish writing this up later, but some initial points are below.
> Tl;Dr: `bun build:test`

Test binaries can be made for any kind of build. They are called `<bun>-test` and live next to their corresponding `bun` bin. For example, debug tests compile to `build/debug/bun-debug-test`.

Test binaries re-use most cmake/zig build steps from normal bun binaries, so building one after a normal bun build is pretty fast.

### How did you verify your code works?
I tested that my tests run tests.
2025-04-08 15:31:53 -07:00
Jarred Sumner
d028e1aaa3 Allow multiple arguments in set in RedisClient (#18860) 2025-04-08 14:23:06 -07:00
chloe caruso
5f9f200e7e require.resolve with paths option (#18851) 2025-04-08 14:07:03 -07:00
Jarred Sumner
5fa14574a6 Introduce --redis-preconnect CLI flag (#18862) 2025-04-08 14:04:12 -07:00
190n
eee5d4fb4a node:worker_threads low-hanging fruit (#18758)
Co-authored-by: 190n <7763597+190n@users.noreply.github.com>
Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
Co-authored-by: Don Isaac <donald.isaac@gmail.com>
Co-authored-by: chloe caruso <git@paperclover.net>
2025-04-08 05:29:53 -07:00
Jarred Sumner
ca8b7fb36e Update redis.md 2025-04-08 04:00:10 -07:00
Jarred Sumner
ad3f367520 Clean up some docs 2025-04-08 03:58:30 -07:00
Jarred Sumner
02023810ba Clean up some docs 2025-04-08 03:57:35 -07:00
Ciro Spaciari
9eae7787a0 test(https) add test/js/node/test/parallel/test-https-simple.js (#18846) 2025-04-08 03:45:32 -07:00
Jarred Sumner
ec87a27d87 Introduce Bun.redis - a builtin Redis client for Bun (#18812) 2025-04-08 03:34:00 -07:00
Jarred Sumner
431b28fd6b Bump WebKit (#18850) 2025-04-08 03:14:44 -07:00
Dylan Conway
f5a710f324 fix(fs): missing protect for async node:fs buffers (#18843) 2025-04-07 21:59:51 -07:00
Ciro Spaciari
95fead19f9 compat(express) allow GET with body on node:http (#18837) 2025-04-07 20:21:08 -07:00
Dylan Conway
78ee4a3e82 fix(shell): possible UAF when throwing a shell error (#18840) 2025-04-07 20:20:22 -07:00
Jarred Sumner
ed410d0597 Move DataCell into separate file (#18849) 2025-04-07 20:06:31 -07:00
Dylan Conway
ba0bd426ed deflake napi_async_work test (#18836) 2025-04-07 18:52:05 -07:00
Ciro Spaciari
a2efbd4ca2 fix(node:http) resume when reading and avoid unnecessary pause/resumes calls (#18804) 2025-04-07 17:30:16 -07:00
Alistair Smith
5d1ca1f371 Move svg imports to a bun-env.d.ts file that gets created with bun init (#18838) 2025-04-07 23:43:13 +01:00
Dylan Conway
580e743ebd followup #18825 (#18834) 2025-04-07 13:50:25 -07:00
Dylan Conway
9fa3bc4b93 fix #18002 (#18832) 2025-04-07 13:49:30 -07:00
Don Isaac
8b2b34086c fix: remove footguns in IPC decoding and external string creation (#17776) 2025-04-07 13:36:23 -07:00
Dylan Conway
340ae94d0f napi_async_work fixes (#18825) 2025-04-07 05:20:24 -07:00
Jarred Sumner
e75d226943 Make shell more reliable (#18794) 2025-04-05 02:45:25 -07:00
Jarred Sumner
a8cc31f8c4 Split shell into more files (#18793) 2025-04-04 23:38:43 -07:00
Jarred Sumner
a1e1f720ed Bump WebKit (#18784)
Co-authored-by: Ben Grant <ben@bun.sh>
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2025-04-04 21:14:36 -07:00