Skip to content

Commit 9376d7e

Browse files
renovate[bot]DamianGlowaladanielroe
authored
chore(deps): update dependency @nuxtjs/plausible to v3 (#2120)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Damian Glowala <damian.glowala.rebkow@gmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent a605d60 commit 9376d7e

File tree

4 files changed

+77
-49
lines changed

4 files changed

+77
-49
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"@nuxt/image": "link:..",
99
"@nuxt/ui": "^4.4.0",
10-
"@nuxtjs/plausible": "^2.0.1",
10+
"@nuxtjs/plausible": "^3.0.1",
1111
"better-sqlite3": "^12.6.2",
1212
"docus": "^5.5.0",
1313
"tailwindcss": "^4.1.18"

pnpm-lock.yaml

Lines changed: 68 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ipx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ export const ipxSetup: IPXSetupT = setupOptions => (providerOptions, moduleOptio
4848
nitro.options._config.runtimeConfig = nitro.options._config.runtimeConfig || {}
4949
nitro.options.runtimeConfig.ipx = defu(nitro.options.runtimeConfig.ipx, ipxOptions)
5050

51-
const ipxHandler = <NitroEventHandler>{
51+
const ipxHandler = {
5252
route: `${ipxBaseURL}/**`,
5353
middleware: false,
5454
handler: resolver.resolve('./runtime/server/routes/_ipx'),
55-
}
55+
} satisfies NitroEventHandler
5656

5757
if (!setupOptions?.isStatic) {
5858
nitro.options.handlers.push(ipxHandler)

test/unit/bundle.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ describe.skipIf(process.env.ECOSYSTEM_CI || isWindows)('nuxt image bundle size',
1414
const rootDir = fileURLToPath(new URL('../.tmp', import.meta.url))
1515
await fsp.rm(rootDir, { recursive: true, force: true })
1616

17-
const [withoutImage, withImage] = await Promise.all([
18-
build(join(rootDir, 'without')),
19-
build(join(rootDir, 'with'), {
20-
modules: ['@nuxt/image'],
21-
image: { provider: 'ipx' },
22-
}),
23-
])
17+
const withoutImage = await build(join(rootDir, 'without'))
18+
19+
const withImage = await build(join(rootDir, 'with'), {
20+
modules: ['@nuxt/image'],
21+
image: { provider: 'ipx' },
22+
})
2423

2524
expect(roundToKilobytes(withImage.totalBytes - withoutImage.totalBytes)).toMatchInlineSnapshot(`"12.8k"`)
2625
})

0 commit comments

Comments
 (0)