0xdevalias / chatgpt-source-watch

Analyzing the evolution of ChatGPT's codebase through time with curated archives and scripts
https://github.com/0xdevalias/chatgpt-source-watch/blob/main/CHANGELOG.md
Other
274 stars 16 forks source link

Bump webcrack from 2.12.0 to 2.14.1 #14

Open dependabot[bot] opened 3 months ago

dependabot[bot] commented 3 months ago

Bumps webcrack from 2.12.0 to 2.14.1.

Release notes

Sourced from webcrack's releases.

v2.14.1

Security

Unminify

  • Fixed a Maximum call stack size exceeded error on some comparisons (NaN == NaN)

v2.14.0

Unminify

  • No longer extract sequence from while (a(), b()) c();
  • No longer invert relational operators (!(a > b); -> a <= b) due to breaking with NaN
  • Faster unminify (mainly string merging and numeric expressions)
  • Remove double negations: if (!!a) b(); -> if (a) b(); in if, ternary, array.filter
  • Extract sequence from for-of: for (let value of (a = 1, array)) {} -> a = 1; for (let value of array) {}
  • Mangle: names are inferred based on type (variable, function, parameter, class) and some expressions:
var iîiíiîï = exports;
function iìíïîíï(iïîiïîï, iìíìïîî, iìiiïiî) {
  var iïíïíiî = Array(Math.max(iïîiïîï.bitLength(), iìiiïiî) + 1);
  iïíïíiî.fill(0);
  var iiïiïîï = 1 << iìíìïîî + 1;
  var iìîíiîí = iïîiïîï.clone();

->

var vExports = exports;
function f(p, p2, p3) {
  var vArray = Array(Math.max(p.bitLength(), p3) + 1);
  vArray.fill(0);
  var v = 1 << p2 + 1;
  var v2 = p.clone();

Transpile

  • Fixed default parameters offset issue
  • Transpile default parameter with value true or false
  • Transpile default destructuring parameters:
function f() {
  let { x, y } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  let [z] = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
}
</tr></table> 

... (truncated)

Commits
  • 70064cf 2.14.1
  • 4bc5c6f fix: path traversal on windows
  • 73d8afb fix: "Maximum call stack size exceeded" when flipping comparisons
  • 241f946 fix: enable parser error recovery (#102)
  • 9561376 build: fix package name
  • 9b33dff 2.14.0
  • 6acf084 fix: keep value when inlining variable (#101)
  • 0b619e5 feat: configurable smart rename (#100)
  • 2b311e0 docs: remove while(sequence) example
  • d04f0bf fix: inlined control flow function that isn't called
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/0xdevalias/chatgpt-source-watch/network/alerts).