nuxt-og-image 6.7.5 → 6.7.7
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.md +6 -0
- package/dist/chunks/decode.mjs +1087 -0
- package/dist/chunks/tw4.mjs +2 -2
- package/dist/chunks/uno.mjs +19 -5
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/app/utils/plugins.js +4 -10
- package/dist/runtime/server/og-image/bindings/browser/chrome-launcher.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/browser/cloudflare.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/browser/on-demand.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/browser/playwright.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.js +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/dev-prerender.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/dev-prerender.js +6 -7
- package/dist/runtime/server/og-image/bindings/font-assets/node.d.ts +2 -2
- package/dist/runtime/server/og-image/bindings/font-assets/node.js +2 -3
- package/dist/runtime/server/og-image/bindings/resvg/node-dev.js +18 -64
- package/dist/runtime/server/og-image/bindings/takumi/node-dev.js +26 -83
- package/dist/runtime/server/og-image/bindings/worker-queue.d.ts +34 -0
- package/dist/runtime/server/og-image/bindings/worker-queue.js +150 -0
- package/dist/runtime/server/og-image/browser/renderer.js +1 -1
- package/dist/runtime/server/og-image/browser/screenshot.js +2 -1
- package/dist/runtime/server/og-image/context.d.ts +1 -1
- package/dist/runtime/server/og-image/context.js +2 -3
- package/dist/runtime/server/og-image/core/plugins/imageSrc.js +1 -1
- package/dist/runtime/server/og-image/core/transforms/emojis/local.d.ts +2 -17
- package/dist/runtime/server/og-image/core/transforms/emojis/local.js +1 -1
- package/dist/runtime/server/og-image/devtools.d.ts +1 -1
- package/dist/runtime/server/og-image/devtools.js +1 -1
- package/dist/runtime/server/og-image/font-source.d.ts +3 -12
- package/dist/runtime/server/og-image/font-source.js +1 -4
- package/dist/runtime/server/og-image/fonts.d.ts +1 -8
- package/dist/runtime/server/og-image/fonts.js +1 -1
- package/dist/runtime/server/og-image/takumi/renderer.js +2 -2
- package/dist/runtime/server/og-image/templates/html.js +1 -1
- package/dist/runtime/server/plugins/prerender.d.ts +1 -1
- package/dist/runtime/server/plugins/prerender.js +2 -2
- package/dist/runtime/server/routes/__zero-runtime/image.d.ts +1 -1
- package/dist/runtime/server/routes/__zero-runtime/image.js +1 -1
- package/dist/runtime/server/routes/debug.json.d.ts +1 -10
- package/dist/runtime/server/routes/debug.json.js +1 -1
- package/dist/runtime/server/routes/image.d.ts +1 -1
- package/dist/runtime/server/routes/image.js +1 -1
- package/dist/runtime/server/routes/resolve.d.ts +1 -1
- package/dist/runtime/server/routes/resolve.js +3 -2
- package/dist/runtime/server/util/cache.d.ts +1 -6
- package/dist/runtime/server/util/cache.js +2 -2
- package/dist/runtime/server/util/cloudflare.d.ts +1 -1
- package/dist/runtime/server/util/cloudflareAssets.d.ts +1 -1
- package/dist/runtime/server/util/cloudflareAssets.js +1 -1
- package/dist/runtime/server/util/eventHandlers.d.ts +1 -1
- package/dist/runtime/server/util/eventHandlers.js +1 -1
- package/dist/runtime/server/util/fetchLocalAsset.d.ts +2 -2
- package/dist/runtime/server/util/fetchLocalAsset.js +2 -1
- package/dist/runtime/server/util/kit.d.ts +7 -3
- package/dist/runtime/server/util/kit.js +4 -18
- package/dist/runtime/server/util/options.js +1 -1
- package/dist/runtime/server/util/query.d.ts +1 -1
- package/dist/runtime/server/utils.d.ts +1 -1
- package/dist/runtime/server/utils.js +1 -1
- package/dist/runtime/types.d.ts +12 -10
- package/dist/shared/{nuxt-og-image.D3mV8OQ9.mjs → nuxt-og-image.BMHzg1Vz.mjs} +334 -155
- package/package.json +49 -39
- package/types/virtual.d.ts +15 -0
- package/dist/chunks/tw4.cjs +0 -493
- package/dist/chunks/uno.cjs +0 -234
- package/dist/cli.cjs +0 -1345
- package/dist/cli.d.cts +0 -1
- package/dist/content.cjs +0 -21
- package/dist/content.d.cts +0 -16
- package/dist/module.cjs +0 -39
- package/dist/module.d.cts +0 -219
- package/dist/shared/nuxt-og-image.CMYbz66P.cjs +0 -193
- package/dist/shared/nuxt-og-image.Cctpuv4O.cjs +0 -5867
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.7.
|
|
4
|
+
"version": "6.7.7",
|
|
5
5
|
"description": "Enlightened OG Image generation for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"website": "https://harlanzw.com",
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
"@takumi-rs/core": "^1.0.0-beta.3 || ^2.0.0",
|
|
54
54
|
"@takumi-rs/wasm": "^1.0.0-beta.3 || ^2.0.0",
|
|
55
55
|
"@unhead/vue": "^2.0.5 || ^3.0.0",
|
|
56
|
+
"@unocss/config": "^66.7.5",
|
|
57
|
+
"@unocss/core": "^66.7.5",
|
|
56
58
|
"fontless": "^0.2.0",
|
|
57
59
|
"nitropack": "^2.13.4",
|
|
58
60
|
"playwright-core": "^1.50.0",
|
|
@@ -76,6 +78,12 @@
|
|
|
76
78
|
"@takumi-rs/wasm": {
|
|
77
79
|
"optional": true
|
|
78
80
|
},
|
|
81
|
+
"@unocss/config": {
|
|
82
|
+
"optional": true
|
|
83
|
+
},
|
|
84
|
+
"@unocss/core": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
79
87
|
"fontless": {
|
|
80
88
|
"optional": true
|
|
81
89
|
},
|
|
@@ -103,93 +111,92 @@
|
|
|
103
111
|
},
|
|
104
112
|
"dependencies": {
|
|
105
113
|
"@clack/prompts": "^1.7.0",
|
|
106
|
-
"@nuxt/kit": "^4.5.
|
|
107
|
-
"@
|
|
108
|
-
"@unocss/core": "^66.7.5",
|
|
109
|
-
"@vue/compiler-sfc": "^3.5.40",
|
|
114
|
+
"@nuxt/kit": "^4.5.2",
|
|
115
|
+
"@vue/compiler-sfc": "^3.5.41",
|
|
110
116
|
"chrome-launcher": "^1.2.1",
|
|
111
117
|
"consola": "^3.4.2",
|
|
112
118
|
"defu": "^6.1.7",
|
|
113
|
-
"devalue": "^5.
|
|
119
|
+
"devalue": "^5.9.0",
|
|
114
120
|
"exsolve": "^1.1.1",
|
|
115
121
|
"fnv1a-64": "^0.1.2",
|
|
116
122
|
"lightningcss": "^1.33.0",
|
|
117
123
|
"magic-string": "^1.1.0",
|
|
118
|
-
"magicast": "^0.5.
|
|
124
|
+
"magicast": "^0.5.4",
|
|
119
125
|
"mocked-exports": "^0.1.1",
|
|
120
|
-
"nuxt-site-config": "^4.
|
|
121
|
-
"nuxtseo-shared": "^5.3.
|
|
122
|
-
"nypm": "^0.6.
|
|
126
|
+
"nuxt-site-config": "^4.2.0",
|
|
127
|
+
"nuxtseo-shared": "^5.3.12",
|
|
128
|
+
"nypm": "^0.6.9",
|
|
123
129
|
"object-identity": "^0.2.3",
|
|
124
130
|
"ofetch": "^1.5.1",
|
|
125
131
|
"ohash": "^2.0.11",
|
|
126
|
-
"oxc-parser": "^0.
|
|
127
|
-
"oxc-walker": "^1.
|
|
132
|
+
"oxc-parser": "^0.143.0",
|
|
133
|
+
"oxc-walker": "^1.1.1",
|
|
128
134
|
"pathe": "^2.0.3",
|
|
129
135
|
"pkg-types": "^2.3.1",
|
|
130
136
|
"radix3": "^1.1.2",
|
|
131
137
|
"std-env": "^4.2.0",
|
|
132
|
-
"strip-literal": "^
|
|
133
|
-
"tinyexec": "^1.
|
|
138
|
+
"strip-literal": "^4.0.0",
|
|
139
|
+
"tinyexec": "^1.3.0",
|
|
134
140
|
"ufo": "^1.6.4",
|
|
135
141
|
"ultrahtml": "^1.7.0",
|
|
136
142
|
"unplugin": "^3.3.0"
|
|
137
143
|
},
|
|
138
144
|
"devDependencies": {
|
|
139
|
-
"@antfu/eslint-config": "^9.
|
|
145
|
+
"@antfu/eslint-config": "^9.3.0",
|
|
140
146
|
"@fontsource/noto-sans-sc": "^5.3.0",
|
|
141
|
-
"@iconify-json/carbon": "^1.2.
|
|
142
|
-
"@iconify-json/logos": "^1.2.
|
|
147
|
+
"@iconify-json/carbon": "^1.2.25",
|
|
148
|
+
"@iconify-json/logos": "^1.2.12",
|
|
143
149
|
"@iconify-json/noto": "^1.2.7",
|
|
144
150
|
"@iconify-json/ri": "^1.2.10",
|
|
145
|
-
"@iconify-json/tabler": "^1.2.
|
|
151
|
+
"@iconify-json/tabler": "^1.2.38",
|
|
146
152
|
"@iconify/types": "^2.0.0",
|
|
147
153
|
"@img/sharp-linux-x64": "^0.35.3",
|
|
148
154
|
"@nuxt/content": "^3.15.2",
|
|
149
155
|
"@nuxt/devtools": "4.0.0-alpha.9",
|
|
150
156
|
"@nuxt/devtools-kit": "4.0.0-alpha.9",
|
|
151
157
|
"@nuxt/fonts": "^0.14.0",
|
|
152
|
-
"@nuxt/icon": "^2.
|
|
153
|
-
"@nuxt/image": "^2.
|
|
158
|
+
"@nuxt/icon": "^2.4.1",
|
|
159
|
+
"@nuxt/image": "^2.1.0",
|
|
154
160
|
"@nuxt/module-builder": "^1.0.3",
|
|
155
161
|
"@nuxt/test-utils": "^4.1.0",
|
|
156
162
|
"@nuxt/ui": "^4.10.0",
|
|
157
163
|
"@nuxtjs/color-mode": "^4.0.1",
|
|
158
164
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
159
|
-
"@nuxtjs/i18n": "^10.
|
|
165
|
+
"@nuxtjs/i18n": "^10.6.0",
|
|
160
166
|
"@nuxtjs/tailwindcss": "7.0.0-beta.1",
|
|
161
167
|
"@resvg/resvg-js": "^2.6.2",
|
|
162
168
|
"@resvg/resvg-wasm": "^2.6.2",
|
|
163
169
|
"@tailwindcss/vite": "^4.3.3",
|
|
164
|
-
"@takumi-rs/core": "^2.5.
|
|
170
|
+
"@takumi-rs/core": "^2.5.11",
|
|
165
171
|
"@takumi-rs/core-v1": "npm:@takumi-rs/core@1.8.7",
|
|
166
|
-
"@takumi-rs/helpers": "^2.5.
|
|
172
|
+
"@takumi-rs/helpers": "^2.5.11",
|
|
167
173
|
"@takumi-rs/helpers-v1": "npm:@takumi-rs/helpers@1.8.7",
|
|
168
|
-
"@takumi-rs/wasm": "^2.5.
|
|
174
|
+
"@takumi-rs/wasm": "^2.5.11",
|
|
169
175
|
"@takumi-rs/wasm-v1": "npm:@takumi-rs/wasm@1.8.7",
|
|
176
|
+
"@unocss/config": "^66.7.5",
|
|
177
|
+
"@unocss/core": "^66.7.5",
|
|
170
178
|
"@unocss/nuxt": "^66.7.5",
|
|
171
179
|
"@unocss/preset-icons": "^66.7.5",
|
|
172
180
|
"@unocss/preset-wind": "^66.7.5",
|
|
173
181
|
"@unocss/preset-wind4": "^66.7.5",
|
|
174
182
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
175
|
-
"@vue/compiler-core": "^3.5.
|
|
176
|
-
"@vueuse/nuxt": "^14.
|
|
183
|
+
"@vue/compiler-core": "^3.5.41",
|
|
184
|
+
"@vueuse/nuxt": "^14.4.0",
|
|
177
185
|
"birpc": "^4.0.0",
|
|
178
|
-
"bumpp": "^12.
|
|
179
|
-
"eslint": "^10.8.
|
|
186
|
+
"bumpp": "^12.2.0",
|
|
187
|
+
"eslint": "^10.8.1",
|
|
180
188
|
"eslint-plugin-harlanzw": "^0.17.1",
|
|
181
189
|
"fontless": "^0.2.1",
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"happy-dom": "^20.11.1",
|
|
190
|
+
"globby": "^16.2.3",
|
|
191
|
+
"happy-dom": "^20.11.2",
|
|
185
192
|
"hookable": "^6.1.1",
|
|
186
193
|
"jest-image-snapshot": "^6.5.2",
|
|
187
194
|
"lightningcss": "^1.33.0",
|
|
188
195
|
"nitropack": "^2.13.4",
|
|
189
|
-
"nuxt": "^4.5.
|
|
190
|
-
"nuxtseo-layer-devtools": "^5.3.
|
|
191
|
-
"playwright": "^1.62.
|
|
192
|
-
"playwright-core": "^1.62.
|
|
196
|
+
"nuxt": "^4.5.2",
|
|
197
|
+
"nuxtseo-layer-devtools": "^5.3.12",
|
|
198
|
+
"playwright": "^1.62.1",
|
|
199
|
+
"playwright-core": "^1.62.1",
|
|
193
200
|
"sass": "^1.102.0",
|
|
194
201
|
"satori": "^0.29.0",
|
|
195
202
|
"sharp": "^0.35.3",
|
|
@@ -200,9 +207,9 @@
|
|
|
200
207
|
"unifont": "^0.7.4",
|
|
201
208
|
"unocss": "^66.7.5",
|
|
202
209
|
"vitest": "^4.1.10",
|
|
203
|
-
"vue": "^3.5.
|
|
204
|
-
"vue-tsc": "^3.3.
|
|
205
|
-
"wrangler": "^4.
|
|
210
|
+
"vue": "^3.5.41",
|
|
211
|
+
"vue-tsc": "^3.3.9",
|
|
212
|
+
"wrangler": "^4.120.0",
|
|
206
213
|
"yoga-wasm-web": "^0.3.3",
|
|
207
214
|
"zod": "^4.4.3"
|
|
208
215
|
},
|
|
@@ -219,9 +226,12 @@
|
|
|
219
226
|
"prepare:fixtures": "node scripts/prepare-fixtures.mjs",
|
|
220
227
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground && nuxt prepare client && pnpm run prepare:fixtures && pnpm run build:client",
|
|
221
228
|
"release": "pnpm build && bumpp -x \"npx changelogen --output=CHANGELOG.md\"",
|
|
222
|
-
"typecheck": "
|
|
229
|
+
"typecheck": "pnpm stub && nuxt typecheck",
|
|
223
230
|
"test": "pnpm run prepare:fixtures && vitest",
|
|
231
|
+
"test:run": "pnpm test -- --run && pnpm test:nuxt5",
|
|
232
|
+
"test:nuxt5": "pnpm pack --out test/fixtures/nuxt5/nuxt-og-image.tgz && pnpm install --dir test/fixtures/nuxt5 --no-frozen-lockfile --force --update-checksums && pnpm --dir test/fixtures/nuxt5 test",
|
|
224
233
|
"test:chrome": "HAS_CHROME=true vitest",
|
|
234
|
+
"test:packed-install": "node scripts/smoke-packed-install.mjs",
|
|
225
235
|
"test:takumi:e2e": "node scripts/test-takumi-e2e.mjs",
|
|
226
236
|
"test:takumi:e2e:matrix": "node scripts/test-takumi-e2e.mjs --matrix",
|
|
227
237
|
"test:takumi:e2e:compare": "node scripts/test-takumi-e2e.mjs --compare"
|
package/types/virtual.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
declare module '#nuxtseo/h3' {
|
|
2
|
+
export * from 'h3'
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare module '#nuxtseo/nitro' {
|
|
6
|
+
export * from 'nitropack/runtime'
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
declare module '#og-image/components' {
|
|
2
10
|
import type { Component } from 'vue'
|
|
3
11
|
|
|
@@ -63,6 +71,13 @@ declare module '#og-image/island-hash' {
|
|
|
63
71
|
}): string
|
|
64
72
|
}
|
|
65
73
|
|
|
74
|
+
declare module '#og-image/nitro-fetch' {
|
|
75
|
+
import type { FetchOptions, FetchRequest } from 'ofetch'
|
|
76
|
+
import type { H3Event } from '#nuxtseo/h3'
|
|
77
|
+
|
|
78
|
+
export function fetchWithEvent<T>(event: H3Event, request: FetchRequest, options?: FetchOptions): Promise<T>
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
declare module '#og-image/font-requirements' {
|
|
67
82
|
export const fontRequirements: {
|
|
68
83
|
weights: number[]
|