mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
6.0 KiB
6.0 KiB
Change Log
v0.10.0
- New option:
deadCodeInjection. With this option random blocks of dead code will add to the obfuscated code. - New option:
deadCodeInjectionThresholdallows to set percentage of nodes that will affected bydeadCodeInjection. - New option:
mangleenables mangling of variable names. - New CLI option:
--configallows to set config file with obfuscator options. - Breaking change:
disableConsoleOutputoption now disabled by default. - Breaking change:
escapeUnicodeSequenceoption now disabled by default. controlFlowFlatteningnow affects string literal nodes.- Increased runtime performance with
rc4stringArrayEncoding. - Added support for async functions
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/71
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/65
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/60
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/59
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/54
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/57
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/58
- Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/58
v0.9.3
- Switched from
escodegentoescodegen-wallaby, fixed https://github.com/javascript-obfuscator/javascript-obfuscator/pull/50
v0.9.2
- Removed coverage dir from npm package
v0.9.1
v0.9.0
- Breaking change: dropped
node@0.10andnode@0.12support. - New option:
controlFlowFlatteningallows to enable/disable Control Flow flattening. Control flow flattening is a structure transformation of the source code that hinders program comprehension. - New option:
controlFlowFlatteningThresholdallows to set percentage of nodes that will affected bycontrolFlowFlattening. - Significantly increased obfuscation performance.
- Huge internal refactoring.
- Better
es2015support: correct obfuscation ofTemplateLiteral,ArrayPattern,AssignmentPatternnodes. - Switched from
npmtoyarninternally. - Various bug fixes.
v0.9.0-beta.5
- Increased performance
- Fixed very rare
Cannot read property 'type' of undefinederror, whenRandomGeneratorUtils.getMathRandom()returned incorrect value1.
v0.9.0-beta.4
- Increased performance
v0.9.0-beta.3
- Breaking change: dropped
node@0.10andnode@0.12support. - Switched from
npmtoyarninternally.
v0.9.0-beta.2
- Transformers refactoring
v0.9.0-beta.1
- New option:
controlFlowFlatteningallows to enable/disable Control Flow flattening. Control flow flattening is a structure transformation of the source code that hinders program comprehension. - New option:
controlFlowFlatteningThresholdallows to set percentage of nodes that will affected bycontrolFlowFlattening. - Better
es2015support: correct obfuscation ofTemplateLiteral,ArrayPattern,AssignmentPatternnodes. - Obfuscation performance boost.
- Huge internal refactoring.
- Various bug fixes.
v0.8.6
- Additional fixes for https://github.com/javascript-obfuscator/javascript-obfuscator/issues/29
v0.8.5
v0.8.4
v0.8.3
selfDefendingoption now disabled by default.
v0.8.2
- New option
seedsets seed for random generator. This is useful for creating repeatable results. - IE8 runtime error fix.
v0.8.1
disableConsoleOutputoption now replacesconsole.xxxfunctions on empty function instead of infinity loop.
v0.8.0
- Breaking options change:
unicodeArrayoption has been renamed tostringArray. - Breaking options change:
unicodeArrayThresholdoption has been renamed tostringArrayThreshold. - Breaking options change:
encodeUnicodeArrayoption has been renamed tostringArrayEncodingand now accepts following values:true|false|'base64'|'rc4'. - Breaking change: option
wrapUnicodeArrayCallswas removed and now all calls tostringArrayare always wrapped by special wrapper function. - New option
unicodeEscapeSequenceallows to enable/disable strings conversion to unicode escape sequence. - New option
domainLocklocks the obfuscated source code so it only runs on specific domains and/or sub-domains. - New option
sourceMapBaseUrlsets base url to the source map import url whensourceMapMode: 'separate'. - Custom nodes like
selfDefendingNodeorconsoleOutputNodenow inserted into deepest stack trace function call. - Fixed obfuscation of global variables and function names in some cases.
- Fixed wrong obfuscation of labels.
- Rewrite of many custom nodes.
v0.7.3
- CLI missing polyfill fix #17
v0.7.2
v0.7.1
- IE error fix #14
v0.7.0-dev.3
- Obfuscator now returns an empty string instead of obfuscated code if source code is empty
v0.7.0-dev.2
- Fix of incorrect
Utils.decToHexmethod
v0.7.0-dev.1
- Breaking API change: now
obfuscate(sourceCode, options)returnsObfuscationResultobject insteadstring.ObfuscationResultobject contains two public methods:getObfuscatedCode()andgetSourceMap(). - CLI. Now any code can be obfuscated through CLI
javascript-obfuscatorcommand. SeeREADME.mdfor available options. - New option
sourceMapenables source map generation for obfuscated code. - New option
sourceMapModespecifies source map generation mode.