aboutsummaryrefslogtreecommitdiff
path: root/src/js_printer.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-16/+16
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-02-17Fix #2005 (#2096)Gravatar Justin Whear 1-1/+48
2023-02-15workaround prisma's usage of `eval("__dirname")`Gravatar Jarred Sumner 1-1/+23
2023-02-15some cleanupGravatar Jarred Sumner 1-2/+2
2023-02-08move some code aroundGravatar Jarred Sumner 1-64/+91
2023-01-30Fixes #1928bun-v0.5.2Gravatar Jarred Sumner 1-1/+1
2023-01-13move more thingsGravatar Jarred SUmner 1-2/+2
2023-01-03Fixes https://github.com/oven-sh/bun/issues/1695Gravatar Jarred Sumner 1-1/+1
2022-12-30More assertionsGravatar Jarred Sumner 1-38/+69
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-33/+33
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 1-26/+1
* Update .gitmodules * Delete oniguruma * Delete Oniguruma * Make this test less flaky * :scissors: Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-15[js printer] Fix missing space when printing import aliases with whitespace ↵Gravatar Jarred Sumner 1-4/+2
minification enabled
2022-12-12Add missing spaceGravatar Jarred Sumner 1-0/+1
2022-12-12[internal] Add helper to make it easier to print whitespaceGravatar Jarred Sumner 1-71/+74
2022-12-11[Transpiler] Implement `minifyWhitespace` optionGravatar Jarred Sumner 1-96/+231
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-2/+2
2022-11-27[console.log] Fix printing latin1 supplement characters at runtimeGravatar Jarred Sumner 1-3/+11
Fixes https://github.com/oven-sh/bun/issues/1031#issuecomment-1236092120
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-1/+1
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-21Use const ptrGravatar Jarred Sumner 1-25/+22
2022-11-07Credit: @ValidarkGravatar Jarred Sumner 1-1/+1
2022-10-23Preserve trailing newline when updating package.jsonGravatar Jarred Sumner 1-0/+6
Fixes https://github.com/oven-sh/bun/issues/1375
2022-10-21Fix `import Foo, {bar}` when from hardcoded builtin modules in runtimeGravatar Jarred Sumner 1-19/+18
2022-10-17add oniguruma for regex with variable length lookbehinds (#1329)Gravatar Dylan Conway 1-11/+39
* added pcre2 submodule * pcre2 regex boilerplate * tests for pcre2 regex * flag validation, getters, construct and compile mostly working * string escaping for source and toString(), exec, more tests * flag sorting, match, matchAll, search, split, replace * remove lib link * add destructor to PCRE2RegExp * header include * removed ternary * switched to oniguruma for regex library * revert sql changes * fix indices flag, add tests * revert settings * working error messages * more tests for lastIndex, fix logic for compile and lastIndex * move oniguruma lib to deps out dir
2022-10-13Fix import alias (#1313)Gravatar zhiyuan 1-1/+1
2022-10-12Add a commentGravatar Jarred Sumner 1-0/+10
2022-10-12Fix `require("bun")` and `import("bun")` when statically knownGravatar Jarred Sumner 1-0/+11
2022-09-03Plugin API (#1199)Gravatar Jarred Sumner 1-15/+31
* Plugin API * Fix the bugs * Implement `"object"` loader Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-07-15[bun.js] Fix non-ascii latin1 string handling in console.logGravatar Jarred Sumner 1-23/+38
Closes https://github.com/oven-sh/bun/issues/738 Closes https://github.com/oven-sh/bun/issues/737
2022-07-04[misc] Make that test workGravatar Jarred Sumner 1-2/+8
2022-06-29Fix bug with printerGravatar Jarred Sumner 1-20/+26
2022-06-25Cleanup some of the require codeGravatar Jarred Sumner 1-44/+108
2022-06-24Add dynamic require supportGravatar Jarred Sumner 1-20/+58
2022-06-22[JS Printer] Fix bug with printing re-exported functions that are from an ↵Gravatar Jarred Sumner 1-33/+57
object binding
2022-06-09Fix defaultProps with JSX optimizationGravatar Jarred Sumner 1-4/+0
2022-05-16`bun:sqlite` (#167)Gravatar Jarred Sumner 1-15/+11
* :scissors: * Add the slow version * draw the rest of the owl * Fix crash when allocating lots of memory * [Bun.Transipiler] Support passing objects * [JS Parser] Support passing objects to macros via Bun.Transpiler * Update JSSQLStatement.cpp * Embed SQLite * Add SQLite to Dockerfile * [sqlite] Add quick one-off queries without creating a whole object * [sqlite] Add `columnsCount`, rename raw() to `values()`, remove `rebind` * Implement `bun:sqlite` * return null * Fix updating query * Update bun.d.ts * more tests * Support variadic arguments, write tests and add types * Update sqlite.d.ts * Update sqlite.d.ts * latest * Implement `Database.loadExtension` and `Database.setCustomSQLite` * Support `require.resolve` * [napi] Improve string performance * [bun.js] Support some of `node:module` * another test * [sqlite] Support serialize & deserialize * [`bun:ffi`] Implement `CFunction` and `linkSymbols` * [bun.js] Fix crash in `Buffer.from` * Update sqlite.test.js * Document linkSymbols * docs * Update README.md
2022-05-11[bun.js] Implement `import.meta.require`Gravatar Jarred Sumner 1-6/+2
This allows synchronous dynamic loading of `.node`, `.json`, and `.toml` files. It is not a CommonJS require, but it can be used that way so long as the content is not JavaScript.
2022-05-10[napi] transpile require(*.node) into process.dlopenGravatar Jarred Sumner 1-0/+23
2022-05-09Fix extra quote in bundled require errorsGravatar Jarred Sumner 1-2/+2
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-28/+30
2022-04-10[bun.js] Support a `"bun"` importGravatar Jarred Sumner 1-7/+26
2022-04-08Fix Next.js stylesheet bugGravatar Jarred Sumner 1-2/+10
2022-03-31Fix possible infinite loopsGravatar Jarred Sumner 1-3/+3
2022-03-24Implement error page for HTTP serverGravatar Jarred Sumner 1-1/+0
2022-03-19[JS Printer] Fix bug with printing imports for bundled codeGravatar Jarred Sumner 1-12/+1
2022-03-17[JS Transpiler] Always print escape unicode identifiers, for nowGravatar Jarred Sumner 1-6/+5
2022-03-11Source Maps for client-side errors & columnsGravatar Jarred Sumner 1-3/+20
2022-03-10[bun.js] Support sourcemaps!Gravatar Jarred Sumner 1-10/+9
2022-03-10Update js_printer.zigGravatar Jarred Sumner 1-15/+42
2022-03-0969% perf improvement for long string literalsGravatar Jarred Sumner 1-52/+44
2022-03-09make the map slightly smallerGravatar Jarred Sumner 1-25/+39