Release 2.2.1

This commit is contained in:
sosukesuzuki committed 2020-11-28 09:21:04 +09:00
1 parent 81bfd3ffc7
commit 326543f908
6 files changed
+47 -15

No files matched your search

+6 -6
View File
@@ -23,8 +23,8 @@ See [Usage](#usage) below for examples.
### Global
```html
<script src="https://unpkg.com/prettier@2.2.0/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.2.0/parser-graphql.js"></script>
<script src="https://unpkg.com/prettier@2.2.1/standalone.js"></script>
<script src="https://unpkg.com/prettier@2.2.1/parser-graphql.js"></script>
<script>
prettier.format("query { }", {
parser: "graphql",
@@ -51,8 +51,8 @@ prettier.format("query { }", {
```js
define([
"https://unpkg.com/prettier@2.2.0/standalone.js",
"https://unpkg.com/prettier@2.2.0/parser-graphql.js",
"https://unpkg.com/prettier@2.2.1/standalone.js",
"https://unpkg.com/prettier@2.2.1/parser-graphql.js",
], (prettier, ...plugins) => {
prettier.format("query { }", { parser: "graphql", plugins });
});
@@ -71,7 +71,7 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
### Worker
```js
importScripts("https://unpkg.com/prettier@2.2.0/standalone.js");
importScripts("https://unpkg.com/prettier@2.2.0/parser-graphql.js");
importScripts("https://unpkg.com/prettier@2.2.1/standalone.js");
importScripts("https://unpkg.com/prettier@2.2.1/parser-graphql.js");
prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins });
```