prettier 3.3.2 → 3.3.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@v18.0.2
20
+ ### @angular/compiler@v18.1.0
21
21
 
22
22
  > Angular - the compiler library
23
23
 
@@ -128,7 +128,7 @@ Author: The Babel Team (https://babel.dev/team)
128
128
 
129
129
  ----------------------------------------
130
130
 
131
- ### @babel/parser@v7.24.7
131
+ ### @babel/parser@v7.24.8
132
132
 
133
133
  > A JavaScript parser
134
134
 
@@ -456,7 +456,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
456
456
 
457
457
  ----------------------------------------
458
458
 
459
- ### @typescript-eslint/types@v7.13.0
459
+ ### @typescript-eslint/types@v8.0.0-alpha.41
460
460
 
461
461
  > Types for the TypeScript-ESTree AST spec
462
462
 
@@ -488,7 +488,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
488
488
 
489
489
  ----------------------------------------
490
490
 
491
- ### @typescript-eslint/typescript-estree@v7.13.0
491
+ ### @typescript-eslint/typescript-estree@v8.0.0-alpha.41
492
492
 
493
493
  > A parser that converts TypeScript source code into an ESTree compatible form
494
494
 
@@ -525,13 +525,13 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
525
525
 
526
526
  ----------------------------------------
527
527
 
528
- ### acorn@v8.11.3
528
+ ### acorn@v8.12.1
529
529
 
530
530
  > ECMAScript parser
531
531
 
532
532
  License: MIT
533
533
  Homepage: <https://github.com/acornjs/acorn>
534
- Repository: <https://github.com/acornjs/acorn.git>
534
+ Repository: <git+https://github.com/acornjs/acorn.git>
535
535
 
536
536
  > MIT License
537
537
  >
@@ -619,7 +619,7 @@ Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
619
619
 
620
620
  ----------------------------------------
621
621
 
622
- ### angular-html-parser@v5.2.0
622
+ ### angular-html-parser@v6.0.2
623
623
 
624
624
  > A HTML parser extracted from Angular with some modifications
625
625
 
@@ -627,26 +627,26 @@ License: MIT
627
627
  Homepage: <https://github.com/prettier/angular-html-parser/blob/master/packages/angular-html-parser#readme>
628
628
  Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
629
629
 
630
- > MIT License
631
- >
632
- > Copyright (c) Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
633
- >
634
- > Permission is hereby granted, free of charge, to any person obtaining a copy
635
- > of this software and associated documentation files (the "Software"), to deal
636
- > in the Software without restriction, including without limitation the rights
637
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
638
- > copies of the Software, and to permit persons to whom the Software is
639
- > furnished to do so, subject to the following conditions:
640
- >
641
- > The above copyright notice and this permission notice shall be included in all
642
- > copies or substantial portions of the Software.
643
- >
644
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
645
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
646
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
647
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
648
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
649
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
630
+ > MIT License
631
+ >
632
+ > Copyright (c) Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
633
+ >
634
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
635
+ > of this software and associated documentation files (the "Software"), to deal
636
+ > in the Software without restriction, including without limitation the rights
637
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
638
+ > copies of the Software, and to permit persons to whom the Software is
639
+ > furnished to do so, subject to the following conditions:
640
+ >
641
+ > The above copyright notice and this permission notice shall be included in all
642
+ > copies or substantial portions of the Software.
643
+ >
644
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
645
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
646
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
647
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
648
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
649
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
650
650
  > SOFTWARE.
651
651
 
652
652
  ----------------------------------------
@@ -1167,7 +1167,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
1167
1167
 
1168
1168
  ----------------------------------------
1169
1169
 
1170
- ### espree@v10.0.1
1170
+ ### espree@v10.1.0
1171
1171
 
1172
1172
  > An Esprima-compatible JavaScript parser built on Acorn
1173
1173
 
@@ -1302,7 +1302,7 @@ Author: James Halliday <mail@substack.net> (http://substack.net)
1302
1302
 
1303
1303
  ----------------------------------------
1304
1304
 
1305
- ### fastq@v1.15.0
1305
+ ### fastq@v1.17.1
1306
1306
 
1307
1307
  > Fast, in memory work queue
1308
1308
 
@@ -1605,7 +1605,7 @@ Contributors:
1605
1605
 
1606
1606
  ----------------------------------------
1607
1607
 
1608
- ### graphql@v16.8.1
1608
+ ### graphql@v16.9.0
1609
1609
 
1610
1610
  > A Query Language and Runtime which can target any service.
1611
1611
 
@@ -2223,7 +2223,7 @@ Author: fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
2223
2223
 
2224
2224
  ----------------------------------------
2225
2225
 
2226
- ### jest-docblock@v29.7.0
2226
+ ### jest-docblock@v30.0.0-alpha.5
2227
2227
 
2228
2228
  License: MIT
2229
2229
  Repository: <https://github.com/jestjs/jest.git>
@@ -2231,6 +2231,7 @@ Repository: <https://github.com/jestjs/jest.git>
2231
2231
  > MIT License
2232
2232
  >
2233
2233
  > Copyright (c) Meta Platforms, Inc. and affiliates.
2234
+ > Copyright Contributors to the Jest project.
2234
2235
  >
2235
2236
  > Permission is hereby granted, free of charge, to any person obtaining a copy
2236
2237
  > of this software and associated documentation files (the "Software"), to deal
@@ -2943,7 +2944,7 @@ Author: typicode
2943
2944
 
2944
2945
  ----------------------------------------
2945
2946
 
2946
- ### postcss@v8.4.38
2947
+ ### postcss@v8.4.39
2947
2948
 
2948
2949
  > Tool for transforming styles with JS plugins
2949
2950
 
@@ -3685,7 +3686,7 @@ Author: JoshuaKGoldberg <npm@joshuakgoldberg.com>
3685
3686
 
3686
3687
  ----------------------------------------
3687
3688
 
3688
- ### typescript@v5.4.5
3689
+ ### typescript@v5.5.3
3689
3690
 
3690
3691
  > TypeScript is a language for application scale JavaScript development
3691
3692
 
@@ -4360,7 +4361,7 @@ Author: Ika <ikatyang@gmail.com> (https://github.com/ikatyang)
4360
4361
 
4361
4362
  ----------------------------------------
4362
4363
 
4363
- ### yocto-queue@v1.0.0
4364
+ ### yocto-queue@v1.1.1
4364
4365
 
4365
4366
  > Tiny queue data structure
4366
4367
 
package/doc.js CHANGED
@@ -378,7 +378,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
378
378
  var _isNarrowWidth = (codePoint) => !(isFullWidth(codePoint) || isWide(codePoint));
379
379
 
380
380
  // src/utils/get-string-width.js
381
- var notAsciiRegex = /[^\x20-\x7F]/;
381
+ var notAsciiRegex = /[^\x20-\x7F]/u;
382
382
  function getStringWidth(text) {
383
383
  if (!text) {
384
384
  return 0;
@@ -610,7 +610,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
610
610
  case DOC_TYPE_ARRAY:
611
611
  return stripTrailingHardlineFromParts(doc);
612
612
  case DOC_TYPE_STRING:
613
- return doc.replace(/[\n\r]*$/, "");
613
+ return doc.replace(/[\n\r]*$/u, "");
614
614
  case DOC_TYPE_ALIGN:
615
615
  case DOC_TYPE_CURSOR:
616
616
  case DOC_TYPE_TRIM:
package/doc.mjs CHANGED
@@ -343,7 +343,7 @@ function isWide(x) {
343
343
  var _isNarrowWidth = (codePoint) => !(isFullWidth(codePoint) || isWide(codePoint));
344
344
 
345
345
  // src/utils/get-string-width.js
346
- var notAsciiRegex = /[^\x20-\x7F]/;
346
+ var notAsciiRegex = /[^\x20-\x7F]/u;
347
347
  function getStringWidth(text) {
348
348
  if (!text) {
349
349
  return 0;
@@ -575,7 +575,7 @@ function stripTrailingHardlineFromDoc(doc) {
575
575
  case DOC_TYPE_ARRAY:
576
576
  return stripTrailingHardlineFromParts(doc);
577
577
  case DOC_TYPE_STRING:
578
- return doc.replace(/[\n\r]*$/, "");
578
+ return doc.replace(/[\n\r]*$/u, "");
579
579
  case DOC_TYPE_ALIGN:
580
580
  case DOC_TYPE_CURSOR:
581
581
  case DOC_TYPE_TRIM:
package/index.cjs CHANGED
@@ -62,10 +62,10 @@ function skip(characters) {
62
62
  var skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine;
63
63
  var init_skip = __esm({
64
64
  "src/utils/skip.js"() {
65
- skipWhitespace = skip(/\s/);
65
+ skipWhitespace = skip(/\s/u);
66
66
  skipSpaces = skip(" ");
67
67
  skipToLineEnd = skip(",; ");
68
- skipEverythingButNewLine = skip(/[^\n\r]/);
68
+ skipEverythingButNewLine = skip(/[^\n\r]/u);
69
69
  }
70
70
  });
71
71
 
@@ -293,7 +293,7 @@ function getIndentSize(value, tabWidth) {
293
293
  }
294
294
  return get_alignment_size_default(
295
295
  // All the leading whitespaces
296
- value.slice(lastNewlineIndex + 1).match(/^[\t ]*/)[0],
296
+ value.slice(lastNewlineIndex + 1).match(/^[\t ]*/u)[0],
297
297
  tabWidth
298
298
  );
299
299
  }
@@ -320,7 +320,7 @@ var init_escape_string_regexp = __esm({
320
320
  // src/utils/get-max-continuous-count.js
321
321
  function getMaxContinuousCount(text, searchString) {
322
322
  const results = text.match(
323
- new RegExp(`(${escapeStringRegexp(searchString)})+`, "g")
323
+ new RegExp(`(${escapeStringRegexp(searchString)})+`, "gu")
324
324
  );
325
325
  if (results === null) {
326
326
  return 0;
@@ -409,7 +409,7 @@ var init_get_string_width = __esm({
409
409
  "src/utils/get-string-width.js"() {
410
410
  init_emoji_regex();
411
411
  init_get_east_asian_width();
412
- notAsciiRegex = /[^\x20-\x7F]/;
412
+ notAsciiRegex = /[^\x20-\x7F]/u;
413
413
  get_string_width_default = getStringWidth;
414
414
  }
415
415
  });
@@ -470,7 +470,7 @@ var init_string_replace_all = __esm({
470
470
  // src/utils/make-string.js
471
471
  function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
472
472
  const otherQuote = enclosingQuote === '"' ? "'" : '"';
473
- const regex = /\\(.)|(["'])/gs;
473
+ const regex = /\\(.)|(["'])/gsu;
474
474
  const raw = string_replace_all_default(
475
475
  /* isOptionalObject */
476
476
  false,
@@ -486,7 +486,7 @@ function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
486
486
  if (quote) {
487
487
  return quote;
488
488
  }
489
- return unescapeUnnecessaryEscapes && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(escaped) ? escaped : "\\" + escaped;
489
+ return unescapeUnnecessaryEscapes && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(escaped) ? escaped : "\\" + escaped;
490
490
  }
491
491
  );
492
492
  return enclosingQuote + raw + enclosingQuote;
@@ -585,7 +585,7 @@ var init_public = __esm({
585
585
  // src/main/version.evaluate.cjs
586
586
  var require_version_evaluate = __commonJS({
587
587
  "src/main/version.evaluate.cjs"(exports2, module2) {
588
- module2.exports = "3.3.2";
588
+ module2.exports = "3.3.3";
589
589
  }
590
590
  });
591
591
 
package/index.d.ts CHANGED
@@ -613,8 +613,7 @@ export interface ResolveConfigOptions {
613
613
  /**
614
614
  * `resolveConfig` can be used to resolve configuration for a given source file,
615
615
  * passing its path or url as the first argument. The config search will start at
616
- * the file location and continue to search up the directory.
617
- * (You can use `process.cwd()` to start searching from the current directory).
616
+ * the directory of the file location and continue to search up the directory.
618
617
  *
619
618
  * A promise is returned which will resolve to:
620
619
  *