aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2023-04-20Fix bug with merging adjacent varsGravatar Jarred Sumner 3-2/+9
2023-04-20Fix whitespace edgecase with export * fromGravatar Jarred Sumner 1-3/+13
2023-04-20append if the previous part is not UTF8 (#2705)Gravatar Dylan Conway 1-6/+9
2023-04-20Improve error message when failing to read a fileGravatar Jarred Sumner 3-2/+84
2023-04-20Fix bug with invalid character at the end of comment pathGravatar Jarred Sumner 1-1/+1
2023-04-20Symbol minification (#2695)Gravatar Dylan Conway 18-2326/+1250
* minify * Update renamer.zig * --minify-whitespace * Speed up minification a little * handle private names * 5% faster minification * use helper function * fix nested scope slots * `bun build --minify` gets another +8% faster * print semicolons afterwards * print semicolon after checking error * after all error checking * Delete code for generating legacy bundes * remove extra whitespace around if statements * print space before import identifier * Use `@constCast` * Make `S.Local#decls` use `BabyList(Decl)` * Add `fromSlice` helper to `BabyList` * Remove unnecessary optional chains * minify `undefined, true, false` * Another @constCast * Implement merge adjacent local var * Support --minify in `bun build --transform` * skip comments when counting character frequencies * Don't wrap commonjs with --transform on (unless targeting bun) * Support --minify in the runtime * Fix edgecase with import * as * don't infinite loop * --trnasform shouldn't mess with require * Only track comments when minifying --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-20`with` body can be an expressionGravatar Dylan Conway 1-2/+2
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 168-3763/+2953
2023-04-18implement `node:events` in javascript (#2604)Gravatar dave caruso 2-1/+473
* initial event emitter reimplementation * implement most of node:events. tests passing * work on emitter * fix importing node:events * work on event emitter tests * event work * event work * event stuff and experimenting with a lazy createHash * cleanup crypto stuff i had on this branch * finish event stuff up * fix error monitor * validate listeners are functions * changes requested
2023-04-18use properties length instead of capacity (#2687)Gravatar Dylan Conway 1-1/+1
2023-04-18Prepare for JavaScript Bundler APIGravatar Jarred Sumner 2-42/+67
2023-04-18Fix the extremely annoying `./` requirement in bun buildGravatar Jarred Sumner 1-11/+3
2023-04-17Remove spin loop in `bun build`Gravatar Jarred Sumner 2-15/+16
2023-04-17Fixes #2676Gravatar Jarred Sumner 1-2/+2
2023-04-17Make `bun dev` CLI flags only show in --help for `bun dev --help`Gravatar Jarred Sumner 1-78/+78
This impacts: --disable-bun.js --disable-react-fast-refresh --bunfile <STR> --server-bunfile <STR> --public-dir <STR> --disable-hmr --use <STR>
2023-04-17Fix template string folding bugGravatar Jarred Sumner 1-3/+3
2023-04-17Fix missing should_fold_typescript_constant_expressionsGravatar Jarred Sumner 1-0/+1
2023-04-17Fix DCE bug with `new Foo()` when pure without argumentsGravatar Jarred Sumner 1-1/+9
2023-04-17make sure `with` is parsed as a block (#2680)Gravatar Dylan Conway 2-6/+1
2023-04-17fix typescript decorators with index and number keys (#2677)Gravatar Dylan Conway 1-2/+3
* handle index property key case * non-method number property * tests for property keys
2023-04-17moreGravatar Jarred Sumner 1-0/+60
2023-04-17Get axios working (#2673)Gravatar Jarred Sumner 2-46/+85
* Revive node:http tests * Fix a couple bugs in node:http * possibly breaking: use `"browser"` exports condition last * Make URL validation error better --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-17cleanupGravatar Jarred Sumner 1-4/+7
2023-04-17Fix access of inactive union fieldGravatar Jarred Sumner 1-3/+4
2023-04-17Fixup options parsingGravatar Jarred Sumner 1-22/+48
2023-04-17enable minify syntax by default in the runtimeGravatar Jarred Sumner 2-2/+3
2023-04-17Prepare for `Bun.build`Gravatar Jarred Sumner 10-10609/+12146
2023-04-17Fix dynamic require()Gravatar Jarred Sumner 1-0/+15
2023-04-17Fixes #2634Gravatar Jarred Sumner 1-2/+2
2023-04-17Don't record named exports for deoptimized CJSGravatar Jarred Sumner 1-6/+10
2023-04-17Deoptimize CJS moreGravatar Jarred Sumner 1-8/+6
2023-04-17Update bun.zigGravatar Jarred Sumner 1-1/+1