aboutsummaryrefslogtreecommitdiff
path: root/src/js_printer.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2022-03-09[JS Printer] Add function for printing a string as JSONGravatar Jarred Sumner 1-0/+104
2022-03-06source maps work for app code in `bun dev`!Gravatar Jarred Sumner 1-27/+228
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-42/+52
2022-02-27[JS Printer] Fix edgecase with optional chaining, class static block ↵Gravatar Jarred Sumner 1-56/+86
initialization and private identifiers
2022-02-24misc cleanupGravatar Jarred Sumner 1-2/+3
2022-02-22Fix assertion in JSPrinterGravatar Jarred Sumner 1-1/+1
2022-02-18Use an `enum` for `Ref` instead of a buggy packed structGravatar Jarred Sumner 1-1/+1
Fixes a printing bug with `Symbol`
2022-02-18[JS Printer] fix edgecase with printing empty exportGravatar Jarred Sumner 1-0/+6
2022-02-17[JS Printer] Print `{\n}` instead of `;` for empty blocksGravatar Jarred Sumner 1-0/+5
2022-02-16Update js_printer.zigGravatar Jarred Sumner 1-14/+6
2022-02-16[JS Printer] Fix missing space at end of object bindingsGravatar Jarred Sumner 1-15/+6
See also https://github.com/evanw/esbuild/pull/2025
2022-02-16[js printer] slightly optimize indent / unindentGravatar Jarred Sumner 1-11/+6
2022-02-16[js printer] Remove symbol poolGravatar Jarred Sumner 1-11/+1
2022-02-15Revert "Remove usage of `packed` struct in Ref because packed is buggy in zig"Gravatar Jarred Sumner 1-1/+1
This reverts commit 2578f426b6d59080b0853164df83fe2b69740a7c.
2022-02-15Remove usage of `packed` struct in Ref because packed is buggy in zigGravatar Jarred Sumner 1-1/+1