Release 2.0.1

This commit is contained in:
Georgii Dolzhykov committed 2020-03-22 01:05:58 +02:00
1 parent c9225caac2
commit c5c9332d77
6 files changed
+21 -15

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ Tip! Don't write this stuff manually.
-->
**Prettier 2.0.0**
**Prettier 2.0.1**
[Playground link](https://prettier.io/playground/#.....)
```sh
+1 -1
View File
@@ -20,7 +20,7 @@ BEFORE SUBMITTING AN ISSUE:
**Environments:**
- Prettier Version: 2.0.0
- Prettier Version: 2.0.1
- Running Prettier via: <!-- CLI, Node.js API, Browser API, etc. -->
- Runtime: <!-- Node.js v6, Chrome v67, etc. -->
- Operating System: <!-- Windows, Linux, macOS, etc. -->
+6
View File
@@ -1,3 +1,9 @@
# 2.0.1
[diff](https://github.com/prettier/prettier/compare/2.0.0...2.0.1)
#### API: Fix build script to not corrupt `import-fresh` module ([#7820](https://github.com/prettier/prettier/pull/7820) by [@thorn0](https://github.com/thorn0))
# 2.0.0
[diff](https://github.com/prettier/prettier/compare/1.19.1...2.0.0)
+6 -6
View File
@@ -16,8 +16,8 @@ See [Usage](#usage) below for examples.
### Global
```html
<script src="https://unpkg.com/prettier@2.0.0/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.0/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@2.0.1/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.1/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.0/standalone.js",
"https://unpkg.com/prettier@2.0.0/parser-graphql.js",
"https://unpkg.com/prettier@2.0.1/standalone.js",
"https://unpkg.com/prettier@2.0.1/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.0/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.0/parser-graphql.js");
importScripts("https://unpkg.com/prettier@2.0.1/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.1/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "2.1.0-dev",
"version": "2.0.1",
"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.0/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.0/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@2.0.1/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.0.1/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.0/standalone.js",
"https://unpkg.com/prettier@2.0.0/parser-graphql.js",
"https://unpkg.com/prettier@2.0.1/standalone.js",
"https://unpkg.com/prettier@2.0.1/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.0/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.0/parser-graphql.js");
importScripts("https://unpkg.com/prettier@2.0.1/standalone.js");
importScripts("https://unpkg.com/prettier@2.0.1/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```