diff --git a/benchmark/make-project/README.md b/benchmark/make-project/README.md index 3199d1b7a7..9d1a421c9b 100644 --- a/benchmark/make-project/README.md +++ b/benchmark/make-project/README.md @@ -2,6 +2,6 @@ This `make-project` folder contains different files to programmatically create a new Astro project. They are created inside the `projects` folder and are gitignored. These projects are used by benchmarks for testing. -Each benchmark can specify the default project to run in its `defaultProject` export, but it can be overriden if `--project ` is passed through the CLI. +Each benchmark can specify the default project to run in its `defaultProject` export, but it can be overridden if `--project ` is passed through the CLI. You can duplicate `_template.js` to start a new project script. All shared utilities are kept in `_util.js`. diff --git a/examples/blog/src/content/blog/markdown-style-guide.md b/examples/blog/src/content/blog/markdown-style-guide.md index 877ec2f4a1..a72853438d 100644 --- a/examples/blog/src/content/blog/markdown-style-guide.md +++ b/examples/blog/src/content/blog/markdown-style-guide.md @@ -95,7 +95,7 @@ The blockquote element represents content that is quoted from another source, op #### Syntax -we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntac, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash +we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntax, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash ````markdown ```html diff --git a/examples/blog/src/styles/global.css b/examples/blog/src/styles/global.css index fe9ecf0b89..bbb0c30158 100644 --- a/examples/blog/src/styles/global.css +++ b/examples/blog/src/styles/global.css @@ -149,6 +149,6 @@ hr { clip: rect(1px, 1px, 1px, 1px); /* modern browsers, clip-path works inwards from each corner */ clip-path: inset(50%); - /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */ + /* added line to stop words getting smushed together (as they go onto separate lines and some screen readers do not understand line feeds as a space */ white-space: nowrap; } diff --git a/examples/hackernews/src/lib/api.ts b/examples/hackernews/src/lib/api.ts index 61fc2f9abc..49fd0c333a 100644 --- a/examples/hackernews/src/lib/api.ts +++ b/examples/hackernews/src/lib/api.ts @@ -14,7 +14,7 @@ export default async function fetchAPI(path: string) { } return JSON.parse(text); } catch (e) { - console.error(`Recevied from API: ${text}`); + console.error(`Received from API: ${text}`); console.error(e); return { error: e }; } diff --git a/examples/view-transitions/src/scripts/spa-navigation.js b/examples/view-transitions/src/scripts/spa-navigation.js index ceaf3a955c..bb96bce7b0 100644 --- a/examples/view-transitions/src/scripts/spa-navigation.js +++ b/examples/view-transitions/src/scripts/spa-navigation.js @@ -8,7 +8,7 @@ import { } from './utils'; // View Transitions support cross-document navigations. -// Should compare performace. +// Should compare performance. // https://github.com/WICG/view-transitions/blob/main/explainer.md#cross-document-same-origin-transitions // https://github.com/WICG/view-transitions/blob/main/explainer.md#script-events function shouldDisableSpa() { diff --git a/examples/with-nanostores/src/components/FigurineDescription.astro b/examples/with-nanostores/src/components/FigurineDescription.astro index d994812587..1294b15100 100644 --- a/examples/with-nanostores/src/components/FigurineDescription.astro +++ b/examples/with-nanostores/src/components/FigurineDescription.astro @@ -5,7 +5,7 @@ fully-poseable action figurine comes equipped with:

diff --git a/packages/astro/e2e/dev-toolbar.test.js b/packages/astro/e2e/dev-toolbar.test.js index c9501bb4ca..1002b21830 100644 --- a/packages/astro/e2e/dev-toolbar.test.js +++ b/packages/astro/e2e/dev-toolbar.test.js @@ -146,7 +146,7 @@ test.describe('Dev Toolbar', () => { await expect(xrayWindow.locator('astro-dev-toolbar-icon[icon=lightbulb]')).toBeVisible(); }); - test('audit shows higlights and tooltips', async ({ page, astro }) => { + test('audit shows highlights and tooltips', async ({ page, astro }) => { await page.goto(astro.resolveUrl('/')); const toolbar = page.locator('astro-dev-toolbar'); diff --git a/packages/astro/e2e/fixtures/i18n/astro.config.mjs b/packages/astro/e2e/fixtures/i18n/astro.config.mjs index 2fa926e944..79d2b25f13 100644 --- a/packages/astro/e2e/fixtures/i18n/astro.config.mjs +++ b/packages/astro/e2e/fixtures/i18n/astro.config.mjs @@ -9,7 +9,7 @@ export default defineConfig({ "fr", "es", { - path: "portugues", + path: "portuguese", codes: [ "pt-AO", "pt", diff --git a/packages/astro/e2e/fixtures/i18n/src/pages/index.astro b/packages/astro/e2e/fixtures/i18n/src/pages/index.astro index 5c3de3888f..1f19358fe5 100644 --- a/packages/astro/e2e/fixtures/i18n/src/pages/index.astro +++ b/packages/astro/e2e/fixtures/i18n/src/pages/index.astro @@ -4,4 +4,4 @@ import { getLocaleByPath } from "astro:i18n";

Locale: {getLocaleByPath("en")}

Locale: {getLocaleByPath("fr")}

-

Locale: {getLocaleByPath("portugues")}

+

Locale: {getLocaleByPath("portuguese")}

diff --git a/packages/astro/e2e/fixtures/view-transitions/src/pages/half-baked.astro b/packages/astro/e2e/fixtures/view-transitions/src/pages/half-baked.astro index 40298d125f..76e36dbdfa 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/pages/half-baked.astro +++ b/packages/astro/e2e/fixtures/view-transitions/src/pages/half-baked.astro @@ -3,7 +3,7 @@ import { ViewTransitions } from 'astro:transitions'; // For the test fixture, we import the script but we don't use the component // While this seems to be some strange mistake, -// it might be realistic, e.g. in a configurable CommenHead component +// it might be realistic, e.g. in a configurable CommentHead component interface Props { transitions?: string; diff --git a/packages/astro/e2e/fixtures/view-transitions/src/pages/transition-name.astro b/packages/astro/e2e/fixtures/view-transitions/src/pages/transition-name.astro index 85c42ee0ef..5940a0d730 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/pages/transition-name.astro +++ b/packages/astro/e2e/fixtures/view-transitions/src/pages/transition-name.astro @@ -16,7 +16,7 @@ import Layout from '../components/Layout.astro';
#! /
_01__02___
control chars
-
punctation & numbers
+
punctuation & numbers
upper case chars
lower case chars
80-9f
diff --git a/packages/astro/e2e/view-transitions.test.js b/packages/astro/e2e/view-transitions.test.js index 65f1365315..7a94fdc0ca 100644 --- a/packages/astro/e2e/view-transitions.test.js +++ b/packages/astro/e2e/view-transitions.test.js @@ -665,7 +665,7 @@ test.describe('View Transitions', () => { await expect(h, 'should be absent').not.toHaveAttribute('class', /.*/); }); - test('Link with data-astro-reload attribute should trigger page load, no tranistion', async ({ + test('Link with data-astro-reload attribute should trigger page load, no transition', async ({ page, astro, }) => { @@ -728,7 +728,7 @@ test.describe('View Transitions', () => { let locator = page.locator('#click-external'); await expect(locator).toBeInViewport(); - // Go to a page that has not enabled ViewTransistions + // Go to a page that has not enabled ViewTransitions await page.click('#click-external'); locator = page.locator('#three'); await expect(locator).toHaveText('Page 3'); @@ -920,7 +920,7 @@ test.describe('View Transitions', () => { test('Use the client side router in framework components', async ({ page, astro }) => { await page.goto(astro.resolveUrl('/client-load')); - // the button is set to naviagte() to /two + // the button is set to navigate() to /two const button = page.locator('#react-client-load-navigate-button'); await expect(button, 'should have content').toHaveText('Navigate to `/two`'); diff --git a/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts b/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts index d80aad808a..1ccf2d99f1 100644 --- a/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts +++ b/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts @@ -68,7 +68,7 @@ function extractOrientation(exifBlock: Uint8Array, isBigEndian: boolean) { return } - // unsinged int has 2 bytes per component + // unsigned int has 2 bytes per component // if there would more than 4 bytes in total it's a pointer const numberOfComponents = readUInt(block, 32, 4, isBigEndian) if (numberOfComponents !== 1) { diff --git a/packages/astro/src/cli/preferences/index.ts b/packages/astro/src/cli/preferences/index.ts index dd74ee5f7c..aa63690dac 100644 --- a/packages/astro/src/cli/preferences/index.ts +++ b/packages/astro/src/cli/preferences/index.ts @@ -320,7 +320,7 @@ const chars = { bottomRight: '╯', }; -// this is only used to deternine the column width +// this is only used to determine the column width function annotatedFormat(mv: AnnotatedValue) { return mv.annotation ? `${mv.value} ${mv.annotation}` : mv.value.toString(); } diff --git a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts index f459a6efd1..474e96235d 100644 --- a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts +++ b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts @@ -234,7 +234,7 @@ export async function generateLookupMap({ ); // Run 10 at a time to prevent `await getEntrySlug` from accessing the filesystem all at once. - // Each await shouldn't take too long for the work to be noticably slow too. + // Each await shouldn't take too long for the work to be noticeably slow too. const limit = pLimit(10); const promises: Promise[] = []; diff --git a/packages/astro/src/core/build/pipeline.ts b/packages/astro/src/core/build/pipeline.ts index 245904660c..a733d4c6fe 100644 --- a/packages/astro/src/core/build/pipeline.ts +++ b/packages/astro/src/core/build/pipeline.ts @@ -218,7 +218,7 @@ export class BuildPipeline extends Pipeline { // We retrieve the original JS module const filePath = this.internals.entrySpecifierToBundleMap.get(moduleSpecifier); if (filePath) { - // it exists, added it to pages to render, using the file path that we jus retrieved + // it exists, added it to pages to render, using the file path that we just retrieved pages.set(pageData, filePath); } } diff --git a/packages/astro/src/core/compile/compile.ts b/packages/astro/src/core/compile/compile.ts index 52e86b2b07..b6e1f927ca 100644 --- a/packages/astro/src/core/compile/compile.ts +++ b/packages/astro/src/core/compile/compile.ts @@ -49,7 +49,7 @@ export async function compile({ normalizedFilename: normalizeFilename(filename, astroConfig.root), sourcemap: 'both', internalURL: 'astro/compiler-runtime', - // TODO: this is no longer neccessary for `Astro.site` + // TODO: this is no longer necessary for `Astro.site` // but it somehow allows working around caching issues in content collections for some tests astroGlobalArgs: JSON.stringify(astroConfig.site), scopedStyleStrategy: astroConfig.scopedStyleStrategy, diff --git a/packages/astro/src/core/constants.ts b/packages/astro/src/core/constants.ts index f1b10a525e..3347c1ec59 100644 --- a/packages/astro/src/core/constants.ts +++ b/packages/astro/src/core/constants.ts @@ -40,7 +40,7 @@ export const REROUTABLE_STATUS_CODES = [404, 500]; /** * The symbol which is used as a field on the request object to store the client address. - * The clientAddresss provided by the adapter (or the dev server) is stored on this field. + * The clientAddress provided by the adapter (or the dev server) is stored on this field. */ export const clientAddressSymbol = Symbol.for('astro.clientAddress'); diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index e2593e6f12..180160064a 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -439,8 +439,8 @@ export const NoMatchingImport = { export const InvalidPrerenderExport = { name: 'InvalidPrerenderExport', title: 'Invalid prerender export.', - message(prefix: string, suffix: string, isHydridOuput: boolean) { - const defaultExpectedValue = isHydridOuput ? 'false' : 'true'; + message(prefix: string, suffix: string, isHydridOutput: boolean) { + const defaultExpectedValue = isHydridOutput ? 'false' : 'true'; let msg = `A \`prerender\` export has been detected, but its value cannot be statically analyzed.`; if (prefix !== 'const') msg += `\nExpected \`const\` declaration but got \`${prefix}\`.`; if (suffix !== 'true') diff --git a/packages/astro/src/core/errors/overlay.ts b/packages/astro/src/core/errors/overlay.ts index 90eff7bc7a..02303409df 100644 --- a/packages/astro/src/core/errors/overlay.ts +++ b/packages/astro/src/core/errors/overlay.ts @@ -62,7 +62,7 @@ const style = /* css */ ` /* Theme toggle */ --toggle-ball-color: var(--accent); - --toggle-tabel-background: var(--background); + --toggle-table-background: var(--background); --sun-icon-color: #ffffff; --moon-icon-color: #a3acc8; --toggle-border-color: #C3CADB; @@ -150,7 +150,7 @@ const style = /* css */ ` } #theme-toggle-label { - background-color: var(--toggle-tabel-background); + background-color: var(--toggle-table-background); border-radius: 50px; cursor: pointer; display: flex; diff --git a/packages/astro/src/core/routing/priority.ts b/packages/astro/src/core/routing/priority.ts index c5f9892cef..4082683970 100644 --- a/packages/astro/src/core/routing/priority.ts +++ b/packages/astro/src/core/routing/priority.ts @@ -17,7 +17,7 @@ import type { RouteData } from '../../@types/astro.js'; * - Prerendered routes are sorted before non-prerendered routes. * - Endpoints are sorted before pages. * For example, a file `/foo.ts` is sorted before `/bar.astro`. - * - If both routes are equal regarding all previosu conditions, they are sorted alphabetically. + * - If both routes are equal regarding all previous conditions, they are sorted alphabetically. * For example, `/bar` is sorted before `/foo`. * The definition of "alphabetically" is dependent on the default locale of the running system. */ diff --git a/packages/astro/src/prefetch/vite-plugin-prefetch.ts b/packages/astro/src/prefetch/vite-plugin-prefetch.ts index 2f50f67af2..9e56536d92 100644 --- a/packages/astro/src/prefetch/vite-plugin-prefetch.ts +++ b/packages/astro/src/prefetch/vite-plugin-prefetch.ts @@ -45,7 +45,7 @@ export default function astroPrefetch({ settings }: { settings: AstroSettings }) }, transform(code, id) { // NOTE: Handle replacing the specifiers even if prefetch is disabled so View Transitions - // can import the interal module as not hit runtime issues. + // can import the internal module as not hit runtime issues. if (id.includes(prefetchInternalModuleFsSubpath)) { return code .replace('__PREFETCH_PREFETCH_ALL__', JSON.stringify(prefetch?.prefetchAll)) diff --git a/packages/astro/src/prerender/utils.ts b/packages/astro/src/prerender/utils.ts index 5cc6273430..c671a68e06 100644 --- a/packages/astro/src/prerender/utils.ts +++ b/packages/astro/src/prerender/utils.ts @@ -10,7 +10,7 @@ export function getPrerenderDefault(config: AstroConfig) { } /** - * Returns the correct output directory of hte SSR build based on the configuration + * Returns the correct output directory of the SSR build based on the configuration */ export function getOutputDirectory(config: AstroConfig): URL { const ssr = isServerLikeOutput(config); diff --git a/packages/astro/src/runtime/server/astro-global.ts b/packages/astro/src/runtime/server/astro-global.ts index 3f3a2a95f8..5948c8ff3a 100644 --- a/packages/astro/src/runtime/server/astro-global.ts +++ b/packages/astro/src/runtime/server/astro-global.ts @@ -30,7 +30,7 @@ function createAstroGlobFn() { // inside of getStaticPaths. See the `astroGlobalArgs` option for parameter type. export function createAstro(site: string | undefined): AstroGlobalPartial { return { - // TODO: this is no longer neccessary for `Astro.site` + // TODO: this is no longer necessary for `Astro.site` // but it somehow allows working around caching issues in content collections for some tests site: site ? new URL(site) : undefined, generator: `Astro v${ASTRO_VERSION}`, diff --git a/packages/astro/src/runtime/server/transition.ts b/packages/astro/src/runtime/server/transition.ts index 6514c1e912..26c5915c12 100644 --- a/packages/astro/src/runtime/server/transition.ts +++ b/packages/astro/src/runtime/server/transition.ts @@ -71,7 +71,7 @@ function reEncode(s: string) { // we replace it with its hex value escaped by an underscore for decodability (and better readability, // because most of them are punctuations like ,'"":;_..., and '_' might be a better choice than '-') // The underscore itself (code 95) is also escaped and encoded as two underscores to avoid - // collitions between original and encoded strings. + // collisions between original and encoded strings. // All other values are just copied over result += codepoint < 0x80 diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts index 4432c79344..9ce9d4560f 100644 --- a/packages/astro/src/transitions/router.ts +++ b/packages/astro/src/transitions/router.ts @@ -457,7 +457,7 @@ async function transition( options: Options, historyState?: State ) { - // The most recent navigation always has precendence + // The most recent navigation always has precedence // Yes, there can be several navigation instances as the user can click links // while we fetch content or simulate view transitions. Even synchronous creations are possible // e.g. by calling navigate() from an transition event. @@ -666,7 +666,7 @@ async function transition( // Scripts that depend on the view transition pseudo elements should hook on viewTransition.ready. await currentTransition.viewTransition.updateCallbackDone; } catch (e) { - // This log doesn't make it worse than before, where we got error messages about uncaught exceptions, which can't be catched when the trigger was a click or history traversal. + // This log doesn't make it worse than before, where we got error messages about uncaught exceptions, which can't be caught when the trigger was a click or history traversal. // Needs more investigation on root causes if errors still occur sporadically const err = e as Error; console.log('[astro]', err.name, err.message, err.stack); diff --git a/packages/astro/src/vite-plugin-astro-server/vite.ts b/packages/astro/src/vite-plugin-astro-server/vite.ts index 33b3ab4ed9..62bfa95d76 100644 --- a/packages/astro/src/vite-plugin-astro-server/vite.ts +++ b/packages/astro/src/vite-plugin-astro-server/vite.ts @@ -29,7 +29,7 @@ export async function* crawlGraph( // Needed for slower CSS preprocessing like Tailwind loader.getModulesByFile(id) ?? new Set() : // For non-root files, we're safe to pull from "getModuleById" based on testing. - // TODO: Find better invalidation strat to use "getModuleById" in all cases! + // TODO: Find better invalidation strategy to use "getModuleById" in all cases! new Set([loader.getModuleById(id)]); // Collect all imported modules for the module(s). diff --git a/packages/astro/test/astro-css-bundling.test.js b/packages/astro/test/astro-css-bundling.test.js index 91f75ec52a..92aa6db802 100644 --- a/packages/astro/test/astro-css-bundling.test.js +++ b/packages/astro/test/astro-css-bundling.test.js @@ -4,7 +4,7 @@ import * as cheerio from 'cheerio'; import { loadFixture } from './test-utils.js'; // note: the hashes should be deterministic, but updating the file contents will change hashes -// be careful not to test that the HTML simply contains CSS, because it always will! filename and quanity matter here (bundling). +// be careful not to test that the HTML simply contains CSS, because it always will! filename and quantity matter here (bundling). const EXPECTED_CSS = { '/index.html': ['/_astro/'], // don’t match hashes, which change based on content '/one/index.html': ['/_astro/'], diff --git a/packages/astro/test/astro-slots.test.js b/packages/astro/test/astro-slots.test.js index 78b8a5cae3..f423b71705 100644 --- a/packages/astro/test/astro-slots.test.js +++ b/packages/astro/test/astro-slots.test.js @@ -174,11 +174,11 @@ describe('Slots', () => { it('Arguments can be passed to named slots with Astro.slots.render()', async () => { const html = await fixture.readFile('/slotted-named-functions/index.html'); const $ = cheerio.load(html); - const befor = $('div#before'); - const [beforeDiv] = befor.children('div'); - assert.deepEqual(beforeDiv.firstChild.data, 'Test Content BEFORE'); - const after = $('div#after'); - const [afterDiv] = after.children('div'); - assert.deepEqual(afterDiv.firstChild.data, 'Test Content AFTER'); + const beforeDiv = $('div#before'); + const [beforeChildren] = beforeDiv.children('div'); + assert.deepEqual(beforeChildren.firstChild.data, 'Test Content BEFORE'); + const afterDiv = $('div#after'); + const [afterChildren] = afterDiv.children('div'); + assert.deepEqual(afterChildren.firstChild.data, 'Test Content AFTER'); }); }); diff --git a/packages/astro/test/experimental-content-collections.test.js b/packages/astro/test/experimental-content-collections.test.js index 6e4b88b236..0dc3fb6b19 100644 --- a/packages/astro/test/experimental-content-collections.test.js +++ b/packages/astro/test/experimental-content-collections.test.js @@ -291,7 +291,7 @@ describe('Experimental Content Collections cache', () => { }); describe('With empty collections directory', () => { - it('Handles the empty directory correclty', async () => { + it('Handles the empty directory correctly', async () => { const fixture = await loadFixture({ root: './fixtures/content-collections-empty-dir/', experimental: { diff --git a/packages/astro/test/fixtures/astro-slots/src/components/FunctionsToAPI.astro b/packages/astro/test/fixtures/astro-slots/src/components/FunctionsToAPI.astro index 93d50689fa..cdb4d0befc 100644 --- a/packages/astro/test/fixtures/astro-slots/src/components/FunctionsToAPI.astro +++ b/packages/astro/test/fixtures/astro-slots/src/components/FunctionsToAPI.astro @@ -1,12 +1,12 @@ --- const content = 'Test Content'; -const beforeConent = await Astro.slots.render("before", [{content}]) -const afterConent = await Astro.slots.render("after", [{content}]) +const beforeContent = await Astro.slots.render("before", [{content}]) +const afterContent = await Astro.slots.render("after", [{content}]) ---
- {beforeConent} + {beforeContent}
- {afterConent} + {afterContent}
diff --git a/packages/astro/test/fixtures/dynamic-route-build-file/src/pages/[...slug].astro b/packages/astro/test/fixtures/dynamic-route-build-file/src/pages/[...slug].astro index 8b04dfcffe..13bfa14e2f 100644 --- a/packages/astro/test/fixtures/dynamic-route-build-file/src/pages/[...slug].astro +++ b/packages/astro/test/fixtures/dynamic-route-build-file/src/pages/[...slug].astro @@ -13,7 +13,7 @@ export async function getStaticPaths() { }, { slug: "products/astro-handbook", - title: "The ultimative Astro handbook", + title: "The ultimate Astro handbook", text: "If you want to learn Astro, you must read this book.", }, ]; diff --git a/packages/astro/test/fixtures/i18n-routing-prefix-always/src/pages/404.astro b/packages/astro/test/fixtures/i18n-routing-prefix-always/src/pages/404.astro index 045415d447..6ab673cae5 100644 --- a/packages/astro/test/fixtures/i18n-routing-prefix-always/src/pages/404.astro +++ b/packages/astro/test/fixtures/i18n-routing-prefix-always/src/pages/404.astro @@ -1,4 +1,4 @@ Not Found - Can't find the page youre looking for. + Can't find the page you're looking for. diff --git a/packages/astro/test/fixtures/markdown/src/pages/realworld.md b/packages/astro/test/fixtures/markdown/src/pages/realworld.md index 718128f56b..8ba6ea2d58 100644 --- a/packages/astro/test/fixtures/markdown/src/pages/realworld.md +++ b/packages/astro/test/fixtures/markdown/src/pages/realworld.md @@ -82,7 +82,7 @@ By looping through the same repeater, we can get all the tabs out of the databas There are a number of ways to do this. I could ask the user to input a number to uniquely identify the tab pane. But that would add extra work to the users flow, and they might easily find themselves out of their depth. I want to make this as easy as possible for the user. -On the other hand, Wordpress has a very useful function called Sanitize HTML, which we input the value of the title, take out spaces and capitals, and use this as the link: +On the other hand, WordPress has a very useful function called Sanitize HTML, which we input the value of the title, take out spaces and capitals, and use this as the link: ```php diff --git a/packages/astro/test/fixtures/set-html/src/pages/children.astro b/packages/astro/test/fixtures/set-html/src/pages/children.astro index 360b8208aa..3ef5c5b0b9 100644 --- a/packages/astro/test/fixtures/set-html/src/pages/children.astro +++ b/packages/astro/test/fixtures/set-html/src/pages/children.astro @@ -5,7 +5,7 @@ import Slot from '../../components/Slot.astro';

Bug: Astro.slots.render() with arguments does not work with <Fragment> slot

-

Comment out working example and uncomment non working exmaples

+

Comment out working example and uncomment non working examples


diff --git a/packages/astro/test/fixtures/vue-component/src/pages/index.astro b/packages/astro/test/fixtures/vue-component/src/pages/index.astro index f8d808f700..e3c6b6b64a 100644 --- a/packages/astro/test/fixtures/vue-component/src/pages/index.astro +++ b/packages/astro/test/fixtures/vue-component/src/pages/index.astro @@ -26,7 +26,7 @@ import Img from '../components/Img.vue' SSR Rendered, client:load SSR Rendered, client:idle - + SSR Rendered, client:visible SSR Rendered, client:visible diff --git a/packages/astro/test/fixtures/vue-jsx/src/pages/index.astro b/packages/astro/test/fixtures/vue-jsx/src/pages/index.astro index 836d81f7b0..55d57709bd 100644 --- a/packages/astro/test/fixtures/vue-jsx/src/pages/index.astro +++ b/packages/astro/test/fixtures/vue-jsx/src/pages/index.astro @@ -27,7 +27,7 @@ import Result from '../components/Result.vue' SSR Rendered, client:load SSR Rendered, client:idle - + SSR Rendered, client:visible SSR Rendered, client:visible diff --git a/packages/astro/test/i18n-routing.test.js b/packages/astro/test/i18n-routing.test.js index 609af16f84..9723b69dfa 100644 --- a/packages/astro/test/i18n-routing.test.js +++ b/packages/astro/test/i18n-routing.test.js @@ -358,7 +358,7 @@ describe('[DEV] i18n routing', () => { const response = await fixture.fetch('/xyz'); assert.equal(response.status, 404); const text = await response.text(); - assert.equal(text.includes("Can't find the page youre looking for."), true); + assert.equal(text.includes("Can't find the page you're looking for."), true); }); }); @@ -1350,7 +1350,7 @@ describe('[SSR] i18n routing', () => { const response = await app.render(request); assert.equal(response.status, 404); const text = await response.text(); - assert.equal(text.includes("Can't find the page youre looking for."), true); + assert.equal(text.includes("Can't find the page you're looking for."), true); }); }); diff --git a/packages/astro/test/minification-html.test.js b/packages/astro/test/minification-html.test.js index fd890601d3..1ef483981a 100644 --- a/packages/astro/test/minification-html.test.js +++ b/packages/astro/test/minification-html.test.js @@ -23,7 +23,7 @@ function removeDoctypeLineInDev(html) { } describe('HTML minification', () => { - describe('in DEV enviroment', () => { + describe('in DEV environment', () => { let fixture; let devServer; before(async () => { diff --git a/packages/astro/test/solid-component.test.js b/packages/astro/test/solid-component.test.js index 7043983d7a..bd2c4f64f4 100644 --- a/packages/astro/test/solid-component.test.js +++ b/packages/astro/test/solid-component.test.js @@ -176,7 +176,7 @@ describe.skip('Solid component dev', { todo: 'Check why the test hangs.', skip: * I chose to make this a function to avoid accidentally sharing regex state * between tests. * - * NOTE: These scripts have ocassionally changed in the past. If the tests + * NOTE: These scripts have occasionally changed in the past. If the tests * start failing after a Solid version change, we may need to find a different * way to count the hydration scripts. */ diff --git a/packages/astro/test/ssr-api-route.test.js b/packages/astro/test/ssr-api-route.test.js index 194d0516d3..4c2e796e12 100644 --- a/packages/astro/test/ssr-api-route.test.js +++ b/packages/astro/test/ssr-api-route.test.js @@ -122,7 +122,7 @@ describe('API routes in SSR', () => { count++; } - assert.equal(count, 2, 'Found two seperate set-cookie response headers'); + assert.equal(count, 2, 'Found two separate set-cookie response headers'); }); it('Has valid api context', async () => { diff --git a/packages/astro/test/units/i18n/astro_i18n.test.js b/packages/astro/test/units/i18n/astro_i18n.test.js index b55d2db21d..74e1fc7bc0 100644 --- a/packages/astro/test/units/i18n/astro_i18n.test.js +++ b/packages/astro/test/units/i18n/astro_i18n.test.js @@ -581,7 +581,7 @@ describe('getLocaleRelativeUrlList', () => { ); }); - it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: never, routingStategy: pathname-prefix-always]', () => { + it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: never, routingStrategy: pathname-prefix-always]', () => { /** * * @type {import("../../../dist/@types").AstroUserConfig} @@ -609,7 +609,7 @@ describe('getLocaleRelativeUrlList', () => { ); }); - it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: never, routingStategy: pathname-prefix-always-no-redirect]', () => { + it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: never, routingStrategy: pathname-prefix-always-no-redirect]', () => { /** * * @type {import("../../../dist/@types").AstroUserConfig} @@ -1706,7 +1706,7 @@ describe('getLocaleAbsoluteUrlList', () => { ); }); - it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: ignore, routingStategy: pathname-prefix-always]', () => { + it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: ignore, routingStrategy: pathname-prefix-always]', () => { /** * * @type {import("../../../dist/@types").AstroUserConfig} @@ -1739,7 +1739,7 @@ describe('getLocaleAbsoluteUrlList', () => { ); }); - it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: ignore, routingStategy: pathname-prefix-always-no-redirect]', () => { + it('should retrieve the correct list of base URL with locales [format: directory, trailingSlash: ignore, routingStrategy: pathname-prefix-always-no-redirect]', () => { /** * * @type {import("../../../dist/@types").AstroUserConfig} diff --git a/packages/create-astro/test/project-name.test.js b/packages/create-astro/test/project-name.test.js index 8f14969e28..0aebd1c792 100644 --- a/packages/create-astro/test/project-name.test.js +++ b/packages/create-astro/test/project-name.test.js @@ -56,7 +56,7 @@ describe('project name', async () => { assert.equal(context.projectName, 'foobar'); }); - it('head and tail blank spaces should be trimed', async () => { + it('head and tail blank spaces should be trimmed', async () => { const context = { projectName: '', cwd: '', prompt: () => ({ name: ' foobar ' }) }; await projectName(context); assert.equal(context.cwd, 'foobar'); diff --git a/packages/db/src/core/cli/commands/login/index.ts b/packages/db/src/core/cli/commands/login/index.ts index a0afda3ed4..02229d52f2 100644 --- a/packages/db/src/core/cli/commands/login/index.ts +++ b/packages/db/src/core/cli/commands/login/index.ts @@ -14,7 +14,7 @@ import { getAstroStudioUrl } from '../../../utils.js'; const isWebContainer = // Stackblitz heuristic process.versions?.webcontainer ?? - // Github Codespaces heuristic + // GitHub Codespaces heuristic process.env.CODESPACE_NAME; export async function cmd({ diff --git a/packages/integrations/lit/server-shim.js b/packages/integrations/lit/server-shim.js index ed371f89a3..d777382f2c 100644 --- a/packages/integrations/lit/server-shim.js +++ b/packages/integrations/lit/server-shim.js @@ -25,7 +25,7 @@ globalThis.customElements = litCE; const litCeDefine = customElements.define; // We need to patch customElements.define to keep track of the tagName on the -// class itself so that we can transform JSX custom element class definintion to +// class itself so that we can transform JSX custom element class definition to // a DSD string on the server, because there is no way to get the tagName from a // CE class otherwise. Not an issue on client:only because the browser supports // appending a class instance directly to the DOM. diff --git a/packages/integrations/lit/src/client.ts b/packages/integrations/lit/src/client.ts index b631471822..37a1e561f7 100644 --- a/packages/integrations/lit/src/client.ts +++ b/packages/integrations/lit/src/client.ts @@ -53,7 +53,7 @@ export default (element: HTMLElement) => } // If there is no deferral of hydration, then all reactive properties are - // already serialzied as reflected attributes, or no reactive props were set + // already serialized as reflected attributes, or no reactive props were set // Alternatively, if hydration is client:only proceed to set props. if (!component || !(component.hasAttribute('defer-hydration') || isClientOnly)) { return; diff --git a/packages/integrations/markdoc/test/render-html.test.js b/packages/integrations/markdoc/test/render-html.test.js index 4780444bfd..320c5b509d 100644 --- a/packages/integrations/markdoc/test/render-html.test.js +++ b/packages/integrations/markdoc/test/render-html.test.js @@ -210,7 +210,7 @@ function renderHTMLWithinPartialChecks(html) { } /** - * Asserts that the rendered HTML tags with interleaved Markdoc tags (both block and inline) rendered in the expected nested graph of elemements + * Asserts that the rendered HTML tags with interleaved Markdoc tags (both block and inline) rendered in the expected nested graph of elements * * @param {string} html */ function renderComponentsHTMLChecks(html) { diff --git a/packages/integrations/vue/src/index.ts b/packages/integrations/vue/src/index.ts index 3604b6d644..803095c19c 100644 --- a/packages/integrations/vue/src/index.ts +++ b/packages/integrations/vue/src/index.ts @@ -77,7 +77,7 @@ export const setup = async (app) => { } }, // Ensure that Vue components reference appEntrypoint directly - // This allows Astro to assosciate global styles imported in this file + // This allows Astro to associate global styles imported in this file // with the pages they should be injected to transform(code, id) { if (!appEntrypoint) return; diff --git a/packages/markdown/remark/src/highlight.ts b/packages/markdown/remark/src/highlight.ts index 3338f75b79..41ec8880b2 100644 --- a/packages/markdown/remark/src/highlight.ts +++ b/packages/markdown/remark/src/highlight.ts @@ -14,7 +14,7 @@ const languagePattern = /\blanguage-(\S+)\b/; * @param tree * The hast tree in which to syntax highlight code blocks. * @param highlighter - * A fnction which receives the code and language, and returns the HTML of a syntax + * A function which receives the code and language, and returns the HTML of a syntax * highlighted `
` element.
  */
 export async function highlightCodeBlocks(tree: Root, highlighter: Highlighter) {
diff --git a/packages/markdown/remark/src/import-plugin-default.ts b/packages/markdown/remark/src/import-plugin-default.ts
index 8c1d01b569..1b6778f753 100644
--- a/packages/markdown/remark/src/import-plugin-default.ts
+++ b/packages/markdown/remark/src/import-plugin-default.ts
@@ -6,7 +6,7 @@ import type * as unified from 'unified';
 
 let cwdUrlStr: string | undefined;
 
-// In non-browser enviroments, we can try to resolve from the filesystem too
+// In non-browser environments, we can try to resolve from the filesystem too
 export async function importPlugin(p: string): Promise {
 	// Try import from this package first
 	try {
diff --git a/packages/upgrade/src/actions/verify.ts b/packages/upgrade/src/actions/verify.ts
index 8d4c6f1e7c..c3f4b7af2a 100644
--- a/packages/upgrade/src/actions/verify.ts
+++ b/packages/upgrade/src/actions/verify.ts
@@ -177,7 +177,7 @@ async function resolveTargetVersion(packageInfo: PackageInfo, registry: string):
 		packageInfo.changelogTitle = 'CHANGELOG';
 	} else {
 		// Dependency updates should not include the specific dist-tag
-		// since they are just for compatability
+		// since they are just for compatibility
 		packageInfo.tag = undefined;
 	}
 }
diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js
index 1830cddcf1..5dd2006432 100644
--- a/scripts/cmd/build.js
+++ b/scripts/cmd/build.js
@@ -179,7 +179,7 @@ async function getWorkspacePackageVersion(packageName) {
 	const version = deps[packageName];
 	if (!version) {
 		throw new Error(
-			`Unable to resolve "${packageName}". Is it a depdendency of the workspace root?`
+			`Unable to resolve "${packageName}". Is it a dependency of the workspace root?`
 		);
 	}
 	return version.replace(/^\D+/, '');