dave caruso
664119841a
Implement napi_ref_threadsafe_function ( #4156 )
...
* Implement napi_ref_threadsafe_function
* work on this
* i hate event loops
* little better
* clean
2023-08-21 16:26:07 -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
752e59f23c
Fixes #4089 ( #4105 )
...
* Fixes #4089
* Update bindings.cpp
* address PR feedback
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-21 16:25:23 -07:00
Jarred Sumner
c99a9ba33a
Implement File
2023-08-21 01:29:06 -07:00
Jarred Sumner
f75b949524
Fixes #1675 ( #4230 )
...
* Fixes https://github.com/oven-sh/bun/issues/1675
* Add fallback for Bun.write
* Update blob.zig
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-20 21:29:09 -07:00
Jarred Sumner
65280853ac
Fix test failures from 3a9a6c63a ( #4231 )
...
cc @Hanaasagi
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-20 19:22:55 -07:00
Jarred Sumner
507761b463
Fix crash impacting sharp & resvg ( #4221 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-19 18:17:16 -07:00
Jarred Sumner
196620183f
Fixes #172 ( #4220 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-19 17:46:59 -07:00
Dylan Conway
db09ed15fd
tty ReadStream, WriteStream, and readline rawmode ( #4179 )
...
* tty `WriteStream`, `ReadStream`, and rawmode
* tests
* refactor prototypes
* fix failing test
* fix test and library usage
* more merge
* fix child_process test
* create pseudo terminal for tty tests
* match node logic
* handle invalid tty
* close descriptors
* move tests to another process
* fix test again
* fix test on linux
2023-08-19 00:11:24 -07:00
Jarred Sumner
3ca7fde363
prettier
2023-08-18 20:41:54 -07:00
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
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
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
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
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
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
dave caruso
1a6a52314f
fix importing too long of strings ( #4155 )
2023-08-15 01:56:37 -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
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
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
dave caruso
74f9fabd01
add util.formatWithOptions ( #4090 )
...
* Add formatWithOptions
* tests and tweaks
* adjust
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-10 13:09:03 -07:00
Ai Hoshino
385d440694
Fix constructing buffer from a UTF16 string with the Latin1 encoding. ( #4086 )
...
Close : #3914
2023-08-09 09:45:50 -07:00
Jarred Sumner
5d7c77aab0
Update main-worker-file.js
2023-08-08 23:02:45 -07:00
Jarred Sumner
2c70837ae7
Run prettier
2023-08-08 23:01:03 -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
1941dbbd71
Set exports to {} in user-constructed CommonJSModuleRecords ( #4076 )
2023-08-08 19:37:36 -07:00
dave caruso
320cdcf97e
Fix require("console") #3820 ( #4073 )
...
* Fix #3820
* Add Module (#4074 )
2023-08-08 18:23:33 -07:00
Ai Hoshino
511f6bdf79
1. Check if the argument is an empty string in path.format. ( #4064 )
...
2. Avoid duplicating '/' at the beginning of the path.
Close : #4005
2023-08-08 07:03:18 -07:00
Jarred Sumner
320ee6b6b7
import bun ( #4055 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-08 01:42:44 -07:00
Jarred Sumner
38df5b146f
Enable Headers.prototype.getSetCookie
...
Fixes #4057
2023-08-08 01:18:36 -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
jhmaster
182e600eb7
Fix Bun.hash functions ( #4054 )
...
* fix `Bun.hash` functions to behave as expected
* update Bun.hash tests
* properly test the returned hash
* include murmur32v2
* update Bun.hash docs
* run fmt
2023-08-07 23:30:05 -07:00
Dylan Conway
2fe6a965af
implement fetching data urls ( #4000 )
...
* fetch data urls
* `byteSlice`
* deinit slice
* allocate `mime_type` string if needed
* `content_type_allocated` and uncomment tests
* `str_`
* createAtom and slice decode result
2023-08-07 20:15:53 -07:00
Dylan Conway
1239c9460a
fix iterating headers with set-cookie ( #4048 )
...
* fix iterating headers with `set-cookie`
* a test
* move work to `HTTPHeaderMap::set`
* append set-cookie after sort
* remove compare function
2023-08-07 19:32:23 -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
Ai Hoshino
5ce393aab8
Fix path.normalize edge case. ( #4042 )
...
Close : #4041
2023-08-07 06:44:04 -07:00
Jarred Sumner
00a907c7de
Fixes #4001 ( #4034 )
...
* Avoid a utf8 conversion in isDetached
* Fixes #4001
* hit the long url codepath
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 22:49:10 -07:00
Jarred Sumner
0665733b03
Fixes #4029 and fixes #4022 ( #4032 )
...
* Fixes #4029 and Fixes #4022
Fixes #4029
Fixes #4022
* Add test for all the fetches
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 20:39:40 -07:00
Jarred Sumner
fa4e5d033e
Fixes #3129 ( #4018 )
...
* Fixes #3129
* add CloseEvent
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 07:35:07 -07:00
Jarred Sumner
1462445419
Code coverage for bun test ( #3975 )
...
* WIP code coverage initial commit
* almost works
* one approach
* Code Coverage
* Update WebKit
* it works but is not yet accurate
* skip double ascii check
* wrapper
* it works but i'm not sure what to do about blocks
* hide blocks for now
* Update ZigSourceProvider.cpp
* Create coverage.md
* Update nav.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 06:30:23 -07:00
Ai Hoshino
ecdf2ffa6c
feat: impl dns.getServers ( #3982 )
...
* feat: impl `dns.getServers`
Close : #3981
* check return value of `ares_inet_ntop`
2023-08-06 06:16:54 -07:00
Jarred Sumner
637a38f394
Fixes #3991
...
Fixes #3991
2023-08-04 18:54:08 -07:00
dave caruso
d196aa2de6
FFI typo ( #3973 )
...
* FFI typo
* add tests
* it was a newline
2023-08-04 16:08:50 -07:00