chore: refresh lockfile (#22518)

This commit is contained in:
Daniel Roe 2023-08-07 14:03:41 +01:00 committed by GitHub
parent 29157199c3
commit ae8314b236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 524 additions and 478 deletions

View File

@ -30,6 +30,8 @@ export default defineComponent({
emits: ['ssr-error'], emits: ['ssr-error'],
setup (props, ctx) { setup (props, ctx) {
const mounted = ref(false) const mounted = ref(false)
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
// eslint-disable-next-line vue/no-setup-props-destructure
const ssrFailed = useState(`${props.uid}`) const ssrFailed = useState(`${props.uid}`)
if (ssrFailed.value) { if (ssrFailed.value) {

View File

@ -23,6 +23,10 @@ const LayoutLoader = defineComponent({
layoutProps: Object layoutProps: Object
}, },
async setup (props, context) { async setup (props, context) {
// This is a deliberate hack - this component must always be called with an explicit key to ensure
// that setup reruns when the name changes.
// eslint-disable-next-line vue/no-setup-props-destructure
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r) const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
return () => h(LayoutComponent, props.layoutProps, context.slots) return () => h(LayoutComponent, props.layoutProps, context.slots)

View File

@ -26,6 +26,8 @@ export default defineComponent({
} }
}, },
setup (props, { slots }) { setup (props, { slots }) {
// TODO: use computed values in useLoadingIndicator
// eslint-disable-next-line vue/no-setup-props-destructure
const indicator = useLoadingIndicator({ const indicator = useLoadingIndicator({
duration: props.duration, duration: props.duration,
throttle: props.throttle throttle: props.throttle

View File

@ -1,4 +1,3 @@
import type { H3Event } from 'h3' import type { H3Event } from 'h3'
import { setResponseStatus as _setResponseStatus } from 'h3' import { setResponseStatus as _setResponseStatus } from 'h3'
import type { NuxtApp } from '../nuxt' import type { NuxtApp } from '../nuxt'

View File

@ -1,4 +1,3 @@
import MagicString from 'magic-string' import MagicString from 'magic-string'
import type { Plugin } from 'vite' import type { Plugin } from 'vite'

File diff suppressed because it is too large Load Diff

View File

@ -95,7 +95,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"') expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"')
const modules = await analyzeSizes('node_modules/**/*', serverDir) const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"608k"') expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"607k"')
const packages = modules.files const packages = modules.files
.filter(m => m.endsWith('package.json')) .filter(m => m.endsWith('package.json'))

View File

@ -1,4 +1,3 @@
<template> <template>
<div> <div>
stateful setup {{ state }} stateful setup {{ state }}

View File

@ -1,4 +1,3 @@
<template> <template>
<div> <div>
<ClientOnlyScript class="client-only-script" foo="bar" /> <ClientOnlyScript class="client-only-script" foo="bar" />

View File

@ -1,4 +1,3 @@
<script setup> <script setup>
definePageMeta({ definePageMeta({
layout: 'custom2' layout: 'custom2'

View File

@ -1,4 +1,3 @@
export default defineNitroPlugin((nitroApp) => { export default defineNitroPlugin((nitroApp) => {
if (!process.dev) { return } if (!process.dev) { return }