prettier 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -13,11 +13,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
13
13
  ## Licenses of bundled dependencies
14
14
 
15
15
  The published Prettier artifact additionally contains code with the following licenses:
16
- MIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD, Apache-2.0
16
+ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0
17
17
 
18
18
  ## Bundled dependencies
19
19
 
20
- ### @angular/compiler@v16.1.3
20
+ ### @angular/compiler@v16.2.0
21
21
 
22
22
  > Angular - the compiler library
23
23
 
@@ -27,7 +27,7 @@ Author: angular
27
27
 
28
28
  ----------------------------------------
29
29
 
30
- ### @babel/code-frame@v7.22.5
30
+ ### @babel/code-frame@v7.22.10
31
31
 
32
32
  > Generate errors that contain a code frame that point to source locations.
33
33
 
@@ -94,7 +94,7 @@ Author: The Babel Team (https://babel.dev/team)
94
94
 
95
95
  ----------------------------------------
96
96
 
97
- ### @babel/highlight@v7.22.5
97
+ ### @babel/highlight@v7.22.10
98
98
 
99
99
  > Syntax highlight JavaScript strings for output in terminals.
100
100
 
@@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team)
128
128
 
129
129
  ----------------------------------------
130
130
 
131
- ### @babel/parser@v7.22.5
131
+ ### @babel/parser@v7.22.10
132
132
 
133
133
  > A JavaScript parser
134
134
 
@@ -366,7 +366,7 @@ License: MIT
366
366
 
367
367
  ----------------------------------------
368
368
 
369
- ### @prettier/is-es5-identifier-name@v0.1.0
369
+ ### @prettier/is-es5-identifier-name@v0.2.0
370
370
 
371
371
  > Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
372
372
 
@@ -397,7 +397,7 @@ Author: fisker Cheung <lionkay@gmail.com>
397
397
 
398
398
  ----------------------------------------
399
399
 
400
- ### @prettier/parse-srcset@v3.0.0
400
+ ### @prettier/parse-srcset@v3.1.0
401
401
 
402
402
  > A spec-conformant JavaScript parser for the HTML5 srcset attribute
403
403
 
@@ -408,6 +408,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
408
408
  > The MIT License (MIT)
409
409
  >
410
410
  > Copyright (c) 2014 Alex Bell
411
+ > Copyright (c) fisker Cheung
411
412
  >
412
413
  > Permission is hereby granted, free of charge, to any person obtaining a copy
413
414
  > of this software and associated documentation files (the "Software"), to deal
@@ -429,7 +430,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
429
430
 
430
431
  ----------------------------------------
431
432
 
432
- ### @typescript-eslint/types@v5.60.1
433
+ ### @typescript-eslint/types@v6.4.0
433
434
 
434
435
  > Types for the TypeScript-ESTree AST spec
435
436
 
@@ -460,7 +461,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
460
461
 
461
462
  ----------------------------------------
462
463
 
463
- ### @typescript-eslint/typescript-estree@v5.60.1
464
+ ### @typescript-eslint/typescript-estree@v6.4.0
464
465
 
465
466
  > A parser that converts TypeScript source code into an ESTree compatible form
466
467
 
@@ -496,7 +497,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
496
497
 
497
498
  ----------------------------------------
498
499
 
499
- ### acorn@v8.9.0
500
+ ### acorn@v8.10.0
500
501
 
501
502
  > ECMAScript parser
502
503
 
@@ -798,7 +799,7 @@ Contributors:
798
799
 
799
800
  ----------------------------------------
800
801
 
801
- ### camelcase@v7.0.1
802
+ ### camelcase@v8.0.0
802
803
 
803
804
  > Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
804
805
 
@@ -869,7 +870,7 @@ License: MIT
869
870
 
870
871
  ----------------------------------------
871
872
 
872
- ### chalk@v5.2.0
873
+ ### chalk@v5.3.0
873
874
 
874
875
  > Terminal string styling done right
875
876
 
@@ -1519,7 +1520,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1519
1520
 
1520
1521
  ----------------------------------------
1521
1522
 
1522
- ### espree@v9.6.0
1523
+ ### espree@v9.6.1
1523
1524
 
1524
1525
  > An Esprima-compatible JavaScript parser built on Acorn
1525
1526
 
@@ -1915,7 +1916,7 @@ Contributors:
1915
1916
 
1916
1917
  ----------------------------------------
1917
1918
 
1918
- ### flow-parser@v0.211.0
1919
+ ### flow-parser@v0.214.0
1919
1920
 
1920
1921
  > JavaScript parser written in OCaml. Produces ESTree AST
1921
1922
 
@@ -2892,37 +2893,6 @@ Contributors:
2892
2893
 
2893
2894
  ----------------------------------------
2894
2895
 
2895
- ### leven@v2.1.0
2896
-
2897
- > Measure the difference between two strings using the fastest JS implementation of the Levenshtein distance algorithm
2898
-
2899
- License: MIT
2900
- Author: Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
2901
-
2902
- > The MIT License (MIT)
2903
- >
2904
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
2905
- >
2906
- > Permission is hereby granted, free of charge, to any person obtaining a copy
2907
- > of this software and associated documentation files (the "Software"), to deal
2908
- > in the Software without restriction, including without limitation the rights
2909
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2910
- > copies of the Software, and to permit persons to whom the Software is
2911
- > furnished to do so, subject to the following conditions:
2912
- >
2913
- > The above copyright notice and this permission notice shall be included in
2914
- > all copies or substantial portions of the Software.
2915
- >
2916
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2917
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2918
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2919
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2920
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2921
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2922
- > THE SOFTWARE.
2923
-
2924
- ----------------------------------------
2925
-
2926
2896
  ### leven@v4.0.0
2927
2897
 
2928
2898
  > Measure the difference between two strings using the Levenshtein distance algorithm
@@ -3687,7 +3657,7 @@ Author: typicode
3687
3657
 
3688
3658
  ----------------------------------------
3689
3659
 
3690
- ### postcss@v8.4.24
3660
+ ### postcss@v8.4.27
3691
3661
 
3692
3662
  > Tool for transforming styles with JS plugins
3693
3663
 
@@ -4144,7 +4114,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4144
4114
 
4145
4115
  ----------------------------------------
4146
4116
 
4147
- ### semver@v7.5.3
4117
+ ### semver@v7.5.4
4148
4118
 
4149
4119
  > The semantic version parser used by npm.
4150
4120
 
@@ -4461,63 +4431,38 @@ Contributors:
4461
4431
 
4462
4432
  ----------------------------------------
4463
4433
 
4464
- ### tslib@v1.14.1
4465
-
4466
- > Runtime library for TypeScript helper functions
4467
-
4468
- License: 0BSD
4469
- Homepage: <https://www.typescriptlang.org/>
4470
- Repository: <https://github.com/Microsoft/tslib.git>
4471
- Author: Microsoft Corp.
4472
-
4473
- > Copyright (c) Microsoft Corporation.
4474
- >
4475
- > Permission to use, copy, modify, and/or distribute this software for any
4476
- > purpose with or without fee is hereby granted.
4477
- >
4478
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4479
- > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4480
- > AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4481
- > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4482
- > LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4483
- > OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4484
- > PERFORMANCE OF THIS SOFTWARE.
4485
-
4486
- ----------------------------------------
4487
-
4488
- ### tsutils@v3.21.0
4434
+ ### ts-api-utils@v1.0.1
4489
4435
 
4490
- > utilities for working with typescript's AST
4436
+ > Utility functions for working with TypeScript's API. Successor to the wonderful tsutils.
4491
4437
 
4492
4438
  License: MIT
4493
- Repository: <https://github.com/ajafff/tsutils>
4494
- Author: Klaus Meinhardt
4439
+ Repository: <https://github.com/JoshuaKGoldberg/ts-api-utils>
4440
+ Author: Josh Goldberg <npm@joshuakgoldberg.com>
4495
4441
 
4496
- > The MIT License (MIT)
4497
- >
4498
- > Copyright (c) 2017 Klaus Meinhardt
4499
- >
4500
- > Permission is hereby granted, free of charge, to any person obtaining a copy
4501
- > of this software and associated documentation files (the "Software"), to deal
4502
- > in the Software without restriction, including without limitation the rights
4503
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4504
- > copies of the Software, and to permit persons to whom the Software is
4505
- > furnished to do so, subject to the following conditions:
4506
- >
4507
- > The above copyright notice and this permission notice shall be included in all
4508
- > copies or substantial portions of the Software.
4509
- >
4510
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4511
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4512
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4513
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4514
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4515
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4516
- > SOFTWARE.
4442
+ > # MIT License
4443
+ >
4444
+ > Permission is hereby granted, free of charge, to any person obtaining
4445
+ > a copy of this software and associated documentation files (the
4446
+ > 'Software'), to deal in the Software without restriction, including
4447
+ > without limitation the rights to use, copy, modify, merge, publish,
4448
+ > distribute, sublicense, and/or sell copies of the Software, and to
4449
+ > permit persons to whom the Software is furnished to do so, subject to
4450
+ > the following conditions:
4451
+ >
4452
+ > The above copyright notice and this permission notice shall be
4453
+ > included in all copies or substantial portions of the Software.
4454
+ >
4455
+ > THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
4456
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4457
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
4458
+ > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
4459
+ > CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
4460
+ > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4461
+ > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4517
4462
 
4518
4463
  ----------------------------------------
4519
4464
 
4520
- ### typescript@v5.1.5
4465
+ ### typescript@v5.1.6
4521
4466
 
4522
4467
  > TypeScript is a language for application scale JavaScript development
4523
4468
 
@@ -4969,7 +4914,7 @@ Contributors:
4969
4914
 
4970
4915
  ----------------------------------------
4971
4916
 
4972
- ### vnopts@v1.0.2
4917
+ ### vnopts@v2.0.0
4973
4918
 
4974
4919
  > validate and normalize options
4975
4920
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg)
1
+ [![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg)](https://prettier.io)
2
2
 
3
3
  <h2 align="center">Opinionated Code Formatter</h2>
4
4
 
@@ -76,7 +76,7 @@ foo(
76
76
  reallyLongArg(),
77
77
  omgSoManyParameters(),
78
78
  IShouldRefactorThis(),
79
- isThereSeriouslyAnotherOne()
79
+ isThereSeriouslyAnotherOne(),
80
80
  );
81
81
  ```
82
82
 
package/doc.d.ts CHANGED
@@ -137,7 +137,7 @@ export namespace builders {
137
137
  function ifBreak(
138
138
  ifBreak: Doc,
139
139
  noBreak?: Doc,
140
- options?: { groupId?: symbol | undefined }
140
+ options?: { groupId?: symbol | undefined },
141
141
  ): IfBreak;
142
142
 
143
143
  /** @see [indent](https://github.com/prettier/prettier/blob/main/commands.md#indent) */
@@ -146,7 +146,7 @@ export namespace builders {
146
146
  /** @see [indentIfBreak](https://github.com/prettier/prettier/blob/main/commands.md#indentifbreak) */
147
147
  function indentIfBreak(
148
148
  doc: Doc,
149
- opts: { groupId: symbol; negate?: boolean | undefined }
149
+ opts: { groupId: symbol; negate?: boolean | undefined },
150
150
  ): IndentIfBreak;
151
151
 
152
152
  /** @see [join](https://github.com/prettier/prettier/blob/main/commands.md#join) */
@@ -186,7 +186,7 @@ export namespace builders {
186
186
  export namespace printer {
187
187
  function printDocToString(
188
188
  doc: builders.Doc,
189
- options: Options
189
+ options: Options,
190
190
  ): {
191
191
  formatted: string;
192
192
  cursorNodeStart?: number | undefined;
@@ -219,22 +219,22 @@ export namespace utils {
219
219
  doc: builders.Doc,
220
220
  onEnter?: (doc: builders.Doc) => void | boolean,
221
221
  onExit?: (doc: builders.Doc) => void,
222
- shouldTraverseConditionalGroups?: boolean
222
+ shouldTraverseConditionalGroups?: boolean,
223
223
  ): void;
224
224
  function findInDoc<T = builders.Doc>(
225
225
  doc: builders.Doc,
226
226
  callback: (doc: builders.Doc) => T,
227
- defaultValue: T
227
+ defaultValue: T,
228
228
  ): T;
229
229
  function mapDoc<T = builders.Doc>(
230
230
  doc: builders.Doc,
231
- callback: (doc: builders.Doc) => T
231
+ callback: (doc: builders.Doc) => T,
232
232
  ): T;
233
233
  function removeLines(doc: builders.Doc): builders.Doc;
234
234
  function stripTrailingHardline(doc: builders.Doc): builders.Doc;
235
235
  function replaceEndOfLine(
236
236
  doc: builders.Doc,
237
- replacement?: builders.Doc
237
+ replacement?: builders.Doc,
238
238
  ): builders.Doc;
239
239
  function canBreak(doc: builders.Doc): boolean;
240
240
  }
package/index.cjs CHANGED
@@ -592,7 +592,7 @@ var init_public = __esm({
592
592
  // src/main/version.evaluate.cjs
593
593
  var require_version_evaluate = __commonJS({
594
594
  "src/main/version.evaluate.cjs"(exports2, module2) {
595
- module2.exports = "3.0.0";
595
+ module2.exports = "3.0.2";
596
596
  }
597
597
  });
598
598