aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-3/+3
2022-11-20[jsx] Disable `jsxs`Gravatar Jarred Sumner 1-31/+46
2022-11-10add ... switch case (#1482)Gravatar Dylan Conway 1-0/+12
2022-11-09Support TypeScript `satisfies`Gravatar Jarred Sumner 1-1/+2
Credit: @magic-akari, almost identical diff in https://github.com/evanw/esbuild/pull/2509/files#diff-ccc0bde7223236d93490b727b272f15765a2674be12a4c310b83b9555bef8816
2022-11-07[JS Parser] Do not perform the visit pass if the parse pass had "tolerable" ↵Gravatar Jarred Sumner 1-0/+15
errors
2022-11-06[TypeScript] Fix `export = value`Gravatar Jarred Sumner 1-0/+1
2022-11-01typescript decorators round 2 (#1445)Gravatar Dylan Conway 1-4/+221
* __decorateClass, __decorateParam, lit test, wiptest test * decorator factories test * parameter decorator test * test for decorators with constructor parameter properties * Fix issue with `CryptoKey` and `SubtleCrypto` constructors * Limit concurrency for GitHub Actions due to issues with cache poisoning If multiple actions are running, sometimes the cache is poisoned from another action. We need to fix this, but this is an interim measure to make actions less flaky * Make these tests better * Move this to dependencies so the .a files upload * Fixup * temporary fix * Limit concurrency for MacOS Object actions * try againn * againn * Make `"tls"` an explicit object we pass instead of implicit top-level options cc @Electroid @colinhacks * Update server.zig * Prefer `BUN_PORT` over `PORT` * Fix typo in homebrew action * Run homebrew action when release is edited * Check published_at instead of draft in GitHub action * Implement `process.release` * Add missing dependencies to `make devcontainer` * Allow overriding node polyfills via `BUN_OVERRIDE_MODULE_PATH` * Add a stub for io_darwin on linux cc @sno2 hopefully this helps but i'm not sure * Add missing `break` * Download more RAM * feat(core): optimize zig slice (#1408) * feat(core): optimize zig slice * address concerns * Remove webcrypto from vendor-without-check * Update default tsconfig (#1418) Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> * Enable `BUN_OVERRIDE_MODULE_PATH` in `bun wiptest` * Upgrade WebKit * space * Support getting cached values and pending activity in the bindings generator * Remove :scissors: function * constructor creation, initializers, handle static and computed fields with decorators * Updating libuwebsockets C API (#1423) * fix for repeated regex match calls and fix for '^' in character classes (#1419) * tests and formatting * fix for ^ in character class * formatting * test for repeated match and exec calls * create oniguruma regex for each exec/test * check errorCode from creating oniguruma regexp and always return {} on failure * oops * call onig_initialize once * fix incorrect escaping, removed unnecessary oniguruma settings * tests for "-" and "^" in character classes * free regex object before returns * force gc for some tests * Update React fizz server (#1432) * Update fizz server * Use production build Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> * more decorator tests * optional setup function for loading elements, simulate clicks in lit test * fix createWriteStream (#1433) * fix createWriteStream * remove comment * Update build docs and commands for dev containers (#1438) * Update build documentation for dev containers * Add devcontainer-rebuild make target * Add make devcontainer-sh target * Fix missing .PHONY for vendor-without-check (#1437) * Fix check for ninja on Debian/Ubuntu (#1436) Even though the package is named ninja-build, the ninja binary is still named ninja, so use `which ninja` to check for it * Fix #1410 woops * await on DOMContentLoaded for elements instead of setup function * avoid lowering class if no decorators Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: Carter Snook <cartersnook04@gmail.com> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com> Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com> Co-authored-by: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Co-authored-by: João Paquim <jpaquim@users.noreply.github.com>
2022-09-27Fix potential crash when TS code has an unexpected ")"Gravatar Jarred Sumner 1-4/+4
2022-09-26Add missing ignoreUsage callGravatar Jarred Sumner 1-0/+1
2022-09-21Fix `preact` & other "classic" jsx transforms, most likelyGravatar Jarred Sumner 1-20/+106
2022-09-11Resolve rope strings in dynamic import pathsGravatar Jarred Sumner 1-1/+1
Fixes https://github.com/oven-sh/bun/issues/1230
2022-09-06preserve statements when generating a separate module for bun pluginGravatar Jarred Sumner 1-2/+29
2022-09-05Support async `onLoad` callbacks in `Bun.plugin`Gravatar Jarred Sumner 1-8/+60
2022-09-03fixed is_export and added test cases (#1203)Gravatar Dylan Conway 1-1/+0
2022-08-20Fix crash on invalid JSXGravatar Jarred Sumner 1-1/+1
2022-08-10Update js_parser.zigGravatar Jarred Sumner 1-1/+1
2022-08-10[TS] Fix bug with `import Foo = require("bar")`Gravatar Jarred Sumner 1-12/+14
Closes https://github.com/oven-sh/bun/issues/1045
2022-07-15[parser] Fix symbol collision with requireGravatar Jarred Sumner 1-0/+6
Fixes https://github.com/oven-sh/bun/issues/674 Fixes https://github.com/oven-sh/bun/issues/382
2022-07-10Update GitHub URL to match new repo URL (#547)Gravatar Aurora Luna Takemi 1-2/+2
* Update repo URLs * GitHub URL update * Revert accidental URL changes
2022-07-04Handle global require("string")Gravatar Jarred Sumner 1-1/+1
2022-06-24Add dynamic require supportGravatar Jarred Sumner 1-100/+58
2022-06-22[JS Parser] Fix undefined memory bug when printing an "cannot be used in ↵Gravatar Jarred Sumner 1-2/+3
strict mode" error message
2022-06-10Update js_parser.zigGravatar Jarred Sumner 1-21/+200
2022-06-09Fix defaultProps with JSX optimizationGravatar Jarred Sumner 1-30/+39
2022-06-07Web Streams API (#176)Gravatar Jarred Sumner 1-82/+393
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more * Implement `Blob.stream()` * Update streams.test.js * Fix sourcemaps crash * [TextEncoder] 3x faster in hot loops * reading almost works * start to implement native streams * Implement `Blob.stream()` * Implement `Bun.file(pathOrFd).stream()` * Add an extra function * [fs.readFile] Improve performance * make jsc bindings a little easier to work with * fix segfault * faster async/await + readablestream optimizations * WebKit updates * More WebKit updates * Add releaseWEakrefs binding * `bun:jsc` * More streams * Update streams.test.js * Update Makefile * Update mimalloc * Update WebKit * Create bun-jsc.test.js * Faster ReadableStream * Fix off by one & exceptions * Handle empty files/blobs * Update streams.test.js * Move streams to it's own file * temp * impl #1 * take two * good enough for now * Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers` * jsxOptimizationInlining * Fix crash * Add `jsxOptimizationInline` to Bun.Transpiler * Update Transpiler types * Update js_ast.zig * Automatically choose production mode when NODE_ENV="production" * Update cli.zig * [jsx] Handle defaultProps when inlining * Update transpiler.test.js * uncomment some tests Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-05-20[solid] more progress, no fragments, but still not rightGravatar Jarred Sumner 1-217/+383
2022-05-19woopsGravatar Jarred Sumner 1-1/+2
2022-05-19[solid] Move the post-process JSX stepGravatar Jarred Sumner 1-452/+476
2022-05-19move js_parser to src/Gravatar Jarred Sumner 1-1/+18211
2021-05-02classes work, excluding name and constructor/superGravatar Jarred Sumner 1-10330/+1
Former-commit-id: 818d0149312b07191340427e5b2990ae6d0cec94
2021-05-01Assorted bugfixes but the next step really is porting tests and fixingGravatar Jarred Sumner 1-48/+159
Former-commit-id: f59ec8d6c0c95217c1dc24e2ed2dc49aed122a68
2021-04-30it prints end to end though doesn't work yetGravatar Jarred Sumner 1-32/+192
Former-commit-id: 006ca4f13c0866ff843cc47046f5b7dce18635ef
2021-04-30inching closureGravatar Jarred Sumner 1-47/+503
Former-commit-id: 107310d785ee9dfbd258a1fc015976a76cdcef82
2021-04-30all in a days workGravatar Jarred Sumner 1-11/+470
Former-commit-id: fd56d41c8e40734d849b579fd526f333112a1ee7
2021-04-29ao[slkGravatar Jarred Sumner 1-4/+71
Former-commit-id: daf9ea419b7eff365064d07b3fbd5b022e759233
2021-04-29aoskdpGravatar Jarred Sumner 1-15/+279
Former-commit-id: ac83057d08c86875ce524f481b5adf03262c9a0f
2021-04-29hmGravatar Jarred Sumner 1-30/+1417
Former-commit-id: 2567243c8db7a60a5ba8ca7c662beca080cfa4f4
2021-04-29asdasdGravatar Jarred Sumner 1-10/+345
Former-commit-id: 4e3f680ac479552abd24f4d60d98a43d1ecb64c3
2021-04-28wipGravatar Jarred Sumner 1-271/+1043
Former-commit-id: b37acf309c8f42d49dc47eea446f89a3dbe9f6e2
2021-04-27json works in CLI sort ofGravatar Jarred Sumner 1-2/+2
2021-04-26lotsGravatar Jarred Sumner 1-1/+0
2021-04-26wapGravatar Jarred Sumner 1-2/+9
2021-04-25it prints true and falseGravatar Jarred Sumner 1-7/+5
2021-04-25little defines, little readme, json parserGravatar Jarred Sumner 1-30/+28
2021-04-24WIPGravatar Jarred Sumner 1-8/+10
2021-04-23wipGravatar Jarred Sumner 1-3/+76
2021-04-23starting the big functionGravatar Jarred Sumner 1-52/+535
2021-04-23I believe those are the Stmt!!!!!!Gravatar Jarred Sumner 1-1/+222
2021-04-23throw; debugger;{{{{{Gravatar Jarred Sumner 1-3/+22
2021-04-23return! !continue! !breakGravatar Jarred Sumner 1-3/+31