Commit Graph
892 Commits
Author SHA1 Message Date
Timofey Kachalov 459fb31c12 Fix domain lock to be case-insensitive by normalizing domain values to lowercase (#1400) 2026-03-22 16:43:41 +04:00
Timofey Kachalov 8a67a82914 Fixed missing space between keywords (return, throw, typeof) and Unicode surrogate pair identifiers in compact mode (#1398) 2026-03-22 16:02:22 +04:00
sanex3339 6659c8252a Add domain lock case with - char 2026-03-22 15:56:01 +07:00
Timofey Kachalov 2ec6e13d8f Fixed destructuring patterns inside class static blocks not being renamed when renameGlobals is disabled (#1396) 2026-03-22 12:45:29 +04:00
Timofey Kachalov aa3c9fd344 Fixed CLI --options-preset not applying preset values for options not explicitly set via command line (#1395) 2026-03-22 12:10:12 +04:00
Timofey Kachalov d8db02336d Add renameProperties support for private class fields and methods (#1393) 2026-03-22 11:33:36 +04:00
Timofey Kachalov e1d9435468 Fixed infinite loop / stack overflow when reservedNames patterns match all generated identifier names (#1390) 2026-03-22 11:22:58 +04:00
Timofey Kachalov bac513e73d Fix transformObjectKeys to preserve evaluation order in sequence expressions with side effects (#1392) 2026-03-22 11:14:07 +04:00
Timofey Kachalov 8ade200077 Remove conf package in favor of a custom implementation (#1391) 2026-03-22 10:32:09 +04:00
Timofey Kachalov 2246099bb6 Fixed reservedNames not preserving class method and property names when stringArray or deadCodeInjection is enabled (#1389) 2026-03-22 09:41:56 +04:00
Timofey Kachalov 560212c0c4 Add import attributes support (#1388) 2026-03-22 08:56:53 +04:00
Roli Bosch 1aadbacc06 Replace mkdirp with native fs.mkdirSync({ recursive: true }) (#1384) 2026-03-22 08:26:33 +04:00
Timofey Kachalov 7792fb0be3 Fixed class expression name references inside class body being incorrectly resolved to an import binding with the same name, causing broken code at runtime (#1387) 2026-03-21 20:55:38 +04:00
Timofey Kachalov 25427bcc0b Add Pro API support to CLI including support for large files obfuscation (#1381) 2026-02-03 20:22:11 +04:00
sanex3339 999e93c084 Fixed transformObjectKeys with mangled identifier generator causing variable shadowing when extracted object variable name matched an existing inner scope variable 2026-01-27 23:34:45 +04:00
Timofey Kachalov 05aacd9dfe Fixed deadCodeInjection causing SyntaxError when arguments from collected block statements was injected into class field initializers or static initialization blocks (#1377) 2026-01-27 23:34:22 +04:00
Timofey Kachalov ccece3fef1 Fixed parsing error when await is used as an identifier in non-async context (#1376) 2026-01-27 22:59:28 +04:00
Timofey Kachalov 44028a147f Fixed transformObjectKeys incorrectly hoisting object literal outsie of loop (#1375) 2026-01-27 22:19:27 +04:00
Timofey Kachalov 3848bca794 Backport some fixes from Pro version (#1374) 2026-01-27 17:20:23 +04:00
Timofey Kachalov 99c635a6d2 Fixed controlFlowFlattening breaking short-circuit evaluation with spread operator and conditional objects (#1373) 2026-01-27 14:04:39 +04:00
Timofey Kachalov c844f97cfc Ignore transformation of process.env.* (#1367) 2026-01-06 23:37:42 +04:00
Timofey Kachalov 6866396e9a Add version parameter to the apiConfig to use different versions of JavaScript Obfuscator Pro via API (#1353) 2025-12-13 18:43:52 +04:00
Timofey Kachalov 4ac3368122 Version 5.0.1 (#1344) 2025-12-07 12:42:47 +04:00
Timofey Kachalov 4f3a456124 Add Async PRO API (#1343) 2025-12-07 00:01:00 +04:00
Timofey Kachalov 4ee4b219e5 Add prettier (#1339) 2025-12-04 00:09:10 +04:00
Timofey Kachalov 964376363e Fix error when ClassExpression is the CallExpression callee (#1336) 2025-11-30 03:15:42 +04:00
Timofey Kachalov cd63f59099 Don't obfuscate import.meta.* (#1335) 2025-11-30 02:33:15 +04:00
Timofey Kachalov b36951af37 Fix control flow flattening + optional chaining compatibility (#1334) 2025-11-30 01:53:25 +04:00
Timofey Kachalov 64edd44d68 Revert 5683e75 (#1332) 2025-11-30 00:39:32 +04:00
Alex 54cbdf6d27 Add target 'service-worker' (#1134) 2023-09-05 13:26:01 +04:00
billsykes b55c7dbb2c Bump class-validator from 0.13.2 to 0.14.0 (#1146) 2023-02-11 02:48:04 +04:00
fuka 88bfc0e4b9 Update incorrect 'ignoreRequireImports' to 'ignoreImports' (#1086)
Introduced by PR#1010
2022-05-07 22:30:30 +03:00
Timofey Kachalov e8e92c601d debugProtectionInteraval option now accepts value in milliseconds instead of boolean value (#1063) 2022-02-14 19:06:05 +03:00
Timofey Kachalov 30ba697c55 Fixed cases when dead code is added to the inner code of eval expressions (#1062)
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/1053
2022-02-14 14:34:39 +03:00
sanex 496a6109dc .cjs file support for config files 2022-02-12 22:01:43 +03:00
Timofey Kachalov b99b6a46ee Improved integration between renameProperties and controlFlowFlattening options (#1060) 2022-02-12 20:35:31 +03:00
Timofey Kachalov 2095d47058 Dead code injection transformer ignores PrivateIdentifier nodes (#1057) 2022-02-09 22:44:16 +03:00
Timofey Kachalov ec4b70f908 String array calls transform fix (#1050)
* Fixed the wrong generation of code that has statements after `ReturnStatment` when `simplify` option is enabled

* Fixed generation of reserved identifier names like `Map` or `Set` for `mangled` and `mangled-shuffled` identifier names generators
2022-02-08 00:02:33 +03:00
Timofey Kachalov 77f64bf5df Fixed wrong generation of code that has statements after ReturnStatment when simplify option is enabled 2022-02-06 21:10:16 +03:00
sanex cd4bf15cc8 Fixed zero threshold case for string array storage analyze 2022-02-06 10:56:36 +03:00
sanex 2e0ce8ac71 Updated seed view when tests are failing 2022-02-06 09:36:43 +03:00
sanex 711a135334 Updated option normalizers for stringArrayCallsTransform option 2022-02-05 22:13:55 +03:00
Timofey Kachalov f075a0e2d1 Added stringArrayCallsTransform and stringArrayCallsTransformThreshold options (#987) 2022-02-05 20:57:39 +03:00
jmbeach 891dbce95c make forward slash in output path consistent 2022-02-02 14:59:58 -05:00
sanex cead12a76f Refactoring 2022-01-31 01:08:00 +03:00
sanex 5c0334d093 Fixed tests 2022-01-29 15:02:52 +03:00
sanex 6b8ead0b2b Support for class static blocks 2022-01-29 14:57:21 +03:00
sanex ec1c90a27f Renamed options 2021-10-17 15:25:29 +03:00
sanex faaab45c6a ignoreRequireImports option renamed to ignoreImports 2021-10-17 15:13:24 +03:00
Kevin 30c5e9a937 fix: dynamic import 2021-10-11 03:50:58 +08:00