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'],
setup (props, ctx) {
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}`)
if (ssrFailed.value) {

View File

@ -23,6 +23,10 @@ const LayoutLoader = defineComponent({
layoutProps: Object
},
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)
return () => h(LayoutComponent, props.layoutProps, context.slots)

View File

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

View File

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

View File

@ -1,4 +1,3 @@
import MagicString from 'magic-string'
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"')
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
.filter(m => m.endsWith('package.json'))

View File

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

View File

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

View File

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

View File

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