Brúnó Salomon
c2ec47ff32
feat: add self-closing & can-have-content ( #4206 )
2023-08-18 19:59:23 -07:00
dave caruso
26036a390b
Implement BigIntStats ( #4208 )
...
* Implement BigIntStats
* changes
* rename test
* comment
* test changes?
2023-08-18 19:59:03 -07:00
Jarred Sumner
943a664224
Remove most C API usages, add debugger pretty printers for Headers, URLSearchParams, FormData, Worker, EventTarget ( #4187 )
...
* Add pretty printers for `Headers`, `URLSearchParams`, and `FormData`
* [untested] Add way to code generate getInternalProperties
* bump
* Bump Webkit
* Ref the event loop while loaded
* wip
* checkpoint
* another checkpoint
* The code has been written
* Fixup exports
* Fix all the errors
* Fix bug
* [console.log] Fix bug when printing non-reified types missing values
* Fix loading hash table
* fix plugin
* Fix ref & unref
* auto-unref
* various fixes
* Update bun.zig
* Set toStringTag
* Delete code for macro JSX
* Delete code for `bun dev` HTTP JS
* Move Bun.serve to C++ API
* Delete JSC C API code
* ✂️ 💀 code
* Use JSC C++ for `confirm`, `Crypto`, `prompt`, `alert`
* more dead code
* Update exports.zig
* Use JSC C++ API for FFI
* Remove remaining usages
* Remove remaining usages
* Update ffi.ts
* Update InternalModuleRegistryConstants.h
* draw the rest of the owl
* Update webcore.zig
* bind it
* Fix performance regression in crypto.randomUIUD()
* Update js_parser.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-18 19:58:03 -07:00
Dylan Conway
d0664f8377
fix --bail test
2023-08-18 14:51:55 -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
dave caruso
0424fd8f6e
Support Nitro ( #4098 )
...
* Add formatWithOptions
* tests and tweaks
* adjust
* changes
* hi
* add mark/measure stubs
* stuff
* allow unix absolute paths here
* typo
* rebase
* fix stats
2023-08-17 19:34:05 -07:00
Colin McDonnell
cfbd1373e2
Update Astro guide
2023-08-17 18:38:10 -07:00
dave caruso
f74585ff01
Allow IncomingRequest.req to be overwritten. ( #4154 )
...
* Allow IncomingRequest.req to be overwritten.
* add test
* fix test
* yoo
2023-08-17 14:57:43 -07:00
Ai Hoshino
b2f8ef4dff
Fix(node:fs): add buffer parameter in fs.read callback. ( #4191 )
...
Close : #4178
2023-08-17 14:27:33 -07:00
Brúnó Salomon
b0e76a965d
refactor: move HTMLRewriter to c++ bindings ( #4193 )
2023-08-17 14:25:09 -07:00
Colin McDonnell
cfce38858f
Fix description for executables page
2023-08-17 14:07:36 -07:00
Colin McDonnell
540740c129
Add Astro guide ( #4110 )
2023-08-17 12:51:45 -07:00
xxxhussein
b1356718ad
correct guide's bunfig example option ( #4192 )
2023-08-17 12:13:16 -07:00
Colin McDonnell
b9b50e39d6
Fix broken link
2023-08-16 22:58:36 -07:00
Jarred Sumner
6c3dabd84e
Fix leaking .ptr ( #4181 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-16 22:10:01 -07:00
Colin McDonnell
d4438e9496
Add solidstart guide ( #4182 )
2023-08-16 21:30:37 -07:00
Colin McDonnell
56d591b903
Add sveltekit guide ( #4180 )
2023-08-16 20:52:49 -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
Ciro Spaciari
2634c64aa3
Fix prisma linux generation ( #4150 )
...
* check
* fmt + fix
* fmt
* ops
* add more targets
* more targets
* oops
* update bun lock and prisma
* manually add openssl
* targets on sqlite
2023-08-16 16:12:02 -07:00
Dylan Conway
af23dab833
Create domjit.test.ts ( #4173 )
2023-08-15 22:13:13 -07:00
Dylan Conway
9efeef2e24
res.then
2023-08-15 21:51:43 -07:00
dave caruso
67a8b75183
fix this page ( #4172 )
2023-08-15 19:02:46 -07:00
Dylan Conway
bdaa712357
disable domjit for Buffer.alloc
2023-08-15 19:00:02 -07:00
dave caruso
b682e5bf59
Fix event loop issue with Bun.connect ( #4157 )
...
* Fix event loop issue with Bun.connect
* sorry
* add test and fix another edge case
2023-08-15 18:09:11 -07:00
Dylan Conway
17c348ed0a
fix make headers
2023-08-15 14:56:21 -07:00
Dylan Conway
f05a38757a
fix build
2023-08-15 14:33:45 -07:00
Ai Hoshino
553a471cdf
chore: fix method name typo ( #4162 )
2023-08-15 08:11:11 -07:00
dave caruso
1a6a52314f
fix importing too long of strings ( #4155 )
2023-08-15 01:56:37 -07:00
dave caruso
47450ed12c
Make builtins' source origin use a valid url ( #4152 )
...
* Make source origin use a valid url
* disable minifyWhiteSpace
* the change
2023-08-14 20:28:18 -07:00
Colin McDonnell
eab7b4c3ea
Small docs change
2023-08-14 12:08:33 -07:00
dave caruso
0329061f15
fix makefile ( #4148 )
2023-08-13 20:43:44 -07:00
Revenity
1e96cbfb02
Update Stric guides ( #4137 )
2023-08-12 20:03:41 -07:00
dave caruso
78defe7a87
Fix worker event loop ref/unref + leak ( #4114 )
...
* make more tests pass
* worker changes
* fix some bugs
* remove this
* progress
* uh
* okay
* remove console log
* a
* comment assert for later
* mergable state
* remove test
* remove test
2023-08-12 13:51:03 -07:00
Ai Hoshino
b94433ce86
Fix using uninitialized variable when formatting config_path. ( #4129 )
...
Close : #4128
2023-08-11 22:14:08 -07:00
Jarred Sumner
ca26780b27
Deprecate loading node_modules.bun ( #4131 )
...
* Deprecate loading `node_modules.bun`
* realpath
* regenerate schema
* More
* more
* Update cli.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-11 22:13:46 -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
Jarred Sumner
43ebffedcd
Support TypeScript's export type * as Foo from 'bar' ( #4125 )
...
* [TypeScript] Support `export type * as Foo from 'bar'`
* Update js_parser.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-11 18:06:48 -07:00
Jarred Sumner
ccb9daf7a4
Fix wasm build
2023-08-11 16:24:29 -07:00
Jarred Sumner
c6d3b375b8
async realpath ( #4117 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 22:15:07 -07:00
Jarred Sumner
4731a460a2
Remove assertion
2023-08-10 19:58:59 -07:00
Jarred Sumner
99af827f25
More lazily initialize these static strings
2023-08-10 19:56:02 -07:00
Dylan Conway
a6ec7fe9b1
don't check for trailing slash, var stream
2023-08-10 19:06:51 -07:00
Dylan Conway
513a6d0df3
run files without extensions ( #4113 )
...
* run script without extension
* process stdio write fix
2023-08-10 19:00:06 -07:00
Jarred Sumner
115704b27b
Fix memory leak in base64url ( #4111 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 16:43:19 -07:00
Jarred Sumner
85b81624dc
Handle thundering herd of setInterval ( #4109 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 15:25:52 -07:00
Adhityaa Chandrasekar
cf12d80f5e
fs.zig: create temp files with 0o700, not 0o007 ( #4107 )
2023-08-10 14:00:13 -07:00
Colin McDonnell
58e74eadb5
Update remix guide
2023-08-10 13:54:17 -07:00
Jarred Sumner
be05b93f39
zig fmt
2023-08-10 13:32:37 -07:00
Jarred Sumner
e25833d009
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 >
2023-08-10 13:32:04 -07:00
Jacques
e65535cc05
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 >
2023-08-10 13:29:53 -07:00