Jarred Sumner
f087388ebc
Support running WASI (WebAssembly) files using bun run ( #1929 )
...
* another micro bench
* Support running WASI
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-28 23:23:26 -08:00
Jarred Sumner
2e1c7f5597
sentinel
2023-01-27 15:27:04 -08:00
Jarred SUmner
915b46768c
Remove usages of assumeSentinel
2023-01-26 23:04:37 -08:00
Ciro Spaciari
c00fadab9e
feat(cli): Support HTTPS_PROXY, HTTP_PROXY, and NO_PROXY #1440 ( #1814 )
...
* WIP: http_proxy implemented, first steps for https_proxy #1440
* add HTTP_PROXY support to upgrade_command and WIP: tunneling
* WIP async handshake, stuck on WANT_READ, try to defer + check
* create and upgrade with proxy working, TLS and non-TLS to proxy TLS working
* bun install/upgrade/create working with http(s)_proxy #1440
* add NO_PROXY support #1440
* remove commented code and add TODO
* fix getHttpProxy no_proxy
* fix formatting
* refactor catch and getHttpProxy, fix empty strngs in env for proxy
* allow optimization for handleResponseBody
2023-01-17 17:47:01 -08:00
Jarred Sumner
0546aa4fd5
Make entire test line dim
2023-01-16 21:37:12 -08:00
Jarred Sumner
b8b7ad4982
[bun:test] Fix dim, fix missing space
2023-01-16 21:35:19 -08:00
Jarred Sumner
a345efd270
Fix getFdPath when /proc/fd is not mounted
2023-01-16 13:59:52 -08:00
Alex Lam S.L
893ec2fb45
fix life-cycle script execution ( #1799 )
...
- change current working directory for workspaces
- add `node_modules/.bin` to `PATH` before running
2023-01-14 21:37:16 -08:00
Alex Lam S.L
136014b13a
fix bugs ( #1795 )
...
- segfault reading stacktrace from `fs/promises` rejections
- `Promise` rejection within `describe()` ends testing abruptly
- `FSSink.write()` incorrectly handles `objectMode`
- `FSSink.write()` throws wrong error codes
2023-01-14 16:50:55 -08:00
Jarred Sumner
aa9e56edfe
[bun:test] Always dim skip
2023-01-13 13:13:01 -08:00
Jarred SUmner
168bb1427f
move more things
2023-01-13 11:38:16 -08:00
Jarred SUmner
996ef44c02
Split some things into more files and use bun namespace instead of import more
2023-01-13 11:27:16 -08:00
Ethan Burrell
76e6a178e3
fix(bun-test): test title in results ( #1753 )
...
* fix(bun-test): test title in results
* missed case
* clean up import
* respond to reviews
2023-01-12 12:49:36 -08:00
Alex Lam S.L
270b07e85e
use strings.hasPrefixComptime() ( #1755 )
2023-01-10 05:35:20 -08:00
Jarred Sumner
84ee02cb4b
Update test_command.zig
2023-01-09 10:33:39 -08:00
Jarred Sumner
55c1311aef
fixup
2023-01-09 09:42:09 -08:00
Jarred Sumner
beed35e55e
Update test_command.zig
2023-01-09 09:40:54 -08:00
Jarred Sumner
5cd37e5e8a
Rename
2023-01-09 09:40:46 -08:00
Jarred Sumner
1761379135
Update test_command.zig
2023-01-09 09:13:23 -08:00
Jarred Sumner
a1b2c23671
[bun:test] Implement test.skip
2023-01-09 08:25:39 -08:00
Ikko Eltociear Ashimine
1e1c817603
fix typo in install.sh ( #1737 )
...
infomation -> information
2023-01-06 10:15:32 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Veikka Tuominen <git@vexu.eu >
2022-12-28 00:51:22 -08:00
Dylan Conway
08a738c6c8
always more packages at new depth
2022-12-23 15:21:03 -08:00
Dylan Conway
cc369ad9d0
fix bun pm ls connectors when node_modules is last
2022-12-23 15:13:09 -08:00
Jarred Sumner
a94bba6399
darken
2022-12-23 01:16:12 -08:00
Dylan Conway
75a3c25ff8
add node_modules to bin path
2022-12-23 00:04:51 -08:00
Jarred Sumner
3da9c728d6
Make bun pm ls only show top-level by default
2022-12-22 23:38:56 -08:00
Jarred Sumner
85733abe79
npx -> bunx
2022-12-22 23:37:18 -08:00
Dylan Conway
1d58da3cb3
fix finding package bin after install
2022-12-22 18:54:02 -08:00
Jarred Sumner
b988a63429
don't log for ctrl + c
2022-12-22 00:25:31 -08:00
Jarred Sumner
e322dfb589
woops
2022-12-21 22:28:59 -08:00
Jarred Sumner
f6bbfa7e40
[bunx] Install symlink with completions
...
@colinhacks lmk if you have ideas where else it should attempt to isntall:
1) same dir as `bun`
2) $BUN_INSTALL/bin/bunx
3) $HOME/.bun/bin/bunx
4) $HOME/.local/bin/bunx
2022-12-21 00:58:14 -08:00
Jarred Sumner
435fdbfddc
[bunx] Make help a little prettier
2022-12-21 00:56:50 -08:00
Jarred Sumner
83602b6834
Refactor some of bun pm
2022-12-20 23:28:11 -08:00
Jarred Sumner
b2fdcad77b
[bunx] Improve reliability by checking the "bin" from package.json if necessary
2022-12-20 21:33:34 -08:00
Jarred Sumner
5931e350cd
New subcommand: bunx ( #1634 )
...
* Implement `bunx`
* copy cleanup
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-12-19 23:05:12 -08:00
Jarred Sumner
000a0c9dca
Fix missing error when command not found
2022-12-15 17:03:08 -08:00
Jarred Sumner
9e909dcae1
[bun run] Include signal code on error
2022-12-15 16:28:47 -08:00
Jarred Sumner
743531b4ac
[bun run] Introduce --bun flag to run in bun instead of node
2022-12-15 16:28:47 -08:00
Jarred Sumner
e38a3e5d85
[bun run] Use execve instead of posix_spawn when bun no longer needs to run script/bin
...
When we launch a script & there's nothing left to do, we should replace the process image with the new process instead of keeping the bun process alive while the other script is running.
2022-12-15 16:28:47 -08:00
Dylan Conway
95c747f598
undo bad free
2022-12-14 17:50:14 -08:00
Dylan Conway
65302a1db5
remove incorrect connector character
2022-12-14 14:01:03 -08:00
Dylan Conway
c4557e57a1
add bun pm ls for printing lockfiles ( #1612 )
...
* list directory structure from lockfile
* dim connectors and versions
2022-12-13 22:47:46 -08:00
Colin McDonnell
24fbcb8f52
Exclude other ts declaration file extensions ( #1596 )
...
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2022-12-09 14:26:33 -08:00
Jarred Sumner
81317a52ea
Fix glibc symbol version issues preventing bun install from being used in older glibc versions ( #1580 )
...
* Prevent integer overflow in connectError
* Add missing deepEquals() type to Bun
* fix missing glibc symbols
* Fix missing symbol issues
* Try this
* Update glibc-versions-hack.cpp
* Update glibc-versions-hack.cpp
* Update glibc-versions-hack.cpp
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-12-06 14:14:27 -08:00
Jarred Sumner
714ce7619d
[internal] Make string comparisons faster
2022-12-04 06:53:53 -08:00
Jarred Sumner
4c818b9364
Mildly faster startup time
2022-12-04 03:50:22 -08:00
Jarred Sumner
03490afdb3
Fix crash in test runner with gc mode
2022-12-01 18:40:41 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Jarred Sumner
4726b7e227
don't start NetworkThread unless necessary
2022-11-27 07:29:40 -08:00