prettier 3.0.1 → 3.0.3

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@v16.1.7
20
+ ### @angular/compiler@v16.2.2
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.7
131
+ ### @babel/parser@v7.22.11
132
132
 
133
133
  > A JavaScript parser
134
134
 
@@ -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@v6.2.0
433
+ ### @typescript-eslint/types@v6.5.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@v6.2.0
464
+ ### @typescript-eslint/typescript-estree@v6.5.0
464
465
 
465
466
  > A parser that converts TypeScript source code into an ESTree compatible form
466
467
 
@@ -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
 
@@ -1590,7 +1591,7 @@ Contributors:
1590
1591
 
1591
1592
  ----------------------------------------
1592
1593
 
1593
- ### fast-glob@v3.2.12
1594
+ ### fast-glob@v3.3.1
1594
1595
 
1595
1596
  > It's a very fast and efficient glob library for Node.js
1596
1597
 
@@ -1679,16 +1680,16 @@ Author: Matteo Collina <hello@matteocollina.com>
1679
1680
 
1680
1681
  ----------------------------------------
1681
1682
 
1682
- ### file-entry-cache@v6.0.1
1683
+ ### file-entry-cache@v7.0.0
1683
1684
 
1684
1685
  > 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
1685
1686
 
1686
1687
  License: MIT
1687
- Author: Roy Riojas (http://royriojas.com)
1688
+ Author: Jared Wray (https://jaredwray.com)
1688
1689
 
1689
1690
  > The MIT License (MIT)
1690
1691
  >
1691
- > Copyright (c) 2015 Roy Riojas
1692
+ > Copyright (c) Roy Riojas & Jared Wray
1692
1693
  >
1693
1694
  > Permission is hereby granted, free of charge, to any person obtaining a copy
1694
1695
  > of this software and associated documentation files (the "Software"), to deal
@@ -1822,16 +1823,16 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1822
1823
 
1823
1824
  ----------------------------------------
1824
1825
 
1825
- ### flat-cache@v3.0.4
1826
+ ### flat-cache@v3.1.0
1826
1827
 
1827
1828
  > A stupidly simple key/value storage using files to persist some data
1828
1829
 
1829
1830
  License: MIT
1830
- Author: Roy Riojas (http://royriojas.com)
1831
+ Author: Jared Wray (https://jaredwray.com)
1831
1832
 
1832
1833
  > The MIT License (MIT)
1833
1834
  >
1834
- > Copyright (c) 2015 Roy Riojas
1835
+ > Copyright (c) Roy Riojas and Jared Wray
1835
1836
  >
1836
1837
  > Permission is hereby granted, free of charge, to any person obtaining a copy
1837
1838
  > of this software and associated documentation files (the "Software"), to deal
@@ -1915,7 +1916,7 @@ Contributors:
1915
1916
 
1916
1917
  ----------------------------------------
1917
1918
 
1918
- ### flow-parser@v0.213.1
1919
+ ### flow-parser@v0.215.1
1919
1920
 
1920
1921
  > JavaScript parser written in OCaml. Produces ESTree AST
1921
1922
 
@@ -2059,7 +2060,7 @@ Contributors:
2059
2060
 
2060
2061
  ----------------------------------------
2061
2062
 
2062
- ### graphql@v16.7.1
2063
+ ### graphql@v16.8.0
2063
2064
 
2064
2065
  > A Query Language and Runtime which can target any service.
2065
2066
 
@@ -2723,10 +2724,10 @@ Contributors:
2723
2724
 
2724
2725
  ----------------------------------------
2725
2726
 
2726
- ### jest-docblock@v29.4.3
2727
+ ### jest-docblock@v29.6.3
2727
2728
 
2728
2729
  License: MIT
2729
- Repository: <https://github.com/facebook/jest.git>
2730
+ Repository: <https://github.com/jestjs/jest.git>
2730
2731
 
2731
2732
  > MIT License
2732
2733
  >
@@ -2818,6 +2819,40 @@ Contributors:
2818
2819
 
2819
2820
  ----------------------------------------
2820
2821
 
2822
+ ### json-buffer@v3.0.1
2823
+
2824
+ > JSON parse & stringify that supports binary via bops & base64
2825
+
2826
+ License: MIT
2827
+ Homepage: <https://github.com/dominictarr/json-buffer>
2828
+ Repository: <git://github.com/dominictarr/json-buffer.git>
2829
+ Author: Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)
2830
+
2831
+ > Copyright (c) 2013 Dominic Tarr
2832
+ >
2833
+ > Permission is hereby granted, free of charge,
2834
+ > to any person obtaining a copy of this software and
2835
+ > associated documentation files (the "Software"), to
2836
+ > deal in the Software without restriction, including
2837
+ > without limitation the rights to use, copy, modify,
2838
+ > merge, publish, distribute, sublicense, and/or sell
2839
+ > copies of the Software, and to permit persons to whom
2840
+ > the Software is furnished to do so,
2841
+ > subject to the following conditions:
2842
+ >
2843
+ > The above copyright notice and this permission notice
2844
+ > shall be included in all copies or substantial portions of the Software.
2845
+ >
2846
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2847
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
2848
+ > OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2849
+ > IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
2850
+ > ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2851
+ > TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2852
+ > SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2853
+
2854
+ ----------------------------------------
2855
+
2821
2856
  ### json-parse-even-better-errors@v2.3.1
2822
2857
 
2823
2858
  > JSON.parse with context information on error
@@ -2892,6 +2927,17 @@ Contributors:
2892
2927
 
2893
2928
  ----------------------------------------
2894
2929
 
2930
+ ### keyv@v4.5.3
2931
+
2932
+ > Simple key-value storage with support for multiple backends
2933
+
2934
+ License: MIT
2935
+ Homepage: <https://github.com/jaredwray/keyv>
2936
+ Repository: <git+https://github.com/jaredwray/keyv.git>
2937
+ Author: Jared Wray <me@jaredwray.com> (http://jaredwray.com)
2938
+
2939
+ ----------------------------------------
2940
+
2895
2941
  ### leven@v4.0.0
2896
2942
 
2897
2943
  > Measure the difference between two strings using the Levenshtein distance algorithm
@@ -3656,7 +3702,7 @@ Author: typicode
3656
3702
 
3657
3703
  ----------------------------------------
3658
3704
 
3659
- ### postcss@v8.4.27
3705
+ ### postcss@v8.4.28
3660
3706
 
3661
3707
  > Tool for transforming styles with JS plugins
3662
3708
 
@@ -3733,7 +3779,7 @@ Author: dryoma
3733
3779
 
3734
3780
  ----------------------------------------
3735
3781
 
3736
- ### postcss-scss@v4.0.6
3782
+ ### postcss-scss@v4.0.7
3737
3783
 
3738
3784
  > SCSS parser for PostCSS
3739
3785
 
@@ -4461,7 +4507,7 @@ Author: Josh Goldberg <npm@joshuakgoldberg.com>
4461
4507
 
4462
4508
  ----------------------------------------
4463
4509
 
4464
- ### typescript@v5.1.6
4510
+ ### typescript@v5.2.2
4465
4511
 
4466
4512
  > TypeScript is a language for application scale JavaScript development
4467
4513
 
package/doc.d.ts CHANGED
@@ -38,6 +38,7 @@ export namespace builders {
38
38
 
39
39
  interface Group {
40
40
  type: "group";
41
+ id?: symbol;
41
42
  contents: Doc;
42
43
  break: boolean;
43
44
  expandedStates: Doc[];
@@ -64,6 +65,8 @@ export namespace builders {
64
65
 
65
66
  interface Label {
66
67
  type: "label";
68
+ label: any;
69
+ contents: Doc;
67
70
  }
68
71
 
69
72
  interface Line {
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.1";
595
+ module2.exports = "3.0.3";
596
596
  }
597
597
  });
598
598
 
package/index.d.ts CHANGED
@@ -870,11 +870,20 @@ export namespace util {
870
870
  options?: SkipOptions | undefined,
871
871
  ): boolean;
872
872
 
873
+ function getNextNonSpaceNonCommentCharacterIndex(
874
+ text: string,
875
+ startIndex: number,
876
+ ): number | false;
877
+
873
878
  function getNextNonSpaceNonCommentCharacter(
874
879
  text: string,
875
880
  startIndex: number,
876
881
  ): string;
877
882
 
883
+ function isNextLineEmpty(text: string, startIndex: number): boolean;
884
+
885
+ function isPreviousLineEmpty(text: string, startIndex: number): boolean;
886
+
878
887
  function makeString(
879
888
  rawText: string,
880
889
  enclosingQuote: Quote,