aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-29Update bun.zigGravatar Jarred Sumner 1-0/+2
2023-04-29Clean up args parsing with `--loader`Gravatar Jarred Sumner 5-52/+66
2023-04-29Export 4 missing napi symbols on macOSGravatar Jarred Sumner 2-82/+86
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 23-275/+315
2023-04-28fix several memory issues related to pluginsGravatar Jarred Sumner 2-23/+27
2023-04-28cargo cult some code from JSCGravatar Jarred Sumner 2-6/+7
2023-04-28Fix race conditionGravatar Jarred Sumner 1-2/+47
2023-04-28Add a commentGravatar Jarred Sumner 1-19/+54
2023-04-28[resolver] Propagate module type from package.json `"exports"` when possibleGravatar Jarred Sumner 2-5/+33
2023-04-28Fix crash with invalid input in fetch()Gravatar Jarred Sumner 1-2/+14
2023-04-28Improves Body.Value life cycle and Signal life cycle on server.zig (#2752)Gravatar Ciro Spaciari 9-219/+288
* reestruct request body value and signal * revert react-hello-world * fix constructInto and test * fmt * fix body nullable * Request can outlive RequestContext * fmt * BodyValue is now HiveRef * hasDecl for Ref and HiveRef * fix deinit call on Ref/HiveRef * adds InlineBlob * fix Bun.inspect when using InlineBlob * revert InlineBlob * Fix mimalloc-debug * Add TODO note * fix: make node:crypto Hash.copy work correctly (#2761) This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651 * :nail_care: * address unicode issue (#2763) * Fix an oopsie * Another oopsie * use inline for * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> * Request can outlive RequestContext * fmt * garantee to have the abort signnal attached to the server before abort the client on bun-server test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Silver <14016168+silversquirl@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-04-28Use global allocator tsconfig.jsonGravatar Jarred Sumner 1-3/+6
2023-04-28Bundler docs updates + support for `naming` string (#2767)Gravatar Colin McDonnell 2-16/+27
* Bundler docs updates * Remove comments * Updates * Fix bunx usages * Add info about metafile
2023-04-27address unicode issue (#2763)Gravatar Jarred Sumner 3-19/+17
* Fix an oopsie * Another oopsie * use inline for * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 9-8940/+7711
This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651
2023-04-27Add TODO noteGravatar Jarred Sumner 1-0/+2
2023-04-27Implement `outdir` in `Bun.build`Gravatar Jarred Sumner 8-26/+362
2023-04-27Don't preallocate unless its profitableGravatar Jarred Sumner 5-40/+45
2023-04-27very slightly faster open() and writeFileSync() (#2759)Gravatar Jarred Sumner 4-45/+185
* Make open() slightly faster on macOS * Support using `writeFileSync` from native code * Add `openat$NOCANCEL` symbol * fixups for linux * do benchmark --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-26more esbuild compatGravatar Jarred Sumner 1-7/+8
2023-04-26Wrap some things in minify_syntax flagGravatar Jarred Sumner 1-31/+34
2023-04-26Inline spreads of array literalsGravatar Jarred Sumner 2-0/+52
2023-04-26ensure `super()` is not merged with adjacent statements (#2757)Gravatar Dylan Conway 2-5/+18
* ensure `super()` is not merged with adjacent statements * add TODO
2023-04-26Fixes #2746 (#2748)Gravatar Jarred Sumner 2-2/+8
* Fixes #2746 * add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-26Implement `file` loader in `Bun.build` (#2745)Gravatar Jarred Sumner 5-41/+319
* Update bundle_v2.zig * Implement `file` loader * Hash in parallel * Implement `publicPath` * simplify * Update bundle_v2.zig * Implement `#!` * Remove unnecessary optional --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-25Update outdated helpGravatar Jarred Sumner 1-1/+1
2023-04-25Fix assertion failureGravatar Jarred Sumner 1-1/+1
reproduces if building Three.js 10 times in runtime
2023-04-25Avoid unnecessary copiesGravatar Jarred Sumner 1-2/+14
2023-04-25Fix error with --jsx-production in runtimeGravatar Jarred Sumner 2-24/+2
2023-04-25now it worksGravatar Jarred Sumner 3-17/+15
2023-04-25typoGravatar Jarred Sumner 2-3/+7
2023-04-25Implement `onResolve` plugins in `Bun.build()`, support multiple onLoad and ↵Gravatar Jarred Sumner 70-863/+2068
onResolve plugins (#2739) * its 2023 * WIP `onResolve` plugins * more progress * it compiles * Lots of small fixes * Seems to work excluding entry points * Update BundlerPluginBuiltins.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-25Fixes #2738Gravatar Jarred Sumner 2-2/+9
2023-04-25fix `make setup` (#2731)Gravatar Alex Lam S.L 3-4/+6
- minor clean-ups
2023-04-25Log HTTP requests and responses by default when log level is debug or verboseGravatar Jarred Sumner 1-2/+4
2023-04-24[install] fix `bun add` on non-aliased dependency (#2728)Gravatar Alex Lam S.L 1-5/+18
2023-04-24In `bun run`, rewrite usages of `npx` to `bun x` instead of `bunx` to ↵Gravatar Jarred Sumner 1-1/+1
workaround missing symlink
2023-04-24Support plugins in `Bun.build` (#2720)Gravatar Jarred Sumner 13-106/+1372
* wip * Implement `onLoad` plugins * Support exceptions and async `onLoad` plugins * Fix filtering * Handle empty files * Fix JSON loader --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 24-424/+761
* One possible implementation to make `Bun.build` work better * Pass allocator in * Make our temporary buffers a little safer * rename * Fix memory corruption in symbol table * Add support for deferred idle events in ThreadPool * Free more memory * Use a global allocator FS cache * more `inline` * Make duping keys optional in StringMap * Close file handles more often * Update router.zig * wip possibly delete this commit * Fix memory issues and reduce memory usage * > 0.8 * Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask * We don't need to clone this actually * Fix error * Format * Fixup * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-21Fix `minify: true` not applying to identifiersGravatar Jarred Sumner 1-1/+1
2023-04-21[breaking] In Bun.Transpiler, don't wrap CommonJS modules in `export default`Gravatar Jarred Sumner 1-0/+2
2023-04-21Add `minify` option to Bun.TranspilerGravatar Jarred Sumner 1-0/+30
2023-04-21Add `tsconfig.json` to `bun-types` (#2587)Gravatar Colin McDonnell 2-2/+26
* Add tsconfig.json to bun-types. Document 'extends' pattern. * Updates * Update bun init to use extends:bun-types * Update type:module recommendation * Add note about transpilation. Closes #2553 * Make typescript a peer dep * Revert changes to docs * Revert tsconfig extends * Update readme * FMC * Undo changed
2023-04-21Keep the node crypt otestGravatar Jarred Sumner 1-2/+2
2023-04-21Revert "use a lazyily initialized stream for `node:crypto` `createHash` (#2652)"Gravatar Jarred Sumner 3-130/+10415
This reverts commit 3a2fd65f20d3b4e99c89f789acec5e5e40615008.
2023-04-21Revert "implement `node:events` in javascript (#2604)"Gravatar Jarred Sumner 2-473/+1
This reverts commit 96a2ed1040d5a0ca51ae41267cba4f8e5d0a6142.
2023-04-21Fix orderGravatar Jarred Sumner 1-1/+3
2023-04-21`Bun.build()` partial implementationGravatar Jarred Sumner 6-19/+427
2023-04-21slightly better minifiedGravatar Jarred Sumner 1-1/+1
2023-04-21Add commentGravatar Jarred Sumner 1-0/+2