prettier 4.0.1 → 4.0.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -1
- data/README.md +12 -1
- data/node_modules/prettier/LICENSE +216 -326
- data/node_modules/prettier/README.md +3 -3
- data/node_modules/prettier/bin/prettier.cjs +3 -2
- data/node_modules/prettier/doc.d.ts +10 -7
- data/node_modules/prettier/doc.js +12 -24
- data/node_modules/prettier/doc.mjs +12 -24
- data/node_modules/prettier/index.cjs +22 -29
- data/node_modules/prettier/index.d.ts +71 -61
- data/node_modules/prettier/index.mjs +16061 -13848
- data/node_modules/prettier/internal/cli.mjs +380 -70
- data/node_modules/prettier/internal/internal.mjs +195 -6014
- data/node_modules/prettier/package.json +7 -2
- data/node_modules/prettier/plugins/acorn.js +12 -12
- data/node_modules/prettier/plugins/acorn.mjs +12 -12
- data/node_modules/prettier/plugins/angular.js +2 -2
- data/node_modules/prettier/plugins/angular.mjs +2 -2
- data/node_modules/prettier/plugins/babel.js +11 -11
- data/node_modules/prettier/plugins/babel.mjs +11 -11
- data/node_modules/prettier/plugins/estree.d.ts +1 -0
- data/node_modules/prettier/plugins/estree.js +25 -25
- data/node_modules/prettier/plugins/estree.mjs +25 -25
- data/node_modules/prettier/plugins/flow.js +17 -17
- data/node_modules/prettier/plugins/flow.mjs +17 -17
- data/node_modules/prettier/plugins/glimmer.js +22 -22
- data/node_modules/prettier/plugins/glimmer.mjs +22 -22
- data/node_modules/prettier/plugins/graphql.js +9 -9
- data/node_modules/prettier/plugins/graphql.mjs +9 -9
- data/node_modules/prettier/plugins/html.js +17 -17
- data/node_modules/prettier/plugins/html.mjs +17 -17
- data/node_modules/prettier/plugins/markdown.js +46 -46
- data/node_modules/prettier/plugins/markdown.mjs +46 -46
- data/node_modules/prettier/plugins/meriyah.js +5 -5
- data/node_modules/prettier/plugins/meriyah.mjs +5 -5
- data/node_modules/prettier/plugins/postcss.js +28 -28
- data/node_modules/prettier/plugins/postcss.mjs +28 -28
- data/node_modules/prettier/plugins/typescript.js +20 -22
- data/node_modules/prettier/plugins/typescript.mjs +20 -22
- data/node_modules/prettier/plugins/yaml.js +38 -38
- data/node_modules/prettier/plugins/yaml.mjs +39 -39
- data/node_modules/prettier/standalone.d.ts +1 -1
- data/node_modules/prettier/standalone.js +29 -26
- data/node_modules/prettier/standalone.mjs +29 -26
- data/package.json +6 -5
- data/src/plugin.js +10 -5
- data/src/server.rb +8 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5a9354249ad3a6eabfd2a7428a80d502044d642ced87208c09ad851228218cb
|
|
4
|
+
data.tar.gz: '088007ad44d0774daf8a3b40cfed6dadc61d528e4e329932a3fbb36270e15b39'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|