From cb18bf7e5d3657313359c448bcc24ff3f27f2faa Mon Sep 17 00:00:00 2001
From: Jack Hanford <jackhanford@gmail.com>
Date: Mon, 15 Nov 2021 16:21:57 -0800
Subject: begin working on renderDocument

---
 packages/bun-framework-next/renderDocument.tsx | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

(limited to 'packages/bun-framework-next/renderDocument.tsx')

diff --git a/packages/bun-framework-next/renderDocument.tsx b/packages/bun-framework-next/renderDocument.tsx
index 59e18fbe7..d0ceb8599 100644
--- a/packages/bun-framework-next/renderDocument.tsx
+++ b/packages/bun-framework-next/renderDocument.tsx
@@ -18,6 +18,7 @@ import {
   RenderPageResult,
   HtmlContext,
 } from "next/dist/shared/lib/utils";
+import { RenderOpts } from "next/dist/server/render";
 import * as NextDocument from "next/document";
 import * as ReactDOMServer from "react-dom/server.browser";
 import * as React from "react";
@@ -70,6 +71,12 @@ const notImplementedProxy = (base) =>
     }
   );
 
+type DocumentFiles = {
+  sharedFiles: readonly string[];
+  pageFiles: readonly string[];
+  allFiles: readonly string[];
+};
+
 function getScripts(files: DocumentFiles) {
   const { context, props } = this;
   const {
@@ -147,6 +154,9 @@ function renderDocument(
     disableOptimizedLoading,
   }: RenderOpts & {
     props: any;
+    //
+    page: string;
+    //
     docComponentsRendered: DocumentProps["docComponentsRendered"];
     docProps: DocumentInitialProps;
     pathname: string;
@@ -454,7 +464,9 @@ export async function render({
 
   const hasPageGetInitialProps = !!(Component as any).getInitialProps;
   const pageIsDynamic = route.kind === "dynamic";
+  const isPreview = false;
   const isAutoExport = false;
+  const nextExport = isAutoExport || isFallback;
 
   if (isAutoExport || isFallback) {
     // // remove query values except ones that will be set during export
@@ -476,7 +488,6 @@ export async function render({
     <meta name="viewport" content="width=device-width" />,
   ];
 
-  const nextExport = isAutoExport || isFallback;
   const reactLoadableModules: string[] = [];
   var scriptLoader = {};
   const AppContainer = ({ children }: any) => (
@@ -728,8 +739,6 @@ export async function render({
   // });
   const docComponentsRendered: DocumentProps["docComponentsRendered"] = {};
 
-  const isPreview = false;
-
   let html = renderDocument(Document, {
     docComponentsRendered,
     ...renderOpts,
@@ -743,11 +752,13 @@ export async function render({
       pages: pages,
     },
     // Only enabled in production as development mode has features relying on HMR (style injection for example)
+    // @ts-expect-error
     unstable_runtimeJS: true,
     //   process.env.NODE_ENV === "production"
     //     ? pageConfig.unstable_runtimeJS
     //     : undefined,
     // unstable_JsPreload: pageConfig.unstable_JsPreload,
+    // @ts-expect-error
     unstable_JsPreload: true,
     dangerousAsPath: router.asPath,
     ampState: undefined,
@@ -770,9 +781,9 @@ export async function render({
     appGip: !defaultAppGetInitialProps ? true : undefined,
     devOnlyCacheBusterQueryString: "",
     scriptLoader,
-    isPreview: isPreview === true ? true : undefined,
-    autoExport: isAutoExport === true ? true : undefined,
-    nextExport: nextExport === true ? true : undefined,
+    isPreview: isPreview,
+    autoExport: isAutoExport,
+    nextExport: nextExport,
     useMaybeDeferContent,
   });
   const bodyRenderIdx = html.indexOf(BODY_RENDER_TARGET);
-- 
cgit v1.2.3

-tests'>derrick/fix/node-tests</option>
<option value='derrick/test/add-ed25519-tests'>derrick/test/add-ed25519-tests</option>
<option value='detect-libc'>detect-libc</option>
<option value='doc/0.8'>doc/0.8</option>
<option value='dylan/callback-fulfilled-after-rejection'>dylan/callback-fulfilled-after-rejection</option>
<option value='dylan/change-pathname-assert'>dylan/change-pathname-assert</option>
<option value='dylan/cli-fixes'>dylan/cli-fixes</option>
<option value='dylan/encoding-fix'>dylan/encoding-fix</option>
<option value='dylan/fix-bundling-lodash-es-is-buffer'>dylan/fix-bundling-lodash-es-is-buffer</option>
<option value='dylan/fix-error-inlining'>dylan/fix-error-inlining</option>
<option value='dylan/fix-module-field-in-exports'>dylan/fix-module-field-in-exports</option>
<option value='dylan/github-api-option' selected='selected'>dylan/github-api-option</option>
<option value='dylan/github-dependencies'>dylan/github-dependencies</option>
<option value='dylan/import-file-path'>dylan/import-file-path</option>
<option value='dylan/non-enumerable-export-values'>dylan/non-enumerable-export-values</option>
<option value='dylan/resolve-rope-in-string'>dylan/resolve-rope-in-string</option>
<option value='dylan/set-exit-code'>dylan/set-exit-code</option>
<option value='dylan/source-map-names-property'>dylan/source-map-names-property</option>
<option value='eventstream'>eventstream</option>
<option value='feat/ecosystem'>feat/ecosystem</option>
<option value='feat/npm'>feat/npm</option>
<option value='fix'>fix</option>
<option value='fix-prepare-stack-trace'>fix-prepare-stack-trace</option>
<option value='fix-websocket-upgrade'>fix-websocket-upgrade</option>
<option value='fs-watch-file'>fs-watch-file</option>
<option value='got'>got</option>
<option value='guides-3'>guides-3</option>
<option value='improve-docker'>improve-docker</option>
<option value='insensitive-pkg-names'>insensitive-pkg-names</option>
<option value='integration-tests'>integration-tests</option>
<option value='jarred/5859'>jarred/5859</option>
<option value='jarred/actions'>jarred/actions</option>
<option value='jarred/add-git'>jarred/add-git</option>
<option value='jarred/analytics'>jarred/analytics</option>
<option value='jarred/arenas'>jarred/arenas</option>
<option value='jarred/ast'>jarred/ast</option>
<option value='jarred/ast-again'>jarred/ast-again</option>
<option value='jarred/async_bio'>jarred/async_bio</option>
<option value='jarred/bench'>jarred/bench</option>
<option value='jarred/brotli'>jarred/brotli</option>
<option value='jarred/bump-uws'>jarred/bump-uws</option>
<option value='jarred/bundle-workspace-packages'>jarred/bundle-workspace-packages</option>
<option value='jarred/bunfig'>jarred/bunfig</option>
<option value='jarred/callable'>jarred/callable</option>
<option value='jarred/canvas'>jarred/canvas</option>
<option value='jarred/ci-check'>jarred/ci-check</option>
<option value='jarred/cjs2'>jarred/cjs2</option>
<option value='jarred/cleanup-error'>jarred/cleanup-error</option>
<option value='jarred/clipboard-objc'>jarred/clipboard-objc</option>
<option value='jarred/direct'>jarred/direct</option>
<option value='jarred/dump'>jarred/dump</option>
<option value='jarred/edgecase'>jarred/edgecase</option>
<option value='jarred/esbuild-plugin-api'>jarred/esbuild-plugin-api</option>
<option value='jarred/escapeHTML'>jarred/escapeHTML</option>
<option value='jarred/esm-conditions'>jarred/esm-conditions</option>
<option value='jarred/experiment-bsp'>jarred/experiment-bsp</option>
<option value='jarred/export-star-flat'>jarred/export-star-flat</option>
<option value='jarred/exports-map'>jarred/exports-map</option>
<option value='jarred/faster-error-capturestacktrace'>jarred/faster-error-capturestacktrace</option>
<option value='jarred/faster-ordered-properties'>jarred/faster-ordered-properties</option>
<option value='jarred/fastmalloc'>jarred/fastmalloc</option>
<option value='jarred/fetch-experiment'>jarred/fetch-experiment</option>
<option value='jarred/fetchheaders'>jarred/fetchheaders</option>
<option value='jarred/fix-blob-slice-test'>jarred/fix-blob-slice-test</option>
<option value='jarred/fix-bunbun-on-wsl'>jarred/fix-bunbun-on-wsl</option>
<option value='jarred/fix-crash'>jarred/fix-crash</option>
<option value='jarred/fix-http-compression'>jarred/fix-http-compression</option>
<option value='jarred/fix-issue-with-tsconfig-run'>jarred/fix-issue-with-tsconfig-run</option>
<option value='jarred/fix-proxy-regression'>jarred/fix-proxy-regression</option>
<option value='jarred/fixes-3129'>jarred/fixes-3129</option>
<option value='jarred/gen'>jarred/gen</option>
<option value='jarred/htmlrewriter'>jarred/htmlrewriter</option>
<option value='jarred/improve-testing'>jarred/improve-testing</option>
<option value='jarred/inquirer'>jarred/inquirer</option>
<option value='jarred/isolation'>jarred/isolation</option>
<option value='jarred/jsc'>jarred/jsc</option>
<option value='jarred/land'>jarred/land</option>
<option value='jarred/landing'>jarred/landing</option>
<option value='jarred/linux'>jarred/linux</option>
<option value='jarred/live-bindings'>jarred/live-bindings</option>
<option value='jarred/make-strings-better'>jarred/make-strings-better</option>
<option value='jarred/mdx-thrwawy'>jarred/mdx-thrwawy</option>
<option value='jarred/move'>jarred/move</option>
<option value='jarred/napi'>jarred/napi</option>
<option value='jarred/new-bund'>jarred/new-bund</option>
<option value='jarred/new-bund-ressurected-branch'>jarred/new-bund-ressurected-branch</option>
<option value='jarred/new-http'>jarred/new-http</option>
<option value='jarred/no-more-npm'>jarred/no-more-npm</option>
<option value='jarred/package-mapper'>jarred/package-mapper</option>
<option value='jarred/pg'>jarred/pg</option>
<option value='jarred/port'>jarred/port</option>
<option value='jarred/possibly-2732'>jarred/possibly-2732</option>
<option value='jarred/postgresql'>jarred/postgresql</option>
<option value='jarred/precompile-linux-dependencies'>jarred/precompile-linux-dependencies</option>
<option value='jarred/prepare-for-libuv'>jarred/prepare-for-libuv</option>
<option value='jarred/profiled-call'>jarred/profiled-call</option>
<option value='jarred/read-tsconfig-jsx'>jarred/read-tsconfig-jsx</option>
<option value='jarred/redo-evaluation-order'>jarred/redo-evaluation-order</option>
<option value='jarred/redo-zigstring-for-utf16'>jarred/redo-zigstring-for-utf16</option>
<option value='jarred/relay'>jarred/relay</option>
<option value='jarred/rename'>jarred/rename</option>
<option value='jarred/repl'>jarred/repl</option>
<option value='jarred/request-finalizer'>jarred/request-finalizer</option>
<option value='jarred/rewrite-router'>jarred/rewrite-router</option>
<option value='jarred/run'>jarred/run</option>
<option value='jarred/simdjson'>jarred/simdjson</option>
<option value='jarred/simplify'>jarred/simplify</option>
<option value='jarred/some-fixes-for-eventsource'>jarred/some-fixes-for-eventsource</option>
<option value='jarred/standalone-repro1'>jarred/standalone-repro1</option>
<option value='jarred/start'>jarred/start</option>
<option value='jarred/strong'>jarred/strong</option>
<option value='jarred/subprocess'>jarred/subprocess</option>
<option value='jarred/support-tee'>jarred/support-tee</option>
<option value='jarred/tcc'>jarred/tcc</option>
<option value='jarred/throw-if'>jarred/throw-if</option>
<option value='jarred/update-install-stuff'>jarred/update-install-stuff</option>
<option value='jarred/update-zig1'>jarred/update-zig1</option>
<option value='jarred/upgrade-zig-2'>jarred/upgrade-zig-2</option>
<option value='jarred/uws'>jarred/uws</option>
<option value='jarred/webkit-upgrade-may-17'>jarred/webkit-upgrade-may-17</option>
<option value='jarred/wip-more-reliable'>jarred/wip-more-reliable</option>
<option value='jarred/workers'>jarred/workers</option>
<option value='jarred/zlib'>jarred/zlib</option>
<option value='jarred/zls'>jarred/zls</option>
<option value='lithdew/picohttp-mimalloc'>lithdew/picohttp-mimalloc</option>
<option value='main'>main</option>
<option value='move-templates'>move-templates</option>
<option value='nestjs-guide'>nestjs-guide</option>
<option value='next-cleanup'>next-cleanup</option>
<option value='origin/main'>origin/main</option>
<option value='plugin/plugindata'>plugin/plugindata</option>
<option value='plugin/resolvedir'>plugin/resolvedir</option>
<option value='postinstall_3'>postinstall_3</option>
<option value='repl'>repl</option>
<option value='request-body-stream'>request-body-stream</option>
<option value='reserve-commands'>reserve-commands</option>
<option value='revert-5167-dylan/decode-regex-if-needed'>revert-5167-dylan/decode-regex-if-needed</option>
<option value='rfc/bun-bundler-api'>rfc/bun-bundler-api</option>
<option value='rfc/bunfig-overhaul'>rfc/bunfig-overhaul</option>
<option value='save-in-update'>save-in-update</option>
<option value='sdl'>sdl</option>
<option value='test/action'>test/action</option>
<option value='types/mock'>types/mock</option>
<option value='types/readable-stream-default'>types/readable-stream-default</option>
<option value='types/tty'>types/tty</option>
<option value='u/vjpr/zig-0.10'>u/vjpr/zig-0.10</option>
<option value='xHyroM/types/expose-Bun-Env'>xHyroM/types/expose-Bun-Env</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Unnamed repository; edit this file 'description' to name the repository.</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/ansg191/bun/about/?h=dylan/github-api-option'>about</a><a href='/ansg191/bun/?h=dylan/github-api-option'>summary</a><a href='/ansg191/bun/refs/?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f'>refs</a><a class='active' href='/ansg191/bun/log/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;follow=1'>log</a><a href='/ansg191/bun/tree/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f'>tree</a><a href='/ansg191/bun/commit/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;follow=1'>commit</a><a href='/ansg191/bun/diff/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;follow=1'>diff</a></td><td class='form'><form class='right' method='get' action='/ansg191/bun/log/test/bun.js/filesink.test.ts'>
<input type='hidden' name='h' value='dylan/github-api-option'/><input type='hidden' name='id' value='79f7d29d034586b352a44a71bd10ffc47112545f'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/ansg191/bun/log/?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;follow=1'>root</a>/<a href='/ansg191/bun/log/test?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;follow=1'>test</a>/<a href='/ansg191/bun/log/test/bun.js?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;follow=1'>bun.js</a>/<a href='/ansg191/bun/log/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;follow=1'>filesink.test.ts</a> (<a href='/ansg191/bun/log/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f'>unfollow</a>)</div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/ansg191/bun/log/test/bun.js/filesink.test.ts?h=dylan/github-api-option&amp;id=79f7d29d034586b352a44a71bd10ffc47112545f&amp;showmsg=1&amp;follow=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td><span title='2023-02-16 17:17:29 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/src/string_immutable.zig?h=dylan/github-api-option&amp;id=56b75dbac32233b49b33c12ce25a07c9e9083dee&amp;follow=1'>faster Buffer.byteLength("latin1")</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-36</span>/<span class='insertions'>+28</span></td></tr>
<tr><td><span title='2023-02-16 15:06:35 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/test/bun.js/install/bun-install.test.ts?h=dylan/github-api-option&amp;id=5007c6b218ec0e42938eac9c8a9698e313dc9952&amp;follow=1'>Support yarn-like `"workspaces"."packages": string[]` (#2086)</a></td><td><img src='//www.gravatar.com/avatar/764ea52180f7f5236744034dd5e1a3c0?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>2</td><td><span class='deletions'>-97</span>/<span class='insertions'>+253</span></td></tr>
<tr><td><span title='2023-02-16 15:05:15 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/test/bun.js/os.test.js?h=dylan/github-api-option&amp;id=d95404fd7a096c58bf7c3d844e6fac13dd9c7d22&amp;follow=1'>Implement `machine` for Linux (#2088)</a></td><td><img src='//www.gravatar.com/avatar/f0e663bea0dc46c4ee7299ad50898599?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Justin Whear
</td><td>3</td><td><span class='deletions'>-0</span>/<span class='insertions'>+19</span></td></tr>
<tr><td><span title='2023-02-16 14:01:07 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/test/bun.js/fs.test.js?h=dylan/github-api-option&amp;id=7762f3fad739e7c50f0ebe29b22b55a8daf7f559&amp;follow=1'>Fix #1516 (#2089)</a></td><td><img src='//www.gravatar.com/avatar/f0e663bea0dc46c4ee7299ad50898599?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Justin Whear
</td><td>3</td><td><span class='deletions'>-7</span>/<span class='insertions'>+14</span></td></tr>
<tr><td><span title='2023-02-16 03:18:01 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/packages/bun-types/globals.d.ts?h=dylan/github-api-option&amp;id=e7cd45d0fa3f381238ea2ebfbba2d9e738376fcc&amp;follow=1'>Update globals.d.ts</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+15</span></td></tr>
<tr><td><span title='2023-02-16 03:11:40 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/packages/bun-types/globals.d.ts?h=dylan/github-api-option&amp;id=0e688d62f9374dcb241f961c7ba04cff2c4b6204&amp;follow=1'>Add missing type definition</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+2</span></td></tr>
<tr><td><span title='2023-02-16 03:11:22 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/src/napi/napi.zig?h=dylan/github-api-option&amp;id=ce01a31e944c274eae7058e250ec4e84a661f50c&amp;follow=1'>[napi] Fix crash in creating arrays &gt; 8 elements long</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-10</span>/<span class='insertions'>+9</span></td></tr>
<tr><td><span title='2023-02-16 00:01:41 -0800'>2023-02-16</span></td><td><a href='/ansg191/bun/commit/README.md?h=dylan/github-api-option&amp;id=37fafc208f59b46de3876ef535fea7551fc65241&amp;follow=1'>Clarify and clean up macOS build process (#2087)</a></td><td><img src='//www.gravatar.com/avatar/296c449d00f953e3ed273ba0101b8449?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Luke Deen Taylor
</td><td>2</td><td><span class='deletions'>-4</span>/<span class='insertions'>+4</span></td></tr>
<tr><td><span title='2023-02-15 19:57:59 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/install/lockfile.zig?h=dylan/github-api-option&amp;id=88a8aa479791301a988739ba978d3745232ef20e&amp;follow=1'>Don't crash on null version string</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td><span title='2023-02-15 19:31:14 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/js_lexer.zig?h=dylan/github-api-option&amp;id=610eb06ddc758762c9e574343c2b42828f9bd4bf&amp;follow=1'>Add disabled optimization</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+51</span></td></tr>
<tr><td><span title='2023-02-15 18:08:31 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/napi/napi.zig?h=dylan/github-api-option&amp;id=49cd122bda348f3005a2546f8c2a6765087dd077&amp;follow=1'>Add more logging to napi</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-30</span>/<span class='insertions'>+150</span></td></tr>
<tr><td><span title='2023-02-15 18:08:31 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/napi/napi.zig?h=dylan/github-api-option&amp;id=1125728097e7ccb1891e790299e31d26ef2f7450&amp;follow=1'>Incorrect implementation of `napi_create_threadsafe_function`</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-21</span>/<span class='insertions'>+43</span></td></tr>
<tr><td><span title='2023-02-15 14:20:40 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/test/bun.js/fetch.test.js?h=dylan/github-api-option&amp;id=597053ea91a83ed0ce98bf1b8bb59fbf282c3619&amp;follow=1'>feat(fetch) AbortSignal (#2019)</a></td><td><img src='//www.gravatar.com/avatar/209348ae1158d8f3be635b721db356e2?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Ciro Spaciari
</td><td>17</td><td><span class='deletions'>-58</span>/<span class='insertions'>+443</span></td></tr>
<tr><td><span title='2023-02-15 13:48:11 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/test/bun.js/web-crypto.test.ts?h=dylan/github-api-option&amp;id=1c221d33b0def3810c262bd19a4bf8060389dae0&amp;follow=1'>fix(webcrypto): fix ed25519 CryptoKey.algorithm (#2082)</a></td><td><img src='//www.gravatar.com/avatar/b71ccf38c38e65b7dcb0aea91898f819?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Derrick Farris
</td><td>2</td><td><span class='deletions'>-9</span>/<span class='insertions'>+28</span></td></tr>
<tr><td><span title='2023-02-15 12:58:53 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/test/bun.js/buffer.test.js?h=dylan/github-api-option&amp;id=e67b4e73b57d152c4897acd66cf1347cbdf20444&amp;follow=1'>Fix 2063 (#2079)</a></td><td><img src='//www.gravatar.com/avatar/f0e663bea0dc46c4ee7299ad50898599?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Justin Whear
</td><td>2</td><td><span class='deletions'>-2</span>/<span class='insertions'>+11</span></td></tr>
<tr><td><span title='2023-02-15 03:53:33 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/test/bun.js/tsconfig.json?h=dylan/github-api-option&amp;id=95e727162bd4a73ab673cf76898ec22638cd306a&amp;follow=1'>Make sure we test * in tesconfig</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>2</td><td><span class='deletions'>-1</span>/<span class='insertions'>+3</span></td></tr>
<tr><td><span title='2023-02-15 03:28:35 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/napi/napi.zig?h=dylan/github-api-option&amp;id=e860e12be595be7352eb0835d9c64031d42ef632&amp;follow=1'>don't return an error there</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>2</td><td><span class='deletions'>-1</span>/<span class='insertions'>+3</span></td></tr>
<tr><td><span title='2023-02-15 03:18:54 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/napi/napi.zig?h=dylan/github-api-option&amp;id=ad0bee532c9748c944562b5ade76021138eb4fa7&amp;follow=1'>Fix cast</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-15</span>/<span class='insertions'>+17</span></td></tr>
<tr><td><span title='2023-02-15 02:51:44 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/bun.js/bindings/napi.cpp?h=dylan/github-api-option&amp;id=c7d16d2ed51afd12581ac4a60435ad202d01a8d9&amp;follow=1'>ensure we allocate for &gt; 6 arguments</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-6</span>/<span class='insertions'>+13</span></td></tr>
<tr><td><span title='2023-02-15 01:41:28 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/bun.js/async_hooks.exports.js?h=dylan/github-api-option&amp;id=d150a73b9bac935fc2f7fc1872e73221fbecdf13&amp;follow=1'>Update async_hooks.exports.js</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td><span title='2023-02-15 01:35:02 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/js_printer.zig?h=dylan/github-api-option&amp;id=0d7cea69c253d22fc6ee2ccd7c437290fe9e043c&amp;follow=1'>workaround prisma's usage of `eval("__dirname")`</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+23</span></td></tr>
<tr><td><span title='2023-02-15 00:36:18 -0800'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/js_printer.zig?h=dylan/github-api-option&amp;id=c83eaf09b9fa27c961c845c5eddc075384b244fc&amp;follow=1'>some cleanup</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>2</td><td><span class='deletions'>-15</span>/<span class='insertions'>+9</span></td></tr>
<tr><td><span title='2023-02-15 02:11:48 -0600'>2023-02-15</span></td><td><a href='/ansg191/bun/commit/src/bun.js/bindings/webcrypto/SubtleCrypto.cpp?h=dylan/github-api-option&amp;id=4320108add7aa43e6e9ff88fff45b620d1292354&amp;follow=1'>ED25519 WebCrypto  (#1971)</a></td><td><img src='//www.gravatar.com/avatar/764ea52180f7f5236744034dd5e1a3c0?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>12</td><td><span class='deletions'>-11</span>/<span class='insertions'>+1167</span></td></tr>
<tr><td><span title='2023-02-14 23:58:05 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/bun.js/disabled-module.test.js?h=dylan/github-api-option&amp;id=d91052516e876d9938a4dd2d9bdd25a0739f8eba&amp;follow=1'>Fix up async_hooks polyfill</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>2</td><td><span class='deletions'>-8</span>/<span class='insertions'>+63</span></td></tr>
<tr><td><span title='2023-02-14 23:37:25 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/src/linker.zig?h=dylan/github-api-option&amp;id=c6ee401bf42f305470150d5a7769d857482c9067&amp;follow=1'>Add temporary polyfill for async_hooks</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>5</td><td><span class='deletions'>-108</span>/<span class='insertions'>+324</span></td></tr>
<tr><td><span title='2023-02-14 22:29:10 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/src/bun.js/module_loader.zig?h=dylan/github-api-option&amp;id=f19e3d66cb82f3e4cbf740a5a1e5fe50c3fd48f3&amp;follow=1'>:mask: async_hooks</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+4</span></td></tr>
<tr><td><span title='2023-02-14 22:25:50 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/bun.js/install/bun-install.test.ts?h=dylan/github-api-option&amp;id=e63e3a0ca7a9dc57e842733f90caeea8b9ce28da&amp;follow=1'>[install] link network-delayed `.bin` scripts correctly (#2076)</a></td><td><img src='//www.gravatar.com/avatar/e38c5ad2cb13f012227c5b00f1763175?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Alex Lam S.L
</td><td>3</td><td><span class='deletions'>-16</span>/<span class='insertions'>+21</span></td></tr>
<tr><td><span title='2023-02-14 22:24:11 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/bun.js/disabled-module.test.js?h=dylan/github-api-option&amp;id=5598ea69f23683c593715764ed1a7d75c1092e8e&amp;follow=1'>don't break esbuild</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>7</td><td><span class='deletions'>-75</span>/<span class='insertions'>+50</span></td></tr>
<tr><td><span title='2023-02-14 21:56:49 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/bun.js/disabled-module.test.js?h=dylan/github-api-option&amp;id=4dc6bf1b099a2a7425a5ff313cff9a9c828f6cd3&amp;follow=1'>Add workaround for `tls` and `worker_threads`</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>3</td><td><span class='deletions'>-1</span>/<span class='insertions'>+64</span></td></tr>
<tr><td><span title='2023-02-14 18:04:06 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/bun.js/install/bun-install.test.ts?h=dylan/github-api-option&amp;id=7597e4ad2a813f53a8924d3820b339d487469bdd&amp;follow=1'>[install] improve `package.json` validation (#2074)</a></td><td><img src='//www.gravatar.com/avatar/e38c5ad2cb13f012227c5b00f1763175?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Alex Lam S.L
</td><td>6</td><td><span class='deletions'>-104</span>/<span class='insertions'>+342</span></td></tr>
<tr><td><span title='2023-02-14 15:54:50 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/fixtures/export-lazy-fs-streams/export-from.ts?h=dylan/github-api-option&amp;id=a80981c9662bc439871ca2197a908632c82491d9&amp;follow=1'>[WIP] fix(node:fs): export `fs.ReadStream` and `fs.WriteStream` (#1798)</a></td><td><img src='//www.gravatar.com/avatar/b71ccf38c38e65b7dcb0aea91898f819?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Derrick Farris
</td><td>4</td><td><span class='deletions'>-72</span>/<span class='insertions'>+326</span></td></tr>
<tr><td><span title='2023-02-14 15:43:18 -0800'>2023-02-14</span></td><td><a href='/ansg191/bun/commit/test/bun.js/fetch.test.js?h=dylan/github-api-option&amp;id=6e1a52691a370058e97ddb84c8f7c49e5bbf1e7e&amp;follow=1'>Reject with error when invalid fetch() body (#2047)</a></td><td><img src='//www.gravatar.com/avatar/dc6b0bcdc1a2721c580b5d8a64168c08?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Eric Zhang
</td><td>2</td><td><span class='deletions'>-12</span>/<span class='insertions'>+44</span></td></tr>
<tr><td><span title='2023-02-13 13:04:54 -0500'>2023-02-13</span></td><td><a href='/ansg191/bun/commit/src/bun.js/bindings/webcore/JSDOMFormData.cpp?h=dylan/github-api-option&amp;id=ef75cd46588ab54e14ad286000ef0357a9b76298&amp;follow=1'>fix(FormData): make String explicit, thanks @dylan-conway (#2065)</a></td><td><img src='//www.gravatar.com/avatar/b71ccf38c38e65b7dcb0aea91898f819?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Derrick Farris
</td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td><span title='2023-02-13 09:42:49 -0800'>2023-02-13</span></td><td><a href='/ansg191/bun/commit/src/bun.js/bindings/webcore/JSDOMFormData.cpp?h=dylan/github-api-option&amp;id=af3f42e63070ae7b0111c1426f858e74fd71816f&amp;follow=1'>fix(FormData): add string literal operator (#2064)</a></td><td><img src='//www.gravatar.com/avatar/b71ccf38c38e65b7dcb0aea91898f819?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Derrick Farris
</td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td><span title='2023-02-13 04:37:23 -0800'>2023-02-13</span></td><td><a href='/ansg191/bun/commit/test/bun.js/FormData.test.ts?h=dylan/github-api-option&amp;id=37186f4b0a6b97ffb3ac1ec65ddc2146126b4545&amp;follow=1'>Add pretty printer for FormData</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>5</td><td><span class='deletions'>-1</span>/<span class='insertions'>+101</span></td></tr>
<tr><td><span title='2023-02-13 03:08:11 -0800'>2023-02-13</span></td><td><a href='/ansg191/bun/commit/test/bun.js/bun-server.test.ts?h=dylan/github-api-option&amp;id=f310d7414b3a9863d99773317620e93c1e8b6693&amp;follow=1'>Add dynamic port assigning to Bun.serve (#2062)</a></td><td><img src='//www.gravatar.com/avatar/84ce030a4121add71d01ec629fc8ef19?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Michał Warda
</td><td>3</td><td><span class='deletions'>-5</span>/<span class='insertions'>+40</span></td></tr>
<tr><td><span title='2023-02-13 03:07:18 -0800'>2023-02-13</span></td><td><a href='/ansg191/bun/commit/src/symbols.txt?h=dylan/github-api-option&amp;id=739de2c9cd19736b6d088a9f127b52709e72909b&amp;follow=1'>feat(napi): add `napi_get_value_bigint_words` (#2061)</a></td><td><img src='//www.gravatar.com/avatar/b71ccf38c38e65b7dcb0aea91898f819?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Derrick Farris
</td><td>3</td><td><span class='deletions'>-0</span>/<span class='insertions'>+44</span></td></tr>
<tr><td><span title='2023-02-13 03:05:26 -0800'>2023-02-13</span></td><td><a href='/ansg191/bun/commit/test/bun.js/FormData.test.ts?h=dylan/github-api-option&amp;id=0db8cdf4e9e79214410454f9225b14f2765bc3c5&amp;follow=1'>Fixes https://github.com/oven-sh/bun/issues/1456</a></td><td><img src='//www.gravatar.com/avatar/5145ad1d8bb861137d85da7a3e32ef36?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> Jarred Sumner
</td><td>8</td><td><span class='deletions'>-1</span>/<span class='insertions'>+148</span></td></tr>
