prettier 3.3.3 → 3.4.1

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
@@ -17,7 +17,7 @@ MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0
17
17
 
18
18
  ## Bundled dependencies
19
19
 
20
- ### @angular/compiler@v18.1.0
20
+ ### @angular/compiler@v19.0.0
21
21
 
22
22
  > Angular - the compiler library
23
23
 
@@ -25,47 +25,36 @@ License: MIT
25
25
  Repository: <https://github.com/angular/angular.git>
26
26
  Author: angular
27
27
 
28
- ----------------------------------------
29
-
30
- ### @babel/code-frame@v7.24.7
31
-
32
- > Generate errors that contain a code frame that point to source locations.
33
-
34
- License: MIT
35
- Homepage: <https://babel.dev/docs/en/next/babel-code-frame>
36
- Repository: <https://github.com/babel/babel.git>
37
- Author: The Babel Team (https://babel.dev/team)
38
-
39
- > MIT License
28
+ > The MIT License
40
29
  >
41
- > Copyright (c) 2014-present Sebastian McKenzie and other contributors
30
+ > Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
42
31
  >
43
- > Permission is hereby granted, free of charge, to any person obtaining
44
- > a copy of this software and associated documentation files (the
45
- > "Software"), to deal in the Software without restriction, including
46
- > without limitation the rights to use, copy, modify, merge, publish,
47
- > distribute, sublicense, and/or sell copies of the Software, and to
48
- > permit persons to whom the Software is furnished to do so, subject to
49
- > the following conditions:
32
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ > of this software and associated documentation files (the "Software"), to deal
34
+ > in the Software without restriction, including without limitation the rights
35
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ > copies of the Software, and to permit persons to whom the Software is
37
+ > furnished to do so, subject to the following conditions:
50
38
  >
51
- > The above copyright notice and this permission notice shall be
52
- > included in all copies or substantial portions of the Software.
39
+ > The above copyright notice and this permission notice shall be included in
40
+ > all copies or substantial portions of the Software.
53
41
  >
54
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
55
- > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56
- > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
57
- > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
58
- > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
59
- > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
60
- > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
48
+ > THE SOFTWARE.
61
49
 
62
50
  ----------------------------------------
63
51
 
64
- ### @babel/helper-validator-identifier@v7.24.7
52
+ ### @babel/code-frame@v7.26.2
65
53
 
66
- > Validate identifier/keywords name
54
+ > Generate errors that contain a code frame that point to source locations.
67
55
 
68
56
  License: MIT
57
+ Homepage: <https://babel.dev/docs/en/next/babel-code-frame>
69
58
  Repository: <https://github.com/babel/babel.git>
70
59
  Author: The Babel Team (https://babel.dev/team)
71
60
 
@@ -94,12 +83,11 @@ Author: The Babel Team (https://babel.dev/team)
94
83
 
95
84
  ----------------------------------------
96
85
 
97
- ### @babel/highlight@v7.24.7
86
+ ### @babel/helper-validator-identifier@v7.25.9
98
87
 
99
- > Syntax highlight JavaScript strings for output in terminals.
88
+ > Validate identifier/keywords name
100
89
 
101
90
  License: MIT
102
- Homepage: <https://babel.dev/docs/en/next/babel-highlight>
103
91
  Repository: <https://github.com/babel/babel.git>
104
92
  Author: The Babel Team (https://babel.dev/team)
105
93
 
@@ -128,7 +116,7 @@ Author: The Babel Team (https://babel.dev/team)
128
116
 
129
117
  ----------------------------------------
130
118
 
131
- ### @babel/parser@v7.24.8
119
+ ### @babel/parser@v7.26.2
132
120
 
133
121
  > A JavaScript parser
134
122
 
@@ -187,7 +175,7 @@ License: MIT
187
175
 
188
176
  ----------------------------------------
189
177
 
190
- ### @glimmer/syntax@v0.92.0
178
+ ### @glimmer/syntax@v0.93.0
191
179
 
192
180
  License: MIT
193
181
 
@@ -213,7 +201,7 @@ License: MIT
213
201
 
214
202
  ----------------------------------------
215
203
 
216
- ### @glimmer/util@v0.92.0
204
+ ### @glimmer/util@v0.93.0
217
205
 
218
206
  > Common utilities used in Glimmer
219
207
 
@@ -241,7 +229,7 @@ License: MIT
241
229
 
242
230
  ----------------------------------------
243
231
 
244
- ### @glimmer/wire-format@v0.92.0
232
+ ### @glimmer/wire-format@v0.93.0
245
233
 
246
234
  License: MIT
247
235
 
@@ -277,31 +265,6 @@ Repository: <git+https://github.com/handlebars-lang/handlebars-parser.git>
277
265
 
278
266
  ----------------------------------------
279
267
 
280
- ### @iarna/toml@v2.2.5
281
-
282
- > Better TOML parsing and stringifying all in that familiar JSON interface.
283
-
284
- License: ISC
285
- Homepage: <https://github.com/iarna/iarna-toml#readme>
286
- Repository: <git+https://github.com/iarna/iarna-toml.git>
287
- Author: Rebecca Turner <me@re-becca.org> (http://re-becca.org/)
288
-
289
- > Copyright (c) 2016, Rebecca Turner <me@re-becca.org>
290
- >
291
- > Permission to use, copy, modify, and/or distribute this software for any
292
- > purpose with or without fee is hereby granted, provided that the above
293
- > copyright notice and this permission notice appear in all copies.
294
- >
295
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
296
- > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
297
- > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
298
- > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
299
- > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
300
- > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
301
- > OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
302
-
303
- ----------------------------------------
304
-
305
268
  ### @nodelib/fs.scandir@v2.1.5
306
269
 
307
270
  > List files and directories inside the specified directory
@@ -456,7 +419,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
456
419
 
457
420
  ----------------------------------------
458
421
 
459
- ### @typescript-eslint/types@v8.0.0-alpha.41
422
+ ### @typescript-eslint/types@v8.16.0
460
423
 
461
424
  > Types for the TypeScript-ESTree AST spec
462
425
 
@@ -488,7 +451,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
488
451
 
489
452
  ----------------------------------------
490
453
 
491
- ### @typescript-eslint/typescript-estree@v8.0.0-alpha.41
454
+ ### @typescript-eslint/typescript-estree@v8.16.0
492
455
 
493
456
  > A parser that converts TypeScript source code into an ESTree compatible form
494
457
 
@@ -496,6 +459,8 @@ License: BSD-2-Clause
496
459
  Homepage: <https://typescript-eslint.io/packages/typescript-estree>
497
460
  Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
498
461
 
462
+ > BSD 2-Clause License
463
+ >
499
464
  > TypeScript ESTree
500
465
  >
501
466
  > Originally extracted from:
@@ -525,7 +490,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
525
490
 
526
491
  ----------------------------------------
527
492
 
528
- ### acorn@v8.12.1
493
+ ### acorn@v8.14.0
529
494
 
530
495
  > ECMAScript parser
531
496
 
@@ -587,7 +552,7 @@ Repository: <https://github.com/acornjs/acorn-jsx>
587
552
 
588
553
  ----------------------------------------
589
554
 
590
- ### angular-estree-parser@v10.0.3
555
+ ### angular-estree-parser@v10.2.0
591
556
 
592
557
  > A parser that converts Angular source code into an ESTree-compatible form
593
558
 
@@ -619,7 +584,7 @@ Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
619
584
 
620
585
  ----------------------------------------
621
586
 
622
- ### angular-html-parser@v6.0.2
587
+ ### angular-html-parser@v8.0.1
623
588
 
624
589
  > A HTML parser extracted from Angular with some modifications
625
590
 
@@ -651,7 +616,7 @@ Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
651
616
 
652
617
  ----------------------------------------
653
618
 
654
- ### ansi-regex@v6.0.1
619
+ ### ansi-regex@v6.1.0
655
620
 
656
621
  > Regular expression for matching ANSI escape codes
657
622
 
@@ -915,13 +880,15 @@ Contributors:
915
880
 
916
881
  ----------------------------------------
917
882
 
918
- ### ci-info@v4.0.0
883
+ ### ci-info@v4.1.0
919
884
 
920
885
  > Get details about the current Continuous Integration environment
921
886
 
922
887
  License: MIT
923
888
  Homepage: <https://github.com/watson/ci-info>
924
889
  Author: Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)
890
+ Contributors:
891
+ - Sibiraj (https://github.com/sibiraj-s)
925
892
 
926
893
  > The MIT License (MIT)
927
894
  >
@@ -1043,7 +1010,7 @@ Contributors:
1043
1010
 
1044
1011
  ----------------------------------------
1045
1012
 
1046
- ### diff@v5.2.0
1013
+ ### diff@v7.0.0
1047
1014
 
1048
1015
  > A JavaScript text diff implementation.
1049
1016
 
@@ -1116,7 +1083,7 @@ Contributors:
1116
1083
 
1117
1084
  ----------------------------------------
1118
1085
 
1119
- ### emoji-regex@v10.3.0
1086
+ ### emoji-regex@v10.4.0
1120
1087
 
1121
1088
  > A regular expression to match all Emoji-only symbols as per the Unicode Standard.
1122
1089
 
@@ -1167,12 +1134,12 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1167
1134
 
1168
1135
  ----------------------------------------
1169
1136
 
1170
- ### espree@v10.1.0
1137
+ ### espree@v10.3.0
1171
1138
 
1172
1139
  > An Esprima-compatible JavaScript parser built on Acorn
1173
1140
 
1174
1141
  License: BSD-2-Clause
1175
- Homepage: <https://github.com/eslint/espree>
1142
+ Homepage: <https://github.com/eslint/js/blob/main/packages/espree/README.md>
1176
1143
  Author: Nicholas C. Zakas <nicholas+npm@nczconsulting.com>
1177
1144
 
1178
1145
  > BSD 2-Clause License
@@ -1327,7 +1294,7 @@ Author: Matteo Collina <hello@matteocollina.com>
1327
1294
 
1328
1295
  ----------------------------------------
1329
1296
 
1330
- ### file-entry-cache@v9.0.0
1297
+ ### file-entry-cache@v9.1.0
1331
1298
 
1332
1299
  > Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process
1333
1300
 
@@ -1466,7 +1433,7 @@ Author: Jared Wray (https://jaredwray.com)
1466
1433
 
1467
1434
  ----------------------------------------
1468
1435
 
1469
- ### flatted@v3.3.1
1436
+ ### flatted@v3.3.2
1470
1437
 
1471
1438
  > A super light and fast circular JSON parser.
1472
1439
 
@@ -1528,7 +1495,7 @@ Contributors:
1528
1495
 
1529
1496
  ----------------------------------------
1530
1497
 
1531
- ### flow-parser@v0.237.2
1498
+ ### flow-parser@v0.255.0
1532
1499
 
1533
1500
  > JavaScript parser written in OCaml. Produces ESTree AST
1534
1501
 
@@ -1539,7 +1506,7 @@ Author: Flow Team <flow@fb.com>
1539
1506
 
1540
1507
  ----------------------------------------
1541
1508
 
1542
- ### get-east-asian-width@v1.2.0
1509
+ ### get-east-asian-width@v1.3.0
1543
1510
 
1544
1511
  > Determine the East Asian Width of a Unicode character
1545
1512
 
@@ -1637,7 +1604,7 @@ Repository: <https://github.com/graphql/graphql-js.git>
1637
1604
 
1638
1605
  ----------------------------------------
1639
1606
 
1640
- ### ignore@v5.3.1
1607
+ ### ignore@v6.0.2
1641
1608
 
1642
1609
  > Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.
1643
1610
 
@@ -2223,7 +2190,7 @@ Author: fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
2223
2190
 
2224
2191
  ----------------------------------------
2225
2192
 
2226
- ### jest-docblock@v30.0.0-alpha.5
2193
+ ### jest-docblock@v30.0.0-alpha.6
2227
2194
 
2228
2195
  License: MIT
2229
2196
  Repository: <https://github.com/jestjs/jest.git>
@@ -2565,13 +2532,13 @@ Repository: <git@github.com:teambition/merge2.git>
2565
2532
 
2566
2533
  ----------------------------------------
2567
2534
 
2568
- ### meriyah@v4.5.0
2535
+ ### meriyah@v6.0.3
2569
2536
 
2570
2537
  > A 100% compliant, self-hosted javascript parser with high focus on both performance and stability
2571
2538
 
2572
2539
  License: ISC
2573
2540
  Homepage: <https://github.com/meriyah/meriyah>
2574
- Repository: <https://github.com/meriyah/meriyah>
2541
+ Repository: <git+https://github.com/meriyah/meriyah.git>
2575
2542
  Author: Kenny F. (https://github.com/KFlash)
2576
2543
  Contributors:
2577
2544
  - Chunpeng Huo (https://github.com/3cp)
@@ -2586,7 +2553,7 @@ Contributors:
2586
2553
 
2587
2554
  ----------------------------------------
2588
2555
 
2589
- ### micromatch@v4.0.7
2556
+ ### micromatch@v4.0.8
2590
2557
 
2591
2558
  > Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
2592
2559
 
@@ -2835,7 +2802,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
2835
2802
 
2836
2803
  ----------------------------------------
2837
2804
 
2838
- ### picocolors@v1.0.1
2805
+ ### picocolors@v1.1.1
2839
2806
 
2840
2807
  > The tiniest and the fastest library for terminal output formatting with ANSI colors
2841
2808
 
@@ -2844,7 +2811,7 @@ Author: Alexey Raspopov
2844
2811
 
2845
2812
  > ISC License
2846
2813
  >
2847
- > Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
2814
+ > Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
2848
2815
  >
2849
2816
  > Permission to use, copy, modify, and/or distribute this software for any
2850
2817
  > purpose with or without fee is hereby granted, provided that the above
@@ -2944,7 +2911,7 @@ Author: typicode
2944
2911
 
2945
2912
  ----------------------------------------
2946
2913
 
2947
- ### postcss@v8.4.39
2914
+ ### postcss@v8.4.49
2948
2915
 
2949
2916
  > Tool for transforming styles with JS plugins
2950
2917
 
@@ -3357,7 +3324,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
3357
3324
 
3358
3325
  ----------------------------------------
3359
3326
 
3360
- ### semver@v7.6.2
3327
+ ### semver@v7.6.3
3361
3328
 
3362
3329
  > The semantic version parser used by npm.
3363
3330
 
@@ -3468,6 +3435,40 @@ Repository: <https://github.com/tildeio/simple-html-tokenizer.git>
3468
3435
 
3469
3436
  ----------------------------------------
3470
3437
 
3438
+ ### smol-toml@v1.3.1
3439
+
3440
+ > A small, fast, and correct TOML parser/serializer
3441
+
3442
+ License: BSD-3-Clause
3443
+ Author: Cynthia <cyyynthia@borkenware.com>
3444
+
3445
+ > Copyright (c) Squirrel Chat et al., All rights reserved.
3446
+ >
3447
+ > Redistribution and use in source and binary forms, with or without
3448
+ > modification, are permitted provided that the following conditions are met:
3449
+ >
3450
+ > 1. Redistributions of source code must retain the above copyright notice, this
3451
+ > list of conditions and the following disclaimer.
3452
+ > 2. Redistributions in binary form must reproduce the above copyright notice,
3453
+ > this list of conditions and the following disclaimer in the
3454
+ > documentation and/or other materials provided with the distribution.
3455
+ > 3. Neither the name of the copyright holder nor the names of its contributors
3456
+ > may be used to endorse or promote products derived from this software without
3457
+ > specific prior written permission.
3458
+ >
3459
+ > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
3460
+ > ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
3461
+ > WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3462
+ > DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3463
+ > FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3464
+ > DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3465
+ > SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3466
+ > CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3467
+ > OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3468
+ > OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3469
+
3470
+ ----------------------------------------
3471
+
3471
3472
  ### state-toggle@v1.0.3
3472
3473
 
3473
3474
  > Enter/exit a state
@@ -3655,7 +3656,7 @@ Contributors:
3655
3656
 
3656
3657
  ----------------------------------------
3657
3658
 
3658
- ### ts-api-utils@v1.3.0
3659
+ ### ts-api-utils@v1.4.2
3659
3660
 
3660
3661
  > Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
3661
3662
 
@@ -3686,13 +3687,13 @@ Author: JoshuaKGoldberg <npm@joshuakgoldberg.com>
3686
3687
 
3687
3688
  ----------------------------------------
3688
3689
 
3689
- ### typescript@v5.5.3
3690
+ ### typescript@v5.7.2
3690
3691
 
3691
3692
  > TypeScript is a language for application scale JavaScript development
3692
3693
 
3693
3694
  License: Apache-2.0
3694
3695
  Homepage: <https://www.typescriptlang.org/>
3695
- Repository: <https://github.com/Microsoft/TypeScript.git>
3696
+ Repository: <https://github.com/microsoft/TypeScript.git>
3696
3697
  Author: Microsoft Corp.
3697
3698
 
3698
3699
  > Apache License
@@ -4031,7 +4032,7 @@ Contributors:
4031
4032
 
4032
4033
  ----------------------------------------
4033
4034
 
4034
- ### url-or-path@v2.3.0
4035
+ ### url-or-path@v2.3.2
4035
4036
 
4036
4037
  > Convert between file URL and path.
4037
4038
 
@@ -4202,7 +4203,7 @@ Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
4202
4203
 
4203
4204
  ----------------------------------------
4204
4205
 
4205
- ### wcwidth.js@v1.1.2
4206
+ ### wcwidth.js@v2.0.0
4206
4207
 
4207
4208
  > a javascript porting of C's wcwidth()
4208
4209
 
package/bin/prettier.cjs CHANGED
@@ -53,6 +53,10 @@ var require_please_upgrade_node = __commonJS({
53
53
  });
54
54
 
55
55
  // bin/prettier.cjs
56
+ var nodeModule = require("module");
57
+ if (typeof nodeModule.enableCompileCache === "function") {
58
+ nodeModule.enableCompileCache();
59
+ }
56
60
  var pleaseUpgradeNode = require_please_upgrade_node();
57
61
  var packageJson = require("../package.json");
58
62
  pleaseUpgradeNode(packageJson);
package/doc.d.ts CHANGED
@@ -192,7 +192,18 @@ export namespace printer {
192
192
  options: Options,
193
193
  ): {
194
194
  formatted: string;
195
+ /**
196
+ * This property is a misnomer, and has been since the changes in
197
+ * https://github.com/prettier/prettier/pull/15709.
198
+ * The region of the document indicated by `cursorNodeStart` and `cursorNodeText` will
199
+ * sometimes actually be what lies BETWEEN a pair of leaf nodes in the AST, rather than a node.
200
+ */
195
201
  cursorNodeStart?: number | undefined;
202
+
203
+ /**
204
+ * Note that, like cursorNodeStart, this is a misnomer and may actually be the text between two
205
+ * leaf nodes in the AST instead of the text of a node.
206
+ */
196
207
  cursorNodeText?: string | undefined;
197
208
  };
198
209
  interface Options {