diff --git a/.github/reproduire/needs-reproduction.md b/.github/reproduire/needs-reproduction.md index 7b260b8185..79ad109255 100644 --- a/.github/reproduire/needs-reproduction.md +++ b/.github/reproduire/needs-reproduction.md @@ -9,7 +9,7 @@ Reproductions make it possible for us to triage and fix issues quickly with a re ### What will happen? -If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. +If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If `needs reproduction` labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it. diff --git a/.website/README.md b/.website/README.md index 610b0a4d57..197a0d921a 100755 --- a/.website/README.md +++ b/.website/README.md @@ -2,7 +2,7 @@ This is a temporary directory until we open source the repository for nuxt.com. -The goal is to simplify the contribution in the meantine to the documentation by having the possibility to preview the changes locally. +The goal is to simplify the contribution in the meantime to the documentation by having the possibility to preview the changes locally. ## Setup diff --git a/docs/1.getting-started/12.upgrade.md b/docs/1.getting-started/12.upgrade.md index 5bacb6f264..d5348dc6e6 100644 --- a/docs/1.getting-started/12.upgrade.md +++ b/docs/1.getting-started/12.upgrade.md @@ -35,7 +35,7 @@ Static sites | ✅ | ✅ | ✅ The migration guide provides a step-by-step comparison of Nuxt 2 features to Nuxt 3 features and guidance to adapt your current application. ::alert{type=info} -👉 Checkout the [**migration guide from From Nuxt 2 to Nuxt 3**](/docs/migration/overview). +👉 Check out the [**guide to migrating from Nuxt 2 to Nuxt 3**](/docs/migration/overview). :: ::alert{type=info} diff --git a/docs/2.guide/2.directory-structure/1.components.md b/docs/2.guide/2.directory-structure/1.components.md index fcabd10a68..5c66ade6ee 100644 --- a/docs/2.guide/2.directory-structure/1.components.md +++ b/docs/2.guide/2.directory-structure/1.components.md @@ -344,7 +344,7 @@ In this case, the `.server` + `.client` components are two 'halves' of a compone ```html [pages/example.vue] diff --git a/docs/2.guide/3.going-further/1.experimental-features.md b/docs/2.guide/3.going-further/1.experimental-features.md index 6f18fada86..6f77a2b8d2 100644 --- a/docs/2.guide/3.going-further/1.experimental-features.md +++ b/docs/2.guide/3.going-further/1.experimental-features.md @@ -14,7 +14,7 @@ Note that these features are experimental and could be removed or modified in th ## asyncContext -Enable native async context to be accessable for nested composables in Nuxt and in Nitro. See [full explanation in #20918](https://github.com/nuxt/nuxt/pull/20918). +Enable native async context to be accessible for nested composables in Nuxt and in Nitro. See [full explanation in #20918](https://github.com/nuxt/nuxt/pull/20918). ```ts [nuxt.config.ts] export defineNuxtConfig({ experimental: { asyncContext: true } }) diff --git a/docs/2.guide/3.going-further/3.modules.md b/docs/2.guide/3.going-further/3.modules.md index a63f31dd1b..426d33dae5 100644 --- a/docs/2.guide/3.going-further/3.modules.md +++ b/docs/2.guide/3.going-further/3.modules.md @@ -709,7 +709,7 @@ It's a good practice to make a minimal reproduction with your module and [StackB This not only provides potential users of your module a quick and easy way to experiment with the module but also an easy way for them to build minimal reproductions they can send you when they encounter issues. -#### Do Not Advertize With a Specific Nuxt Version +#### Do Not Advertise With a Specific Nuxt Version Nuxt 3, Nuxt Kit, and other new toolings are made to have both forward and backward compatibility in mind. diff --git a/packages/kit/src/build.ts b/packages/kit/src/build.ts index 43444d11f6..507af75ff4 100644 --- a/packages/kit/src/build.ts +++ b/packages/kit/src/build.ts @@ -28,7 +28,7 @@ export interface ExtendConfigOptions { */ client?: boolean /** - * Prepends the plugin to the array with `unshit()` instead of `push()`. + * Prepends the plugin to the array with `unshift()` instead of `push()`. */ prepend?: boolean } diff --git a/packages/nuxt/src/components/scan.ts b/packages/nuxt/src/components/scan.ts index 95a905f97b..dba57cfd93 100644 --- a/packages/nuxt/src/components/scan.ts +++ b/packages/nuxt/src/components/scan.ts @@ -144,7 +144,7 @@ export async function scanComponents (dirs: ComponentsDir[], srcDir: string): Pr if (newPriority > existingPriority) { components.splice(components.indexOf(existingComponent), 1, component) } - // Warn if a user-defined (or prioritised) component conflicts with a previously scanned component + // Warn if a user-defined (or prioritized) component conflicts with a previously scanned component if (newPriority > 0 && newPriority === existingPriority) { warnAboutDuplicateComponent(componentName, filePath, existingComponent.filePath) } diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index 302caf5c14..f56fd5d902 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -77,7 +77,7 @@ async function initNuxt (nuxt: Nuxt) { } }) - // Add plugin normalisation plugin + // Add plugin normalization plugin addBuildPlugin(RemovePluginMetadataPlugin(nuxt)) // Add import protection @@ -391,7 +391,7 @@ async function initNuxt (nuxt: Nuxt) { const layerRelativePaths = nuxt.options._layers.map(l => relative(l.config.srcDir || l.cwd, path)) for (const pattern of nuxt.options.watch) { if (typeof pattern === 'string') { - // Test (normalised) strings against absolute path and relative path to any layer `srcDir` + // Test (normalized) strings against absolute path and relative path to any layer `srcDir` if (pattern === path || layerRelativePaths.includes(pattern)) { return nuxt.callHook('restart') } continue } diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 91d7b9a36e..6e73ac3f28 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -235,7 +235,7 @@ export default defineUntypedSchema({ watcher: 'chokidar-granular', /** - * Enable native async context to be accessable for nested composables + * Enable native async context to be accessible for nested composables * * @see https://github.com/nuxt/nuxt/pull/20918 */ diff --git a/test/basic.test.ts b/test/basic.test.ts index 249f148f6e..ab217f06be 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -1896,8 +1896,8 @@ describe.skipIf(isDev() || isWindows || !isRenderingJson)('payload rendering', ( it.skipIf(!isRenderingJson)('should not include server-component HTML in payload', async () => { const payload = await $fetch('/prefetch/server-components/_payload.json', { responseType: 'text' }) const entries = Object.entries(parsePayload(payload)) - const [key, serialisedComponent] = entries.find(([key]) => key.startsWith('AsyncServerComponent')) || [] - expect(serialisedComponent).toEqual(key) + const [key, serializedComponent] = entries.find(([key]) => key.startsWith('AsyncServerComponent')) || [] + expect(serializedComponent).toEqual(key) }) }) diff --git a/test/fixtures/basic/extends/bar/middleware/override.ts b/test/fixtures/basic/extends/bar/middleware/override.ts index fbbfd73091..eca4b646c3 100644 --- a/test/fixtures/basic/extends/bar/middleware/override.ts +++ b/test/fixtures/basic/extends/bar/middleware/override.ts @@ -1,3 +1,3 @@ export default defineNuxtRouteMiddleware((to) => { - to.meta.override = 'This middleware should be overriden by bar' + to.meta.override = 'This middleware should be overridden by bar' }) diff --git a/test/fixtures/basic/nuxt.config.ts b/test/fixtures/basic/nuxt.config.ts index 01f15fff01..3c1193ad16 100644 --- a/test/fixtures/basic/nuxt.config.ts +++ b/test/fixtures/basic/nuxt.config.ts @@ -42,7 +42,7 @@ export default defineNuxtConfig({ nitro: { esbuild: { options: { - // in order to test bigint serialisation + // in order to test bigint serialization target: 'es2022' } }, @@ -128,7 +128,7 @@ export default defineNuxtConfig({ telemetry: false, // for testing telemetry types - it is auto-disabled in tests hooks: { 'webpack:config' (configs) { - // in order to test bigint serialisation we need to set target to a more modern one + // in order to test bigint serialization we need to set target to a more modern one for (const config of configs) { const esbuildRules = config.module!.rules!.filter( rule => typeof rule === 'object' && rule && 'loader' in rule && rule.loader === 'esbuild-loader'