Commit graph

  • b19d809be3
    refactor(linter): split unicorn/prefer-spread and eslint/prefer-spread into own rules (#8329) Alexander S. 2025-01-09 15:28:36 +0100
  • dddbd299d0 refactor(transformer/arrow-functions): reorder assertions (#8386) overlookmotel 2025-01-09 12:23:54 +0000
  • 335065d8c8 fix(transformer/arrow-functions): do not transform super that inside nested non-async method (#8335) Dunqing 2025-01-09 11:41:20 +0000
  • 793cb43138 feat(minifier): a != null ? a : b -> a ?? b (#8352) camc314 2025-01-09 10:12:52 +0000
  • 1c4658d617 refactor(minifier): change ast passes order, !in_fixed_loop happen last (#8380) Boshen 2025-01-09 07:45:20 +0000
  • c0a3ddac28 fix(minifier): instanceof has error throwing side effect (#8378) Boshen 2025-01-09 06:49:27 +0000
  • c1c0d71162
    refactor(prettier): Make hardline! to return Doc (#8379) Yuji Sugiura 2025-01-09 15:48:52 +0900
  • 0903501a98 refactor(semantic): check super usage based on scope (#8377) Dunqing 2025-01-09 06:38:09 +0000
  • 79a8fc6f7d fix(semantic): report error for super property appearing in function body (#8376) Dunqing 2025-01-09 06:38:08 +0000
  • 5516f7fcb9 fix(minifier): do not fold object comparisons (#8375) Boshen 2025-01-09 05:47:35 +0000
  • a1752a062c fix(codegen): fix incorrect minified return 1n output (#8374) Boshen 2025-01-09 05:01:41 +0000
  • cb098c7d3c fix(minifier): computed property key prototype cannot be changed (#8373) Boshen 2025-01-09 04:24:03 +0000
  • 82ee77ef19 fix(minifier): do not remove shadowned undefined in return statement (#8371) Boshen 2025-01-09 04:03:18 +0000
  • 814da55f81
    feat(minifier): compress x = x || 1 to x ||= 1 (#8368) sapphi-red 2025-01-09 03:47:12 +0000
  • a596821d85
    feat(minifier): compress a.b = a.b + c to a.b += c (#8367) sapphi-red 2025-01-09 03:47:11 +0000
  • 579eb603d5
    feat(minifier): compress a.b || (a.b = c) to a.b ||= c (#8366) sapphi-red 2025-01-09 03:47:10 +0000
  • aa5e65ff3c refactor(transformer/private-methods): simplify finding parent statement of class expression (#8364) overlookmotel 2025-01-09 03:17:41 +0000
  • c786fd1add refactor(transformer/private-methods): TODO comments (#8363) overlookmotel 2025-01-09 03:17:40 +0000
  • ac72adbade fix(transformer/private-methods): fix panic if instance private accessor in class (#8362) overlookmotel 2025-01-09 03:17:39 +0000
  • f1f129b09d fix(transformer/private-methods): create brand binding var in hoist scope (#8361) overlookmotel 2025-01-09 03:17:38 +0000
  • ab6142503f fix(transformer/private-methods): no temp var for class when unused private methods (#8360) overlookmotel 2025-01-09 03:17:37 +0000
  • f367a16364 feat(minifier): port esbuild conditional expr minification (#8351) camc314 2025-01-09 02:49:33 +0000
  • 09f0f483f6 refactor(minifier): remove the buggy minimize_exit_points implementation (#8349) Boshen 2025-01-09 02:49:32 +0000
  • 3ba0b5316d
    chore(tasks/coverage): fix test262 cases to run on windows (#8358) 翠 / green 2025-01-09 11:48:37 +0900
  • b6c1546d07
    test(linter): use plugin name instead of category for finding rule (#8353) Alexander S. 2025-01-09 03:48:11 +0100
  • 78d7c97357 fix(transformer/typescript): create Reference for Infinity (#8354) overlookmotel 2025-01-09 02:26:32 +0000
  • 6790d1d219 refactor(transformer/class-properties): simplify determining if class is declaration (#8357) overlookmotel 2025-01-09 02:20:50 +0000
  • e4d66e4636 fix(transformer/arrow-functions): store super_methods on a Stack to fix nested async methods (#8331) Dunqing 2025-01-08 21:00:45 +0000
  • e0a09ab023 docs(data_structures): improve docs for stack types (#8356) overlookmotel 2025-01-08 20:49:28 +0000
  • fb389f724a refactor(transformer/arrow-function): create a new ident instead of clone (#8338) Dunqing 2025-01-08 19:43:53 +0000
  • 8d52cd0a5e
    feat(minifier): merge assign expression in conditional expression (#8345) sapphi-red 2025-01-08 13:34:11 +0000
  • 5a648bc3cd fix(codegen): fix white space issue with do statements (#8348) Boshen 2025-01-08 13:28:10 +0000
  • 3149fe0aa4
    test(minifier): add anonymous function test case for logical expression to logical assignment compression (#8347) sapphi-red 2025-01-08 13:22:49 +0000
  • 9a5c66ac6a refactor(minifier): clean up (#8346) Boshen 2025-01-08 13:04:10 +0000
  • a69d15f299
    feat(minifier): compress new Array(2) -> [,,] (#8344) sapphi-red 2025-01-08 12:07:46 +0000
  • 819c47536c
    feat(minifier): compress new Array(7n) -> [7n] (#8343) sapphi-red 2025-01-08 12:07:45 +0000
  • e085d66c78 feat(minifier): remove empty IIFE (#8340) Boshen 2025-01-08 09:34:10 +0000
  • 2c2e483d35 feat(minifier): fold object spread ({ ...null }) -> ({}) (#8339) Boshen 2025-01-08 09:11:28 +0000
  • 8e3eed7562
    refactor(prettier): Update tasks/prettier to correctly handle snapshots (#8337) Yuji Sugiura 2025-01-08 18:10:30 +0900
  • 6220e05f38 feat(minifier): remove empty if statment if (test) {} -> test (#8336) Boshen 2025-01-08 08:50:10 +0000
  • a76dfae8e3 feat(minifier): remove label statement with empty body (#8333) Boshen 2025-01-08 07:38:38 +0000
  • e88a6bdd94 feat(minifier): minimize !0 + null !== 1 -> !0 + null != 1 (#8332) Boshen 2025-01-08 04:36:41 +0000
  • 98f2b1ccd5 refactor(minifier): clean up peephole_substitute_alternate_syntax (#8327) Boshen 2025-01-08 03:44:19 +0000
  • ce6c4457c2 refactor(transformer/arrow-functions): add TODO comments (#8328) overlookmotel 2025-01-08 01:52:46 +0000
  • 73d0025a75 refactor(transformer/arrow-functions): reduce repeated code (#8323) overlookmotel 2025-01-08 01:52:45 +0000
  • 62e3f7e525 perf(transformer/arrow-functions): reduce size of inlined visitor (#8322) overlookmotel 2025-01-08 01:52:45 +0000
  • 3dd08e9786 refactor(transformer/arrow-functions): do not inline non-trivial visitor method (#8321) overlookmotel 2025-01-08 01:52:44 +0000
  • ea9cefb5c3 refactor(transformer/arrow-functions): reorder visitor methods (#8320) overlookmotel 2025-01-08 01:52:43 +0000
  • 37199a4cd6 refactor(transformer/arrow-functions): rename lifetime (#8319) overlookmotel 2025-01-08 01:52:43 +0000
  • 45eb35434d
    chore(linter): add vscode debugger launch config (#8271) 1zumii 2025-01-08 09:51:47 +0800
  • aebe0ea46d perf(transformer/arrow-functions): use NonEmptyStack instead of Stack (#8318) overlookmotel 2025-01-08 01:32:56 +0000
  • 57e9dcf046 refactor(transformer/arrow-functions): shorten AstBuilder call (#8317) overlookmotel 2025-01-08 01:32:55 +0000
  • ec88c68c28
    feat(minifier): compress a || (a = b) to a ||= b (#8315) sapphi-red 2025-01-07 23:19:52 +0000
  • e6fe84d674
    feat(minifier): compress a = a + b to a += b (#8314) sapphi-red 2025-01-07 23:19:50 +0000
  • 9ea4e31ba3
    feat(minifier): remove new from new Error/new Function/new RegExp (#8313) sapphi-red 2025-01-07 14:48:56 +0000
  • fc662b7896 refactor(minifier): handle big int values later (#8324) Boshen 2025-01-07 14:25:22 +0000
  • 775a289a55 fix(transformer/arrow-functions): _this = this should be inserted after super call expression (#8024) Dunqing 2025-01-07 13:53:43 +0000
  • 051fbb6909 feat(minifier): minimize x["0"] -> x[0] (#8316) Boshen 2025-01-07 13:12:35 +0000
  • a542013773 feat(minifier): minimize do{}while(true) -> do;while(true) (#8311) Boshen 2025-01-07 12:55:03 +0000
  • e3ff81ef82 feat(minifier): minimize (x = 1) === 1 -> (x = 1) == 1 (#8310) Boshen 2025-01-07 07:48:35 +0000
  • 4b68cc0972 feat(minifier): minimize empty try statement (#8309) Boshen 2025-01-07 07:16:01 +0000
  • e1f8ea41ad fix(lexer): Source is not Clone (#8294) overlookmotel 2025-01-07 06:58:25 +0000
  • 64bfdfe223 refactor(lexer): tighten safety of lexer by always including lifetime on SourcePosition (#8293) overlookmotel 2025-01-07 06:58:24 +0000
  • 16dcdaf6cd test(lexer): assert size of Token in 32-bit WASM (#8292) overlookmotel 2025-01-07 06:58:23 +0000
  • 0344e98c99 refactor(lexer): make handle_byte a method of Lexer (#8291) overlookmotel 2025-01-07 06:58:22 +0000
  • 922c5147b5 feat(minifier): fold .toString() (#8308) Boshen 2025-01-07 06:33:58 +0000
  • 30cee0e47e
    feat(prettier): Print tagged template literal (#8307) Yuji Sugiura 2025-01-07 15:25:14 +0900
  • d16e598678 refactor(minifier): clean up peephole_replace_known_methods (#8306) Boshen 2025-01-07 02:29:49 +0000
  • 66a24437ac feat(minifier): minify sequence expressions (#8305) camc314 2025-01-06 23:42:30 +0000
  • af65c3670f feat(minifier): minimize double negated binary expressions (#8304) camc314 2025-01-06 23:26:20 +0000
  • 76c778b03f feat(minifier): remove logical nots when arg is a delete expression (#8303) camc314 2025-01-06 23:26:19 +0000
  • 5ed439bcaf feat(minifier): minify typeof in binary expressions (#8302) camc314 2025-01-06 23:26:19 +0000
  • 6afc590db8 feat(minifier): compress typeof addition string (#8301) camc314 2025-01-06 23:26:18 +0000
  • 4d2888d6fc style(lexer): reorder imports (#8290) overlookmotel 2025-01-06 19:57:59 +0000
  • fabf116f4b refactor(lexer): replace #[allow] with #[expect] (#8289) overlookmotel 2025-01-06 18:01:16 +0000
  • 0462edbe7e refactor(lexer): rename function param (#8288) overlookmotel 2025-01-06 17:33:09 +0000
  • d8b27afc35 refactor(ast)!: no unneccesary trailing underscores on AstBuilder method names (#8283) overlookmotel 2025-01-06 15:09:05 +0000
  • 0db2a22e48 refactor(ast): AstBuilder enum builder methods use alloc_* methods (#8281) overlookmotel 2025-01-06 15:09:04 +0000
  • 5106088b88 refactor(ast)!: remove FromIn<Expression> for Statement (#8280) overlookmotel 2025-01-06 15:02:58 +0000
  • a5e35282ac refactor(transformer/async-to-generator): pass TraverseCtx to function not AstBuilder (#8279) overlookmotel 2025-01-06 14:56:53 +0000
  • 109b8fc047 refactor(transformer): elide lifetimes where possible (#8285) overlookmotel 2025-01-06 14:52:02 +0000
  • e81f34f2f6 style(span): reformat code (#8296) overlookmotel 2025-01-06 13:57:58 +0000
  • cd0c2dc6f7 test(transformer): remove repeated code from fixtures updating script (#8287) overlookmotel 2025-01-06 11:55:00 +0000
  • c8e48434c6 docs(ast): fix doc comment (#8286) overlookmotel 2025-01-06 11:48:56 +0000
  • 1835687b75 refactor(ecmascript): remove unnecessary use statement (#8284) overlookmotel 2025-01-06 11:42:26 +0000
  • b8d26eab17 refactor(minifier): move optional catch param to peephole_substitute_alternate_syntax (#8282) Boshen 2025-01-06 10:47:56 +0000
  • 2e7207f11c
    fix(transformer/typescript): should strip import specifiers type with only_remove_type_imports (#8141) underfin 2025-01-06 18:20:16 +0800
  • f87da160df fix(minifier): do not fold literals in -0 != +0 (#8278) Boshen 2025-01-06 10:08:57 +0000
  • ecc789f163 feat(minifier): fold if(x >> y == 0){} -> if(!(x >> y)){} (#8277) Boshen 2025-01-06 09:52:28 +0000
  • 0e3b79a65b feat(minifier): fold String() -> '', Number() -> false (#8274) Boshen 2025-01-06 08:56:00 +0000
  • aea95519db refactor(ast): simplify get_identifier_reference of TSType and TSTypeName (#8273) Dunqing 2025-01-06 08:23:53 +0000
  • c9cf593cd7 feat(minifier): compress property key {[1]: _} -> {1: _} (#8272) Boshen 2025-01-06 08:08:59 +0000
  • 0ae2ba4316
    refactor(prettier): Refactor printing statements (#8269) Yuji Sugiura 2025-01-06 16:59:41 +0900
  • b92b2abc2b feat(minifier): fold BigInt(1n) -> 1n (#8270) Boshen 2025-01-06 07:40:25 +0000
  • 676886fdab chore(deps): update rust crates (#8255) renovate 2025-01-06 03:07:52 +0000
  • a4df3874c5 feat(minifier): compress loose equals undefined (#8268) camc314 2025-01-06 02:21:28 +0000
  • f000596edf feat(minifier): minify call expressionsto Number (#8267) camc314 2025-01-06 02:21:28 +0000
  • 092aeafdc0 feat(minifier): flatten spread args in call expressions (#8266) camc314 2025-01-06 02:21:27 +0000
  • 04ec38dc47 feat(minifier): remove unused arrow function expressions (#8262) camc314 2025-01-06 02:21:26 +0000
  • e446c15619 feat(minifier): improve minimizing unary not expressions (#8261) camc314 2025-01-06 02:21:26 +0000