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
Jarred Sumner
664ccec7d3
Disable concurrent transpiler in macros
2023-07-26 16:54:36 -07:00
Dylan Conway
1a558ef753
fix decorator and declare ( #3828 )
...
* return the prop if there are decorators
* test and comment
2023-07-26 16:31:08 -07:00
Jarred Sumner
f3200ac0ca
Don't hoist bun plugin in concurrent transpiler
2023-07-26 16:06:04 -07:00
Jarred Sumner
011b50589c
Concurrent Transpiler ( #3816 )
...
* Concurrent Transpiler
* Fix bug with some improts and add jsc alias
* Some comments
* Fix crash
* Update module_loader.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-26 15:36:05 -07:00
Alex Lam S.L
06503663b1
[install] handle workspace:[alias@]range ( #3819 )
2023-07-26 15:35:47 -07:00
Ai Hoshino
0297cb1527
fix the encoding of dirname's return value. ( #3799 )
2023-07-25 05:49:48 -07:00
Jarred Sumner
4209703b35
Make this other name better
2023-07-25 02:08:51 -07:00
Jarred Sumner
8edeb617a8
Make this name better
2023-07-25 02:08:23 -07:00
Ai Hoshino
130079b558
fix some cases in the dirname function. ( #3785 )
...
Close : #3782
2023-07-25 00:41:22 -07:00
Jarred Sumner
8356830727
Trace printing at runtime
2023-07-24 22:00:43 -07:00
Jarred Sumner
5edb756533
Trace module resolution
2023-07-24 21:59:50 -07:00
dave caruso
8a0152e129
Merge import.meta.require and require to be the same thing ( #3732 )
...
* Merge import.meta.require and require to be the same thing
* support `require` and BunPlugin (runtime plugin)
* plugins
* unused code
* revert launch.json
2023-07-24 19:32:04 -07:00
Dylan Conway
e154763e4d
fix rope string push ( #3796 )
...
* push to next next
* couple more tests
* end
2023-07-24 19:08:56 -07:00
Alex Lam S.L
961312eab0
[install] fix workspace override of aliased npm dependency ( #3784 )
2023-07-24 17:01:43 -07:00
Jarred Sumner
6ca50526d7
bun:sqlite gets 10% faster ( #3780 )
...
* bun:sqlite gets 10% faster
❯ bun-debug bun.js # After
[0.03ms] ".env"
cpu: Apple M1 Max
runtime: bun 0.7.1_debug (arm64-darwin)
benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------------------------- -----------------------------
SELECT * FROM "Order" 13.65 ms/iter (12.79 ms … 15.41 ms) 13.69 ms 15.41 ms 15.41 ms
SELECT * FROM "Product" 31.02 µs/iter (27.08 µs … 1.33 ms) 30.33 µs 42.33 µs 45.25 µs
SELECT * FROM "OrderDetail" 140.2 ms/iter (127.97 ms … 172.31 ms) 144.02 ms 172.31 ms 172.31 ms
bun/bench/sqlite on jarred/faster-sqlite took 5s
❯ bun bun.js # Before
[0.52ms] ".env"
cpu: Apple M1 Max
runtime: bun 0.7.1 (arm64-darwin)
benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------------------------- -----------------------------
SELECT * FROM "Order" 15.44 ms/iter (14.36 ms … 17.94 ms) 15.59 ms 17.94 ms 17.94 ms
SELECT * FROM "Product" 36.89 µs/iter (31.54 µs … 3.18 ms) 37.25 µs 49.75 µs 54.88 µs
SELECT * FROM "OrderDetail" 156.63 ms/iter (151.68 ms … 175.93 ms) 157.63 ms 175.93 ms 175.93 ms
* Handle empty just incase
* GCDeferral scope is unnecessary
* Make this code more careful
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-24 17:01:21 -07:00
Jarred Sumner
967ccb5d50
Upgrade WebKit ( #3777 )
...
* Upgrade to latest WebKit
* Upgrade WebKit
* hm
* Fix failing tests
* Delete utf8-encoding-fixture.bin.cmp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-23 22:37:48 -07:00
Jarred Sumner
b02f097f4d
Fix bugs with connecting to localhost ( #3758 )
...
* Fix bugs with connecting to localhost
* Update uws
* More logs
* Allow not setting a hostname
* Make server.hostname & server.protocol faster
* Fixup
* normalize listening host
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-23 05:13:48 -07:00
Jarred Sumner
4e852918a3
Raise redirect limit in bundler
2023-07-23 03:59:43 -07:00
Jarred Sumner
c76516fa38
Fixes #3764
2023-07-23 03:58:10 -07:00
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