prettier-plugin-embed 0.7.3 → 0.8.0

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/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.7.3",
5
+ "version": "0.8.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "./dist"
@@ -60,10 +60,22 @@
60
60
  "devDependencies": {
61
61
  "@biomejs/biome": "2.5.15",
62
62
  "@changesets/cli": "^3.0.3",
63
+ "@codemirror/commands": "^6.11.1",
64
+ "@codemirror/lang-css": "^6.3.1",
65
+ "@codemirror/lang-html": "^6.4.12",
66
+ "@codemirror/lang-javascript": "^6.2.5",
67
+ "@codemirror/lang-json": "^6.0.2",
68
+ "@codemirror/lang-sql": "^6.10.0",
69
+ "@codemirror/lang-xml": "^6.1.0",
70
+ "@codemirror/language": "^6.13.1",
71
+ "@codemirror/state": "^6.7.6",
72
+ "@codemirror/view": "^6.43.14",
63
73
  "@commitlint/cli": "^21.2.3",
64
74
  "@commitlint/config-conventional": "^21.2.3",
65
- "@htnabe/prettier-plugin-go-template": "^0.0.3",
75
+ "@htnabe/prettier-plugin-go-template": "^0.0.5",
66
76
  "@htnabe/prettier-plugin-hugo-post": "^0.0.2",
77
+ "@lezer/common": "^1.5.3",
78
+ "@lezer/highlight": "^1.2.5",
67
79
  "@poliklot/prettier-plugin-handlebars": "^0.4.1",
68
80
  "@prettier/plugin-php": "^0.25.0",
69
81
  "@prettier/plugin-pug": "^3.6.0",
@@ -71,12 +83,26 @@
71
83
  "@prettier/plugin-xml": "^3.4.2",
72
84
  "@shopify/prettier-plugin-liquid": "^1.11.2",
73
85
  "@stedi/prettier-plugin-jsonata": "^2.1.8",
86
+ "@tombi-toml/wasm-lib": "^1.8.7",
74
87
  "@types/node": "^26.6.5",
75
- "@vitest/coverage-v8": "5.0.3",
76
- "@vitest/ui": "^5.0.3",
88
+ "@vitest/coverage-v8": "5.0.5",
89
+ "@vitest/ui": "^5.0.5",
90
+ "codemirror": "^6.0.2",
91
+ "compat-astro-v0": "npm:prettier-plugin-astro@0.14.1",
92
+ "compat-php-v0-24": "npm:@prettier/plugin-php@0.24.0",
93
+ "compat-sh-v0-17": "npm:prettier-plugin-sh@0.17.4",
94
+ "compat-sql-cst-v0-18": "npm:prettier-plugin-sql-cst@0.18.0",
95
+ "compat-sql-cst-v0-22": "npm:prettier-plugin-sql-cst@0.22.1",
96
+ "compat-sql-v0-18": "npm:prettier-plugin-sql@0.18.1",
97
+ "compat-sql-v0-19": "npm:prettier-plugin-sql@0.19.2",
98
+ "compat-svelte-v3": "npm:prettier-plugin-svelte@3.5.2",
99
+ "compat-toml-v2": "npm:prettier-plugin-toml@2.0.6",
100
+ "compat-toml-v3": "npm:prettier-plugin-toml@3.0.2",
101
+ "compat-xml-v2": "npm:@prettier/plugin-xml@2.2.0",
77
102
  "concurrently": "^10.0.6",
78
103
  "copy-files-from-to": "^4.0.1",
79
104
  "lint-staged": "^17.6.0",
105
+ "lz-string": "^1.5.0",
80
106
  "npm-check-updates": "^23.1.1",
81
107
  "prettier": "^3.9.10",
82
108
  "prettier-plugin-astro": "^1.1.1",
@@ -99,23 +125,26 @@
99
125
  "prettier-plugin-sh": "^0.20.2",
100
126
  "prettier-plugin-solidity": "^2.4.1",
101
127
  "prettier-plugin-sql": "^0.20.0",
102
- "prettier-plugin-sql-cst": "^0.23.0",
128
+ "prettier-plugin-sql-cst": "^0.23.1",
103
129
  "prettier-plugin-svelte": "^4.1.1",
104
- "prettier-plugin-toml": "^3.0.2",
130
+ "prettier-plugin-toml": "^4.0.0",
105
131
  "prettier-plugin-xquery": "^1.7.0",
106
132
  "simple-git-hooks": "^2.14.0",
107
133
  "tinyglobby": "^0.2.17",
108
134
  "tsx": "^4.23.15",
109
135
  "typescript": "^7.0.2",
110
136
  "vite": "^8.3.4",
111
- "vitest": "^5.0.3"
137
+ "vite-plugin-wasm": "^3.6.0",
138
+ "vitest": "^5.0.5"
112
139
  },
113
140
  "dependencies": {
114
141
  "@types/estree": "^1.0.9",
115
- "dedent": "^1.7.2",
116
142
  "tiny-jsonc": "^1.0.2"
117
143
  },
118
144
  "scripts": {
145
+ "playground:dev": "vite --config playground/vite.config.ts",
146
+ "playground:build": "tsc -p playground/tsconfig.json && vite build --config playground/vite.config.ts",
147
+ "playground:preview": "vite preview --config playground/vite.config.ts",
119
148
  "update-hooks": "simple-git-hooks",
120
149
  "lint": "biome lint .",
121
150
  "type-check": "tsc --noEmit --emitDeclarationOnly false",
@@ -127,7 +156,11 @@
127
156
  "copy": "copy-files-from-to",
128
157
  "postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:copy\"",
129
158
  "test:ci": "vitest --run --pool=threads --coverage",
159
+ "test:compat": "vitest run tests/plugin-compatibility.spec.ts",
130
160
  "test:consumer": "pnpm build && node ./scripts/test-consumer.mjs",
161
+ "test:plugins": "pnpm test:ci && pnpm test:consumer && pnpm playground:build && pnpm test:playground",
162
+ "test:playground": "node ./scripts/test-playground.mjs",
163
+ "update:plugins": "node ./scripts/update-plugins.mjs",
131
164
  "test": "vitest",
132
165
  "test:ui": "vitest --ui",
133
166
  "process-readme": "tsx ./scripts/process-readme",