Jarred Sumner
37186f4b0a
Add pretty printer for FormData
2023-02-13 04:37:23 -08:00
Michał Warda
f310d7414b
Add dynamic port assigning to Bun.serve ( #2062 )
2023-02-13 03:08:11 -08:00
Jarred Sumner
0db8cdf4e9
Fixes https://github.com/oven-sh/bun/issues/1456
2023-02-13 03:05:26 -08:00
Jarred Sumner
aa0762e466
Implement FormData ( #2051 )
...
* Backport std::forward change
* Implement `FormData`
* Fix io_darwin headers issue
* Implement `Blob` support in FormData
* Add test for file upload
* Fix bug with Blob not reading Content-Type
* Finish implementing FormData
* Add FormData to types
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-02-13 00:50:15 -08:00
Alex Lam S.L
cdbc620104
[install] support git://github.com/ dependencies ( #2059 )
2023-02-12 14:44:39 -08:00
Jarred Sumner
f4f88701c5
prettier + stop server
2023-02-12 04:41:18 -08:00
Michał Warda
cc214baacf
Return server on listen ( #2057 )
2023-02-12 04:37:28 -08:00
Jarred Sumner
83473c60df
Set require("module").globalPaths to empty array
...
https://github.com/oven-sh/bun/issues/1641#issuecomment-1427017442
2023-02-12 04:35:52 -08:00
Alex Lam S.L
8b4e58f3d2
fix string corruption in FS entry cache ( #2055 )
2023-02-11 21:35:33 -08:00
Alex Lam S.L
30e82c5df4
fix segfault during non-install script execution ( #2045 )
2023-02-11 20:40:18 -08:00
Jarred Sumner
675529bd0c
Fixes https://github.com/oven-sh/bun/issues/2052
2023-02-11 18:11:09 -08:00
Justin Whear
c208c4e319
Fix #631 : bun add throwing JSON lexer bug ( #2041 )
...
* add double-backslash to list of control chars
* update test
* stderr as string
2023-02-10 19:05:32 -08:00
Alex Lam S.L
09585c4b24
[install] fix duplicate check on peerDependencies ( #2039 )
...
fixes #2037
2023-02-10 09:23:40 -08:00
Alex Lam S.L
6052a3edbd
fix assertion failure ( #2033 )
2023-02-09 21:20:11 -08:00
Alex Lam S.L
6fd7c1921e
[install] fix flaky tests ( #2032 )
2023-02-09 20:35:58 -08:00
Alex Lam S.L
119120d21c
[simdutf] workaround validation OOB access ( #2031 )
2023-02-09 20:26:23 -08:00
Alex Lam S.L
2abfa8abd2
[streams] fix byte accounting ( #2029 )
...
fixes #1939
2023-02-09 17:04:36 -08:00
Jarred Sumner
523b112945
[bun:test] Auto-import jest globals in test files
2023-02-09 00:30:40 -08:00
Jarred Sumner
4962bea4fc
cleanup util.test
2023-02-08 17:17:40 -08:00
Alex Lam S.L
f31330d3e2
[install] pick latest tagged version by default ( #2016 )
...
* [install] pick `latest` tagged version by default
fixes #1993
* update `package.json` the same way as `npm
2023-02-08 16:28:29 -08:00
Dylan Conway
6fdbb25f9a
utf16 to utf8 conversion validation ( #2001 )
...
* use replacement character for invalid surrogate pairs
* return index of non-ascii
* non-allocating case
* edge cases
* function rename
* oops
* get length once, index counter
2023-02-08 14:42:10 -08:00
Alex Lam S.L
18807cef03
[install] assorted fixes & improvements ( #2011 )
...
- take `peerDependencies` into account during package placement
- do not recursively resolve `workspaces` (matches `npm`)
- link binaries to non-root packages correctly
- prune empty nodes during dependency tree construction
- support non-standard `workspace:` specifier
2023-02-08 14:37:14 -08:00
Jarred Sumner
30106c4f54
Fix failing test in debug mode
2023-02-06 23:19:05 -08:00
Jarred Sumner
153834cf5c
Throw on process.binding
2023-02-06 23:15:23 -08:00
Jarred Sumner
0fd144993c
Fix test failing on macOS
2023-02-06 22:41:37 -08:00
Alex Lam S.L
5a19f8434b
[WIP] fix corner cases with aliases dependencies ( #2000 )
...
* fix corner cases with aliases dependencies
* in-memory convert legacy `bun.lockb`
2023-02-06 22:24:34 -08:00
Jarred Sumner
7ddbbc53b4
Make Stat functions fast
2023-02-06 21:18:58 -08:00
Michał Warda
fd4668d97c
Expose Dirent and Stats ( #1998 )
...
* Expose dirent and stats
* Expose Dirent and Stats inside fs
* Add tests for Dirent and Stats exposing
* Automatically generate bindings
2023-02-06 14:15:20 -08:00
Jarred Sumner
ca2e708be1
speed it up a little more
2023-02-05 07:07:35 -08:00
Jarred Sumner
de613baf81
Support passing Date to Bun.sleep
2023-02-03 17:25:25 -08:00
Jarred Sumner
4590e2b83a
Add test for propagating exception
2023-02-03 17:04:47 -08:00
Jarred Sumner
2758e0cab9
Add missing crypto export
...
Fixes #1984
2023-02-03 16:39:16 -08:00
Jarred Sumner
7d386bf1f1
Introduce await Bun.sleep(ms)
2023-02-03 16:39:16 -08:00
Jarred Sumner
c64d7933a1
Make it less flaky
2023-02-03 14:39:07 -08:00
Dylan Conway
242dcea2fe
match formatting
2023-02-02 16:15:12 -08:00
Derrick Farris
8361513acf
feat: add http.request ( #1959 )
...
* fix(node-test-helpers): make sure to call done with any Errors thrown from wrapped fn
* feat(node:http): add http.request, patch some missing apis for IncomingRequest, etc.
* fix(node:http): FakeSocket -> Socket
* refactor(node:http): only save type from IncomingMessage.options for now
* fix(node:http): remove unnecessary check for UInt8Array
* perf(node:http): globalThis.fetch -> var fetch = Bun.fetch
* todo(node:http): add notes about handling abort/timeout w/ AbortSignal
* refactor(node:http): standardize on FakeSocket and this.#fakeSocket
* fix(node:http): fix headers getter
* fix(node:http): remove _headers
* perf(node:http): make http headers lazy
* fix(node:http): return bool from keepSocketAlive
2023-02-01 19:22:29 -08:00
Dylan Conway
19eca76498
change file extension
2023-02-01 19:06:56 -08:00
Dylan Conway
3c23f9ad57
fix text encoding for utf8 ( #1967 )
...
* use character
* replacement character
* also test encoding decoded points
* increase length by 1
2023-02-01 18:48:09 -08:00
Jarred Sumner
cc4326cd82
Re-run prettier after changes
2023-01-31 17:55:16 -08:00
Jarred Sumner
b09896f06e
mostly fix node:timers
2023-01-31 17:51:36 -08:00
Jarred Sumner
b7816f3175
Fixes fs.constants
2023-01-31 17:20:48 -08:00
Alex Lam S.L
9598868b57
[bun add] various fixes ( #1953 )
2023-01-31 13:05:41 -08:00
Jarred Sumner
4bfdad2981
Fix missing *ms getters in Stat
...
Related to #1949
2023-01-31 03:04:59 -08:00
Jarred Sumner
ad3295668f
Fix crash in bun install <package-name> ( #1947 )
...
* Fix crash in `bun install <package-name>` when <package-name> already exists
* Prettier
* Add test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-30 23:12:41 -08:00
Alex Lam S.L
ec2c16fefa
fix assert() crash ( #1941 )
2023-01-30 12:20:29 -08:00
Alex Lam S.L
c11bb93552
report invalid input file as test failure ( #1938 )
...
fixes #1935
2023-01-30 01:55:32 -08:00
Alex Lam S.L
5c30983d5d
[bunx] fix version parsing ( #1937 )
2023-01-30 00:33:13 -08:00
Jarred Sumner
9cd9df698a
Update child_process-node.test.js
2023-01-29 22:42:03 -08:00
Jarred Sumner
57edf3d91f
Skip flaky test
2023-01-29 22:36:29 -08:00
Jarred Sumner
f9b14dc87b
Fix flaky websocket test
...
cc @dylan-conway, the tests should be able to run when cwd is not the test folder
2023-01-29 22:36:24 -08:00