Changelog


← Back to all posts

v1.0.5

February 13, 2023

This release adds support for Sourcery's (alpha-stage) multi-language functionality in its Language Server implementation. Alpha testers may begin to see refactorings suggested for JavaScript and TypeScript files in their Language-Server compatible IDEs, such as VSCode.

If you are interested in getting access to the Beta for Sourcery for Javascript and Typescript, please sign up here.

Full changelog

Added

  • assignment-operator javascript rule
  • avoid-using-var javascript rule
  • binary-operator-identity javascript rule
  • de-morgan javascript rule
  • flatten-nested-try javascript rule
  • flip-comparison javascript rule
  • invert-ternary javascript rule
  • max-min javascript rule
  • merge-assign-operators javascript rule
  • merge-else-if javascript rule
  • merge_nested_ifs javascript rule
  • no-new-function javascript rule
  • prefer-arrow-callback javascript rule
  • simplify-ternary javascript rule
  • use-array-literal javascript rule
  • use-object-destructuring javascript rule
  • use-ternary-operator javascript rule
  • while-guard-to-condition javascript rule
  • wrap-immediately-invoked-function-expressions javascript rule

Changed

  • swap-if-expression will no longer trigger where there are nested if expressions.
  • Split docstrings-for-packages out from the docstrings-for-modules GPSG rule.

Fixed

  • Hex conversion issue in multi-language support mode
  • Issue with returning overlapping matches in blocks in multi-language support mode
  • Incorrect conversion of 0/0 in js binary-operator-identity rule.