prettier-plugin-embed 0.4.11 → 0.4.13

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/dist/utils.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare function resolveEmbeddedOverrideOptions(embeddedOverridesString:
54
54
  experimentalWasm?: boolean | undefined;
55
55
  sqlKeywordCase?: "preserve" | "upper" | "lower" | undefined;
56
56
  sqlParamTypes?: import("sql-parser-cst/lib/ParserOptions.js").ParamType[] | undefined;
57
+ sqlCanonicalSyntax?: boolean | undefined;
57
58
  keywordCase?: import("sql-formatter").KeywordCase | undefined;
58
59
  identifierCase?: import("sql-formatter").KeywordCase | undefined;
59
60
  dataTypeCase?: import("sql-formatter").KeywordCase | undefined;
@@ -131,6 +132,6 @@ export declare function parseTagFromTemplateLiteralAstPath({ parent, }: AstPath<
131
132
  }): string | TemplateLiteral | import("estree").ArrayExpression | import("estree").ArrowFunctionExpression | import("estree").AssignmentExpression | import("estree").AwaitExpression | import("estree").BinaryExpression | import("estree").CallExpression | import("estree").ChainExpression | import("estree").ClassExpression | import("estree").ConditionalExpression | import("estree").FunctionExpression | import("estree").ImportExpression | import("estree").Literal | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").MetaProperty | import("estree").ObjectExpression | import("estree").SequenceExpression | import("estree").TaggedTemplateExpression | import("estree").ThisExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").YieldExpression | undefined;
132
133
  export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (embeddedLanguage: EmbeddedLanguage) => Generator<import("type-fest").LiteralUnion<"sql" | "css" | "js" | "jsx" | "es" | "es6" | "mjs" | "cjs" | "pac" | "javascript" | "glsl" | "shader" | "graphql" | "gql" | "html" | "xhtml" | "ini" | "cfg" | "pro" | "java" | "json" | "jsonl" | "jsonata" | "latex" | "tex" | "aux" | "cls" | "bbl" | "bib" | "toc" | "sty" | "md" | "markdown" | "nginx" | "pegjs" | "peggy" | "peg" | "ts" | "tsx" | "cts" | "mts" | "typescript" | "php" | "php5" | "prisma" | "properties" | "pug" | "jade" | "ruby" | "sh" | "toml" | "xml" | "opml" | "rss" | "svg" | "yaml" | "yml", string>, void, undefined>;
133
134
  export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (embeddedLanguage: EmbeddedLanguage) => Generator<import("type-fest").LiteralUnion<"sql" | "css" | "js" | "jsx" | "es" | "es6" | "mjs" | "cjs" | "pac" | "javascript" | "glsl" | "shader" | "graphql" | "gql" | "html" | "xhtml" | "ini" | "cfg" | "pro" | "java" | "json" | "jsonl" | "jsonata" | "latex" | "tex" | "aux" | "cls" | "bbl" | "bib" | "toc" | "sty" | "md" | "markdown" | "nginx" | "pegjs" | "peggy" | "peg" | "ts" | "tsx" | "cts" | "mts" | "typescript" | "php" | "php5" | "prisma" | "properties" | "pug" | "jade" | "ruby" | "sh" | "toml" | "xml" | "opml" | "rss" | "svg" | "yaml" | "yml", string>, void, undefined>;
134
- export declare function createEmbeddedDoc(embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
135
+ export declare function createEmbeddedDoc(node: TemplateLiteral, embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
135
136
  export declare function assumeAs<T>(_: unknown): asserts _ is T;
136
137
  export declare function compareObjects<T1 extends Record<string | number | symbol, unknown>, T2 extends Record<string | number | symbol, unknown>>(value1: T1, value2: T2, ignoreSet?: Set<keyof T1 | keyof T2>): boolean;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "prettier-plugin-embed",
3
3
  "description": "A configurable Prettier plugin to format embedded languages in JS/TS files.",
4
4
  "private": false,
5
- "version": "0.4.11",
5
+ "version": "0.4.13",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "./dist"
@@ -60,12 +60,15 @@
60
60
  "scripts": {
61
61
  "update-hooks": "simple-git-hooks",
62
62
  "changeset": "changeset",
63
- "bump": "changeset version 2>/dev/null | grep . && npm i",
63
+ "bump": "changeset version 2>/dev/null | grep . && npm i; exit 0",
64
64
  "dev": "vite",
65
65
  "lint": "biome lint .",
66
66
  "type-check": "tsc --noEmit --emitDeclarationOnly false",
67
- "format": "biome format . --write",
68
- "check": "biome check --apply .",
67
+ "format:prettier": "prettier . --write",
68
+ "format:biome": "biome format . --write",
69
+ "format": "conc \"npm:format:prettier\" \"npm:format:biome\"",
70
+ "check:biome": "biome check --apply .",
71
+ "check": "conc \"npm:format:prettier\" \"npm:check:biome\"",
69
72
  "prebuild": "npm run check && npm run type-check",
70
73
  "build": "vite build",
71
74
  "add-glob-import-types": "tsx ./scripts/add-glob-import-types.ts",
@@ -82,51 +85,49 @@
82
85
  "restore-readme": "tsx ./scripts/restore-readme",
83
86
  "prepublishOnly": "npm run build && npm run process-readme",
84
87
  "postpublish": "npm run restore-readme",
85
- "ncu": "npx ncu",
88
+ "ncu": "ncu",
86
89
  "postncu": "npm i",
87
90
  "bump-biome": "npm i @biomejs/biome@latest --save-exact"
88
91
  },
89
92
  "devDependencies": {
90
93
  "@biomejs/biome": "1.5.3",
91
94
  "@changesets/cli": "^2.27.1",
92
- "@commitlint/cli": "^18.4.4",
93
- "@commitlint/config-conventional": "^18.4.4",
95
+ "@commitlint/cli": "^18.6.0",
96
+ "@commitlint/config-conventional": "^18.6.0",
94
97
  "@prettier/plugin-php": "^0.22.1",
95
98
  "@prettier/plugin-pug": "^3.0.0",
96
99
  "@prettier/plugin-ruby": "^4.0.4",
97
100
  "@prettier/plugin-xml": "^3.2.2",
98
101
  "@stedi/prettier-plugin-jsonata": "^2.1.1",
99
- "@types/node": "^20.11.5",
100
- "@vitest/coverage-istanbul": "^1.2.1",
101
- "@vitest/ui": "^1.2.1",
102
+ "@types/node": "^20.11.8",
103
+ "@vitest/coverage-istanbul": "^1.2.2",
104
+ "@vitest/ui": "^1.2.2",
102
105
  "@xml-tools/parser": "^1.0.11",
103
106
  "chevrotain": "7.1.1",
104
107
  "concurrently": "^8.2.2",
105
108
  "copy-files-from-to": "^3.9.1",
106
- "esbuild": "^0.19.11",
109
+ "esbuild": "^0.20.0",
107
110
  "fast-glob": "^3.3.2",
108
111
  "lint-staged": "^15.2.0",
109
- "npm-check-updates": "^16.14.12",
112
+ "npm-check-updates": "^16.14.14",
110
113
  "prettier": "^3.2.4",
111
114
  "prettier-plugin-glsl": "^0.1.3",
112
115
  "prettier-plugin-ini": "^1.1.0",
113
116
  "prettier-plugin-java": "^2.5.0",
114
- "prettier-plugin-jsdoc": "^1.3.0",
115
117
  "prettier-plugin-latex": "^2.0.1",
116
118
  "prettier-plugin-nginx": "^1.0.3",
117
- "prettier-plugin-organize-imports": "^3.2.4",
118
119
  "prettier-plugin-pegjs": "^2.0.2",
119
120
  "prettier-plugin-prisma": "^5.0.0",
120
121
  "prettier-plugin-properties": "^0.3.0",
121
122
  "prettier-plugin-sh": "^0.14.0",
122
123
  "prettier-plugin-sql": "^0.18.0",
123
- "prettier-plugin-sql-cst": "^0.10.2",
124
+ "prettier-plugin-sql-cst": "^0.11.1",
124
125
  "prettier-plugin-toml": "^2.0.1",
125
126
  "simple-git-hooks": "^2.9.0",
126
127
  "tsx": "^4.7.0",
127
128
  "typescript": "^5.3.3",
128
129
  "vite": "^5.0.12",
129
- "vitest": "^1.2.1"
130
+ "vitest": "^1.2.2"
130
131
  },
131
132
  "dependencies": {
132
133
  "@types/estree": "^1.0.5",
@@ -134,6 +135,6 @@
134
135
  "micro-memoize": "^4.1.2",
135
136
  "package-up": "^5.0.0",
136
137
  "tiny-jsonc": "^1.0.1",
137
- "type-fest": "^4.9.0"
138
+ "type-fest": "^4.10.1"
138
139
  }
139
140
  }