Ciro Spaciari
125880af7d
update root certs ( #4499 )
2023-09-05 20:28:20 -07:00
Colin McDonnell
4920f458bc
bun-vscode 0.0.8
2023-09-01 22:16:54 -07:00
Colin McDonnell
48cf9dddcb
Update commands
2023-09-01 21:35:34 -07:00
Ashcon Partovi
f0f91a2a31
Fix debug console from appears on start
2023-09-01 19:34:57 -07:00
Ashcon Partovi
94a4cda713
Add configuration options to extension
2023-09-01 18:56:25 -07:00
Ashcon Partovi
eeb683d977
Fix run button starting cwd at /
2023-09-01 15:35:14 -07:00
Ashcon Partovi
27de8bbf7b
Fix background color
2023-09-01 13:55:19 -07:00
Ashcon Partovi
6bdf24c8ef
Allow older versions of VSCode
2023-09-01 13:49:52 -07:00
Ashcon Partovi
57caea5ae7
Fix README for extension
2023-09-01 13:40:48 -07:00
Ashcon Partovi
fe3be666bc
Update VSCode extension
2023-09-01 13:34:29 -07:00
Ashcon Partovi
2b421be06f
Fix breakpoint on entry for extension
2023-09-01 10:19:14 -07:00
Ashcon Partovi
40d749b480
JavaScript Debug Terminal == Bun Terminal
2023-08-31 23:19:04 -07:00
Ashcon Partovi
b07bb3ce17
Make breakpoints faster in VSCode extension
2023-08-31 21:42:11 -07:00
Ashcon Partovi
bd7262f037
Fix vscode debug terminal
2023-08-31 00:18:59 -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
Jarred Sumner
a77ed151af
[git] Normalize line endings
2023-08-29 15:30:07 -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
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
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
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
Jarred Sumner
755f41fe2a
[Inspector] Get firefox to work
2023-08-25 03:56:39 -07:00
Ashcon Partovi
1480889205
Improved support for debug-adapter-protocol ( #4186 )
...
* Improve support for \`debug-adapter-protocol\`
* More improvements, fix formatting in debug console
* Fix attaching
* Prepare for source maps
* Start of source map support, breakpoints work
* Source map support
* add some package.jsons
* wip
* Update package.json
* More fixes
* Make source maps safer if exception occurs
* Check bun version if it fails
* Fix console.log formatting
* Fix source maps partly
* More source map fixes
* Prepare for extension
* watch mode with dap
* Improve preview code
* Prepare for extension 2
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-24 22:53:34 -07:00
Jarred Sumner
f269432d90
Listen on a unix domain socket with Bun.serve() ( #4311 )
...
* Update response.zig
* Comment this out for now
* Support unix domain socket in Bun.serve()
* Add test
* add types
* Update JSFetchHeaders.cpp
* comment this test out
* tls unix web socket serve options
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2023-08-24 22:49:58 -07:00
Colin McDonnell
2cd1d59387
Update toml import type test
2023-08-24 19:52:53 -07:00
Colin McDonnell
b70210a005
Use noEmit
2023-08-24 19:51:14 -07:00
jhmaster
55eb4ffe8f
Update bun-polyfills & bun-wasm ( #4246 )
...
* automate Bun.version & revision polyfills
* polyfill Bun.gc
* bun:jsc module initial polyfills
* update peechy schema
* bun-polyfills: fix some project configs
* bun-wasm: lots of fixes
* bun-polyfills: Bun.Transpiler impl.
* revision hash update
2023-08-24 14:39:28 -07:00
Colin McDonnell
aa08c35c06
Add Debugger docs and a couple guides ( #4281 )
...
* Add debugger docs. Add guides.
* Add files
2023-08-23 18:15:21 -07:00
VietnamecDevelopment
3556fa3b1e
Update globals.d.ts ( #4276 )
2023-08-23 16:25:05 -07:00
Code Hz
5e07fd4fbc
Fix ffi type ( #4265 )
...
* add readonly so it works with as const
* split ffi type infer to args and returns
* add JSCallback to FFITypeToArgsType
* add read functions
* simplify FFITypeOrString
* fix cstring type
* fix pointer type test
* fix readonly
* add unknown handling
* trigger action
* use Parameters
* add read type test
* add other read function to tests
2023-08-23 15:56:46 -07:00
xxxhussein
b01764b31e
Fix more types. ( #4273 )
2023-08-23 10:35:51 -07:00
Colin McDonnell
d86084dd8e
Fix Bun.inspect types
2023-08-22 14:28:01 -07:00
Colin McDonnell
3a45f2c71b
Docs and types for v0.8.0 ( #4199 )
...
* Improve test documentation
* Update nodejs compat docs with tty
* Add debugger guide
* Document Bun.inspect.custom, improve bun test nav
* Address reviews
* Update Bun.file types
* Add Nuxt guide
* Add tty types
2023-08-21 21:34:03 -07:00
dave caruso
397182b400
feat: Implement Bun.inspect.custom ( #4243 )
...
* add Bun.inspect.custom
* test
* Add Types
2023-08-21 16:25:37 -07:00
Jarred Sumner
c99a9ba33a
Implement File
2023-08-21 01:29:06 -07:00
Brúnó Salomon
c2ec47ff32
feat: add self-closing & can-have-content ( #4206 )
2023-08-18 19:59:23 -07:00
dave caruso
6fd0043f6b
Add util.inspect.custom support to util.inspect/Bun.inspect/console.log ( #4194 )
...
* start work on util.inspect.custom
* asdf
* finish util inspect custom inspect
* inspect
* fix tests
* revert
* tidy
* revert
* oops
* test
* fix issues
2023-08-17 20:56:52 -07:00
Jarred Sumner
0486cea35a
bun --inspect (#4158 )
...
* Let the debugger to pause/resume the event loop
* Add initial support for Debug Adapter Protocol
* Add progress
* Update Worker.cpp
* Fix require("console") #3820 (#4073 )
* Fix #3820
* Add Module (#4074 )
* Set exports to {} in user-constructed CommonJSModuleRecords (#4076 )
* feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) (#3651 )
* Fix merge issues
* oop
* make codegen
* Fix build issues
---------
Co-authored-by: dave caruso <me@paperdave.net >
* worker tests (#4058 )
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* feat(bun:test) add support for test.each() and describe.each() (#4047 )
* rename callback to func
* update testscope to handle function arguments
* works
* big cleanup
* works in debug, not release
* fix memory issue & update tests
* catch & str test
* write types for each() & switch tests to ts
* rm & typo
* move some code around & support describe
* review changes
* Fix one of the astro segfaults, also fix bun init version (#4079 )
* 4->16
* add assertions
* fix version stuff
* Remove unintentional logs from #4043
* Run prettier
* Update main-worker-file.js
* Update SIMDUTF (#4078 )
* Fix constructing buffer from a UTF16 string with the Latin1 encoding. (#4086 )
Close : #3914
* Add support for `bun --revision` (#4027 )
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local >
* Updates
* Update __global.zig
* remove non-node node-fallbacks (#4082 )
* remove non-node node-fallbacks.
* organize the imports
* Fix test
* Sync bun-polyfills branch (#4081 )
* bun-polyfills: initial impl. & baseline refactor
* move @types/ws dep from root to /test/
* bun-types: remove ReadableStream.forEach method
(this does not exist, probably added by mistake)
* bun-polyfills: remove extraneous stream utils
* bun-polyfills: add types syncing file
* bun-polyfills: re-arrange global polyfills
* bun-polyfills: fix FileBlob streams types again
* bun-polyfills: sync all of @types/node
* bun-polyfills: typeguard all current polyfills
* bun-polyfills: fix import paths
* bun-polyfills: switch to wasm impl. of farmhash
* bun-polyfills: support default import of bun obj
* bun-polyfills: transpiler placeholder file
* bun-polyfills: loaderless import.meta polyfill
* bun-polyfills: refactor import.meta polyfill
* bun-polyfills: repl entrypoint & todo list index
* bun-types: Add null to return type of Bun.which
* bun-types: match Bun.sha with Bun.hash.SHA512_256
* bun-polyfills: new "repl" package.json script
* bun-polyfills: full refactor of toplevel hashes
* bun-polyfills: these are fixed
* bun-types: NODE_ENV is optional
* bun-polyfills: fix Bun.env types
* bun-types+polyfills: fix HeapSnapshot.version type
* bun-polyfills: fix some web streams type conflicts
* bun-polyfills: update internal FileBlob.slice
* bun-polyfills: fix subproc stdin conversions
* bun-polyfills: better internal fileblob types
* bun-polyfills: try to sync global performance type
* bun-polyfills: working zig wasm polyfills setup
* bun-polyfills: update scripts
* bun-polyfills: fix wasm file location resolution
* bun-polyfills: goodbye farmhash (replaced by zig)
* bun-polyfills: move all Bun.hash polyfills to zig
* bun-polyfills: reimpl. seeding of seeded hashes
* bun-polyfills: impl. undocumented murmur32v2
* bun-polyfills: switch zighash from jsdoc to .d.ts
* bun-types: partial fix of Hash types
* bun-polyfills: documented Hash.murmur32v2
* bun-polyfills: misc updates
* bun-polyfills: enable sourcemaps
* bun-polyfills: handle empty inputs to hash funcs
* bun-types: narrow down hash func types
* bun-polyfills: remove unnecessary bigint casts
* bun-polyfills: impl. Bun.isMainThread
* bun-polyfills: impl. Bun.sleep and fix sleepSync
* bun-polyfills: impl. indexOfLine
* bun-polyfills: impl. Bun.peek.status
* bun-types: fix hashing test
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* Add remix guide
* Fix title
* add util.formatWithOptions (#4090 )
* Add formatWithOptions
* tests and tweaks
* adjust
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* bun test: format description of test.each (#4092 )
* bun test: format description
* add tests for tests
* only
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* Fixes #4062 (#4106 )
* Fixes #4062
* Update encoding.zig
* Use faster C++ impl
* Update wtf-bindings.cpp
* undo
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* zig fmt
* Update remix guide
* fs.zig: create temp files with 0o700, not 0o007 (#4107 )
* Handle thundering herd of setInterval (#4109 )
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* Fix memory leak in base64url (#4111 )
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
* run files without extensions (#4113 )
* run script without extension
* process stdio write fix
* don't check for trailing slash, var stream
* More lazily initialize these static strings
* Remove assertion
* wip
* Add --inspect flag
* Deprecate loading `node_modules.bun`
* realpath
* regenerate schema
* More
* more
* Update cli.zig
* Debugger JS loads
* have fun
* Most of the code
* Its starting to work.
* more progress
* win some, lose some
* Update dap.ts
* Async Context Tracking
* untested websocket
* Emit Console messages
* Error handling
* errors
* Make profiling work better
* [clap] CLI arguments with optional values ignore positional params
In `bun --inspect foo.js`, `foo.js` should not be the value of `--inspect`. It is a positional parameter. `--inspect=foo`
* Support multiple simultaneous clients, automatically unpause on disconnect
* regenerate
* Update Makefile
* Update WebKit
* Update cli.zig
* Update InternalModuleRegistry+createInternalModuleById.h
* BaseURL
* Update WebKit
* Add web-inspector-bun
* Update build.ts
* formatting, mostly
* Update debugger.ts
* Update InternalModuleRegistryConstants.h
* wrap
* Update test
* Update test
---------
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: dave caruso <me@paperdave.net >
Co-authored-by: Tiramify (A.K. Daniel) <94789999+TiranexDev@users.noreply.github.com >
Co-authored-by: Jacques <25390037+jecquas@users.noreply.github.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ai Hoshino <ambiguous404@gmail.com >
Co-authored-by: Yash Sharma <yashosharma@gmail.com >
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local >
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com >
Co-authored-by: jhmaster <32803471+jhmaster2000@users.noreply.github.com >
Co-authored-by: Adhityaa Chandrasekar <github@adtac.in >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2023-08-16 19:40:20 -07:00
jhmaster
117cee5ca5
bun-wasm fixes & improvements (#4126 )
...
* automate Bun.version & revision polyfills
* polyfill Bun.gc
* bun:jsc module initial polyfills
* fixes & improvements to bun-wasm
2023-08-11 18:20:21 -07:00
jhmaster
40befd8770
Sync bun-polyfills branch ( #4081 )
...
* bun-polyfills: initial impl. & baseline refactor
* move @types/ws dep from root to /test/
* bun-types: remove ReadableStream.forEach method
(this does not exist, probably added by mistake)
* bun-polyfills: remove extraneous stream utils
* bun-polyfills: add types syncing file
* bun-polyfills: re-arrange global polyfills
* bun-polyfills: fix FileBlob streams types again
* bun-polyfills: sync all of @types/node
* bun-polyfills: typeguard all current polyfills
* bun-polyfills: fix import paths
* bun-polyfills: switch to wasm impl. of farmhash
* bun-polyfills: support default import of bun obj
* bun-polyfills: transpiler placeholder file
* bun-polyfills: loaderless import.meta polyfill
* bun-polyfills: refactor import.meta polyfill
* bun-polyfills: repl entrypoint & todo list index
* bun-types: Add null to return type of Bun.which
* bun-types: match Bun.sha with Bun.hash.SHA512_256
* bun-polyfills: new "repl" package.json script
* bun-polyfills: full refactor of toplevel hashes
* bun-polyfills: these are fixed
* bun-types: NODE_ENV is optional
* bun-polyfills: fix Bun.env types
* bun-types+polyfills: fix HeapSnapshot.version type
* bun-polyfills: fix some web streams type conflicts
* bun-polyfills: update internal FileBlob.slice
* bun-polyfills: fix subproc stdin conversions
* bun-polyfills: better internal fileblob types
* bun-polyfills: try to sync global performance type
* bun-polyfills: working zig wasm polyfills setup
* bun-polyfills: update scripts
* bun-polyfills: fix wasm file location resolution
* bun-polyfills: goodbye farmhash (replaced by zig)
* bun-polyfills: move all Bun.hash polyfills to zig
* bun-polyfills: reimpl. seeding of seeded hashes
* bun-polyfills: impl. undocumented murmur32v2
* bun-polyfills: switch zighash from jsdoc to .d.ts
* bun-types: partial fix of Hash types
* bun-polyfills: documented Hash.murmur32v2
* bun-polyfills: misc updates
* bun-polyfills: enable sourcemaps
* bun-polyfills: handle empty inputs to hash funcs
* bun-types: narrow down hash func types
* bun-polyfills: remove unnecessary bigint casts
* bun-polyfills: impl. Bun.isMainThread
* bun-polyfills: impl. Bun.sleep and fix sleepSync
* bun-polyfills: impl. indexOfLine
* bun-polyfills: impl. Bun.peek.status
* bun-types: fix hashing test
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-10 12:17:39 -07:00
Jacques
63f58f4026
feat(bun:test) add support for test.each() and describe.each() ( #4047 )
...
* rename callback to func
* update testscope to handle function arguments
* works
* big cleanup
* works in debug, not release
* fix memory issue & update tests
* catch & str test
* write types for each() & switch tests to ts
* rm & typo
* move some code around & support describe
* review changes
2023-08-08 22:25:32 -07:00
dave caruso
009fe18fa2
worker tests ( #4058 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-08 22:19:46 -07:00
Tiramify (A.K. Daniel)
40d00a961e
feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) ( #3651 )
...
* Fix merge issues
* oop
* make codegen
* Fix build issues
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-08-08 22:14:30 -07:00
dave caruso
5497accbdb
Add env option for node:worker_threads ( #4052 )
...
* almost works
* env stuff
* test fixes
* wtfmove
* ok
* ok
* ref by default
* it now does the ref stuff by default
* cool
2023-08-07 23:58:38 -07:00
Jarred Sumner
f2f227720b
WASM test analyzer ( #4043 )
...
* wasm
* WASM test scanner
* Update Makefile
* Update Makefile
* Configurable heap limit
* slightly better error
* Update js_parser.zig
* Update path.test.js
* Update node.mjs
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-07 18:51:16 -07:00
Alex Lam S.L
8275b8ccd2
[types] fix blob.json() ( #3995 )
2023-08-04 17:30:38 -07:00
Colin McDonnell
63d265780f
Fix types ( #3963 )
...
* Fix types
* Add ws module
* Add *.toml module declaration
* Clean up
2023-08-04 12:56:34 -07:00
Colin McDonnell
d10860d272
Add type tests
2023-08-03 17:44:18 -07:00
Colin McDonnell
76fa3076cd
Add type tests, update modules.md
2023-08-03 17:41:47 -07:00
Ashcon Partovi
505e77c2d0
Implement node:diagnostics_channel ( #3934 )
...
* Add types for `node:async_hooks`
* Implement \`node:diagnostics_channel\`
2023-08-02 18:04:24 -07:00