aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser/js_parser.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-05-19move js_parser to src/Gravatar Jarred Sumner 1-18211/+0
2022-05-19[solid] wip make nested components workGravatar Jarred Sumner 1-80/+97
2022-05-19[wip] Solid.js support for Bun!Gravatar Jarred Sumner 1-20/+954
2022-05-16`bun:sqlite` (#167)Gravatar Jarred Sumner 1-11/+86
* :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-11disable the new target allowed errorGravatar Jarred Sumner 1-4/+5
2022-05-11[bun.js] eagerly convert to import.meta.requireGravatar Jarred Sumner 1-2/+23
2022-05-11[bun.js] Implement `import.meta.require`Gravatar Jarred Sumner 1-10/+67
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-09fixupGravatar Jarred Sumner 1-40/+44
2022-05-09[JS Parser] Support `__dirname` and `__filename`Gravatar Jarred Sumner 1-28/+44
2022-05-05E.String gets a RopeGravatar Jarred Sumner 1-41/+71
2022-04-23[JS Parser] Fix overly-eager CJS -> ESM transformGravatar Jarred Sumner 1-1/+1
2022-04-16[JS Parser] API for removing & replacing exportsGravatar Jarred Sumner 1-85/+422
2022-04-09[JS Parser] Fix code simplification bug with `!` and unary expressionsGravatar Jarred Sumner 1-0/+27
2022-04-06Make `Bun.activate` run earlier so we catch errors soonerGravatar Jarred Sumner 1-21/+37
2022-03-11Source Maps for client-side errors & columnsGravatar Jarred Sumner 1-104/+133
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-12/+12
2022-03-07[JS Parser] Add optimization for JSX spreadGravatar Jarred Sumner 1-0/+11
2022-03-05[JS Parser] dot property shorthand for JSXGravatar Jarred Sumner 1-9/+28
This is a non-standard backwards-compatible feature that I suspect other tooling will soon adopt (and expect to help other tooling adopt it) ```jsx var hello = {hi: 'yo'}; export const Foo = () => <Bar {hello.hi} /> ``` Desugars into: ```jsx var hello = {hi: 'yo'}; export const Foo = () => <Bar hi={hello.hi} /> ``` This works with defines and macros too. ```jsx export const Foo = () => <Bar {process.env.NODE_ENV} /> ``` ```jsx export const Foo = () => <Bar NODE_ENV="development" /> ```
2022-03-04[JS Parser] Support JSX prop punningGravatar Jarred Sumner 1-4/+40
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-79/+88
2022-03-01[JS Parser] Fix bug with `super` from adding class static blocksGravatar Jarred Sumner 1-1/+12
2022-03-01[bun.js] Allow disabling runtime imports so bun can build for nodeGravatar Jarred Sumner 1-2/+5
2022-03-01[JS Parser] Make auto importing JSX a flag so the API is easierGravatar Jarred Sumner 1-295/+297
2022-02-27[TS] Make `export {type foo}` output consistent with TS parserGravatar Jarred Sumner 1-3/+45
2022-02-27[TS Parser] Implement `constructor(private foo)`Gravatar Jarred Sumner 1-1/+70
Input: ``` class Foo { constructor(public bar: string = "baz") {} bar: number; } ``` Output: ``` class Foo { bar; constructor(bar = "baz") { this.bar = bar; } baz; } ```
2022-02-27[JS Parser] Fix bug with unicode identifiersGravatar Jarred Sumner 1-2/+2
2022-02-27[JS Parser] #privateIdentifiersGravatar Jarred Sumner 1-105/+279
2022-02-27[JS Parser] Class Static Initialization BlocksGravatar Jarred Sumner 1-0/+62
https://github.com/tc39/proposal-class-static-block
2022-02-27[TS Parser] Support `export {type Foo}`Gravatar Jarred Sumner 1-13/+101
2022-02-24[JS Parser] ensure assertions are never run at runtimeGravatar Jarred Sumner 1-13/+18
2022-02-21Wrap some usages of `assert` in a conditionalGravatar Jarred Sumner 1-12/+15
See https://github.com/ziglang/zig/issues/10942
2022-02-18Use an `enum` for `Ref` instead of a buggy packed structGravatar Jarred Sumner 1-135/+129
Fixes a printing bug with `Symbol`
2022-02-18Simple dead code eliminationGravatar Jarred Sumner 1-176/+400
2022-02-18[JS Parser] fix bugs found from testsGravatar Jarred Sumner 1-24/+55
2022-02-18[JS Parser] Strip import assertionsGravatar Jarred Sumner 1-0/+43
Closes #4
2022-02-16[JS Parser] Fix several bugs with bindings and improve some errorsGravatar Jarred Sumner 1-77/+113
2022-02-16Update js_parser.zigGravatar Jarred Sumner 1-1/+0
2022-02-16[js parser] pool allocated names (perf)Gravatar Jarred Sumner 1-2/+26
2022-02-16[bun.js] Fix segfault when running many bun.js instancesGravatar Jarred Sumner 1-1/+1
2022-02-16symbol pool remnantsGravatar Jarred Sumner 1-6/+1
2022-02-15Revert "Remove usage of `packed` struct in Ref because packed is buggy in zig"Gravatar Jarred Sumner 1-211/+252
This reverts commit 2578f426b6d59080b0853164df83fe2b69740a7c.
2022-02-15Remove usage of `packed` struct in Ref because packed is buggy in zigGravatar Jarred Sumner 1-252/+211
2022-02-14move import processing into a separate functionGravatar Jarred Sumner 1-205/+203
2022-02-14[bun.js] Handle recursive macros and handle stack overflowGravatar Jarred Sumner 1-91/+95
2022-02-14[bun.js] Auto type coerction for macros!Gravatar Jarred Sumner 1-11/+197
2022-02-13[JS parser] Slightly better dead code elimination & optimize AST string ↵Gravatar Jarred Sumner 1-150/+185
comparison
2022-02-13[js parser] Fix test failure with `import {type foo}`Gravatar Jarred Sumner 1-13/+54
2022-02-10[tree shaking] Trim unused values in `var` when possibleGravatar Jarred Sumner 1-59/+76
2022-02-10[tree shaking] Fix bug with removing unused `const` / `let`Gravatar Jarred Sumner 1-5/+4
2022-02-08Move __exportDefault transform to parserGravatar Jarred Sumner 1-4/+34