aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-15Revert "decode regex if needed (#5167)"revert-5167-dylan/decode-regex-if-neededGravatar Jarred Sumner 4-162/+126
This reverts commit 32664df254be225dd195fcaf46994f0c550f9d22.
2023-09-15Does not fix #4622 (#5452)Gravatar Jarred Sumner 1-16/+25
* Fixes #4622 * cleanup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-15Make `bun run --silent` omit `"error: "..." exited with code 1` (#5459)Gravatar Jarred Sumner 3-16/+27
* 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-15Add missing `"size"` getter to `URLSearchParams` prototypeGravatar Jarred Sumner 1-0/+1
2023-09-15dup and close file descriptors (#5341)Gravatar Dylan Conway 2-35/+41
* 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-15remove `convertToASCIILowercase`Gravatar Dylan Conway 1-1/+1
2023-09-15Reduce log level for `loading tsconfig.json extends` messageGravatar Jarred Sumner 2-1/+13
2023-09-14fix(nitro) fix sourcemaps and JSSink closing (#5422)Gravatar Ciro Spaciari 3-33/+43
* fix JSSink progress on sourcemap checking * fix sourcemaps * update JSSink fix * undo + tests --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-14fix http set cookie headers (#5428)Gravatar Dylan Conway 5-27/+121
* 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-14threadGravatar Dylan Conway 1-1/+1
2023-09-14async-ify all node:fs functions (#5360)Gravatar Jarred Sumner 7-1449/+1349
* 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-14Rework bunfig docsGravatar Colin McDonnell 2-2/+17
2023-09-14v8 date parser tests (#5332)Gravatar Dylan Conway 1-0/+1
* 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-14fix(runtime): emit `node:net` connect error event vs throw (#5336)Gravatar dave caruso 3-58/+88
* fix(runtime): emit `node:net` connect error event vs throw * oops * finally * ok * we are good
2023-09-14remove tsconfig warningGravatar Dylan Conway 1-4/+1
2023-09-14Fix typo in HTTPThread name. (#5376)Gravatar Chris Boette 2-2/+2
2023-09-14Always get latest version when @tag is explicitly passed (#5346)Gravatar Jarred Sumner 1-57/+65
2023-09-13Remove the ability to configure lockfile. (#5335)Gravatar Nathan Hammond 2-43/+2
2023-09-13Fix helptext for bun updateGravatar Colin McDonnell 1-1/+1
2023-09-13fix(Bun.serve) fix buffering edge case (#5152)Gravatar Ciro Spaciari 2-3/+4
* 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-13fix(runtime): make most globals configurable/deletable, allow resuming the ↵Gravatar dave caruso 15-1242/+1158
console iterator (#5216) * Fix #5177 * Fix #5175 * make most globals deletable/overridable * not done * cool * a * done * fix test * oops * yippee
2023-09-13Fix bug with multiline string in CRLF terminated files (#4893) (#5318)Gravatar Mordy Tikotzky 1-1/+1
* Fix bug with multiline string in CRLF terminated files (#4893) * add test for #4893
2023-09-13More docs & helptext cleanup (#5229)Gravatar Colin McDonnell 1-8/+9
* wip * Flesh out resolution docs * Polish * More * WIP * WIP * WIP * Document --watch
2023-09-13fix(BunFile.slice) fix slice when length is greater than the size (#5186)Gravatar Ciro Spaciari 1-3/+5
* check the limits for file, when slicing * check eof * undo test
2023-09-13fix(node:dns): fix the crash. (#5200)Gravatar Ai Hoshino 2-14/+5
2023-09-13fix(console.log) fix printing long custom format (#5164)Gravatar Ciro Spaciari 1-1/+1
* 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-13feat(nodejs): implement `os.availableParallelism` (#5109)Gravatar WingLim 2-3/+6
* feat(nodejs): implement `os.availableParallelism` * chore: do not throw error as same as node * refactor: use `navigator.hardwareConcurrency`
2023-09-13Make --watch instant (#5236)Gravatar Jarred Sumner 7-56/+190
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-13fix(runtime): require cache should not include unevaluated ESM modules. (#5233)Gravatar dave caruso 2-7/+5
2023-09-13fix(node/fetch): Make data URL fetch consistent with node (#5126)Gravatar David Hewitt 1-7/+13
2023-09-13avoid inserting extraneous"accept-encoding" header (#5057)Gravatar iidebyo 1-1/+1
* 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-13chore: make comment grammatically correct (#5140)Gravatar Gareth Jones 1-1/+1
2023-09-13Add informative message on 'bun create react' (#5248)Gravatar Colin McDonnell 1-0/+22
2023-09-13decode regex if needed (#5167)Gravatar Dylan Conway 4-126/+162
* decode regex if non-ascii * make it comptime * add test * use `bun.BabyList(u16)`
2023-09-12Update tsconfig.json for bun initGravatar Colin McDonnell 1-1/+1
2023-09-12js/node/stream.js: call write() callback when encoding is not provided (#4841)Gravatar cfal 2-3/+7
* js/node/stream.js: call write() callback when encoding is not provided * js/out/InternalModuleRegistryConstants.h: update
2023-09-12Fix bug with bun build --compile (#5102)Gravatar Jarred Sumner 1-2/+2
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-12Clean up some edgecases with posix_spawn usage (#5079)Gravatar Jarred Sumner 2-20/+66
* 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-12fix(node/path): Prevent memory corruption in parse (#5083)Gravatar David Hewitt 1-15/+7
* Add failing test for issue #4954 * fix(node/path): Return results with toValueGC
2023-09-12Fix some bugs blocking Turborepo from using `bun run` (#5071)Gravatar Jarred Sumner 5-9/+20
* 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-12fix(JSC): copy string in `toJSStringValueGC` (#5067)Gravatar Ai Hoshino 1-1/+1
2023-09-11add NODE_TLS_REJECT_UNAUTHORIZED (#4829)Gravatar Ciro Spaciari 5-1/+28
2023-09-11fix(path): Fix edge case in `path.relative` (#4811)Gravatar Ai Hoshino 1-2/+2
Close: #4789
2023-09-11Fix `Buffer.from` to handle double-byte hex encoding strings (#4933)Gravatar Ai Hoshino 1-0/+1
Close: #4919
2023-09-11fix(BunFile) .slice offset on macOS (#4991)Gravatar Ciro Spaciari 1-0/+6
* fix offset * simplify error
2023-09-11fix loading env from `.env.production` and friends (#4630)Gravatar Dylan Conway 7-39/+68
* reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables
2023-09-11Fix error message typo in js_ast.zig (#4937)Gravatar Ben Jervis 1-1/+1
2023-09-11Update http.js - Fix Methods Fallback naming (#4948)Gravatar Yonathan Benolol 1-1/+1
2023-09-11Fix punctuation (#4870)Gravatar Matthew Yu 1-2/+2
2023-09-11Make detect-libc package match the upstream api (#4910)Gravatar fehnomenal 3-14/+14