Release 2.0.4
This commit is contained in:
1 parent
50335bf5b9
commit
61ca50df67
8 files changed
+23
-17
No files matched your search
@@ -26,7 +26,7 @@ Tip! Don't write this stuff manually.
|
||||
|
||||
-->
|
||||
|
||||
**Prettier 2.0.3**
|
||||
**Prettier 2.0.4**
|
||||
[Playground link](https://prettier.io/playground/#.....)
|
||||
|
||||
```sh
|
||||
|
||||
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
|
||||
|
||||
**Environments:**
|
||||
|
||||
- Prettier Version: 2.0.3
|
||||
- Prettier Version: 2.0.4
|
||||
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
|
||||
- Runtime: <!-- Node.js v6, Chrome v67, etc. -->
|
||||
- Operating System: <!-- Windows, Linux, macOS, etc. -->
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
# 2.0.4
|
||||
|
||||
[diff](https://github.com/prettier/prettier/compare/2.0.3...2.0.4)
|
||||
|
||||
#### Revert [#7869](https://github.com/prettier/prettier/pull/7869), "[TypeScript] format TSAsExpression with same logic as BinaryExpression" ([#7958](https://github.com/prettier/prettier/pull/7958))
|
||||
|
||||
# 2.0.3
|
||||
|
||||
[diff](https://github.com/prettier/prettier/compare/2.0.2...2.0.3)
|
||||
|
||||
+6
-6
@@ -16,8 +16,8 @@ See [Usage](#usage) below for examples.
|
||||
### Global
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/prettier@2.0.3/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.3/parser-graphql.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.4/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.4/parser-graphql.js"></script>
|
||||
<script>
|
||||
prettier.format("query { }", {
|
||||
parser: "graphql",
|
||||
@@ -42,8 +42,8 @@ prettier.format("query { }", {
|
||||
|
||||
```js
|
||||
define([
|
||||
"https://unpkg.com/prettier@2.0.3/standalone.js",
|
||||
"https://unpkg.com/prettier@2.0.3/parser-graphql.js",
|
||||
"https://unpkg.com/prettier@2.0.4/standalone.js",
|
||||
"https://unpkg.com/prettier@2.0.4/parser-graphql.js",
|
||||
], (prettier, ...plugins) => {
|
||||
prettier.format("query { }", { parser: "graphql", plugins });
|
||||
});
|
||||
@@ -62,7 +62,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
|
||||
### Worker
|
||||
|
||||
```js
|
||||
importScripts("https://unpkg.com/prettier@2.0.3/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.3/parser-graphql.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.4/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.4/parser-graphql.js");
|
||||
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
|
||||
```
|
||||
+1
-1
@@ -24,5 +24,5 @@ npm install --global prettier
|
||||
If you use `npx` to run Prettier, the version should be pinned like this:
|
||||
|
||||
```bash
|
||||
npx prettier@2.0.3 . --write
|
||||
npx prettier@2.0.4 . --write
|
||||
```
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "prettier",
|
||||
"version": "2.1.0-dev",
|
||||
"version": "2.0.4",
|
||||
"description": "Prettier is an opinionated code formatter",
|
||||
"bin": "./bin/prettier.js",
|
||||
"repository": "prettier/prettier",
|
||||
|
||||
@@ -17,8 +17,8 @@ See [Usage](#usage) below for examples.
|
||||
### Global
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/prettier@2.0.3/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.3/parser-graphql.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.4/standalone.js"></script>
|
||||
<script src="https://unpkg.com/prettier@2.0.4/parser-graphql.js"></script>
|
||||
<script>
|
||||
prettier.format("query { }", {
|
||||
parser: "graphql",
|
||||
@@ -43,8 +43,8 @@ prettier.format("query { }", {
|
||||
|
||||
```js
|
||||
define([
|
||||
"https://unpkg.com/prettier@2.0.3/standalone.js",
|
||||
"https://unpkg.com/prettier@2.0.3/parser-graphql.js",
|
||||
"https://unpkg.com/prettier@2.0.4/standalone.js",
|
||||
"https://unpkg.com/prettier@2.0.4/parser-graphql.js",
|
||||
], (prettier, ...plugins) => {
|
||||
prettier.format("query { }", { parser: "graphql", plugins });
|
||||
});
|
||||
@@ -63,7 +63,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun
|
||||
### Worker
|
||||
|
||||
```js
|
||||
importScripts("https://unpkg.com/prettier@2.0.3/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.3/parser-graphql.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.4/standalone.js");
|
||||
importScripts("https://unpkg.com/prettier@2.0.4/parser-graphql.js");
|
||||
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
|
||||
```
|
||||
@@ -25,5 +25,5 @@ npm install --global prettier
|
||||
If you use `npx` to run Prettier, the version should be pinned like this:
|
||||
|
||||
```bash
|
||||
npx prettier@2.0.3 . --write
|
||||
npx prettier@2.0.4 . --write
|
||||
```
|
||||
Reference in new issue
Block a user