Meghan Denny
2b335d72e7
windows: make websocket-client.test.ts pass ( #8935 )
2024-02-16 04:07:06 -08:00
guest271314
dcda49a271
Missing toWeb ( #8937 )
...
https://github.com/oven-sh/bun/issues/3927
2024-02-15 21:41:46 -08:00
John-David Dalton
d49cb0b98e
chore: Add PrivateRecursive type annotations ( #8291 )
2024-02-15 17:35:08 -08:00
dave caruso
bb31e768de
docs: update windows build instructions
...
this removes the WSL codegen step as it is no longer supported, and some other notes i am aware of now
2024-02-15 16:54:03 -08:00
Jake Gordon
099825e5ac
Common HTTP server usage guide ( #8732 )
...
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-02-15 16:30:59 -08:00
Henrikh Kantuni
fc05cbfedc
Fix typo ( #8930 )
...
"Buns supports" → "Bun supports"
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
2024-02-15 16:20:55 -08:00
argosphil
c920919c42
fix: distinguish getters and setters in Bun.inspect() ( #8858 )
...
* Bun.inspect: distinguish [Getter], [Setter], [Getter/Setter]
fixes #8853
NOTE: this modifies files which were auto-generated at one point, but
which are now maintained as part of the Bun sources.
* test for #8853
---------
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-02-15 13:09:13 -08:00
Georgijs
da78103b1c
fix typo ( #8929 )
2024-02-15 13:07:07 -08:00
dave caruso
a2ae984c3e
disable some tests that are failing in ci ( #8922 )
...
* try to make ci green
* fix a crash in debug mode
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-15 07:09:44 -08:00
Jarred Sumner
151512dcc9
Release weak refs before responding to websocket messages ( #8898 )
...
* Release weak refs before responding to websocket messages
* Yes
* Wrap the methods instead of the callers
* oops
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-15 07:09:10 -08:00
Toby Cm
1b945ba2ef
fix: Update URL in non-avx warning message ( #8435 )
...
`https://github.com/oven-sh/bun/release/bun-v1.0.25/bun-linux-x64-baseline.zip `
->
`https://github.com/oven-sh/bun/releases/download/bun-v1.0.25/bun-linux-x64-baseline.zip `
2024-02-15 03:57:22 -08:00
dave caruso
e8dff7b029
chore: random acts of cleanup to tests ( #8915 )
...
* random acts of cleanup to tests
* nerf the watchFile test, is CI slow?
* more things
* [autofix.ci] apply automated fixes
* a
* remove a log
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-14 22:40:50 -08:00
Jarred Sumner
d936f365c8
Fixes #8909 ( #8911 )
...
* Fixes #8909
* Add it
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-14 18:57:20 -08:00
Jarred Sumner
48c0d7aadc
Fix incorrect type definition in usockets loop ( #8912 )
...
* Fix incorrect type definition
* Remove dead code
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-14 18:57:07 -08:00
dave caruso
cf054456ce
fix build on all platforms
2024-02-14 18:38:20 -08:00
Jarred Sumner
57b1e545f8
This debug code should not have been committed
2024-02-14 18:36:24 -08:00
Meghan Denny
12f83cf48b
make V8StackTraceIterator frame parser more robust ( #8814 )
...
* make V8StackTraceIterator frame parser more robust
* remove StringView_count and only call StringView::find as many times as we need
2024-02-14 18:25:30 -08:00
Lei
b0f9e03230
Fix coverage.md ( #8864 )
...
See lines 264/271 of bunfig.zig
2024-02-14 18:20:37 -08:00
argosphil
7481a29f4e
fix: brotli decompression's multi-packet case ( #8881 )
...
* fix: reset buffer pointer (misleadingly named total_in) for brotly
Fixes #8017
* fix: panic if brotli decompressor misbehaves
2024-02-14 18:19:46 -08:00
argosphil
0714b3a06b
fix: throw on gunzipSync/inflateSync error ( #8901 )
...
* fix: zlib functions should throw an error if appropriate
Fixes #8887 .
* Tests for #8887
* fix: drive-by fix to avoid unreachable code being reached on error
2024-02-14 18:01:05 -08:00
Dylan Conway
08c2148000
fix(windows): console-iterator.test.ts fix ( #8879 )
...
* fix console iterator tests on windows
* rename and size only when bytes is active
* assert size > 0
2024-02-14 17:59:19 -08:00
James Anderson
00cc2eae67
Fix tsconfig path longest prefix matching ( #8892 )
2024-02-14 08:23:45 -08:00
Dylan Conway
82a07430ed
fix(windows): use allocated memory for \\\\.\\NUL replacement on windows ( #8889 )
...
* use allocated memory for /dev/null
* deinit
2024-02-13 22:23:54 -08:00
Georgijs
636a8f1f0a
Prevent open but inactive http connections from keeping alive http server ( #8829 )
...
* unref uv handle after creating uws socket
* unref sockets between http requests to allow the event loop to exit
* remove stale comment
2024-02-13 22:22:44 -08:00
7f8ddd
05d33c39cd
fix: Add charset to text/css mime type ( #8825 )
...
* Add charset to text/css mime type
Standard: https://www.iana.org/assignments/media-types/text/css
More info: https://stackoverflow.com/questions/70643383/which-mime-types-contain-charset-utf-8-directive
Fixes the warning in Edge that says to include utf-8 when Bun returns a stylesheet.
* Add test
* Change "content type" to "mime-type"
2024-02-13 20:47:02 -08:00
dave caruso
aba37525a6
windows: fix bundler reliability and nuke WSL-based codegen scripts ( #8890 )
...
* bruh
* yeaaahhhhhhhhhhhhhhhhhhhhhhhhhhh
* revisions
* yeah
* fix
* make no codegen do less things
2024-02-13 20:33:24 -08:00
dave caruso
04a6ebaa17
fix: allow opening win32 device files in node:fs and bun.file ( #8801 )
...
* support opening device files in node:fs and bun.file
* tidy tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-13 18:24:14 -08:00
Augie
7405c5a615
feat: make curl install script run the windows installer (if run through cygwin) ( #8875 )
...
This updates the *nix install script to run the Windows Powershell install script if it detects it's on Windows.
2024-02-13 11:35:17 -08:00
Jarred Sumner
d0903f6b71
Cherry-pick 570fe762c8 ( #8830 )
...
This cherry-picks 570fe762c8
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2024-02-13 10:58:27 -08:00
Ciro Spaciari
d0b6218bdf
fix(fetch) redirects bodies should be handled ( #8874 )
...
* redirects bodies should be handled
* [autofix.ci] apply automated fixes
* Update src/http.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-12 21:14:00 -08:00
Meghan Denny
8afcb39055
windows: more tests are passing ( #8873 )
2024-02-12 17:52:14 -08:00
Meghan Denny
b2a697f264
scripts/codegen.ps1: update wsl call ( #8871 )
2024-02-12 16:46:26 -08:00
Zack Radisic
aca936515a
Make glob work for windows ( #8382 )
...
* Fix some related to paths and string encoding
* Fix relative paths with glob
* Fix scan tests
* Fix glob scan test
* [autofix.ci] apply automated fixes
* Fix leak test
* clean up post merge
* [autofix.ci] apply automated fixes
* clean up glob getcwd
* remove old struct
* fix open on posix
* feat: Add win32 path.toNamespacedPath and align rest of node:path with Node (#8469 )
* restore zls file change
* [autofix.ci] apply automated fixes
* switch to using fs.top_level_dir in glob
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com >
Co-authored-by: Georgijs Vilums <georgijs@bun.sh >
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-02-12 16:30:58 -08:00
Zack Radisic
6ba146c3e0
Run zig fmt
2024-02-12 17:40:36 -06:00
Georgijs
a80b3569b4
disable quiet logs when BUN_DEBUG_LOG is set to 0 ( #8866 )
2024-02-12 15:20:38 -08:00
argosphil
8b5cac1ea1
chore: use shell-independent globbing in bun run fmt:zig ( #8861 )
...
* fix: use shell-independent globbing in bun run fmt:zig
* Erase experimental creature escaped from @paperdave's lab.
See https://github.com/oven-sh/bun/pull/8861#discussion_r1485747297
2024-02-12 14:51:39 -08:00
John-David Dalton
96e7227087
feat: Add win32 path.toNamespacedPath and align rest of node:path with Node ( #8469 )
2024-02-12 14:27:26 -08:00
Dale Seo
f88855da4f
docs: non-null assertion is needed on document.getElementById ( #8540 )
2024-02-11 20:10:17 -08:00
Ujjwal gupta
19cb3ab6ff
fix: ws.publish() not working ( #8855 )
...
* fix: ws.publish() not working
* fixes
2024-02-11 13:56:06 -08:00
argosphil
862d35d832
fix: bun test -t ( #8845 )
2024-02-11 08:39:27 -08:00
argosphil
a0bcd0f946
Fix expect().toBeGreaterThan() not throwing when ANSI is disabled ( #8838 )
2024-02-10 14:00:16 -08:00
guest271314
2264bb3d04
Substitute js/ for test/js/ (404) ( #8808 )
2024-02-10 10:44:22 -08:00
Ciro Spaciari
3e1231deb4
fix(crypto) fix KeyObjectkey handling ( #8824 )
...
* ref/deref buffer
* Clean up this code
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-09 21:14:35 -08:00
dave caruso
dfcac563bc
fix error message in bun.serve ( #8828 )
...
* fix error message in bun.serve
* ok
2024-02-09 17:24:46 -08:00
Ciro Spaciari
90fd322b5c
fix timer tests ( #8804 )
2024-02-09 14:00:47 -08:00
Zack Radisic
f77b217abf
Correct shell docs for $.escape()
2024-02-09 11:41:59 -06:00
Risu
7c2be6a877
Fix bun-types/index.d.ts ( #8802 )
2024-02-09 08:46:42 -08:00
Dylan Conway
a3c3dad351
wrap ( #8812 )
2024-02-09 03:42:03 -08:00
Travis Cooper
98b438d0a4
Update bunfig.md ( #8807 )
2024-02-09 01:54:00 -08:00
cirospaciari
58d22b063c
Unmark tests that are now passing on Windows
2024-02-08 23:02:32 -03:00