1. Apr 10, 2018
  2. Apr 09, 2018
  3. Apr 08, 2018
    • Vse Mozhet Byt's avatar
      tools: overhaul tools/doc/json.js · 9a6dd07e
      Vse Mozhet Byt authored
      Modernize:
      * Replace `var` with `const` / `let`.
      * Wrap `switch` cases with `const`/`let` in blocks.
      * Replace common functions with arrow functions.
      * Replace string concatenation with template literals.
      * Shorthand object literals.
      * Use destructuring and spread.
      
      Optimize:
      * Move RegExp declaration out of loops.
      * Replace `.match()` with `.test()` in boolean context.
      * Replace RegExp with string when string suffices.
      * Make RegExp more strict to reject unrelated cases.
      * Make RegExp do the trimming to eliminate many `.trim()` calls.
      * Cache retrieved object properties.
      * Remove conditions that cannot be false.
      * Remove code that seems obsolete
        (it means a state that cannot happen or is not typical).
      
      Clarify:
      * Sync code examples in comments with the actual source state.
      * Expand some one-letter variable names.
      * Rename confusingly similar variables.
      * Move variable declarations closer to their context.
      * Remove non-actual commented out code.
      * Unify blank lines betw...
      9a6dd07e
    • Ujjwal Sharma's avatar
      doc: update language regarding key stretching · 0a679327
      Ujjwal Sharma authored
      Update the docs to provide clearer instructions regarding the exact
      scope of the use (and re-use) of an IV, stating the instructions
      explicitly with greater clarity.
      
      PR-URL: https://github.com/nodejs/node/pull/19810
      Fixes: https://github.com/nodejs/node/issues/19748
      
      
      Reviewed-By: default avatarVse Mozhet Byt <vsemozhetbyt@gmail.com>
      Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
      Reviewed-By: default avatarTobias Nießen <tniessen@tnie.de>
      0a679327
  4. Apr 07, 2018
  5. Apr 06, 2018