aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-05-25avoid using null valueGravatar Dylan Conway 1-2/+4
2023-05-25add a bit more info on Elysia (#3062)Gravatar Jiri Spac 1-2/+5
2023-05-25[install] fix `.bin` linking (#3067)Gravatar Alex Lam S.L 3-6/+161
- 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-25update jsx test for classic runtimeGravatar Dylan Conway 1-1/+2
2023-05-25prettierGravatar Jarred Sumner 1-5/+5
2023-05-25[stream] fix flush (#3073)Gravatar Ciro Spaciari 1-2/+1
* fix flush * remove logs
2023-05-25Remove paragraph that has incorrect information in the docsGravatar Jarred Sumner 1-6/+0
2023-05-25Update sqlite.md (#3063)Gravatar Dialga 1-1/+1
fix serialize example
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 12-73/+390
`.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 3-14/+43
* patch server.fetch * add tests and fix types
2023-05-24fix setting `jsxImportSource`, `jsxFactory`, and `jsxFragmentFactory` (#3057)Gravatar Dylan Conway 7-123/+200
* default automatic, merge jsx flags from multiple tsconfigs * use entire package name * some tests * more tests
2023-05-24don't do MMD in CIGravatar Jarred Sumner 1-17/+24
2023-05-24[bun:FileSystemRouter] add more validations on parameters (#3053)Gravatar Ciro Spaciari 2-2/+66
* 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 3-2/+105
* 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 9-1/+187
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-24extend test time-outs (#3048)Gravatar Alex Lam S.L 2-7/+7
- avoid intermittent failures due to network latencies
2023-05-23Implement `bun test --timeout` (#3040)Gravatar Ashcon Partovi 4-6/+80
You can change the default per-test timeout in `bun test`: > bun test --timeout 10 The default timeout is 5000.
2023-05-23Fix incorrect URL in loaders.md (#3025)Gravatar Kruithne 1-1/+1
2023-05-23workaroundGravatar Jarred Sumner 1-1/+1
2023-05-23too noisyGravatar Jarred Sumner 1-1/+1
2023-05-23Add pkg-config as a build requirement (#3027)Gravatar Bill Mill 1-0/+1
Without pkg-config, the libarchive build fails in autogen.sh[1] 1: https://github.com/libarchive/libarchive/issues/742
2023-05-23fix bun init and update node vm docs (#3014)Gravatar dave caruso 3-6/+5
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
2023-05-23Support test.todo() in ecosystem runnerGravatar Ashcon Partovi 6-292/+430
2023-05-23[bun:test] Don't schedule the GC aggressively on every fileGravatar Jarred Sumner 1-1/+10
We already run the GC automatically whenever heap size grows, so this is mostly unnecessary In one benchmark, this is an 83% performance improvement at a cost of 9% more memory
2023-05-23Skip failing testsGravatar Jarred Sumner 1-3/+3
2023-05-23[bun:test] Fix async/done-based test.todo (#3015)Gravatar Jarred Sumner 3-10/+51
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-23Support setting a timezone with `process.env.TZ` and `Bun.env.TZ` (#3018)Gravatar Jarred Sumner 12-1/+225
* Support setting a timezone via `process.env.TZ` * Implement `setTimeZone` in `bun:jsc` module * [breaking] `bun:test` now defaults to `Etc/UTC` timezone --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-22fix extra/ArbitraryModuleNamespaceIdentifiers2 (#3016)Gravatar dave caruso 1-2/+0
* fix extra/ArbitraryModuleNamespaceIdentifiers2 * remove assert
2023-05-22Update .prettierignoreGravatar Jarred Sumner 1-0/+1
2023-05-22add some connect test and type changes (#3013)Gravatar dave caruso 5-3/+120
2023-05-22fix marking requestCert (#3012)Gravatar Ciro Spaciari 1-3/+12
2023-05-22[node:http] Fix return type for `getHeader()` (#3007)Gravatar Jarred Sumner 2-7/+15
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-22Write out builtins with TypeScript + Minify them (#2999)Gravatar dave caruso 127-25009/+16346
* start work drafting how builtins will work * work on ts builtin * builtins stuff so far * builtins * done for today * continue work * working on it * bindings so far * well, it builds. doesnt run * IT RUNS * still lots of ts errors but it is functional * sloppy mode
2023-05-22443 should default to https when no protocol is informed (#3008)Gravatar Ciro Spaciari 1-1/+10
2023-05-22[node:buffer] Add missing `inspect` functionbun-v0.6.3Gravatar Jarred Sumner 5-0/+35
cc @paperdave
2023-05-22[node:vm] Accept undefined in `createContext`Gravatar Jarred Sumner 1-0/+5
2023-05-22fixup (#3001)Gravatar Ciro Spaciari 1-8/+7
2023-05-22Skip testGravatar Jarred Sumner 1-1/+2
2023-05-22Skip more testsGravatar Jarred Sumner 1-1/+2
2023-05-22[breaking] ServerWebSocket.publish no longer publishes to self by defaultGravatar Jarred Sumner 3-8/+25
This changes `publishToSelf` to be `false` by default instead of `true`. This is a breaking change because it means that `ws.publish("foo", "bar")` will exclude `ws` from the list of websockets to broadcast. We are making this change because many people asked for this and were confused by the status quo - that `w.publish` publishes to self.
2023-05-22[ServerWebSocket] `binaryType` now defaults to `"nodebuffer"`Gravatar Jarred Sumner 3-14/+15
Previously, this defaulted to "uint8array", so this shouldn't be a breaking change unless you make use of `.slice()` in which case it will now be a reference to the same ArrayBuffer rather than a clone. The rationale for this change is most usages of Uint8Array on the server need a little more than just the bytes. Many npm packages expect Buffer rather than Uint8Array. Directly returning it for binary websocket messages is faster than creating another one.
2023-05-22only merge if kind is `var`Gravatar Dylan Conway 1-1/+4
2023-05-22document arch linux workaround, see #2664 (#2997)Gravatar dave caruso 1-0/+10