Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	docs/1.getting-started/5.seo-meta.md
#	docs/1.getting-started/5.transitions.md
  • Loading branch information
Ivan Bochkarev committed Jun 19, 2024
2 parents 9ed4955 + 77685e4 commit 63be387
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 73 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- 3.x
- 2.x

permissions:
Expand All @@ -16,7 +17,7 @@ concurrency:

jobs:
update:
if: github.repository_owner == 'nuxt' && !contains(github.event.head_commit.message, 'v3.')
if: github.repository_owner == 'nuxt' && !contains(github.event.head_commit.message, 'v3.') && !contains(github.event.head_commit.message, 'v4.')
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions: {}

jobs:
release:
if: github.repository == 'nuxt/nuxt' && startsWith(github.event.head_commit.message, 'v3.')
if: github.repository == 'nuxt/nuxt' && (startsWith(github.event.head_commit.message, 'v3.') || startsWith(github.event.head_commit.message, 'v4.'))
permissions:
id-token: write
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions docs/1.getting-started/5.seo-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ interface MetaObject {

Реактивность поддерживается для всех свойств путем предоставления вычисляемого значения (computed), геттера или реактивного объекта.

Рекомендуется использовать геттеры (`() => value`), а не computed (`computed(() => value)`).

::code-group

```vue twoslash [useHead]
Expand Down
4 changes: 3 additions & 1 deletion docs/1.getting-started/5.transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ const next = computed(() => '/' + (id.value + 1))

## Переход с NuxtPage

При использовании `<NuxtPage />` в `app.vue` transition-props можно передавать напрямую как свойства компонента для активации глобального перехода.
Когда `<NuxtPage />` используется в `app.vue`, transitions могут быть настроены с помощью свойства `transition`, чтобы активировать переходы глобально.



```vue [app.vue]
<template>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@testing-library/vue": "8.1.0",
"@types/eslint__js": "8.42.3",
"@types/fs-extra": "11.0.4",
"@types/node": "20.14.3",
"@types/node": "20.14.5",
"@types/semver": "7.5.8",
"@unhead/schema": "1.9.13",
"@vitejs/plugin-vue": "5.0.4",
Expand Down
5 changes: 4 additions & 1 deletion packages/nuxt/src/app/composables/asyncData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,10 @@ function clearNuxtDataByKey (nuxtApp: NuxtApp, key: string): void {
}

if (key in nuxtApp._asyncDataPromises) {
(nuxtApp._asyncDataPromises[key] as any).cancelled = true
if (nuxtApp._asyncDataPromises[key]) {
(nuxtApp._asyncDataPromises[key] as any).cancelled = true
}

nuxtApp._asyncDataPromises[key] = undefined
}
}
Expand Down
130 changes: 65 additions & 65 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2602,7 +2602,7 @@ describe('Node.js compatibility for client-side', () => {
expect(await page.innerHTML('body')).toContain('CWD: [available]')
await page.close()
})
}, 20_000)
}, 30_000)

function normaliseIslandResult (result: NuxtIslandResponse) {
return {
Expand Down

0 comments on commit 63be387

Please sign in to comment.