Repository navigation
Releases
Releases · javascript-obfuscator/javascript-obfuscator
5.10.1 version
- Fixed
controlFlowFlatteningchangingletandconstdeclarations intovarinside functions passed as call arguments or used as operands, whenvaris the prevailing kind of variables. Fixes #1471 - Fixed
controlFlowFlatteningturning a#x in objprivate brand check into invalid code. Fixes #1472 - Fixed an escaped
'use\x20strict'directive being emitted as an actual'use strict'directive. Fixes #1474 - Fixed
selfDefending,disableConsoleOutput,debugProtectionanddomainLockcode helpers being placed before the'use strict'directive, which disabled strict mode. Fixes #1475 - Fixed
numbersToExpressionsproducing invalid code for non-computed numeric keys of class members. Fixes #1476 - Template literals are now transformed into
String.prototype.concatcalls instead of+concatenation, so substitutions are converted to strings withtoStringinstead ofvalueOf. Fixes #1477 - Fixed
controlFlowFlatteningdropping the?.short-circuit on an optional call in the middle of a chain (foo?.(x).bar()), causingTypeError: <X> is not a function. Follow-up to #1408
5.10.0 version
- Replaced
multimatchwithminimatch@11for the CLI--excludeoption, resolving theminimatchdenial of service advisoryGHSA-g3hv-75wg-m249 - Require Node.js 20 or newer, as
minimatch@11does
5.9.1 version
5.9.0 version
- Pro API: added
getProQuota(), which returns the usage left on the API key's plan. - Pro API:
ApiErrornow carriescode, the machine-readable cause sent by the API; a build refused for quota hascodedailyLimitormonthlyLimit - The Node
distbundle is no longer minified, so uncaught errors print a readable stack frame instead of the whole bundle.
5.8.1 version
5.8.0 version
- Pro API: added support for custom presets.
optionsPresetaccepts the alias of a custom preset saved in the obfuscator.io dashboard;obfuscatePro()and the CLI (--pro-api-token) fetch it and merge its options - CLI:
--options-presetwith a VM preset name (e.g.vm-default) no longer fails locally when--pro-api-tokenis set; the name is passed to the Pro API
5.7.0 version
- New option:
advertisementallows to control the display of the JavaScript Obfuscator Pro advertisement message in the console. Fixed #1448
5.6.0 version
- Pro API:
obfuscatePronow fall back to the basic local obfuscation API when no Pro feature (vmObfuscationorparseHtml) is enabled, instead of throwing anApiError - Improved
stringArrayEncodingruntime performance
5.5.1 version
- Fixed leading whitespace of the source code being stripped without being reflected in the source map, shifting all
sourcesContentand original position mappings. Fixes #1437
5.5.0 version
- Pro API: reworked large file uploads — fixed
413 Content Too Largefor ~4.4–4.6MB request bodies, and Blob uploads now send the raw source (blobFormat: 'raw') instead of the JSON request body, so uploads always fit the plan's file size cap