aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2023-05-22Fix memory leak in `fetch(url)` (#2989)Gravatar Jarred Sumner 4-11/+136
* Fix memory leak in `fetch(url)` * Bump those numbers up --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-22Update WebKitGravatar Jarred Sumner 1-0/+0
2023-05-21Skip hanging testsGravatar Jarred Sumner 7-6/+13
2023-05-21Fix testGravatar Jarred Sumner 1-10/+10
2023-05-21[internal] Even more loggingGravatar Jarred Sumner 1-3/+5
2023-05-21[internal] Use `HiveArray` instead of bespoke memory allocator in Bun.serve()Gravatar Jarred Sumner 2-89/+14
No performance or memory usage change Just removing some duplicate code
2023-05-21Fix assertion failureGravatar Jarred Sumner 1-1/+1
2023-05-21oopsieGravatar Jarred Sumner 1-1/+1
2023-05-21WS send with callback (#2986)Gravatar Ciro Spaciari 3-44/+39
* WS send with callback * add opts.compress support * fmt * compress is the only option we care * add ws client options * only change ws client when using blob * fmt * fix errors * fixup * fixup * fmt
2023-05-21[Bun.serve] Support `"nodebuffer"` binaryType in `ServerWebSocket`Gravatar Jarred Sumner 4-77/+122
2023-05-21[WebSocket] Implement `"nodebuffer"` binaryTypeGravatar Jarred Sumner 5-5/+125
2023-05-21[ws client] Make it a little more type safeGravatar Jarred Sumner 1-33/+51