Socket
Socket
Sign inDemoInstall

@prettier/plugin-ruby

Package Overview
Dependencies
1
Maintainers
13
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
8Next

3.1.0

Diff

Changelog

Source

[3.1.0] - 2022-05-12

Added

  • #1224 - kddnewton - Support passing the rubyPlugins option to configure Syntax Tree.
kddeisz
published 3.0.0 •

Changelog

Source

[3.0.0] - 2022-05-04

Added

  • #1190 - kddnewton - Encoding for source files is now guessed in a much better way.

Changed

  • #1198 - pas-f, kddnewton - Fix crashes on JRuby with do blocks.
  • #1131 - hyrious, kddnewton - Ensure zombie processes are not left around when the server exits.
  • #1206 - kddnewton - Switch back to plain JavaScript for development.
  • #1190 - kddnewton - Switch over to using Syntax Tree for the backend. This now requires that users install the necessary gems.

Removed

  • #1190 - kddnewton - The configuration options have been removed. Instead, configuration is to be done through modifying Syntax Tree.
kddeisz
published 2.1.0 •

Changelog

Source

[2.1.0] - 2022-04-04

Added

  • #1065 - langalex, kddnewton - The ability to set the PRETTIER_RUBY_TIMEOUT_MS environment variable to control how long to wait for the parser server to spin up.
  • #1173 - dleavitt - Support for RBS 2.x on Ruby 3.1.

Changed

  • #1028 - levymetal, kddnewton - Fix up some nested formatting with very complicated RSpec assertions.
  • #1035 - qcn, kddnewton - Ensure we don't try to print return incorrectly when multiple statements are contained within parentheses.
  • #1048 - kddnewton - Completely refactor the Ruby parser to use classes instead of hashes. Also remove a lot of the body keys are replace them with actual names.
  • #1042 - JoshuaKGoldberg, kddnewton - Ensure blocks are printed correctly when there are trailing comments on the do keyword.
  • #1134 - mhssmnn - Fix piping for STDIN to the gem process.
  • #1167 - dleavitt - More consistent assignment indentation.
  • #1074 - wagenet, kddnewton - Fix up return when nodes return arrays of docs.

Removed

  • #1048 - kddnewton - Drop support for Ruby 2.5.
kddeisz
published 2.0.0 •

Changelog

Source

[2.0.0] - 2021-10-28

Changed

  • #1018 - rindek, kddnewton - Ensure brackets are used when matching an array pattern with a single element.
  • #906 - Hansenq, kddnewton - Turn off the Style/MultilineBlockChain rubocop rule in our shipped configuration because multiple chained method calls with blocks can potentially conflict with rubocop's desired output.
kddeisz
published 2.0.0-rc4 •

Changelog

Source

[2.0.0-rc4] - 2021-10-18

Added

  • #993 - kddnewton - Nicer error message if you don't have the necessary JavaScript files to run prettier.
  • #996 - nbudin - Allow @prettier/plugin-ruby to run in yarn's plug'n'play mode.

Changed

  • #1000 - nbudin, kddnewton - Fix for rescuing single top-level exceptions in rescue clauses.
kddeisz
published 2.0.0-rc3 •

Changelog

Source

[2.0.0-rc3] - 2021-10-01

Changed

  • #987 - valscion - Ignore stderr when checking for node <-> ruby connection clients, restoring the behavior of v1.x
  • #989 - hubertjakubiak, kddnewton - Make sure comments after the keyword/lbrace are not moved inside the body of the statements of do and brace blocks.
kddeisz
published 2.0.0-rc2 •

Changelog

Source

[2.0.0-rc2] - 2021-09-30

Added

  • #979 - ronocod, kddnewton - Alignment of to_not is explicitly allowed to not indent to better support rspec.
  • #894 - mister-what, kddnewton - Add a warning that this plugin will not function with the plug'n'play filesystem provided by yarn berry.

Changed

  • #943 - valscion, kddnewton - Trailing call operators that are followed by comments should stay on the first line.
kddeisz
published 2.0.0-rc1 •

Changelog

Source

[2.0.0-rc1] - 2021-09-30

Added

  • #949 - kddnewton - Converted over to using TypeScript for development.

Changed

  • #958 - mharris-figma, kddnewton - Handle optional do keyword in for loop expressions.
  • #926 - jscheid, kddnewton - Better error handling in case certain expected keywords or operators are missing.
  • #819 - coisnepe, kddnewton - Ensure that comments placed immediately after the left parenthesis of a method definition are not moved into the body of the methods.
  • #957 - azz, kddnewton - Make it so that the format pragma does not have to be on the first line of the file.
  • #895 - rsslldnphy, kddnewton - Ensure quotes are properly escaped in the content of a hash value for HAML attributes.
  • #900 - rsslldnphy, kddnewton - Ensure that in a HAML line where you have interpolation inside of a tag content that you print it properly.
  • #929 - ryanb, kddnewton - Deeply nested blocks should not break their call chains.
  • #935 - nbudin, mlauter - Ensure embedded formatting heredocs are properly indented.
  • #975 - kddnewton - Refactor the way we determine how to connect to the parser server.

Removed

  • #976 - kddnewton - Remove the rubyNetcatCommand option, as it should no longer be necessary.
kddeisz
published 1.6.1 •

Changelog

Source

[1.6.1] - 2021-06-30

Changed

  • #862 - azz, kddnewton - Group together .where.not calls in method chains.
  • #863 - azz, kddnewton - Fix up Sorbet sig block formatting when chaining method calls.
  • #908 - Hansenq, kddnewton - Method chains with blocks should be properly indented.
  • #916 - pbrisbin, kddnewton - Ensure all of the necessary files are present in the gem.
  • #917 - jscheid, kddnewton - Ensure hash keys with dynamic symbols don't strip their quotes.
kddeisz
published 1.6.0 •

Changelog

Source

[1.6.0] - 2021-06-23

Added

  • #859 - azz, kddnewton - Support the --insert-pragma option for the incremental adoption workflow.
  • #904 - Hansenq, kddnewton - Support the %s symbol literal syntax.
  • #833 - kddnewton - Support for prettier >= v2.3.0.

Changed

  • #854 - jflinter, kddnewton - Parentheses should not be stripped from optional RBS union types.
  • #888 - MaxNotarangelo, kddnewton - Ensure parentheses wrap conditionals that get transformed into the modifier form when they're used within a binary node.
  • #874 - yratanov, kddnewton - Ensure that method calls chained onto the ends of blocks still print their arguments.
  • #897 - Hansenq - Reenable the Layout/LineLength rubocop rule in our shipped config so that line lengths for other cops are calculated correctly.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc