Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	components/AppFooter.vue
#	content/0.index.yml
#	content/3.deploy/nuxthub.md
#	pages/blog/[slug].vue
#	pages/docs/[...slug].vue
  • Loading branch information
Ivan Bochkarev committed Jun 11, 2024
2 parents 32a2f8d + 83114ec commit cd6ba56
Show file tree
Hide file tree
Showing 12 changed files with 169 additions and 24 deletions.
8 changes: 4 additions & 4 deletions components/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ const { footerLinks } = useNavigation()

<template #left>
<p class="text-gray-500 dark:text-gray-400 text-sm">
Copyright © 2016-{{ new Date().getFullYear() }} Nuxt - <NuxtLink class="hover:underline" to="https://github.com/nuxt/nuxt/blob/main/LICENSE" target="_blank">
Copyright © 2016-{{ new Date().getFullYear() }} Nuxt - <NuxtLink class="hover:underline" to="https://go.nuxt.com/license" target="_blank">
MIT License
</NuxtLink>
</p>
</template>

<template #right>
<UButton aria-label="Nuxt в X" to="https://x.com/nuxt_js" target="_blank" icon="i-simple-icons-x" v-bind="($ui.button.secondary as any)" />
<UButton aria-label="Nuxt в Discord" to="https://discord.com/invite/nuxt" target="_blank" icon="i-simple-icons-discord" v-bind="($ui.button.secondary as any)" />
<UButton aria-label="Nuxt в GitHub" to="https://github.com/nuxt/nuxt" target="_blank" icon="i-simple-icons-github" v-bind="($ui.button.secondary as any)" />
<UButton aria-label="Nuxt в X" to="https://go.nuxt.com/x" target="_blank" icon="i-simple-icons-x" v-bind="($ui.button.secondary as any)" />
<UButton aria-label="Nuxt в Discord" to="https://go.nuxt.com/discord" target="_blank" icon="i-simple-icons-discord" v-bind="($ui.button.secondary as any)" />
<UButton aria-label="Nuxt в GitHub" to="https://go.nuxt.com/github" target="_blank" icon="i-simple-icons-github" v-bind="($ui.button.secondary as any)" />
</template>
</UFooter>
</template>
2 changes: 1 addition & 1 deletion components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ defineProps<{
<UTooltip text="Звезды на GitHub">
<UButton
icon="i-simple-icons-github"
to="https://github.com/nuxt/nuxt"
to="https://go.nuxt.com/github"
target="_blank"
:label="stats ? formatNumber(stats.stars) : '...'"
v-bind="($ui.button.secondary as any)"
Expand Down
12 changes: 6 additions & 6 deletions content/0.index.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
navigation: false
hero:
cta:
label: "Обновленная интеграция Nuxt ESLint"
to: /blog/eslint-module
label: Nuxt v3.12 вышел
to: /blog/v3-12
variant: outline
icon: i-ph-arrow-right
size: xs
Expand Down Expand Up @@ -249,20 +249,20 @@ sections:
color: gray
size: md
target: _blank
to: 'https://chat.nuxt.dev'
to: 'https://go.nuxt.com/discord'
- label: GitHub
icon: 'i-simple-icons-github'
color: gray
size: md
target: _blank
to: 'https://github.com/nuxt/nuxt'
to: 'https://go.nuxt.com/github'
- label: X / Twitter
icon: 'i-simple-icons-x'
color: gray
size: md
target: _blank
to: 'https://x.com/nuxt_js'
- title: 'Нам доверяет <br><span class="text-primary">Всемирная Паутина.</span>'
to: 'https://go.nuxt.com/x'
- title: 'Нам доверяет <br><span class="text-primary">World Wide Web.</span>'
class: 'dark:bg-gradient-to-b from-gray-900 to-gray-950'
slot: testimonials
align: center
Expand Down
8 changes: 8 additions & 0 deletions content/3.deploy/firebase.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,11 @@ firebase deploy --only functions:server,hosting
::read-more{to="https://nitro.unjs.io/deploy/providers/firebase" target="_blank"}
Перейдите по ссылке **Документация Nitro**, чтобы узнать больше о предустановке развертывания Firebase.
::
## Using Cookies in production
When using Firebase Hosting together with Cloud Functions or Cloud Run, cookies are generally stripped from incoming requests to allow for efficient CDN cache behavior. Only the specially-named `__session` cookie is permitted to pass through to your app.
::read-more{to="https://firebase.google.com/docs/hosting/manage-cache#using_cookies" target="\_blank"}
For more information, refer to the **Firebase documentation**.
::
8 changes: 4 additions & 4 deletions content/3.deploy/nuxthub.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ logoSrc: '/assets/integrations/nuxthub.svg'
category: Хостинг
featured: true
nitroPreset: 'cloudflare-pages'
website: 'https://hub.nuxt.com'
website: 'https://hub.nuxt.com/?utm_source=nuxt-website&utm_medium=deploy-page'
---

::tip
Expand All @@ -16,12 +16,12 @@ website: 'https://hub.nuxt.com'
::

::note
NuxtHub - это платформа развертывания и администрирования для Nuxt на базе Cloudflare. :br Основное отличие от [Cloudflare](/deploy/cloudflare) заключается в том, что NuxtHub обеспечивает развертывание с нулевой конфигурацией (инициализация, развертывание и администрирование). :br Он также предоставляет мощный интерфейс администратора для управления вашими проектами Nuxt (база данных, blob, KV, ...), а также [удалённое хранение](https://hub.nuxt.com/docs/getting-started/remote-storage).
NuxtHub is a deployment and administration platform for Nuxt, powered by Cloudflare. :br The main difference with the [Cloudflare](/deploy/cloudflare) deployment is that NuxtHub provides a zero-configuration deployment experience (provisioning, deployment, and administration). :br It also provides a powerful admin interface to manage your Nuxt projects (database, blob, KV, ...) as well as [remote storage](https://hub.nuxt.com/docs/getting-started/remote-storage?utm_source=nuxt-website&utm_medium=deploy-page).
::

## Быстрый старт

- Войдите на сайт [admin.hub.nuxt.com](https://admin.hub.nuxt.com)
- Войдите на сайт [admin.hub.nuxt.com](https://admin.hub.nuxt.com/?utm_source=nuxt-website&utm_medium=deploy-page)
- Подключите свой аккаунт Cloudflare, нажав на `Создать новый токен с необходимыми правами` и следуйте инструкциям
- Теперь вы готовы развернуть ваш проект Nuxt на вашем аккаунте Cloudflare!

Expand Down Expand Up @@ -49,7 +49,7 @@ npx nuxthub deploy

Далее:

1. Убедитесь, что вы авторизованы на [admin.hub.nuxt.com](admin.hub.nuxt.com)
1. Убедитесь, что вы авторизованы на [admin.hub.nuxt.com](https://admin.hub.nuxt.com/?utm_source=nuxt-website&utm_medium=deploy-page)
2. Свяжите ваш локальный проект с проектом NuxtHub или помогите создать новый
3. Соберите ваш проект Nuxt с правильным пресетом
4. Разверните его на вашем аккаунте Cloudflare со всеми необходимыми ресурсами
Expand Down
137 changes: 137 additions & 0 deletions content/7.blog/25.v3-12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
---
title: Nuxt 3.12
description: Nuxt 3.12 is out - full of improvements and preparing the way for Nuxt 4!
navigation: false
image: /assets/blog/v3.12.png
authors:
- name: Daniel Roe
avatarUrl: https://github.com/danielroe.png
link: https://twitter.com/danielcroe
twitter: danielcroe
date: 2024-06-10T10:00:00.000Z
category: Release
---

We're on the road to the release of Nuxt 4, but we've not held back in Nuxt v3.12.

## 🚀 Testing Nuxt 4 changes

Nuxt 4 is on the horizon, and it's now possible to test out the behaviour changes that will be coming in the next major release ([#26925](https://github.com/nuxt/nuxt/pull/26925)) by setting an option in your `nuxt.config` file:

```ts
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
})
```

As we've been merging PRs for Nuxt 4, we've been enabling them behind this flag. As much as possible we're aiming for backwards compatibility - our test matrix is running the same fixtures in both v3 and v4 compatibility mode.

There is a lot to say here, with 10+ different PRs and behaviour changes documented and testable, but for full details, including migration steps, see [the v4 upgrade documentation](/docs/getting-started/upgrade#testing-nuxt-4).

We'd be very grateful for early testing of what's coming in Nuxt 4! 🙏

## 📜 Nuxt Scripts auto-install

We've been gradually working to release [Nuxt Scripts](https://scripts.nuxt.com/). It's currently in public preview, but we're near a public release, so we've added some stubs for composables that (when used) will prompt installing the `@nuxt/scripts` module.

👉 Watch out for the launch - and an article explaining more!

## 🌈 Layer auto-registration and bugfixes

Just like `~/modules`, any layers within your project in the `~/layers` directory will now be automatically registered as layers in your project ([#27221](https://github.com/nuxt/nuxt/pull/27221)).

We also now correctly load layer dependencies, which should resolve a range of issues with monorepos and git installations ([#27338](https://github.com/nuxt/nuxt/pull/27338)).

## 🌐 Built-in accessibility improvements

We now have a built-in [`<NuxtRouteAnnouncer>`](/docs/api/components/nuxt-route-announcer) component and corresponding [`useRouteAnnouncer`](/docs/api/composables/use-route-announcer) composable, which will be added by default to new Nuxt templates going forward.

For full details, see [the original PR (#25741)](https://github.com/nuxt/nuxt/pull/25741) and [documentation](/docs/api/components/nuxt-route-announcer).

We're continuing to work on `nuxt/a11y` - expect to hear more on that in future!

## 🔥 Performance improvements

We've landed some performance improvements as well, many of which are behind the `compatibilityVersion: 4` flag, such as a move away from deeply reactive asyncData payloads.

Significant improvements include deduplicating modules ([#27475](https://github.com/nuxt/nuxt/pull/27475)) - which will apply mostly to layer users who specify modules in their layers. In one project, we saw 30s+ improvement in starting Nuxt.

We've also improved Vite dev server start up time by excluding common ESM dependencies from pre-bundling, and would suggest module authors consider doing the same ([#27372](https://github.com/nuxt/nuxt/pull/27372)).

We improved chunk determinism, so sequential builds should be less likely to have _completely_ different chunk hashes ([#27258](https://github.com/nuxt/nuxt/pull/27258)).

And we tree shake more client-only composables from your server builds ([#27044](https://github.com/nuxt/nuxt/pull/27044)), and have reduced the size of server component payloads ([#26863](https://github.com/nuxt/nuxt/pull/26863)).

## 👨‍👩‍👧‍👦 Multi-app support

We've landed a couple of changes that take us toward a place of supporting multi-app natively in Nuxt, including a `multiApp` experimental flag ([#27291](https://github.com/nuxt/nuxt/pull/27291)) and the ability to have multiple Nuxt app instances running in parallel at runtime ([#27068](https://github.com/nuxt/nuxt/pull/27068)).

While it's not yet ready, please do follow along on [the tracker issue](https://github.com/nuxt/nuxt/issues/21635), and feel free to pitch in if this is interesting to you.

## ⛑️ DX wins

We now serialise more things in your dev server logs, including VNodes ([#27309](https://github.com/nuxt/nuxt/pull/27309)) and [URLs](https://github.com/nuxt/nuxt/commit/a549b46e9). We also addressed a bug that could lead to a frozen dev server.

When accessing private runtime config in the browser, we now let you know with a more informative error message ([#26441](https://github.com/nuxt/nuxt/pull/26441)).

## 🪨 Stabilising features

We've removed some experimental options that have been stabilised and which we feel no longer need to be configurable:

- `experimental.treeshakeClientOnly` (enabled by default since v3.0.0)
- `experimental.configSchema` (enabled by default since v3.3.0)
- `experimental.polyfillVueUseHead` (disabled since v3.4.0) - implementable in user-land with [plugin](https://github.com/nuxt/nuxt/blob/f209158352b09d1986aa320e29ff36353b91c358/packages/nuxt/src/head/runtime/plugins/vueuse-head-polyfill.ts#L10-L11)
- `experimental.respectNoSSRHeader` (disabled since v3.4.0) - implementable in user-land with [server middleware](https://github.com/nuxt/nuxt/blob/c660b39447f0d5b8790c0826092638d321cd6821/packages/nuxt/src/core/runtime/nitro/no-ssr.ts#L8-L9)

We've also enabled `scanPageMeta` by default ([#27134](https://github.com/nuxt/nuxt/pull/27134)). This pulls out any page metadata in your `definePageMeta` macro, and makes it available to modules (like `@nuxtjs/i18n`) so they can augment it.

This unlocks much better module/typed routing integration, but has a potential performance cost - so please file an issue if you experience any problems.

## 💪 Type improvements

We now have support for typed `#fallback` slots in server components ([#27097](https://github.com/nuxt/nuxt/pull/27097)).

We've also improved some defaults in your generated `tsconfig.json`, including setting `module: 'preserve'` if you have a locally installed TypeScript v5.4 version ([see docs](https://www.typescriptlang.org/tsconfig/#preserve)) - see [#26667](https://github.com/nuxt/nuxt/26667), [#27485](https://github.com/nuxt/nuxt/27485).

## 📦 Module author/power user improvements

We have shipped a range of type improvements for module authors, including:

- support for typed module options in `installModule` ([#26744](https://github.com/nuxt/nuxt/pull/26744))
- the option to specify compatibility with certain builders (vite/webpack) in module options ([#27022](https://github.com/nuxt/nuxt/pull/27022))
- a new `onPrehydrate` hook for hooking into the browser hydration cycle ([#27037](https://github.com/nuxt/nuxt/pull/27037))
- the ability to access and update _resolved_ runtime configuration within modules, with new build-time `useRuntimeConfig` and `updateRuntimeConfig` utils ([#27117](https://github.com/nuxt/nuxt/pull/27117))

## 🎨 Inlined UI templates

If you previously used `@nuxt/ui-templates` then it may be worth knowing that we have moved them from [a separate repository](https://github.com/nuxt/ui-templates) into the [nuxt/nuxt](https://github.com/nuxt/nuxt) monorepo. (This is purely a refactor rather than a change, although you can expect some new designs for Nuxt v4.)

## ✅ Upgrading

As usual, our recommendation for upgrading is to run:

```sh
npx nuxi@latest upgrade --force
```

This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

## Full Release Notes

::read-more
---
color: gray
icon: i-simple-icons-github
target: _blank
to: https://github.com/nuxt/nuxt/releases/tag/v3.12.0
---
Read the full release notes of Nuxt `v3.12.0`.
::

A huge thank you to the 75+ Nuxt contributors and community members who have been part of this release. ❤️

Finally, thank you for reading this far! We hope you enjoy v3.12, and please do let us know if you have any feedback or issues. 🙏

**Happy Nuxting ✨**
2 changes: 1 addition & 1 deletion content/7.blog/3.nuxt3-rc.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ authors:
category: Релиз
---

We are excited to open source Nuxt 3 after more than a year of intense development. The repository is available on GitHub on [nuxt/nuxt](https://github.com/nuxt/nuxt) under the [MIT](https://github.com/nuxt/nuxt/blob/main/LICENSE) license.
We are excited to open source Nuxt 3 after more than a year of intense development. The repository is available on GitHub on [nuxt/nuxt](https://go.nuxt.com/github) under the [MIT](https://go.nuxt.com/license) license.

::tip
The documentation is available on https://nuxt.com.
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default defineNuxtConfig({
// failOnError: false
// TODO: investigate
// Ignore weird url from crawler on some modules readme
ignore: ['/modules/%3C/span', '/modules/%253C/span', '/docs/getting-started/</span', '/docs/getting-started/%3C/span']
ignore: ['/modules/%3C/span', '/modules/%253C/span', '/docs/getting-started/</span', '/docs/getting-started/%3C/span', '/modules/Mojo CSS', '/modules/Mojo%20CSS']
},
hooks: {
'prerender:generate'(route) {
Expand Down
6 changes: 3 additions & 3 deletions pages/blog/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ const links = [
}, {
icon: 'i-ph-shooting-star-duotone',
label: 'Звезды на GitHub',
to: 'https://github.com/nuxt/nuxt',
to: 'https://go.nuxt.com/github',
target: '_blank'
}, {
icon: 'i-ph-chat-centered-text-duotone',
label: 'Чат в Discord',
to: 'https://discord.com/invite/nuxt',
to: 'https://go.nuxt.com/discord',
target: '_blank'
}, {
icon: 'i-ph-hand-heart-duotone',
label: 'Стать спонсором',
to: 'https://github.com/sponsors/nuxt',
to: 'https://go.nuxt.com/sponsor',
target: '_blank'
}
]
Expand Down
6 changes: 3 additions & 3 deletions pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ const communityLinks = computed(() => [{
}, {
icon: 'i-ph-shooting-star-duotone',
label: 'Звезды на GitHub',
to: 'https://github.com/nuxt/nuxt',
to: 'https://go.nuxt.com/github',
target: '_blank'
}, {
icon: 'i-ph-chat-centered-text-duotone',
label: 'Чат в Discord',
to: 'https://discord.com/invite/nuxt',
to: 'https://go.nuxt.com/discord',
target: '_blank'
}, {
icon: 'i-ph-hand-heart-duotone',
label: 'Стать спонсором',
to: 'https://github.com/sponsors/nuxt',
to: 'https://go.nuxt.com/sponsor',
target: '_blank'
}])
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ useSeoMeta({
<template #description>
Nuxt - это
<NuxtLink
to="https://github.com/nuxt/nuxt"
to="https://go.nuxt.com/github"
target="_blank"
class="font-medium hover:underline underline-offset-2"
>
Expand Down
Binary file added public/assets/blog/v3.12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cd6ba56

Please sign in to comment.