prettier 4.0.1 → 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 +16 -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 +6 -5
  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: cc23f62e5978531aa9efbdf2682381947187e51e04035d56c73d5b9a1f763f6f
4
- data.tar.gz: 342588a031d583d30159d31c6b6f12496aedfb08356464a7dcdd45f68d06f138
3
+ metadata.gz: d5a9354249ad3a6eabfd2a7428a80d502044d642ced87208c09ad851228218cb
4
+ data.tar.gz: '088007ad44d0774daf8a3b40cfed6dadc61d528e4e329932a3fbb36270e15b39'
5
5
  SHA512:
6
- metadata.gz: c054e1d6310ab2c4ce55a676a1d524e1f349d68df4c5947f612e2cb2caaf9a7e28f23af35d864d0d8d46ff6237dd0a83c751aac6dc60454c15dcadd53789c837
7
- data.tar.gz: b7a3112ad01bb8c214b469b30abfd362fc15895dcf785e5749eb5fcf77df8fb1e809a51e678813b9dfd0952b63130660d426dbcbf45842b11221dc2071ba096b
6
+ metadata.gz: 49d9ec602df56c98d0fc1c6751bf08939c3762f6bd256ae578be65acf8d415ddb50be7f0210a769a520ad9636d802cb13069f4a8461e7eac3879116fd6e39b46
7
+ data.tar.gz: 6c7b277cf8b896e89c4ddab36c2a6ac0383a92bc9c517d69914b6c51596d8d0e6f19d669605b6ade8346631d579dc7fee320d3f407acdd030b8991b76c95d83f
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.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
+
16
+ ## [4.0.2] - 2023-07-14
17
+
18
+ ### Changed
19
+
20
+ - [#1367](https://github.com/prettier/plugin-ruby/pull/1367) - kddnewton - Specify `prettier` as a peer dependency and not a runtime dependency.
21
+
9
22
  ## [4.0.1] - 2023-07-08
10
23
 
11
24
  ### Changed
@@ -1285,7 +1298,9 @@ would previously result in `array[]`, but now prints properly.
1285
1298
 
1286
1299
  - Initial release 🎉
1287
1300
 
1288
- [unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...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
1303
+ [4.0.2]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...v4.0.2
1289
1304
  [4.0.1]: https://github.com/prettier/plugin-ruby/compare/v4.0.0...v4.0.1
1290
1305
  [4.0.0]: https://github.com/prettier/plugin-ruby/compare/v3.2.2...v4.0.0
1291
1306
  [3.2.2]: https://github.com/prettier/plugin-ruby/compare/v3.2.1...v3.2.2
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