@@ -32,8 +32,8 @@ See below for examples.
32
32
### Global
33
33
34
34
``` html
35
- <
script src =
" https://unpkg.com/[email protected] .0 /standalone.js" ></
script >
36
- <
script src =
" https://unpkg.com/[email protected] .0 /parser-graphql.js" ></
script >
35
+ <
script src =
" https://unpkg.com/[email protected] .1 /standalone.js" ></
script >
36
+ <
script src =
" https://unpkg.com/[email protected] .1 /parser-graphql.js" ></
script >
37
37
<script >
38
38
prettier .format (" type Query { hello: String }" , {
39
39
parser: " graphql" ,
@@ -48,8 +48,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
48
48
49
49
``` html
50
50
<script type =" module" >
51
- import prettier from " https://unpkg.com/[email protected] .0 /esm/standalone.mjs" ;
52
- import parserGraphql from " https://unpkg.com/[email protected] .0 /esm/parser-graphql.mjs" ;
51
+ import prettier from " https://unpkg.com/[email protected] .1 /esm/standalone.mjs" ;
52
+ import parserGraphql from " https://unpkg.com/[email protected] .1 /esm/parser-graphql.mjs" ;
53
53
54
54
prettier .format (" type Query { hello: String }" , {
55
55
parser: " graphql" ,
@@ -62,8 +62,8 @@ Note that the [`unpkg` field](https://unpkg.com/#examples) in Prettier’s `pack
62
62
63
63
``` js
64
64
define ([
65
- " https://unpkg.com/[email protected] .0 /standalone.js" ,
66
- " https://unpkg.com/[email protected] .0 /parser-graphql.js" ,
65
+ " https://unpkg.com/[email protected] .1 /standalone.js" ,
66
+ " https://unpkg.com/[email protected] .1 /parser-graphql.js" ,
67
67
], (prettier , ... plugins ) => {
68
68
prettier .format (" type Query { hello: String }" , {
69
69
parser: " graphql" ,
@@ -88,8 +88,8 @@ This syntax doesn’t necessarily work in the browser, but it can be used when b
88
88
### Worker
89
89
90
90
``` js
91
- importScripts (
" https://unpkg.com/[email protected] .0 /standalone.js" );
92
- importScripts (
" https://unpkg.com/[email protected] .0 /parser-graphql.js" );
91
+ importScripts (
" https://unpkg.com/[email protected] .1 /standalone.js" );
92
+ importScripts (
" https://unpkg.com/[email protected] .1 /parser-graphql.js" );
93
93
prettier .format (" type Query { hello: String }" , {
94
94
parser: " graphql" ,
95
95
plugins: prettierPlugins,
@@ -102,8 +102,8 @@ If you want to format [embedded code](options.md#embedded-language-formatting),
102
102
103
103
``` html
104
104
<script type =" module" >
105
- import prettier from " https://unpkg.com/[email protected] .0 /esm/standalone.mjs" ;
106
- import parserBabel from " https://unpkg.com/[email protected] .0 /esm/parser-babel.mjs" ;
105
+ import prettier from " https://unpkg.com/[email protected] .1 /esm/standalone.mjs" ;
106
+ import parserBabel from " https://unpkg.com/[email protected] .1 /esm/parser-babel.mjs" ;
107
107
108
108
console .log (
109
109
prettier .format (" const html=/* HTML */ `<DIV> </DIV>`" , {
@@ -119,9 +119,9 @@ The HTML code embedded in JavaScript stays unformatted because the `html` parser
119
119
120
120
``` html
121
121
<script type =" module" >
122
- import prettier from " https://unpkg.com/[email protected] .0 /esm/standalone.mjs" ;
123
- import parserBabel from " https://unpkg.com/[email protected] .0 /esm/parser-babel.mjs" ;
124
- import parserHtml from " https://unpkg.com/[email protected] .0 /esm/parser-html.mjs" ;
122
+ import prettier from " https://unpkg.com/[email protected] .1 /esm/standalone.mjs" ;
123
+ import parserBabel from " https://unpkg.com/[email protected] .1 /esm/parser-babel.mjs" ;
124
+ import parserHtml from " https://unpkg.com/[email protected] .1 /esm/parser-html.mjs" ;
125
125
126
126
console .log (
127
127
prettier .format (" const html=/* HTML */ `<DIV> </DIV>`" , {
0 commit comments