prettier 4.0.2 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -1
  3. data/README.md +12 -1
  4. data/node_modules/prettier/LICENSE +227 -408
  5. data/node_modules/prettier/README.md +3 -3
  6. data/node_modules/prettier/bin/prettier.cjs +3 -2
  7. data/node_modules/prettier/doc.d.ts +10 -7
  8. data/node_modules/prettier/doc.js +17 -29
  9. data/node_modules/prettier/doc.mjs +12 -24
  10. data/node_modules/prettier/index.cjs +22 -29
  11. data/node_modules/prettier/index.d.ts +76 -68
  12. data/node_modules/prettier/index.mjs +16274 -13541
  13. data/node_modules/prettier/internal/cli.mjs +388 -79
  14. data/node_modules/prettier/package.json +7 -3
  15. data/node_modules/prettier/plugins/acorn.js +12 -12
  16. data/node_modules/prettier/plugins/acorn.mjs +12 -12
  17. data/node_modules/prettier/plugins/angular.js +1 -2
  18. data/node_modules/prettier/plugins/angular.mjs +1 -2
  19. data/node_modules/prettier/plugins/babel.js +11 -11
  20. data/node_modules/prettier/plugins/babel.mjs +11 -11
  21. data/node_modules/prettier/plugins/estree.d.ts +1 -0
  22. data/node_modules/prettier/plugins/estree.js +26 -26
  23. data/node_modules/prettier/plugins/estree.mjs +26 -26
  24. data/node_modules/prettier/plugins/flow.js +17 -17
  25. data/node_modules/prettier/plugins/flow.mjs +17 -17
  26. data/node_modules/prettier/plugins/glimmer.js +22 -22
  27. data/node_modules/prettier/plugins/glimmer.mjs +22 -22
  28. data/node_modules/prettier/plugins/graphql.js +9 -9
  29. data/node_modules/prettier/plugins/graphql.mjs +9 -9
  30. data/node_modules/prettier/plugins/html.js +17 -17
  31. data/node_modules/prettier/plugins/html.mjs +17 -17
  32. data/node_modules/prettier/plugins/markdown.js +46 -46
  33. data/node_modules/prettier/plugins/markdown.mjs +46 -46
  34. data/node_modules/prettier/plugins/meriyah.js +5 -5
  35. data/node_modules/prettier/plugins/meriyah.mjs +5 -5
  36. data/node_modules/prettier/plugins/postcss.js +28 -28
  37. data/node_modules/prettier/plugins/postcss.mjs +28 -28
  38. data/node_modules/prettier/plugins/typescript.js +20 -22
  39. data/node_modules/prettier/plugins/typescript.mjs +20 -22
  40. data/node_modules/prettier/plugins/yaml.js +38 -38
  41. data/node_modules/prettier/plugins/yaml.mjs +39 -39
  42. data/node_modules/prettier/standalone.d.ts +2 -2
  43. data/node_modules/prettier/standalone.js +31 -31
  44. data/node_modules/prettier/standalone.mjs +31 -31
  45. data/package.json +4 -4
  46. data/src/plugin.js +13 -5
  47. data/src/server.rb +8 -3
  48. metadata +2 -3
  49. data/node_modules/prettier/internal/internal.mjs +0 -6531
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b615c78701b85a934e803ce85ebcd12b243e8d52a05c6f35eb998281339c35ea
4
- data.tar.gz: a2e897d33d3b196d3b3191a27b7e5185e45085eec56a4fa118c824f130a22fbf
3
+ metadata.gz: e23318c4ecbba93027a77783c06a53a824c84f9d28bffaa959d1aa2ebdffe842
4
+ data.tar.gz: 0d26d619f830e9516e493efa6d3264315a9af728707bc3869d5d67fe659546e2
5
5
  SHA512:
6
- metadata.gz: f7baf9ed2953155ed2ea056dea87fa2c4fc9322888b59359426d8ee1bf0da24cb979ded1531935af980bfc693dca1bfc9ea0f6e6530eb1634f2d4c7d12584760
7
- data.tar.gz: 92879359c7a3e26c36bd1400f659f7d6347bf4822effad81603430252f64707dee60a0e2353d5bace32bfce7ad7abe2a9ba83106425b7e70fd04dd1f92f27995
6
+ metadata.gz: 311de395f7a33b53f0c57764473984006988f6225f565bf4ea84bcc65c803ad34fcfd19ab02f20d500952879c1b4d3d725b35492de7117271b17285160949389
7
+ data.tar.gz: ca32227c84bc54c62852ceb885e6997f88f04fa4bbd61b0fa00229b860900d894f9c2ceb65a2d6e8d5c10dabccd190e0719b582fea6264775de156be1abff574
data/CHANGELOG.md CHANGED
@@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [4.0.4] - 2023-12-12
10
+
11
+ ### Changed
12
+
13
+ - [#1413](https://github.com/prettier/plugin-ruby/pull/1413) - hrabe - Fix the cwd detection for mono-repos.
14
+
15
+ ## [4.0.3] - 2023-11-27
16
+
17
+ ### Changed
18
+
19
+ - [#1406](https://github.com/prettier/plugin-ruby/pull/1406) - mikesea - Support running without the RBS or Haml plugins loaded.
20
+ - [#1407](https://github.com/prettier/plugin-ruby/pull/1407) - hrabe - Support shimmed Ruby versions.
21
+
9
22
  ## [4.0.2] - 2023-07-14
10
23
 
11
24
  ### Changed
@@ -1291,7 +1304,9 @@ would previously result in `array[]`, but now prints properly.
1291
1304
 
1292
1305
  - Initial release 🎉
1293
1306
 
1294
- [unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...HEAD
1307
+ [unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.4...HEAD
1308
+ [4.0.4]: https://github.com/prettier/plugin-ruby/compare/v4.0.3...v4.0.4
1309
+ [4.0.3]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...v4.0.3
1295
1310
  [4.0.2]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...v4.0.2
1296
1311
  [4.0.1]: https://github.com/prettier/plugin-ruby/compare/v4.0.0...v4.0.1
1297
1312
  [4.0.0]: https://github.com/prettier/plugin-ruby/compare/v3.2.2...v4.0.0
data/README.md CHANGED
@@ -97,7 +97,18 @@ gem install bundler prettier_print syntax_tree syntax_tree-haml syntax_tree-rbs
97
97
  The `prettier` executable is now installed and ready for use:
98
98
 
99
99
  ```bash
100
- ./node_modules/.bin/prettier --write '**/*'
100
+ ./node_modules/.bin/prettier --plugin=@prettier/plugin-ruby --write '**/*'
101
+ ```
102
+
103
+ ### Using Prettier >= 3.0
104
+
105
+ You need to tell Prettier to use the plugin, add the following to your existing [prettier configuration
106
+ file](https://prettier.io/docs/en/configuration.html).
107
+
108
+ ```json
109
+ {
110
+ "plugins": ["@prettier/plugin-ruby"]
111
+ }
101
112
  ```
102
113
 
103
114
  ## Configuration