Ashcon Partovi
2b421be06f
Fix breakpoint on entry for extension
2023-09-01 10:19:14 -07:00
Ashcon Partovi
1ff8155c28
Add Bun.canReload event to inspector
2023-09-01 00:33:33 -07:00
Ashcon Partovi
40d749b480
JavaScript Debug Terminal == Bun Terminal
2023-08-31 23:19:04 -07:00
dave caruso
5288178c86
fix(runtime): fs.cp edge cases ( #4439 )
...
* yippee
* enable cpSync tests
* much better
* that doesnt actually do anything
* lose
2023-08-31 23:04:19 -07:00
Dylan Conway
6ae4dd808b
only set initial debugger breakpoint once ( #4441 )
...
* unset `set_breakpoint_on_first_line` on reload
* move to `module_loader.zig`
2023-08-31 23:03:44 -07:00
Ashcon Partovi
b07bb3ce17
Make breakpoints faster in VSCode extension
2023-08-31 21:42:11 -07:00
Julian
59edbe645c
bun install correctly join dependency URLs (#4421 )
...
* use WTF to join registry strings
* show dependency error messages, better join error
We actually report errors when enqueuing dependencies now. I also made
the join URLs error message read better. It'd be cleaner to handle it
all in one place, but there's currently no way to propagate the data up.
* starting on registry URL tests
* added more registry URL tests
* [install] prevent optional/peer deps from failing builds
Couldn't get the peer dependency test to work, but the code is there.
* ran prettier
* changed error note to use realname, updated tests
* ran prettier again...
2023-08-31 17:36:03 -07:00
Dylan Conway
fef70f2473
get name if not provided in FormData.append ( #4434 )
...
* get file name from blob if not provided
* add test
* another test
* format
2023-08-31 17:33:08 -07:00
Ashcon Partovi
bd7262f037
Fix vscode debug terminal
2023-08-31 00:18:59 -07:00
Jarred Sumner
10c8013ef2
Create cp-r.mjs
2023-08-30 22:18:04 -07:00
Jarred Sumner
82d26dd9bd
Add bench
2023-08-30 21:00:44 -07:00
Ai Hoshino
9334fbe9b4
fix(install): resolve semver matching with pre-release tags. ( #4412 )
...
Close : #4398
2023-08-30 18:49:09 -07:00
dave caruso
0a5d2a8195
feat(node:fs): add cp/cpSync/promises.cp + async copyFile ( #4340 )
...
* half working disaster code
* this
* async copyFile
* .
* its failing symlink tests
* asdfg
* asdf
* hmm
* okay i think ti works
* small edits
* fix test on linux
* i hate atomics / atomics hate me back <3
* add a message in the builtins bundler that 0.8 is needed. it breaks on older versions lol.
* fixed
* rebase
2023-08-30 18:30:06 -07:00
Dylan Conway
89f24e66ff
add life cycle scripts to lockfile metahash ( #4420 )
...
* add life cycle scripts to lockfile metahash
* Update lockfile.zig
2023-08-30 18:29:08 -07:00
Alex Lam S.L
037463fc48
[install] fix stale root life-cycle script in lockfile ( #4411 )
...
fixes #4319
2023-08-30 17:35:28 -07:00
Dylan Conway
04215e2f3a
reset tty at exit ( #4419 )
2023-08-30 16:38:25 -07:00
Alex Lam S.L
c19714aff7
minor rebuild diffs ( #4416 )
2023-08-30 14:48:30 -07:00
Ciro Spaciari
908018a4df
fix(http/https) disable decompress on http/https client ( #4399 )
...
* disable decompress on http/https module
* make js again
2023-08-30 13:50:09 -03:00
Jarred Sumner
f24ca39004
Fix bug in util/types.{isGeneratorFunction,isAsyncFunction}
2023-08-30 00:19:39 -07:00
Jarred Sumner
e3dc5b6b4c
reset signal handlers in Bun.spawn ( #4405 )
...
* see if this fixes it
* We don't need this
* Remove extra flag
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-30 00:16:08 -07:00
Ashcon Partovi
f2553d2454
More support for DAP ( #4380 )
...
* Fix reconnect with --watch
* Support setVariable
* Support setExpression
* Support watch variables
* Conditional and hit breakpoints
* Support exceptionInfo
* Support goto and gotoTargets
* Support completions
* Support both a URL and UNIX inspector at the same time
* Fix url
* WIP, add timeouts to figure out issue
* Fix messages being dropped from debugger.ts
* Progress
* Fix breakpoints and ref-event-loop
* More fixes
* Fix exit
* Make hovers better
* Fix --hot
2023-08-29 23:44:39 -07:00
Jarred Sumner
c028b206bc
Fix assertion failure in spawn-related tests ( #4400 )
...
* Clean up some of the event loop code
* Support timeouts
* Defer freeing FilePoll
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-29 21:17:56 -07:00
dave caruso
a846852818
fix(node-fetch): use stream.Readable instead of web streams ( #4394 )
...
* fix blobFrom
* fix(node-fetch): use stream.Readable instead of web streams
* uncomment
* comment why
2023-08-29 19:45:16 -07:00
Ai Hoshino
3f4bc625ff
parse unix socket path param in http.server ( #4390 )
2023-08-29 19:39:12 -07:00
Jarred Sumner
5d84ef7780
Rename uws_event_loop to event_loop_handle
2023-08-29 15:31:06 -07:00
Jarred Sumner
a77ed151af
[git] Normalize line endings
2023-08-29 15:30:07 -07:00
Jarred Sumner
cf151a256c
Enforce unix line endings in git
2023-08-29 15:29:09 -07:00
Dylan Conway
de58e9d583
emit open and call close callback ( #4384 )
2023-08-29 09:44:45 -07:00
Dylan Conway
07d8623976
fix #4356 ( #4386 )
2023-08-29 01:49:12 -07:00
Ai Hoshino
c53372c9f3
feat(node:dns): implement dns.reverse. ( #4332 )
...
* feat(node:dns): implement `dns.reverse`.
Close : #4299
* fix dns reverse for ipv6
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-28 20:10:33 -07:00
Dylan Conway
d1c2d6b25c
use options.fd if provided for fs.Read/WriteStream ( #4378 )
...
* use `options.fd` over path
* tests
* fix `@clack/prompts`
* == null
2023-08-28 20:08:08 -07:00
Colin McDonnell
a2aad40171
docs: use table tag
2023-08-28 13:05:23 -07:00
Colin McDonnell
177e02b304
docs: hot reloading with Bun.serve
2023-08-28 12:55:22 -07:00
Colin McDonnell
726f8aa3ef
Update nuxi output
2023-08-28 12:24:51 -07:00
Prabhat Sachdeva
d3626287bd
remove uws from .gitmodules ( #4374 )
2023-08-28 10:39:45 -07:00
Jarred Sumner
a2ddfe6913
Bring uSockets & uWebSockets forks into Bun's repository ( #4372 )
...
* Move uWebSockets and uSockets forks into Bun's repository
* Update Makefile
* Update settings.json
* Update libuwsockets.cpp
* Remove backends we won't be using
* Update bindings.cpp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-28 08:38:30 -07:00
Ciro Spaciari
6e4a1f2918
make pending_response and metdata life cycle more clear and make fetch more reliable ( #4331 )
...
* make pending_response and metdata life cycle more clear
* typo
* WIP: memory investigation
* check zlib and fix zlib
* use state allocator for metadata
* remove postBodyProcess
* undo some test things
* fix race condition
* fix removing compressed header
* some extra checks
* remove arenas on zlib and comment repoter.assert because of toOwnedSliceZ
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-28 07:21:46 -07:00
Jarred Sumner
ebfaa682f7
More renaming
2023-08-28 04:53:51 -07:00
Jarred Sumner
277e5c0b77
mv src/bun.js/node/syscall.zig -> src/sys.zig
2023-08-28 04:53:18 -07:00
Jarred Sumner
e2a17344dc
just kernel32 things ( #4354 )
...
* just kernel32 things
* more
* Update linux_c.zig
* Update windows_c.zig
* Add workaround
Workaround https://github.com/ziglang/zig/issues/16980
* Rename http.zig to bun_dev_http_server.zig
* Rename usages
* more
* more
* more
* thanks tigerbeetle
* Rename `JSC.Node.Syscall` -> `bun.sys`
* more
* woops
* more!
* hmm
* it says there are only 37 errors, but that's not true
* populate argv
* it says 32 errors!
* 24 errors
* fix regular build
* 12 left!
* Still 12 left!
* more
* 2 errors left...
* 1 more error
* Add link to Tigerbeetle
* Fix the remainign error
* Fix test timeout
* Update syscall.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-28 04:39:16 -07:00
Ai Hoshino
efe987e8d1
Fix some edge cases in the env param of spawn. ( #4364 )
...
Close : #4362
2023-08-27 23:58:31 -07:00
Jarred Sumner
ed5dc5bbf9
@electroid's dap changes ( #4367 )
...
* Rework terminal, launch is still WIP
* Use the proper Terminal profile API
* More changes
* progress
---------
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2023-08-27 09:03:15 -07:00
Jarred Sumner
36f9d2291c
Workaround zig wasm bug
2023-08-26 21:09:08 -07:00
Jarred Sumner
9e653e610c
Update WebKit
2023-08-26 03:10:16 -07:00
Jarred Sumner
f16d729c76
Set the timezone in spawn ( #4337 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-26 02:35:10 -07:00
Ashcon Partovi
2a9e967fd1
More improvements to debugger support ( #4345 )
...
* More fixes for dap
* More changes
* More changes 2
* More fixes
* Fix debugger.ts
* Bun Terminal
2023-08-26 02:34:25 -07:00
Ai Hoshino
910daeff27
Fix the crash when importing a module that does not exist. ( #4348 )
...
Close : #4240
2023-08-26 01:14:40 -07:00
Jarred Sumner
e1dacf88d0
don't get too excited but there are at least hundreds of compiler errors when you run this command
2023-08-25 22:05:02 -07:00
Jarred Sumner
d72763dc29
bump!
2023-08-25 21:54:16 -07:00
Jarred Sumner
d98a93c318
Automatically hot reload Bun.serve() ( #4344 )
...
* Automatically hot reload Bun.serve()
* Update doc
* Update example
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-25 21:08:41 -07:00