Jarred Sumner
8dfd3dbdbc
Add query string to express integration test
2023-05-28 13:30:25 -07:00
Ciro Spaciari
63e2d78e76
[node:net] fix createConnection options passing ( #3101 )
...
* fixup createConnection
* fix comment
* fixup comment
* also fix it on tls
2023-05-28 13:20:32 -07:00
Jarred Sumner
1388ec0d60
Fixes #2356 ( #3098 )
2023-05-27 23:33:47 -07:00
Tiramify (A.K. Daniel)
4ba3ed512a
Implement process.env.npm_lifecycle_event ( #3097 )
...
* Update run_command.zig
* Update env.test.ts
* Add files via upload
* Update run-process-env.test.ts
* Update env.test.ts
* Update harness.ts
2023-05-27 20:43:08 -07:00
Jarred Sumner
f870f97a94
Fixes #3091 ( #3092 )
...
* Fixes #3091
* Update build-id
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-27 00:21:54 -07:00
Jarred Sumner
7094997eec
Fix crash in Server.prototype.fetch() helper function
...
cc @cirospaciari, if you use `mimalloc-debug` it catches things like this
bun-v0.6.4
2023-05-26 21:18:31 -07:00
Jarred Sumner
79907fe84c
Add more debug safety checks
2023-05-26 21:17:10 -07:00
Ashcon Partovi
1a30b4fe29
Implement expect().toBeEmpty() ( #3060 )
...
* Implement `expect().toBeEmpty()`
* Fix formatting on test
* Finish up expect().toBeEmpty()
* Update expect.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-26 19:24:20 -07:00
Jarred Sumner
4298f36fc9
fixup
2023-05-26 16:29:44 -07:00
Jarred Sumner
3a0735e164
Pretty formatter for Headers & URLSearchParams ( #3081 )
...
* Pretty formatter for `Headers` & `URLSearchParams`
* cleanup
* console.log on Headers, FormData, URLSearchParams will always quote the keys now
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-26 16:28:09 -07:00
Ciro Spaciari
42125b4351
[fetch] change response allocator ( #3086 )
...
* change allocator
* cleanup
2023-05-26 15:07:03 -07:00
Jarred Sumner
0f2a79b9c1
Fix crash in test.todo + remove JSC C API usages in bun:test ( #3079 )
...
* Fix crash in test.todo
* remove usages of JSC C API in bun:test
* Remove additional JSC-C API usages
* fix `make headers`
* URLSearchParams.length
* FormData length
* URLSearchParams length
* Fix `make headers`
* very fancy length
* Fix bug with exceptions being ignored sometimes
* Add tests for extension toHaveLength
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-26 03:32:28 -07:00
Dylan Conway
62f05ec103
avoid using null value
2023-05-25 23:07:18 -07:00
Jiri Spac
1f7ad0cc37
add a bit more info on Elysia ( #3062 )
2023-05-25 22:04:07 -07:00
Alex Lam S.L
4c566f56c1
[install] fix .bin linking ( #3067 )
...
- causes intermittent `bun install` failures on `bun-types`
2023-05-25 21:58:30 -07:00
Dylan Conway
b395836080
jsx runtime from env ( #3076 )
...
* use `NODE_ENV` for jsx mode
* check env after `configureRouter`
* get `NODE_ENV` from `options.production`
2023-05-25 21:39:01 -07:00
Dylan Conway
801881dd7d
update jsx test for classic runtime
2023-05-25 20:54:39 -07:00
Jarred Sumner
7b4bba787d
prettier
2023-05-25 18:14:01 -07:00
Ciro Spaciari
e95f9c6daa
[stream] fix flush ( #3073 )
...
* fix flush
* remove logs
2023-05-25 16:41:00 -07:00
Jarred Sumner
50bad43dbe
Remove paragraph that has incorrect information in the docs
2023-05-25 16:16:16 -07:00
Dialga
48997eaeba
Update sqlite.md ( #3063 )
...
fix serialize example
2023-05-25 10:14:29 -07:00
Jarred Sumner
f02561530f
Bump
2023-05-24 19:54:00 -07:00
Jarred Sumner
88d9bac5ec
Support with { type: "macro"} in bun build ( #3059 )
...
* [bun macro] Support `assert { type: "macro" }` and `with {type: "macro"}`
* [bun macro] Pass through input as arguments instead of a JSNode
* Fix hang when loading many entry points simultaneously with macros
* do not clone
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-24 19:37:57 -07:00
Jarred Sumner
63740a382b
Load .env.test, set NODE_ENV=test in bun test, load .env.{test,production,development}.local ( #3037 )
...
* Support `.env.test` & `.env.{test,production,development}.local`
* Fix bug preventing inlining of process.env.NODE_ENV by default
* Update env_loader.zig
* add env tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2023-05-24 18:52:50 -07:00
Ciro Spaciari
ed1f62ffff
[server.fetch] call when using Request object ( #3051 )
...
* patch server.fetch
* add tests and fix types
2023-05-24 18:52:13 -07:00
Dylan Conway
4972934189
fix setting jsxImportSource, jsxFactory, and jsxFragmentFactory ( #3057 )
...
* default automatic, merge jsx flags from multiple tsconfigs
* use entire package name
* some tests
* more tests
2023-05-24 18:33:28 -07:00
Jarred Sumner
d73bce058a
don't do MMD in CI
2023-05-24 18:31:33 -07:00
Ciro Spaciari
10c018df8e
[bun:FileSystemRouter] add more validations on parameters ( #3053 )
...
* add validations and allow relative path on dir
* remove unneed things
* add origin/dir validation tests
* remove workaround
* add back relative path resolution
2023-05-24 16:36:20 -07:00
Jarred Sumner
29969bc130
Add comment
2023-05-24 15:45:39 -07:00
Jarred Sumner
1ea74238cd
Remove that field
2023-05-24 15:44:22 -07:00
Jarred Sumner
3361814cab
Fix string check
2023-05-24 15:44:02 -07:00
Jarred Sumner
cc84c689ea
Fixes #3031 ( #3041 )
...
* Fixes #3031
* Leave original input in there
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-24 12:02:33 -07:00
Jarred Sumner
b3d5f37598
Implement require.cache ( #3045 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-24 12:01:59 -07:00
Alex Lam S.L
31c967206a
extend test time-outs ( #3048 )
...
- avoid intermittent failures due to network latencies
2023-05-24 08:33:18 -07:00
Ashcon Partovi
c3d402ce47
Implement bun test --timeout ( #3040 )
...
You can change the default per-test timeout in `bun test`:
> bun test --timeout 10
The default timeout is 5000.
2023-05-23 22:33:32 -07:00
Kruithne
d9bdfcf131
Fix incorrect URL in loaders.md ( #3025 )
2023-05-23 18:08:24 -07:00
Jarred Sumner
6074d4e378
workaround
2023-05-23 18:07:23 -07:00
Jarred Sumner
57d341f390
too noisy
2023-05-23 16:57:02 -07:00
Bill Mill
bf759b62c6
Add pkg-config as a build requirement ( #3027 )
...
Without pkg-config, the libarchive build fails in autogen.sh[1]
1: https://github.com/libarchive/libarchive/issues/742
2023-05-23 16:06:35 -07:00
dave caruso
5b0fea7093
fix bun init and update node vm docs ( #3014 )
2023-05-23 15:02:39 -07:00
Dylan Conway
21002ed405
check if key from exports can be printed as an identifier ( #3032 )
...
* check if key can be printed as an identifier
* possibly escape
2023-05-23 14:56:03 -07:00
Ashcon Partovi
2a669a657a
Support test.todo() in ecosystem runner
2023-05-23 13:39:58 -07:00
Jarred Sumner
f71eb39b14
[bun:test] Don't schedule the GC aggressively on every file
...
We already run the GC automatically whenever heap size grows, so this is mostly unnecessary
In one benchmark, this is an 83% performance improvement at a cost of 9% more memory
2023-05-23 00:44:56 -07:00
Jarred Sumner
de185bdc05
Skip failing tests
2023-05-23 00:42:02 -07:00
Jarred Sumner
1e3476ee08
[bun:test] Fix async/done-based test.todo ( #3015 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-23 00:40:41 -07:00
Jarred Sumner
5b38c55c3d
Support setting a timezone with process.env.TZ and Bun.env.TZ ( #3018 )
...
* Support setting a timezone via `process.env.TZ`
* Implement `setTimeZone` in `bun:jsc` module
* [breaking] `bun:test` now defaults to `Etc/UTC` timezone
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-23 00:40:12 -07:00
dave caruso
83e7b9e198
fix extra/ArbitraryModuleNamespaceIdentifiers2 ( #3016 )
...
* fix extra/ArbitraryModuleNamespaceIdentifiers2
* remove assert
2023-05-22 20:59:25 -07:00
Jarred Sumner
879fd45ea2
Update .prettierignore
2023-05-22 20:10:00 -07:00
dave caruso
e5501551f4
add some connect test and type changes ( #3013 )
2023-05-22 19:48:07 -07:00
Ciro Spaciari
e57dcdfcf1
fix marking requestCert ( #3012 )
2023-05-22 19:44:32 -07:00