Jarred Sumner
e2e44661c2
Explicitly ref/unref blobs before extracting the value ( #3755 )
...
* Explicitly ref/unref blobs before extracting the value
* ✂️
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-22 22:20:10 -07:00
Jarred Sumner
601fd3ead5
in Bun.write(), defer creating the Promise until we're just about to schedule the task
2023-07-22 20:49:35 -07:00
Alex Lam S.L
07e08b086a
[install] improve workspace substitution of npm dependencies ( #3754 )
...
- respect semver ranges
2023-07-22 20:05:24 -07:00
Jarred Sumner
53eb126898
ref() before creating the JSPromise
2023-07-22 19:56:39 -07:00
Jarred Sumner
6402967b6d
bump!
2023-07-22 17:08:31 -07:00
Jarred Sumner
bfaf095c2e
Fixes https://discord.com/channels/876711213126520882/1131175053409656833/1131175053409656833
...
@tr1ckydev this fixes the issue you ran into, see the diff for an example usage of a Bun.plugin that makes a network request on import.
2023-07-22 16:59:54 -07:00
dave caruso
b17b61b8c6
fix path.format for vite build ( #3734 )
...
* fix path.format for vite
* Update path.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-22 16:45:45 -07:00
Jarred Sumner
27c88c8046
Fixes #3753
2023-07-22 16:42:17 -07:00
Ai Hoshino
04d19d6f6a
Fix writeFileSync when the mode is greater than 0o777. ( #3747 )
...
Close : #3740
2023-07-22 07:10:36 -07:00
Jarred Sumner
3418feb2e9
Fixes #3744
2023-07-22 04:33:54 -07:00
Jarred Sumner
c6a3467625
Unified event loop ( #3741 )
...
* Unified event loop
* Update WebKit, add test for es-module-lexer
* Update README.md
* Use async wasm
* Explicitly set whether concurrenttask should be deinit'd
* Update package.json
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-22 04:31:58 -07:00
Jarred Sumner
636cec03e1
Use WebKit's URL parser in fetch() and bun install ( #3730 )
...
* Use WebKit's URL parser in fetch() and `bun install`
* Allocate less memory
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-21 23:27:28 -07:00
Ai Hoshino
1ecd9f8a18
handle latin1 in Bun__encoding__toString. ( #3739 )
...
Close : #3738
2023-07-21 22:01:26 -07:00
Dylan Conway
2323f5d08d
fix #3716 ( #3733 )
...
* don't break on comments for process env variables
* break for `\r` and `\n`
* don't parse process env vars
2023-07-21 20:33:15 -07:00
Alex Lam S.L
311dffc690
improve test ( #3731 )
...
- minor build diffs
2023-07-22 02:42:30 +03:00
Dylan Conway
aa1ad7f009
string escape edgecase ( #3717 )
...
* fix edgecase when joining rope strings with backtick
* bonus bugfix in ts decorator
* Update transpiler.test.js
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-07-21 01:35:06 -07:00
Dylan Conway
21bb3b2bdd
fix isFIFO ( #3715 )
...
* check poll ref flags
* Update WebCoreJSBuiltins.cpp
2023-07-21 00:18:15 -07:00
dave caruso
9c85465a58
fix process.exit status code handling ( #3714 )
2023-07-20 19:16:56 -07:00
dave caruso
020cf46346
Fix builtins again ( #3713 )
2023-07-20 17:33:40 -07:00
dave caruso
134c97a282
fix directory caching with workaround ( #3710 )
...
* ok
* test
2023-07-20 16:44:43 -07:00
dave caruso
e2c11c4856
fix process.binding ( #3711 )
2023-07-20 16:25:02 -07:00
Julian
c383c6cd81
Pass constructor arguments to TextDecoder ( #3692 )
...
* Make TextDecoder constructor use options parameter
The constructor now actually sets TextDecoder properties using the
options parameter.
* Defer decoder allocation to end of constructor
* Verify types of TextDecoder options
* TextDecoder throw TypeError on failure
* Tidying
2023-07-20 14:50:54 -07:00
Dylan Conway
68b4a64569
resolveRopeIfNeeded (#3708 )
2023-07-20 14:50:23 -07:00
Dylan Conway
8e12999917
set _preload_modules to empty array ( #3709 )
2023-07-20 14:50:13 -07:00
Ciro Spaciari
99da0ae54b
fix start delay on Worker ( #3707 )
...
* fix start delay on Worker
* fmt
* add delay test
2023-07-20 14:49:10 -07:00
Jarred Sumner
0b365781a8
Bump version to Bun v0.7.0
2023-07-19 23:57:41 -07:00
Jarred Sumner
dd46c11273
Support streams in response.formData() & request.formData, introduce Bun.readableStreamToFormData() ( #3697 )
...
* codegen
* FormData.from
* Fixes #3225
* Introduce `Bun.readableStreamToFormData`
* Update bun.d.ts
* Add examples
* add
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-19 23:12:06 -07:00
Jarred Sumner
8a13e02473
Fixes #3670 ( #3698 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-19 23:04:07 -07:00
Jarred Sumner
ed8be46a7b
Inlinebun object from workers
2023-07-19 22:53:28 -07:00
dave caruso
36866c4d79
Fix vite ( #3694 )
...
* Fix ServerWebSocket.readyState
* Add create_hash_table to our repo
* Fix #3216
2023-07-19 19:28:53 -07:00
dave caruso
dd58508684
Fix browser bundled string_decoder ( #3693 )
...
* Fix #3660
* doc fix
2023-07-19 17:37:20 -07:00
dave caruso
9b6dc49575
Implement AsyncLocalStorage ( #3089 )
...
* work to get async local storage working.
* a
* a
* everything but queueMicrotask
* sdfghj
* .
* finish
* tests
* test
* ok
* done
* im so stupid
* Upgrade WebKit
* refactor
* refactor
* changes requested
* oops
* cool
* fix runInAsyncScope
2023-07-19 17:20:00 -07:00
Jarred Sumner
723e9d1ea7
Fix make headers
2023-07-19 16:05:43 -07:00
Ciro Spaciari
f63398ffe4
update root certificates and add tls.rootCertificates ( #3688 )
...
* implement tls.rootCertificates
* add test
* bump uws/usockets
* bump uws + .len on certs
2023-07-19 16:02:29 -07:00
Ciro Spaciari
2fbf73535c
fix createDecipheriv ( #3680 )
...
* fix createDecipheriv
* fix createDecipheriv iv and password validations
2023-07-19 16:01:36 -07:00
dave caruso
ebbbd63ed6
fix #3681 ( #3690 )
2023-07-19 15:58:07 -07:00
Dylan Conway
bc28ec39cf
set did_panic flag ( #3687 )
2023-07-19 15:39:15 -07:00
Ciro Spaciari
568cadb51e
move constants module to cpp ( #3683 )
2023-07-19 15:39:02 -07:00
Dylan Conway
0dbcb84cbe
fix make headers
2023-07-19 15:26:14 -07:00
Jarred Sumner
d74d95d9ab
Better error for workspace dependency not found ( #3678 )
2023-07-20 00:08:52 +03:00
Jarred Sumner
a59ddb131e
Fix crash in postMessage that repro'd after ~100,000 messages
2023-07-18 23:09:39 -07:00
Jarred Sumner
8bd2b784a2
more progress on fixing gc issue
2023-07-18 20:49:11 -07:00
Dylan Conway
f494e1b50d
add padding bytes
2023-07-18 16:30:58 -07:00
Ciro Spaciari
112f01ca61
feature(constants) add constants/node:constants module and tests(prisma) use prima 5.0.0 + use same connection for postgres, add prisma mssql (disabled for now) ( #3672 )
...
* use prima 5.0.0 + use same connection for postgres
* change mongodb test URL
* constants module + mssql prisma test (disabled)
2023-07-18 16:09:18 -07:00
Ciro Spaciari
49231b2cb9
patch checkServerIdentity ( #3671 )
2023-07-18 16:03:05 -07:00
Alex Lam S.L
1790357021
[jest] execute lifecycle hooks on empty blocks ( #3663 )
...
fixes #3494
2023-07-18 04:54:24 -07:00
Jarred Sumner
777ee4ecec
Fixes #3669
2023-07-18 04:35:04 -07:00
Dylan Conway
661355546a
zig upgrade ( #3667 )
...
* upgrade
* more fixes
* Bump Zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-18 01:20:20 -07:00
Jarred Sumner
eaff66b098
Emit writeBarrier in napi_module_register
2023-07-17 23:07:09 -07:00
Jarred Sumner
b760d1da30
Fix potential crash in process.dlopen()
2023-07-17 23:02:33 -07:00