Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prettier/plugin-ruby

Package Overview
Dependencies
Maintainers
13
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prettier/plugin-ruby - npm Package Versions

1
8

1.5.5

Diff

Changelog

Source

[1.5.5] - 2021-03-25

Changed

  • #841 - LoganBarnett, kddnewton - Better error messaging for when unix sockets are not supported by netcat.
  • #844 - andyw8, kddnewton - Ensure we ship all of the parsers with the prettier gem so that rbprettier can parse other languages as well.
  • #847 - jflinter, kddnewton - Ensure parentheses are present on union return types in RBS.
  • #850 - maethub, kddnewton - Ensure double quotes are used even when single quotes are requested for HAML attribute values.
  • #849 - indirect, kddnewton - Support HAML version <= 5.1 multi-line attributes.
  • #810 - valscion, kddnewton - Make it so that brace blocks containing heredocs have the correct end line so that they format subsequent statements correctly.
kddeisz
published 1.5.4 •

Changelog

Source

[1.5.4] - 2021-03-17

Changed

  • #835 - valscion, kddnewton - Array splat operator should not get moved by leading comments.
  • #836 - valscion, kddnewton - Array splat operator should not get moved by trailing comments.
  • #821 - jscheid, kddnewton - Better error handling when using GNU netcat.
kddeisz
published 1.5.3 •

Changelog

Source

[1.5.3] - 2021-02-28

Changed

  • #812 - valscion, kddnewton - Splats and blocks within args that have comments attached should place their respective operators in the right place.
  • #816 - valscion - Document RuboCop's Style/Lambda should be disabled
  • #814 - jscheid, kddnewton - Provide better errors when the source location of the error is known.
kddeisz
published 1.5.2 •

Changelog

Source

[1.5.2] - 2021-02-03

Changed

  • kddnewton - Fix up binary node comparison operators so that it will handle either Symbol literals or the @op nodes which are incorrectly coming from JRuby (https://github.com/jruby/jruby/issues/6548).
kddeisz
published 1.5.1 •

Changelog

Source

[1.5.1] - 2021-01-27

Changed

  • #799 - jscheid, kddnewton - Multi-byte characters shouldn't give invalid source string bounds.
  • #801 - jscheid, kddnewton - When converting a conditional to the modifier form, make sure to add parentheses if there is a chained method call.
  • #803 - jscheid, kddnewton - Fix formatWithCursor support to match new parser format.
kddeisz
published 1.5.0 •

Changelog

Source

[1.5.0] - 2021-01-21

Added

  • kddnewton - Add .rbi as a file type that we support.

Changed

  • #795 djrodgerspryor, kddnewton - Trailing comments attached to empty arrays should not multiply.
  • #794 djrodgerspryor, kddnewton - Fix embedded parser parsing by stripping common leading whitespace before passing on the content.
  • #793 djrodgerspryor, kddnewton - Do not include trailing commas on arguments within arg_paren nodes if they could not be parsed with them (command and command_call).
  • #788 clarkdave, kddnewton - Break child hashes within a multi-line hash regardless of whether or not they can fit on one line.
  • kddnewton - Stop using ; to separate empty class definitions, module definitions, and loops.
kddeisz
published 1.4.0 •

Changelog

Source

[1.4.0] - 2021-01-15

Added

  • ianks, kddnewton - Use netcat to communicate to a parser server for better performance when formatting multiple files.

Changed

  • jeffcarbs, kddnewton - Long strings with interpolated expressions should only break if the contents in the original source is broken.
  • johannesluedke, kddnewton - Fix for rescues with inline comments.
  • johncsnyder, kddnewton - Comments should not attach to nodes beyond a double newline.
  • blampe, kddnewton - Comments inside of a broken method chain get dropped.
  • clarkdave, kddnewton - Don't ignore Sorbet sig transformations.
kddeisz
published 1.3.0 •

Changelog

Source

[1.3.0] - 2021-01-05

Added

  • kddnewton - Handling of the RBS language.
  • kddnewton - Incorporate the HAML plugin.
kddeisz
published 1.2.5 •

Changelog

Source

[1.2.5] - 2021-01-04

Changed

  • nruth, kddnewton - Ensure unary operators on method calls that are sending operators get the correct scanner events.
  • cvoege, kddnewton - Do not add parentheses when they're not needed to non-breaking command_calls with ternary arguments.
  • valscion, kddnewton - Print method chains more nicely off array and hash literals.
kddeisz
published 1.2.4 •

Changelog

Source

[1.2.4] - 2021-01-03

Added

  • andyw8 - Explain usage with Rubocop, as well as shipping a rubocop.yml config.

Changed

  • kddnewton - Reduce JSON size passing from Ruby process to node process by changing char_start -> sc, char_end -> ec, start -> sl, end -> el.
  • kddnewton - Up the max buffer size between the Ruby and node processes to 15K.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc