Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34f02bd

Browse files
author
Sosuke Suzuki
committed
Release 3.5.1
1 parent 61c0129 commit 34f02bd

File tree

5 files changed

+31
-19
lines changed

5 files changed

+31
-19
lines changed

.github/ISSUE_TEMPLATE/formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Don't fill the form below manually! Let a program create a report for you:
2626
2727
-->
2828

29-
**Prettier 3.5.0**
29+
**Prettier 3.5.1**
3030
[Playground link](https://prettier.io/playground/#.....)
3131

3232
```sh

.github/ISSUE_TEMPLATE/integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
2020

2121
**Environments:**
2222

23-
- Prettier Version: 3.5.0
23+
- Prettier Version: 3.5.1
2424
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
2525
- Runtime: <!-- Node.js v14, Chrome v83, etc. -->
2626
- Operating System: <!-- Windows, Linux, macOS, etc. -->

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 3.5.1
2+
3+
[diff](https://github.com/prettier/prettier/compare/3.5.0...3.5.1)
4+
5+
#### Fix CLI crash when cache for old version exists ([#17100](https://github.com/prettier/prettier/pull/17100) by [@sosukesuzuki](https://github.com/sosukesuzuki))
6+
7+
Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.
8+
9+
#### Support dockercompose and github-actions-workflow in VSCode ([#17101](https://github.com/prettier/prettier/pull/17101) by [@remcohaszing](https://github.com/remcohaszing))
10+
11+
Prettier now supports the `dockercompose` and `github-actions-workflow` languages in Visual Studio Code.
12+
113
# 3.5.0
214

315
[diff](https://github.com/prettier/prettier/compare/3.4.2...3.5.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prettier",
3-
"version": "3.6.0-dev",
3+
"version": "3.5.1",
44
"description": "Prettier is an opinionated code formatter",
55
"bin": "./bin/prettier.cjs",
66
"repository": "prettier/prettier",

website/versioned_docs/version-stable/browser.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Required options:
1818

1919
- **[`parser`](options.md#parser) (or [`filepath`](options.md#file-path))**: One of these options has to be specified for Prettier to know which parser to use.
2020

21-
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource-options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in [https://unpkg.com/browse/[email protected].0/plugins](https://unpkg.com/browse/[email protected].0/plugins). Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
21+
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource-options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files in [https://unpkg.com/browse/[email protected].1/plugins](https://unpkg.com/browse/[email protected].1/plugins). Note that `estree` plugin should be loaded when printing JavaScript, TypeScript, Flow, or JSON.
2222

2323
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
2424

@@ -29,8 +29,8 @@ See below for examples.
2929
### Global
3030

3131
```html
32-
<script src="https://unpkg.com/[email protected].0/standalone.js"></script>
33-
<script src="https://unpkg.com/[email protected].0/plugins/graphql.js"></script>
32+
<script src="https://unpkg.com/[email protected].1/standalone.js"></script>
33+
<script src="https://unpkg.com/[email protected].1/plugins/graphql.js"></script>
3434
<script>
3535
(async () => {
3636
const formatted = await prettier.format("type Query { hello: String }", {
@@ -47,8 +47,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
4747

4848
```html
4949
<script type="module">
50-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
51-
import prettierPluginGraphql from "https://unpkg.com/[email protected].0/plugins/graphql.mjs";
50+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
51+
import prettierPluginGraphql from "https://unpkg.com/[email protected].1/plugins/graphql.mjs";
5252
5353
const formatted = await prettier.format("type Query { hello: String }", {
5454
parser: "graphql",
@@ -61,8 +61,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
6161

6262
```js
6363
define([
64-
"https://unpkg.com/[email protected].0/standalone.js",
65-
"https://unpkg.com/[email protected].0/plugins/graphql.js",
64+
"https://unpkg.com/[email protected].1/standalone.js",
65+
"https://unpkg.com/[email protected].1/plugins/graphql.js",
6666
], async (prettier, ...plugins) => {
6767
const formatted = await prettier.format("type Query { hello: String }", {
6868
parser: "graphql",
@@ -90,8 +90,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
9090
### Worker
9191

9292
```js
93-
importScripts("https://unpkg.com/[email protected].0/standalone.js");
94-
importScripts("https://unpkg.com/[email protected].0/plugins/graphql.js");
93+
importScripts("https://unpkg.com/[email protected].1/standalone.js");
94+
importScripts("https://unpkg.com/[email protected].1/plugins/graphql.js");
9595

9696
(async () => {
9797
const formatted = await prettier.format("type Query { hello: String }", {
@@ -107,9 +107,9 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
107107

108108
```html
109109
<script type="module">
110-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
111-
import prettierPluginBabel from "https://unpkg.com/[email protected].0/plugins/babel.mjs";
112-
import prettierPluginEstree from "https://unpkg.com/[email protected].0/plugins/estree.mjs";
110+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
111+
import prettierPluginBabel from "https://unpkg.com/[email protected].1/plugins/babel.mjs";
112+
import prettierPluginEstree from "https://unpkg.com/[email protected].1/plugins/estree.mjs";
113113
114114
console.log(
115115
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {
@@ -125,10 +125,10 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
125125

126126
```html
127127
<script type="module">
128-
import * as prettier from "https://unpkg.com/[email protected].0/standalone.mjs";
129-
import prettierPluginBabel from "https://unpkg.com/[email protected].0/plugins/babel.mjs";
130-
import prettierPluginEstree from "https://unpkg.com/[email protected].0/plugins/estree.mjs";
131-
import prettierPluginHtml from "https://unpkg.com/[email protected].0/plugins/html.mjs";
128+
import * as prettier from "https://unpkg.com/[email protected].1/standalone.mjs";
129+
import prettierPluginBabel from "https://unpkg.com/[email protected].1/plugins/babel.mjs";
130+
import prettierPluginEstree from "https://unpkg.com/[email protected].1/plugins/estree.mjs";
131+
import prettierPluginHtml from "https://unpkg.com/[email protected].1/plugins/html.mjs";
132132
133133
console.log(
134134
await prettier.format("const html=/* HTML */ `<DIV> </DIV>`", {

0 commit comments

Comments
 (0)