You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support optional chaining and nullish coalescing syntax #604
Acorn PR has been merged, now waiting for the escodegen PR.
Also estraverse does not support this syntax out of the box, but there is fallback property to ignore it.
I think that if I won't get any response during this week, I'll create the forks of escodegen (@javascript-obfuscator/escodegen package) and estraverse (@javascript-obfuscator/estraverse package) that will be used until these changes will be merged into the base repo
Activity
sanex3339 commentedon May 30, 2020
Hi. We have to wait until this PR will be merged
estools/escodegen#412
But that PR depends on
acornPR with this feature. So, expect this not so soon.tedgoddard commentedon Jun 5, 2020
Relevant Acorn PR: acornjs/acorn#891
sanex3339 commentedon Jun 11, 2020
AcornPR has been merged, now waiting for theescodegenPR.Also
estraversedoes not support this syntax out of the box, but there isfallbackproperty to ignore it.sanex3339 commentedon Jul 7, 2020
This PR estools/escodegen#412 makes me sad
sanex3339 commentedon Jul 7, 2020
I think that if I won't get any response during this week, I'll create the forks of
escodegen(@javascript-obfuscator/escodegenpackage) andestraverse(@javascript-obfuscator/estraversepackage) that will be used until these changes will be merged into the base repo[-]Support optional chaining syntax[/-][+]Support optional chaining and nullish coalescing syntax[/+]sanex3339 commentedon Jul 7, 2020
Also here is the PR with
nullish coalescingsupportestools/escodegen#417
sanex3339 commentedon Aug 6, 2020
Optional chaining has been merged on escodegen side!
sanex3339 commentedon Aug 6, 2020
Seems the last step is the PR for
esrecursebecauseeslint-scopeuses it.estools/esrecurse#22
sanex3339 commentedon Aug 6, 2020
#697
sanex3339 commentedon Aug 6, 2020
Optional chaining support has been merged. Expect the release with it later today.
sanex3339 commentedon Aug 6, 2020
Optional chaining support still requires estools/esrecurse#22 but right now I avoided it by using
Selective dependency resolutionsfeature ofyarnsanex3339 commentedon Aug 14, 2020
Optional chaining support just has been released as
1.10.0sanex3339 commentedon Nov 4, 2020
Will be released soon as
2.7.0