Dylan Conway
f5bf67bd1b
choose correct resolved package for peer dependencies ( #7192 )
...
* fix sometimes failing install test
* loop to make sure it happens
bun-v1.0.13
2023-11-17 19:15:47 -08:00
Ashcon Partovi
075c09401a
Output verbose logs when running in Github Action with debug mode ( #7183 )
2023-11-17 18:19:29 -08:00
Ciro Spaciari
c23579d66c
feat(http2) Client Support ( #6761 )
...
* init
* WIP fix post data/refactor
* make it compile again
* more things
* undo padding and continue + fix posting + update lshpack
* re-add fixes
* really simple tests + fixes
* add aborted event
* fix trailers
* add getDefaultSettings, getPackedSettings and getUnpackedSettings
* fix + fmt
* fixes
* fix enablePush o be boolean
* fix sendTrailers
* fmt
* fix goaway, fix some error messages
* oops
* revert some changes
* more reverts
* WIP
* get CMAKE building lspack + ping behavior
* remove files that should not be added anymore
* remove old out files
* remove old file
* fix header reduce
* bunch of fixes
* fix socket unref
* fix abort signal, rebase and fmt
* socket unref tests
* oops re-add cmake
* fix stream state
* more tests and fixes
* fixes and ping tests
* lshpack in Dockerfile
* just copy lshpack
* oops
* fix end
* wantTrailers
* encode/decode fixes + grpc
* channel credentials test
* rebase
* support h2c
* fix h2c
* fix h2c connect event + h2c tests
* 'copy ls-hpack
* ls-hpack build sh
* oops
* changing CMake + Docker
* add ps1 build for ls-hpack fix clean
* optimizations + fixes
* remove protect/unprotect from handlers
* more consistent errors
* fix error code
* oops
* add goaway tests
* oops uncoment tests
* better errors more tests
* add broken priority frame
* better memory leak, some fixes and less flask tests
* zig update .Big -> .big
* closer threshold + h2 fix
* remove log
* test should not be flask
* increase timeout on leak memory test
* windows build
* less flasky
* always 127.0.0.1
* [autofix.ci] apply automated fixes
* remove .call and use primordials
* apply socket fix
* fix win-build
* should properly mark inactive
* postgres fix
* increase deadline
* test tests
* high light deadline timeouts
* event loop test
* make memory leak test faster
* use buffer on payload test
* check for socket.data before use
* reduce iterations to see if timeout on mac intel
* fix assertions
* avoid localhost and simplify things
* refactor memory leak test
* Update src/js/node/tls.js
* fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cirospaciari <ciro.spaciai@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-17 18:14:54 -08:00
Jarred Sumner
6c200c089c
Tweak napi PR ( #7177 )
...
* Fix assertion failure
* Fix the test
* Fix assertion failure
* Update bun.lockb
* Add node-gyp
* Update CMakeLists.txt
* Update napi.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-17 17:00:44 -08:00
Mike Dotty
3eb086f5fa
fix(dx): Stop swallowing errors from create_hash_table during the build ( #7110 )
...
* Stop swallowing errors from create_hash_table during the build
If src/codegen/create_hash_table can't be run due to some reason
(e.g. due to missing Math::BigInt Perl module) the build continues
but fails later, during bindings compilation, because the generated
files are empty.
Fix it by handling the failure to run create_hash_table properly.
Closes #7074
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-17 13:45:32 -08:00
DidaS
fbff18a723
fix(types): Change Bun.serve types to allow void when using websockets ( #7160 )
...
* `Response` -> `any`
* Revert previous commit & allow void in ws fetch
* Added type test to check if you can upgrade connection without returning
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-17 05:34:05 -08:00
Olivier Guimbal
6e7014c91b
Fix napi_get_value_string_utf8 to match node ( #7175 )
...
* fix napi_get_value_string_utf8 to match node
closes #6949
* [autofix.ci] apply automated fixes
* Update test/napi/napi.test.ts
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* Update test/napi/napi.test.ts
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-11-17 05:27:58 -08:00
Jarred Sumner
711ea1604b
Set umask once ( #7176 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-17 05:08:25 -08:00
Jarred Sumner
538a243453
Bump!
2023-11-17 04:12:08 -08:00
Dylan Conway
8be492c080
fix require transpile ( #7170 )
...
* bounds checks
* do this all the time
cc @paperdave
* use length of string
* ttest
* min
* can't prefix if length isn't at least equal
* substring
* Update pretty_format.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-11-17 04:10:50 -08:00
jhmaster
6c7a0e5a79
node:util core-js compat. fix ( #7101 )
...
* node:util: fix compatibility issue with corejs
2023-11-17 09:10:32 -03:00
Jarred Sumner
f4d14c02c7
Implement process.report.getReport() ( #7171 )
...
* Prevent assertion failure
* Implement process.report.getReport()
* Update process.test.js
* }
* Update BunProcess.cpp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-17 03:35:35 -08:00
Dylan Conway
3ca2d8ae5e
ensure .bin folder is created before linking binaries ( #7166 )
...
* bin might need to be created after iterating node_modules
* Update bun-install-registry.test.ts
* test this functionality in a few more tests
* fix a test
* another test
* revert
* more test
2023-11-16 23:54:49 -08:00
Jarred Sumner
c23aed993f
Update pull_request_template.md
2023-11-16 23:52:27 -08:00
Jarred Sumner
11e07caaa4
Update pull_request_template.md
2023-11-16 23:52:19 -08:00
Jarred Sumner
e4de49df2a
Update pull_request_template.md
2023-11-16 23:51:28 -08:00
Jarred Sumner
47e1fbe468
Update pull_request_template.md
2023-11-16 23:50:09 -08:00
Jarred Sumner
8353ba7857
Update pull_request_template.md
2023-11-16 23:50:02 -08:00
HK-SHAO
606c80b049
Fix the TypeError of isValidTLSArray for http ( https://github.com/oven-sh/bun/issues/7153 ) ( #7154 )
2023-11-16 23:41:19 -08:00
Jarred Sumner
d1436e3ecc
Support Object.create in Stats within node:fs ( #7168 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-16 23:39:10 -08:00
Jarred Sumner
7e0e007e3e
Fix bug where with statements do not trigger CommonJS ( #7167 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-16 23:37:22 -08:00
Ashcon Partovi
2e74f7f079
Properly handle errors from posix_spawn ( #7163 )
2023-11-16 21:02:13 -08:00
Jarred Sumner
2c81c2a13f
Fix crash due to isEmpty check checking only size and not capacity
2023-11-16 19:37:14 -08:00
Jarred Sumner
d9a0fd4f59
Don't allocate new "require" and "resolve" strings in CJS modules ( #7162 )
...
* Don't allocate new `"require"` and `"resolve"` strings in every CommonJS module
* Use builtinNames more
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-16 15:10:27 -08:00
Mathias Wulff
d1ec8f86f3
Add license to bun-types ( #7149 )
2023-11-16 09:18:46 -08:00
Dylan Conway
85c997513d
node modules bin directory fix ( #7151 )
...
* place binaries in `.bin` of package node_modules
* test
* fix tests
bun-v1.0.12
2023-11-15 22:44:44 -08:00
Mike Dotty
904134cc75
Handle whitespace in no_proxy environment variable ( #7072 )
...
De facto standard format of no_proxy enivronment
variable allows whitespace around the host names.
Make it work.
Closes #6339
2023-11-15 21:55:31 -08:00
Alex Kwiatkowski
15e4f1bad3
fix typo in help menu ( #7150 )
2023-11-15 21:19:38 -08:00
Jarred Sumner
09b8b6b468
Bump!
2023-11-15 19:41:00 -08:00
Jarred Sumner
4dfc7feae0
Reorder the flags
2023-11-15 19:17:10 -08:00
Jarred Sumner
77e6b946f4
Support using bultin functions in macros ( #7113 )
...
* `zig fmt`
* Support using macros in builtins
* Make fetch work a little better in macros
* Delete a bunch of code
* Update macro-test.test.ts
* Update macro-test.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-15 18:25:27 -08:00
Colin McDonnell
31814934f3
CLI flags ( #6395 )
...
* WIP
* WIP
* Improve helptext
* WIP
* WIP
* WIP
* WIP
* Clean up, implement warn_on_unrecognized_flag
* Fix struct
* Tweaks
* Fix bunx test
* Address reviews
* Init and create
* Updates
* bunx
* Tweaks
* Lockfile
* tweak
* tweak
* tweak
* tweak
* Remove comments
* Add back origin and port
* Remove logging
* Updates
* fmt
* fix rebasing mistakes
* bruh
* expose node builtins for -e
* add tests and fix it on windows
* a
* lol
* okay
* finish things up
* Update src/deps/zig-clap/clap/streaming.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: dave caruso <me@paperdave.net >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-11-15 18:15:10 -08:00
Jarred Sumner
b43a8b54cf
Implement expect.unreachable(msg?: string | Error) ( #7131 )
...
* Implement `expect.unreachable`
* UIse expect.unreachable() in some tests
* Use more unreachable
* More unreachable
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-15 16:14:13 -08:00
Pierre-Mike
a165306fd9
Update gitignore-for-init removing duplicate .cache pattern ( #7133 )
...
'.cache' pattern is defined more than once
2023-11-15 09:19:12 -08:00
Hanaasagi
056d45cf6b
fix(install): fix the case that package scope contains tilde. ( #7049 )
...
* fix(install): fix the case that package name contains tilde.
Close : #7045
* add tests
* emm, let me know why test failed
* overwrite registry config
* check more chars
* remove $
2023-11-15 01:31:31 -08:00
Dylan Conway
46955e95ef
migration without resolved properties ( #7123 )
...
* packages without `resolved` properties
* test
* free more
* find registry scope
2023-11-14 23:17:59 -08:00
Jarred Sumner
e6e4ffb4ae
Fixes #6789 ( #7129 )
...
* `zig fmt`
* Fixes #6879
* Update bun-test.d.ts
* More tests
* Bump WebKit
* [autofix.ci] apply automated fixes
* woops
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-14 21:00:28 -08:00
Jarred Sumner
5946e13e27
Fixes #7035
2023-11-14 20:18:04 -08:00
Anton Golub
8f3e278ab9
Add stubs for zlib.brotli* ( #7096 )
2023-11-14 08:52:42 -08:00
Ashcon Partovi
547ed6d74d
Add workflow that fixes PRs that do not match formatting ( #7098 )
2023-11-14 08:51:19 -08:00
Jarred Sumner
d4adcb3ccf
Update zig version ( #7103 )
...
* Update zig version
* Update Dockerfile
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-14 02:34:18 -08:00
Jarred Sumner
d4628992d8
Fixes #6929 ( #7059 )
...
* Fixes #6929
* TIL macOS symbols are case insensitive
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-14 02:14:11 -08:00
Jarred Sumner
24b4b2c16d
Remove unnecessary unprotect() call causing assertion failure
2023-11-14 02:06:40 -08:00
Jarred Sumner
35bac672bb
Make globalThis.crypto.subtle = 123 do nothing
2023-11-14 01:46:46 -08:00
Jarred Sumner
d649f69404
Add a test for expect() no arguments called repeatedly
2023-11-14 01:32:16 -08:00
Jarred Sumner
7ce5061343
Make a test less flaky
2023-11-14 01:20:41 -08:00
Jarred Sumner
20d9e25ae2
Fix hang introduced in #6991 ( #7104 )
...
This causes keep-alive to be disabled for HTTP status codes that do not support bodies, leading to many HTTP client hangs.
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-14 01:14:56 -08:00
Jarred Sumner
89c76f2b45
Fixes #6604
2023-11-14 00:55:19 -08:00
Jarred Sumner
a9a68c3143
Allow a longer timeout in this potentially flaky test
2023-11-13 22:25:13 -08:00
Jarred Sumner
d1c1c8fb5f
Fix flaky test
2023-11-13 22:16:34 -08:00