aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-31Add `"macro"` package.json exports conditionGravatar Jarred Sumner 1-7/+1
2023-05-31isolated version of Path compatible with nodejs (#3143)Gravatar Ciro Spaciari 2-34/+87
2023-05-31Make uploading files with `fetch()`fast (#3125)Gravatar Jarred Sumner 5-56/+342
* Make file uploads fast * Add benchmark * Update README.md * defaults * print * prettier * smaller * fix(path) fix parse behavior (#3134) * Add macro docs (#3139) * Add macro doc * Updates * Tweaks * Update doc * Update macro serialization doc * Update macro doc * `--no-macros` flag, disable macros in node_modules * invert base/filename internally (#3141) * always false * Fix broken test * Add a test sendfile() test with large file --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2023-05-31set `optional_chain` instead of `optional_start` (#3142)Gravatar Dylan Conway 1-1/+1
2023-05-31invert base/filename internally (#3141)Gravatar Ciro Spaciari 2-9/+9
2023-05-31`--no-macros` flag, disable macros in node_modulesGravatar Jarred Sumner 13-11/+91
2023-05-31fix(path) fix parse behavior (#3134)Gravatar Ciro Spaciari 2-19/+39
2023-05-31Support FormData & file uploads in `fetch` body (#3123)Gravatar Jarred Sumner 3-50/+184
* Fixes #2264 * fixup * Don't leak HTTP headers * Include the mime type. It's cleaner --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-30always clone theseGravatar Jarred Sumner 1-2/+2
2023-05-30Fix wasiGravatar Jarred Sumner 1-4/+2
2023-05-30Update ZigGeneratedClasses.hGravatar Jarred Sumner 1-60/+0
2023-05-30Add another commentGravatar Jarred Sumner 1-9/+25
2023-05-30[CommonJS] Handle `this` betterGravatar Jarred Sumner 1-5/+19
2023-05-30Fixes #3115Gravatar Jarred Sumner 2-30/+33
2023-05-30More commentsGravatar Jarred Sumner 1-0/+8
2023-05-30Add a commentGravatar Jarred Sumner 1-0/+4
2023-05-30Handle `Object.defineProperty(module, "exports", {get: getter})`Gravatar Jarred Sumner 1-1/+24
2023-05-30BumpGravatar Jarred Sumner 1-1/+1
2023-05-29Cleanup CommonJS changes (#3112)bun-v0.6.5Gravatar Jarred Sumner 7-49/+238
* Add more GC in test * Fix handling of functions and re-assignments in CommonJS * Increase timeout --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-29Natively support CommonJS at runtime (#3104)Gravatar Jarred Sumner 16-498/+996
* Natively support CommonJS at runtime * cleanup how getters are handled, add fast path * more consistent with node * use * As * Remove thrown modules on exception * Handle exception better --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-28Convert `module.exports = { foo: 'bar'}` to ESM in `bun build` (#3103)Gravatar Jarred Sumner 1-1/+164
* Convert `module.exports = { foo: 'bar'}` to ESM in `bun build` * De-opt for `module.exports = {}` --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-28[node:net] fix createConnection options passing (#3101)Gravatar Ciro Spaciari 2-23/+10
* fixup createConnection * fix comment * fixup comment * also fix it on tls
2023-05-27Fixes #2356 (#3098)Gravatar Jarred Sumner 2-24/+11
2023-05-27Implement process.env.npm_lifecycle_event (#3097)Gravatar Tiramify (A.K. Daniel) 1-0/+1
* Update run_command.zig * Update env.test.ts * Add files via upload * Update run-process-env.test.ts * Update env.test.ts * Update harness.ts
2023-05-27Fixes #3091 (#3092)Gravatar Jarred Sumner 2-3/+1
* Fixes #3091 * Update build-id --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-26Fix crash in `Server.prototype.fetch()` helper functionbun-v0.6.4Gravatar Jarred Sumner 1-3/+9
cc @cirospaciari, if you use `mimalloc-debug` it catches things like this
2023-05-26Add more debug safety checksGravatar Jarred Sumner 1-0/+18
2023-05-26Implement `expect().toBeEmpty()` (#3060)Gravatar Ashcon Partovi 5-9/+176
* Implement `expect().toBeEmpty()` * Fix formatting on test * Finish up expect().toBeEmpty() * Update expect.test.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-26Pretty formatter for `Headers` & `URLSearchParams` (#3081)Gravatar Jarred Sumner 9-29/+147
* Pretty formatter for `Headers` & `URLSearchParams` * cleanup * console.log on Headers, FormData, URLSearchParams will always quote the keys now --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-26[fetch] change response allocator (#3086)Gravatar Ciro Spaciari 1-1/+1
* change allocator * cleanup
2023-05-26Fix crash in test.todo + remove JSC C API usages in bun:test (#3079)Gravatar Jarred Sumner 27-364/+599
* Fix crash in test.todo * remove usages of JSC C API in bun:test * Remove additional JSC-C API usages * fix `make headers` * URLSearchParams.length * FormData length * URLSearchParams length * Fix `make headers` * very fancy length * Fix bug with exceptions being ignored sometimes * Add tests for extension toHaveLength --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-25avoid using null valueGravatar Dylan Conway 1-2/+4
2023-05-25[install] fix `.bin` linking (#3067)Gravatar Alex Lam S.L 1-3/+3
- causes intermittent `bun install` failures on `bun-types`
2023-05-25jsx runtime from env (#3076)Gravatar Dylan Conway 1-0/+3
* use `NODE_ENV` for jsx mode * check env after `configureRouter` * get `NODE_ENV` from `options.production`
2023-05-25[stream] fix flush (#3073)Gravatar Ciro Spaciari 1-2/+1
* fix flush * remove logs
2023-05-24BumpGravatar Jarred Sumner 2-2/+2
2023-05-24Support `with { type: "macro"}` in `bun build` (#3059)Gravatar Jarred Sumner 4-51/+160
* [bun macro] Support `assert { type: "macro" }` and `with {type: "macro"}` * [bun macro] Pass through input as arguments instead of a JSNode * Fix hang when loading many entry points simultaneously with macros * do not clone --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-24Load `.env.test`, set NODE_ENV=test in `bun test`, load ↵Gravatar Jarred Sumner 11-73/+134
`.env.{test,production,development}.local` (#3037) * Support `.env.test` & `.env.{test,production,development}.local` * Fix bug preventing inlining of process.env.NODE_ENV by default * Update env_loader.zig * add env tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: dave caruso <me@paperdave.net>
2023-05-24[server.fetch] call when using Request object (#3051)Gravatar Ciro Spaciari 1-13/+9
* patch server.fetch * add tests and fix types
2023-05-24fix setting `jsxImportSource`, `jsxFactory`, and `jsxFragmentFactory` (#3057)Gravatar Dylan Conway 6-80/+37
* default automatic, merge jsx flags from multiple tsconfigs * use entire package name * some tests * more tests
2023-05-24[bun:FileSystemRouter] add more validations on parameters (#3053)Gravatar Ciro Spaciari 1-2/+28
* add validations and allow relative path on dir * remove unneed things * add origin/dir validation tests * remove workaround * add back relative path resolution
2023-05-24Add commentGravatar Jarred Sumner 1-0/+4
2023-05-24Remove that fieldGravatar Jarred Sumner 1-1/+0
2023-05-24Fix string checkGravatar Jarred Sumner 1-1/+2
2023-05-24Fixes #3031 (#3041)Gravatar Jarred Sumner 1-2/+61
* Fixes #3031 * Leave original input in there --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-24Implement `require.cache` (#3045)Gravatar Jarred Sumner 6-1/+148
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-23Implement `bun test --timeout` (#3040)Gravatar Ashcon Partovi 3-6/+14
You can change the default per-test timeout in `bun test`: > bun test --timeout 10 The default timeout is 5000.
2023-05-23too noisyGravatar Jarred Sumner 1-1/+1
2023-05-23fix bun init and update node vm docs (#3014)Gravatar dave caruso 2-4/+3
2023-05-23check if key from `exports` can be printed as an identifier (#3032)Gravatar Dylan Conway 1-2/+8
* check if key can be printed as an identifier * possibly escape