prettier 3.9.0 → 3.9.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/THIRD-PARTY-NOTICES.md +5 -5
- package/index.cjs +1 -1
- package/index.d.ts +8 -24
- package/index.mjs +1 -1
- package/internal/experimental-cli.mjs +1 -1
- package/internal/legacy-cli.mjs +1380 -918
- package/package.json +1 -1
- package/plugins/markdown.js +38 -38
- package/plugins/markdown.mjs +38 -38
- package/standalone.js +1 -1
- package/standalone.mjs +1 -1
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -133,7 +133,7 @@ Author: The Babel Team (https://babel.dev/team)
|
|
|
133
133
|
|
|
134
134
|
----------------------------------------
|
|
135
135
|
|
|
136
|
-
## @cacheable/memory@v2.0
|
|
136
|
+
## @cacheable/memory@v2.2.0
|
|
137
137
|
|
|
138
138
|
> High Performance In-Memory Cache for Node.js
|
|
139
139
|
|
|
@@ -163,7 +163,7 @@ Author: Jared Wray <me@jaredwray.com>
|
|
|
163
163
|
|
|
164
164
|
----------------------------------------
|
|
165
165
|
|
|
166
|
-
## @cacheable/utils@v2.
|
|
166
|
+
## @cacheable/utils@v2.5.0
|
|
167
167
|
|
|
168
168
|
> Cacheable Utilities for Caching Libraries
|
|
169
169
|
|
|
@@ -1016,7 +1016,7 @@ Contributors:
|
|
|
1016
1016
|
|
|
1017
1017
|
----------------------------------------
|
|
1018
1018
|
|
|
1019
|
-
## cacheable@v2.
|
|
1019
|
+
## cacheable@v2.5.0
|
|
1020
1020
|
|
|
1021
1021
|
> High Performance Layer 1 / Layer 2 Caching with Keyv Storage
|
|
1022
1022
|
|
|
@@ -2053,7 +2053,7 @@ Author: Matteo Collina <hello@matteocollina.com>
|
|
|
2053
2053
|
|
|
2054
2054
|
----------------------------------------
|
|
2055
2055
|
|
|
2056
|
-
## file-entry-cache@v11.1.
|
|
2056
|
+
## file-entry-cache@v11.1.5
|
|
2057
2057
|
|
|
2058
2058
|
> A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run
|
|
2059
2059
|
|
|
@@ -2252,7 +2252,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
|
2252
2252
|
|
|
2253
2253
|
----------------------------------------
|
|
2254
2254
|
|
|
2255
|
-
## flat-cache@v6.1.
|
|
2255
|
+
## flat-cache@v6.1.23
|
|
2256
2256
|
|
|
2257
2257
|
> A simple key/value storage using files to persist the data
|
|
2258
2258
|
|
package/index.cjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -22,8 +22,7 @@ export namespace doc {
|
|
|
22
22
|
// It comes from this issue: microsoft/TypeScript#29729:
|
|
23
23
|
// https://github.com/microsoft/TypeScript/issues/29729#issuecomment-700527227
|
|
24
24
|
export type LiteralUnion<T extends U, U = string> =
|
|
25
|
-
|
|
|
26
|
-
| (Pick<U, never> & { _?: never | undefined });
|
|
25
|
+
T | (Pick<U, never> & { _?: never | undefined });
|
|
27
26
|
|
|
28
27
|
export type AST = any;
|
|
29
28
|
export type Doc = doc.builders.Doc;
|
|
@@ -521,8 +520,7 @@ export interface Printer<T = any> {
|
|
|
521
520
|
| null)
|
|
522
521
|
| undefined;
|
|
523
522
|
preprocess?:
|
|
524
|
-
|
|
525
|
-
| undefined;
|
|
523
|
+
((ast: T, options: ParserOptions<T>) => T | Promise<T>) | undefined;
|
|
526
524
|
insertPragma?: (text: string) => string;
|
|
527
525
|
/**
|
|
528
526
|
* @returns `null` if you want to remove this node
|
|
@@ -530,15 +528,13 @@ export interface Printer<T = any> {
|
|
|
530
528
|
* @returns anything if you want to replace the node with it
|
|
531
529
|
*/
|
|
532
530
|
massageAstNode?:
|
|
533
|
-
|
|
534
|
-
| undefined;
|
|
531
|
+
((original: any, cloned: any, parent: any) => any) | undefined;
|
|
535
532
|
hasPrettierIgnore?: ((path: AstPath<T>) => boolean) | undefined;
|
|
536
533
|
canAttachComment?: ((node: T, ancestors: T[]) => boolean) | undefined;
|
|
537
534
|
isBlockComment?: ((node: T) => boolean) | undefined;
|
|
538
535
|
willPrintOwnComments?: ((path: AstPath<T>) => boolean) | undefined;
|
|
539
536
|
printComment?:
|
|
540
|
-
|
|
541
|
-
| undefined;
|
|
537
|
+
((commentPath: AstPath<T>, options: ParserOptions<T>) => Doc) | undefined;
|
|
542
538
|
/**
|
|
543
539
|
* By default, Prettier searches all object properties (except for a few predefined ones) of each node recursively.
|
|
544
540
|
* This function can be provided to override that behavior.
|
|
@@ -547,8 +543,7 @@ export interface Printer<T = any> {
|
|
|
547
543
|
* @returns `[]` if the node has no children or `undefined` to fall back on the default behavior.
|
|
548
544
|
*/
|
|
549
545
|
getCommentChildNodes?:
|
|
550
|
-
|
|
551
|
-
| undefined;
|
|
546
|
+
((node: T, options: ParserOptions<T>) => T[] | undefined) | undefined;
|
|
552
547
|
handleComments?:
|
|
553
548
|
| {
|
|
554
549
|
ownLine?:
|
|
@@ -581,8 +576,7 @@ export interface Printer<T = any> {
|
|
|
581
576
|
}
|
|
582
577
|
| undefined;
|
|
583
578
|
getVisitorKeys?:
|
|
584
|
-
|
|
585
|
-
| undefined;
|
|
579
|
+
((node: T, nonTraversableKeys: Set<string>) => string[]) | undefined;
|
|
586
580
|
}
|
|
587
581
|
|
|
588
582
|
export interface CursorOptions extends Options {
|
|
@@ -702,20 +696,10 @@ export interface SupportOptionRange {
|
|
|
702
696
|
}
|
|
703
697
|
|
|
704
698
|
export type SupportOptionType =
|
|
705
|
-
| "
|
|
706
|
-
| "string"
|
|
707
|
-
| "boolean"
|
|
708
|
-
| "choice"
|
|
709
|
-
| "path";
|
|
699
|
+
"int" | "string" | "boolean" | "choice" | "path";
|
|
710
700
|
|
|
711
701
|
export type CoreCategoryType =
|
|
712
|
-
| "
|
|
713
|
-
| "Editor"
|
|
714
|
-
| "Format"
|
|
715
|
-
| "Other"
|
|
716
|
-
| "Output"
|
|
717
|
-
| "Global"
|
|
718
|
-
| "Special";
|
|
702
|
+
"Config" | "Editor" | "Format" | "Other" | "Output" | "Global" | "Special";
|
|
719
703
|
|
|
720
704
|
export interface BaseSupportOption<Type extends SupportOptionType> {
|
|
721
705
|
readonly name?: string | undefined;
|
package/index.mjs
CHANGED
|
@@ -18741,7 +18741,7 @@ var get_file_info_default = getFileInfo;
|
|
|
18741
18741
|
import * as doc from "./doc.mjs";
|
|
18742
18742
|
|
|
18743
18743
|
// src/main/version.evaluate.js
|
|
18744
|
-
var version_evaluate_default = "3.9.
|
|
18744
|
+
var version_evaluate_default = "3.9.2";
|
|
18745
18745
|
|
|
18746
18746
|
// src/utilities/public.js
|
|
18747
18747
|
var public_exports = {};
|