Jarred Sumner
92f2d9ab27
Does not fix #4622 ( #5452 )
...
* Fixes #4622
* cleanup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 04:23:37 -07:00
Jarred Sumner
56c471a005
Make bun run --silent omit "error: "..." exited with code 1 ( #5459 )
...
* Make --silent behave as expected
* Make the "tsconfig.json extends" error a debug level
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 04:21:43 -07:00
Jarred Sumner
9168be4f15
Add missing "size" getter to URLSearchParams prototype
2023-09-15 03:50:03 -07:00
Dylan Conway
d26addeca1
dup and close file descriptors ( #5341 )
...
* track one shot fds
* dup fd
* skip for rearm on mac
* dup if fd
* cleanup
* force unregister on close
* deinitForceUnregister
* test
* add prompts
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-15 01:39:42 -07:00
Dylan Conway
f84fbd6e3e
remove convertToASCIILowercase
2023-09-15 00:45:47 -07:00
Jarred Sumner
f2a8575e4d
Reduce log level for loading tsconfig.json extends message
2023-09-15 00:15:22 -07:00
Ciro Spaciari
da7db2230f
fix(nitro) fix sourcemaps and JSSink closing ( #5422 )
...
* fix JSSink progress on sourcemap checking
* fix sourcemaps
* update JSSink fix
* undo + tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-14 23:25:01 -07:00
Dylan Conway
94e9f8bdca
fix http set cookie headers ( #5428 )
...
* allow multiple set-cookie values
* make it work for `getHeader`
* move `getHeader` to cpp
* remove set-cookie check
* move `setHeader` to cpp
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-14 23:03:20 -07:00
Dylan Conway
d606958f11
thread
2023-09-14 21:43:58 -07:00
Jarred Sumner
ced69d3818
async-ify all node:fs functions ( #5360 )
...
* async all node:fs functions
* draw the rest of the owl
* LLVM & Clang 16
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-14 21:26:37 -07:00
Colin McDonnell
332141a6f2
Rework bunfig docs
2023-09-14 20:54:53 -07:00
Dylan Conway
308237752a
v8 date parser tests ( #5332 )
...
* Create v8-date-parser.test.js
* one more test
* add permalinks and enable parser in bun
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-14 19:43:11 -07:00
dave caruso
e8d58f24af
fix(runtime): emit node:net connect error event vs throw ( #5336 )
...
* fix(runtime): emit `node:net` connect error event vs throw
* oops
* finally
* ok
* we are good
2023-09-14 17:30:30 -07:00
Dylan Conway
969b0cf539
remove tsconfig warning
2023-09-14 17:10:32 -07:00
Chris Boette
6e1472b9f8
Fix typo in HTTPThread name. ( #5376 )
2023-09-14 09:09:22 -07:00
Jarred Sumner
92e95c86dd
Always get latest version when @tag is explicitly passed ( #5346 )
2023-09-14 00:48:18 -07:00
Nathan Hammond
8ae9aeea6b
Remove the ability to configure lockfile. ( #5335 )
2023-09-13 22:32:03 -07:00
Colin McDonnell
4ebed280dc
Fix helptext for bun update
2023-09-13 22:01:31 -07:00
Ciro Spaciari
fa2ef0972b
fix(Bun.serve) fix buffering edge case ( #5152 )
...
* fix buffering clean
* fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error
* fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error
* oops
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-13 21:48:30 -07:00
dave caruso
9976e3f528
fix(runtime): make most globals configurable/deletable, allow resuming the console iterator ( #5216 )
...
* Fix #5177
* Fix #5175
* make most globals deletable/overridable
* not done
* cool
* a
* done
* fix test
* oops
* yippee
2023-09-13 21:39:36 -07:00
Mordy Tikotzky
088bea026e
Fix bug with multiline string in CRLF terminated files ( #4893 ) ( #5318 )
...
* Fix bug with multiline string in CRLF terminated files (#4893 )
* add test for #4893
2023-09-13 21:05:02 -07:00
Colin McDonnell
c99caccdb2
More docs & helptext cleanup ( #5229 )
...
* wip
* Flesh out resolution docs
* Polish
* More
* WIP
* WIP
* WIP
* Document --watch
2023-09-13 20:43:39 -07:00
Ciro Spaciari
d37602f316
fix(BunFile.slice) fix slice when length is greater than the size ( #5186 )
...
* check the limits for file, when slicing
* check eof
* undo test
2023-09-13 19:49:43 -07:00
Ai Hoshino
03d9bcd440
fix(node:dns): fix the crash. ( #5200 )
2023-09-13 17:43:10 -07:00
Ciro Spaciari
972a6f29cc
fix(console.log) fix printing long custom format ( #5164 )
...
* avoid overflow
* Update src/bun.js/bindings/exports.zig
* add mongodb inspect test
* bun db test
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-13 17:41:47 -07:00
WingLim
932fa35f99
feat(nodejs): implement os.availableParallelism ( #5109 )
...
* feat(nodejs): implement `os.availableParallelism`
* chore: do not throw error as same as node
* refactor: use `navigator.hardwareConcurrency`
2023-09-13 17:41:09 -07:00
Jarred Sumner
9c9f4ed6ad
Make --watch instant ( #5236 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-13 17:31:59 -07:00
dave caruso
4f8edb825f
fix(runtime): require cache should not include unevaluated ESM modules. ( #5233 )
2023-09-13 16:57:59 -07:00
David Hewitt
c3455c0cee
fix(node/fetch): Make data URL fetch consistent with node ( #5126 )
2023-09-13 05:35:39 -07:00
iidebyo
9101774593
avoid inserting extraneous"accept-encoding" header ( #5057 )
...
* add no extraneous accept-encoding header test
* ensure fetch honors no decompress opt
* fix format on test/js/node/http/node-http.test.ts
2023-09-13 02:02:25 -07:00
Gareth Jones
ec6b75ff54
chore: make comment grammatically correct ( #5140 )
2023-09-13 01:56:19 -07:00
Colin McDonnell
a18e3ff451
Add informative message on 'bun create react' ( #5248 )
2023-09-13 01:48:42 -07:00
Dylan Conway
32664df254
decode regex if needed ( #5167 )
...
* decode regex if non-ascii
* make it comptime
* add test
* use `bun.BabyList(u16)`
2023-09-13 01:26:18 -07:00
Colin McDonnell
473513db7e
Update tsconfig.json for bun init
2023-09-12 23:53:28 -07:00
cfal
75b5c71540
js/node/stream.js: call write() callback when encoding is not provided ( #4841 )
...
* js/node/stream.js: call write() callback when encoding is not provided
* js/out/InternalModuleRegistryConstants.h: update
2023-09-12 22:21:58 -07:00
Jarred Sumner
31aec4ebe3
Fix bug with bun build --compile ( #5102 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-12 07:07:07 -07:00
Jarred Sumner
b432006e43
Clean up some edgecases with posix_spawn usage ( #5079 )
...
* Check that the pid matches
* Fixup EINTR check
* Remove extra slashes
* fixup
* fixup
* != 0
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-12 06:34:20 -07:00
David Hewitt
07a6443a80
fix(node/path): Prevent memory corruption in parse ( #5083 )
...
* Add failing test for issue #4954
* fix(node/path): Return results with toValueGC
2023-09-12 05:05:00 -07:00
Jarred Sumner
6e4f746ace
Fix some bugs blocking Turborepo from using bun run ( #5071 )
...
* Clean up some error handling when loading `tsconfig.json`
* [bun run] don't parse tsconfig.json for package.json scripts
* Make this error message better
* Bump
* Don't print build errors twice
* Handle quotes in error messages a little better
* Add a couple tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-12 03:35:29 -07:00
Ai Hoshino
b5a3bed7f2
fix(JSC): copy string in toJSStringValueGC ( #5067 )
2023-09-12 03:08:42 -07:00
Ciro Spaciari
8615b8ad6b
add NODE_TLS_REJECT_UNAUTHORIZED ( #4829 )
2023-09-11 21:52:31 -07:00
Ai Hoshino
f267c1d097
fix(path): Fix edge case in path.relative ( #4811 )
...
Close : #4789
2023-09-11 17:53:43 -07:00
Ai Hoshino
c4507a5db3
Fix Buffer.from to handle double-byte hex encoding strings ( #4933 )
...
Close : #4919
2023-09-11 17:27:12 -07:00
Ciro Spaciari
c9a0ea96cd
fix(BunFile) .slice offset on macOS ( #4991 )
...
* fix offset
* simplify error
2023-09-11 17:19:43 -07:00
Dylan Conway
ca461f9e83
fix loading env from .env.production and friends ( #4630 )
...
* reload conditional vars
* test
* change `get` and `put` methods
* dont clone empty env variables
2023-09-11 17:19:21 -07:00
Ben Jervis
350403663e
Fix error message typo in js_ast.zig ( #4937 )
2023-09-11 11:03:45 -07:00
Yonathan Benolol
ea56182c5a
Update http.js - Fix Methods Fallback naming ( #4948 )
2023-09-11 08:51:35 -07:00
Matthew Yu
9d6a8ee79d
Fix punctuation ( #4870 )
2023-09-11 08:50:39 -07:00
fehnomenal
b55b511f68
Make detect-libc package match the upstream api ( #4910 )
2023-09-11 08:49:57 -07:00
Krystian Pracuk
2956ed4289
added .idea to .gitignore ( #4951 )
2023-09-11 08:48:26 -07:00