prettier 4.0.2 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -1
  3. data/README.md +12 -1
  4. data/node_modules/prettier/LICENSE +216 -326
  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 +12 -24
  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 +71 -61
  12. data/node_modules/prettier/index.mjs +16061 -13848
  13. data/node_modules/prettier/internal/cli.mjs +380 -70
  14. data/node_modules/prettier/internal/internal.mjs +195 -6014
  15. data/node_modules/prettier/package.json +7 -2
  16. data/node_modules/prettier/plugins/acorn.js +12 -12
  17. data/node_modules/prettier/plugins/acorn.mjs +12 -12
  18. data/node_modules/prettier/plugins/angular.js +2 -2
  19. data/node_modules/prettier/plugins/angular.mjs +2 -2
  20. data/node_modules/prettier/plugins/babel.js +11 -11
  21. data/node_modules/prettier/plugins/babel.mjs +11 -11
  22. data/node_modules/prettier/plugins/estree.d.ts +1 -0
  23. data/node_modules/prettier/plugins/estree.js +25 -25
  24. data/node_modules/prettier/plugins/estree.mjs +25 -25
  25. data/node_modules/prettier/plugins/flow.js +17 -17
  26. data/node_modules/prettier/plugins/flow.mjs +17 -17
  27. data/node_modules/prettier/plugins/glimmer.js +22 -22
  28. data/node_modules/prettier/plugins/glimmer.mjs +22 -22
  29. data/node_modules/prettier/plugins/graphql.js +9 -9
  30. data/node_modules/prettier/plugins/graphql.mjs +9 -9
  31. data/node_modules/prettier/plugins/html.js +17 -17
  32. data/node_modules/prettier/plugins/html.mjs +17 -17
  33. data/node_modules/prettier/plugins/markdown.js +46 -46
  34. data/node_modules/prettier/plugins/markdown.mjs +46 -46
  35. data/node_modules/prettier/plugins/meriyah.js +5 -5
  36. data/node_modules/prettier/plugins/meriyah.mjs +5 -5
  37. data/node_modules/prettier/plugins/postcss.js +28 -28
  38. data/node_modules/prettier/plugins/postcss.mjs +28 -28
  39. data/node_modules/prettier/plugins/typescript.js +20 -22
  40. data/node_modules/prettier/plugins/typescript.mjs +20 -22
  41. data/node_modules/prettier/plugins/yaml.js +38 -38
  42. data/node_modules/prettier/plugins/yaml.mjs +39 -39
  43. data/node_modules/prettier/standalone.d.ts +1 -1
  44. data/node_modules/prettier/standalone.js +29 -26
  45. data/node_modules/prettier/standalone.mjs +29 -26
  46. data/package.json +4 -4
  47. data/src/plugin.js +10 -5
  48. data/src/server.rb +8 -3
  49. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b615c78701b85a934e803ce85ebcd12b243e8d52a05c6f35eb998281339c35ea
4
- data.tar.gz: a2e897d33d3b196d3b3191a27b7e5185e45085eec56a4fa118c824f130a22fbf
3
+ metadata.gz: d5a9354249ad3a6eabfd2a7428a80d502044d642ced87208c09ad851228218cb
4
+ data.tar.gz: '088007ad44d0774daf8a3b40cfed6dadc61d528e4e329932a3fbb36270e15b39'
5
5
  SHA512:
6
- metadata.gz: f7baf9ed2953155ed2ea056dea87fa2c4fc9322888b59359426d8ee1bf0da24cb979ded1531935af980bfc693dca1bfc9ea0f6e6530eb1634f2d4c7d12584760
7
- data.tar.gz: 92879359c7a3e26c36bd1400f659f7d6347bf4822effad81603430252f64707dee60a0e2353d5bace32bfce7ad7abe2a9ba83106425b7e70fd04dd1f92f27995
6
+ metadata.gz: 49d9ec602df56c98d0fc1c6751bf08939c3762f6bd256ae578be65acf8d415ddb50be7f0210a769a520ad9636d802cb13069f4a8461e7eac3879116fd6e39b46
7
+ data.tar.gz: 6c7b277cf8b896e89c4ddab36c2a6ac0383a92bc9c517d69914b6c51596d8d0e6f19d669605b6ade8346631d579dc7fee320d3f407acdd030b8991b76c95d83f
data/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@ 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.3] - 2023-11-27
10
+
11
+ ### Changed
12
+
13
+ - [#1406](https://github.com/prettier/plugin-ruby/pull/1406) - mikesea - Support running without the RBS or Haml plugins loaded.
14
+ - [#1407](https://github.com/prettier/plugin-ruby/pull/1407) - hrabe - Support shimmed Ruby versions.
15
+
9
16
  ## [4.0.2] - 2023-07-14
10
17
 
11
18
  ### Changed
@@ -1291,7 +1298,8 @@ would previously result in `array[]`, but now prints properly.
1291
1298
 
1292
1299
  - Initial release 🎉
1293
1300
 
1294
- [unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...HEAD
1301
+ [unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.3...HEAD
1302
+ [4.0.3]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...v4.0.3
1295
1303
  [4.0.2]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...v4.0.2
1296
1304
  [4.0.1]: https://github.com/prettier/plugin-ruby/compare/v4.0.0...v4.0.1
1297
1305
  [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