0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

[ci] release (alpha) (#11627)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-08-19 11:37:39 -07:00 committed by GitHub
parent 40183620d8
commit f239242d90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
62 changed files with 312 additions and 142 deletions

View file

@ -31,5 +31,16 @@
"@astrojs/underscore-redirects": "0.3.4",
"@astrojs/upgrade": "0.3.1"
},
"changesets": []
"changesets": [
"chatty-teachers-sit",
"mighty-trees-teach",
"new-pillows-kick",
"poor-frogs-dream",
"quick-ads-exercise",
"small-ties-sort",
"smart-comics-doubt",
"spicy-houses-fry",
"ten-students-repair",
"weak-dancers-beam"
]
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^3.1.3",
"@astrojs/mdx": "^4.0.0-alpha.0",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"@astrojs/react": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.1",
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -14,11 +14,11 @@
"@astrojs/preact": "^3.5.1",
"@astrojs/react": "^3.6.2",
"@astrojs/solid-js": "^4.4.1",
"@astrojs/svelte": "^5.7.0",
"@astrojs/vue": "^4.5.0",
"@astrojs/svelte": "^6.0.0-alpha.0",
"@astrojs/vue": "^5.0.0-alpha.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"preact": "^10.23.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@preact/signals": "^1.3.0",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"preact": "^10.23.2"
}
}

View file

@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.1",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"solid-js": "^1.8.21"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/svelte": "^5.7.0",
"astro": "^4.14.2",
"@astrojs/svelte": "^6.0.0-alpha.0",
"astro": "^5.0.0-alpha.0",
"svelte": "^4.2.18"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/vue": "^4.5.0",
"astro": "^4.14.2",
"@astrojs/vue": "^5.0.0-alpha.0",
"astro": "^5.0.0-alpha.0",
"vue": "^3.4.38"
}
}

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^8.3.3",
"astro": "^4.14.2"
"@astrojs/node": "^9.0.0-alpha.0",
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -12,8 +12,8 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^8.3.3",
"astro": "^4.14.2",
"@astrojs/node": "^9.0.0-alpha.0",
"astro": "^5.0.0-alpha.0",
"html-minifier": "^4.0.0"
},
"devDependencies": {

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -10,14 +10,14 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/node": "^8.3.3",
"@astrojs/node": "^9.0.0-alpha.0",
"@astrojs/react": "^3.6.2",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@fortawesome/fontawesome-free": "^6.6.0",
"@tailwindcss/forms": "^0.5.7",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"postcss": "^8.4.41",
"react": "^18.3.1",
"react-dom": "^18.3.1",

View file

@ -12,9 +12,9 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^8.3.3",
"@astrojs/svelte": "^5.7.0",
"astro": "^4.14.2",
"@astrojs/node": "^9.0.0-alpha.0",
"@astrojs/svelte": "^6.0.0-alpha.0",
"astro": "^5.0.0-alpha.0",
"svelte": "^4.2.18"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"sass": "^1.77.8",
"sharp": "^0.33.3"
}

View file

@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -10,8 +10,8 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.3.3",
"astro": "^4.14.2"
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@astrojs/node": "^9.0.0-alpha.0",
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdoc": "^0.11.3",
"astro": "^4.14.2"
"@astrojs/markdoc": "^1.0.0-alpha.0",
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdown-remark": "^5.2.0",
"astro": "^4.14.2",
"@astrojs/markdown-remark": "^6.0.0-alpha.0",
"astro": "^5.0.0-alpha.0",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.14.2"
"astro": "^5.0.0-alpha.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^3.1.3",
"@astrojs/mdx": "^4.0.0-alpha.0",
"@astrojs/preact": "^3.5.1",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"preact": "^10.23.2"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@nanostores/preact": "^0.5.2",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"nanostores": "^0.11.2",
"preact": "^10.23.2"
}

View file

@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^3.1.3",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/mdx": "^4.0.0-alpha.0",
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@types/canvas-confetti": "^1.6.4",
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.41",

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.14.2",
"astro": "^5.0.0-alpha.0",
"vitest": "^2.0.5"
}
}

View file

@ -1,5 +1,80 @@
# astro
## 5.0.0-alpha.0
### Major Changes
- [#10742](https://github.com/withastro/astro/pull/10742) [`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0) Thanks [@ematipico](https://github.com/ematipico)! - The lowest version of Node supported by Astro is now Node v18.17.1 and higher.
- [#11715](https://github.com/withastro/astro/pull/11715) [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Refactor the exported types from the `astro` module. There should normally be no breaking changes, but if you relied on some previously deprecated types, these might now have been fully removed.
In most cases, updating your code to move away from previously deprecated APIs in previous versions of Astro should be enough to fix any issues.
- [#11660](https://github.com/withastro/astro/pull/11660) [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9) Thanks [@bluwy](https://github.com/bluwy)! - Fixes attribute rendering for non-[boolean HTML attributes](https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML) with boolean values to match proper attribute handling in browsers.
Previously, non-boolean attributes may not have included their values when rendered to HTML. In Astro v5.0, the values are now explicitly rendered as `="true"` or `="false"`
In the following `.astro` examples, only `allowfullscreen` is a boolean attribute:
```astro
<!-- src/pages/index.astro --><!-- `allowfullscreen` is a boolean attribute -->
<p allowfullscreen={true}></p>
<p allowfullscreen={false}></p>
<!-- `inherit` is *not* a boolean attribute -->
<p inherit={true}></p>
<p inherit={false}></p>
<!-- `data-*` attributes are not boolean attributes -->
<p data-light={true}></p>
<p data-light={false}></p>
```
Astro v5.0 now preserves the full data attribute with its value when rendering the HTML of non-boolean attributes:
```diff
<p allowfullscreen></p>
<p></p>
<p inherit="true"></p>
- <p inherit></p>
+ <p inherit="false"></p>
- <p data-light></p>
+ <p data-light="true"></p>
- <p></p>
+ <p data-light="false"></p>
```
If you rely on attribute values, for example to locate elements or to conditionally render, update your code to match the new non-boolean attribute values:
```diff
- el.getAttribute('inherit') === ''
+ el.getAttribute('inherit') === 'false'
- el.hasAttribute('data-light')
+ el.dataset.light === 'true'
```
- [#11714](https://github.com/withastro/astro/pull/11714) [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6) Thanks [@matthewp](https://github.com/matthewp)! - Remove support for functionPerRoute
This change removes support for the `functionPerRoute` option both in Astro and `@astrojs/vercel`.
This option made it so that each route got built as separate entrypoints so that they could be loaded as separate functions. The hope was that by doing this it would decrease the size of each function. However in practice routes use most of the same code, and increases in function size limitations made the potential upsides less important.
Additionally there are downsides to functionPerRoute, such as hitting limits on the number of functions per project. The feature also never worked with some Astro features like i18n domains and request rewriting.
Given this, the feature has been removed from Astro.
### Patch Changes
- [#11745](https://github.com/withastro/astro/pull/11745) [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f) Thanks [@bluwy](https://github.com/bluwy)! - Prints prerender dynamic value usage warning only if it's used
- [#11730](https://github.com/withastro/astro/pull/11730) [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Simplifies path operations of `astro sync`
- Updated dependencies [[`83a2a64`](https://github.com/withastro/astro/commit/83a2a648418ad30f4eb781d1c1b5f2d8a8ac846e)]:
- @astrojs/markdown-remark@6.0.0-alpha.0
## 4.14.2
### Patch Changes

View file

@ -1,9 +1,9 @@
---
import { type LocalImageProps, type RemoteImageProps, getImage } from 'astro:assets';
import * as mime from 'mrmime';
import type { GetImageResult, ImageOutputFormat } from '../dist/types/public/index.js';
import { isESMImportedImage, resolveSrc } from '../dist/assets/utils/imageKind';
import { AstroError, AstroErrorData } from '../dist/core/errors/index.js';
import type { GetImageResult, ImageOutputFormat } from '../dist/types/public/index.js';
import type { HTMLAttributes } from '../types';
type Props = (LocalImageProps | RemoteImageProps) & {

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "4.14.2",
"version": "5.0.0-alpha.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",

View file

@ -1,7 +1,7 @@
import type { Arguments } from 'yargs-parser';
import type { AstroConfig } from '../../types/public/config.js';
import { resolveConfig } from '../../core/config/config.js';
import { apply as applyPolyfill } from '../../core/polyfill.js';
import type { AstroConfig } from '../../types/public/config.js';
import { createLoggerFromFlags, flagsToAstroInlineConfig } from '../flags.js';
import { getPackage } from '../install-package.js';

View file

@ -99,7 +99,7 @@ export async function generatePages(options: StaticBuildOptions, internals: Buil
}
const ssrEntryPage = await pipeline.retrieveSsrEntry(pageData.route, filePath);
const ssrEntry = ssrEntryPage as SinglePageBuiltModule;
await generatePage(pageData, ssrEntry, builtPaths, pipeline);
}

View file

@ -199,9 +199,7 @@ export class BuildPipeline extends Pipeline {
for (const [virtualModulePageName, filePath] of this.internals.entrySpecifierToBundleMap) {
// virtual pages are emitted with the 'plugin-pages' prefix
if (
virtualModulePageName.includes(ASTRO_PAGE_RESOLVED_MODULE_ID)
) {
if (virtualModulePageName.includes(ASTRO_PAGE_RESOLVED_MODULE_ID)) {
let pageDatas: PageBuildData[] = [];
pageDatas.push(
...getPagesFromVirtualModulePageName(

View file

@ -1,3 +1,4 @@
import type { Plugin as VitePlugin } from 'vite';
import type { AstroSettings } from '../../../types/astro.js';
import type { AstroAdapter } from '../../../types/public/integrations.js';
import { routeIsRedirect } from '../../redirects/index.js';
@ -12,7 +13,6 @@ import { MIDDLEWARE_MODULE_ID } from './plugin-middleware.js';
import { ASTRO_PAGE_MODULE_ID } from './plugin-pages.js';
import { RENDERERS_MODULE_ID } from './plugin-renderers.js';
import { getVirtualModulePageName } from './util.js';
import type { Plugin as VitePlugin } from 'vite';
export const SSR_VIRTUAL_MODULE_ID = '@astrojs-ssr-virtual-entry';
export const RESOLVED_SSR_VIRTUAL_MODULE_ID = '\0' + SSR_VIRTUAL_MODULE_ID;
@ -137,7 +137,7 @@ export function pluginSSR(
hooks: {
'build:before': () => {
const adapter = options.settings.adapter!;
const ssrPlugin = ssr && vitePluginSSR(internals, adapter, options)
const ssrPlugin = ssr && vitePluginSSR(internals, adapter, options);
const vitePlugin = [vitePluginAdapter(adapter)];
if (ssrPlugin) {
vitePlugin.unshift(ssrPlugin);

View file

@ -1,10 +1,10 @@
import type { OutgoingHttpHeaders } from 'node:http';
import type {
RehypePlugins,
RemarkPlugins,
RemarkRehype,
ShikiConfig,
} from '@astrojs/markdown-remark';
import type { OutgoingHttpHeaders } from 'node:http';
import type { UserConfig as OriginalViteUserConfig, SSROptions as ViteSSROptions } from 'vite';
import type { RemotePattern } from '../../assets/utils/remotePattern.js';
import type { AssetsPrefix } from '../../core/app/types.js';

View file

@ -44,11 +44,11 @@ describe('Attributes', async () => {
assert.ok(!/allowfullscreen=/.test(html), 'boolean attributes should not have values');
assert.ok(
!/id="data-attr-string-falsy"\s+data-foobar=/.test(html),
"data attributes should not have values if it's an empty string"
"data attributes should not have values if it's an empty string",
);
assert.ok(
!/id="normal-attr-string-falsy"\s+data-foobar=/.test(html),
"normal attributes should not have values if it's an empty string"
"normal attributes should not have values if it's an empty string",
);
// cheerio will unescape the values, so checking that the url rendered unescaped to begin with has to be done manually

View file

@ -94,7 +94,7 @@ describe('<Code>', () => {
'color:var(--astro-code-foreground)',
'color:var(--astro-code-token-string-expression)',
'color:var(--astro-code-foreground)',
]
],
);
});

View file

@ -1,7 +1,7 @@
import { describe, it } from 'node:test';
import { expectTypeOf } from 'expect-type';
import type { APIContext } from '../../dist/types/public/context.js';
import { type ActionReturnType, defineAction } from '../../dist/actions/runtime/virtual/server.js';
import type { APIContext } from '../../dist/types/public/context.js';
import { z } from '../../zod.mjs';
describe('Astro.callAction', () => {

View file

@ -1,5 +1,11 @@
# create-astro
## 4.8.4-alpha.0
### Patch Changes
- [#11766](https://github.com/withastro/astro/pull/11766) [`d12dcbf`](https://github.com/withastro/astro/commit/d12dcbff606dd8330075ba77d73ed3cbc79d7421) Thanks [@bluwy](https://github.com/bluwy)! - Fixes initial git commit when initializing git
## 4.8.3
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "create-astro",
"version": "4.8.3",
"version": "4.8.4-alpha.0",
"type": "module",
"author": "withastro",
"license": "MIT",

View file

@ -1,5 +1,13 @@
# @astrojs/markdoc
## 1.0.0-alpha.0
### Patch Changes
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`83a2a64`](https://github.com/withastro/astro/commit/83a2a648418ad30f4eb781d1c1b5f2d8a8ac846e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
- @astrojs/markdown-remark@6.0.0-alpha.0
## 0.11.3
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/markdoc",
"description": "Add support for Markdoc in your Astro site",
"version": "0.11.3",
"version": "1.0.0-alpha.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
@ -72,7 +72,7 @@
"htmlparser2": "^9.1.0"
},
"peerDependencies": {
"astro": "^3.0.0 || ^4.0.0"
"astro": "^5.0.0-alpha.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",

View file

@ -1,5 +1,15 @@
# @astrojs/mdx
## 4.0.0-alpha.0
### Patch Changes
- [#11717](https://github.com/withastro/astro/pull/11717) [`423614e`](https://github.com/withastro/astro/commit/423614ebb6ddb76cc8d11f3e3b6ae111a4a82662) Thanks [@bluwy](https://github.com/bluwy)! - Fixes stack trace location when failed to parse an MDX file with frontmatter
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`83a2a64`](https://github.com/withastro/astro/commit/83a2a648418ad30f4eb781d1c1b5f2d8a8ac846e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
- @astrojs/markdown-remark@6.0.0-alpha.0
## 3.1.3
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/mdx",
"description": "Add support for MDX pages in your Astro site",
"version": "3.1.3",
"version": "4.0.0-alpha.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
@ -49,7 +49,7 @@
"vfile": "^6.0.2"
},
"peerDependencies": {
"astro": "^4.8.0"
"astro": "^5.0.0-alpha.0"
},
"devDependencies": {
"@types/estree": "^1.0.5",

View file

@ -1,5 +1,12 @@
# @astrojs/node
## 9.0.0-alpha.0
### Patch Changes
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
## 8.3.3
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/node",
"description": "Deploy your site to a Node.js server",
"version": "8.3.3",
"version": "9.0.0-alpha.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
@ -37,7 +37,7 @@
"server-destroy": "^1.0.1"
},
"peerDependencies": {
"astro": "^4.2.0"
"astro": "^5.0.0-alpha.0"
},
"devDependencies": {
"@types/node": "^18.17.8",

View file

@ -1,5 +1,12 @@
# @astrojs/svelte
## 6.0.0-alpha.0
### Patch Changes
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
## 5.7.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/svelte",
"version": "5.7.0",
"version": "6.0.0-alpha.0",
"description": "Use Svelte components within Astro",
"type": "module",
"types": "./dist/index.d.ts",
@ -60,7 +60,7 @@
"vite": "^5.4.1"
},
"peerDependencies": {
"astro": "^4.0.0",
"astro": "^5.0.0-alpha.0",
"svelte": "^4.0.0 || ^5.0.0-next.190",
"typescript": "^5.3.3"
},

View file

@ -1,5 +1,12 @@
# @astrojs/tailwind
## 6.0.0-alpha.0
### Patch Changes
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
## 5.1.0
### Minor Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/tailwind",
"description": "Use Tailwind CSS to style your Astro site",
"version": "5.1.0",
"version": "6.0.0-alpha.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
@ -44,7 +44,7 @@
"vite": "^5.4.1"
},
"peerDependencies": {
"astro": "^3.0.0 || ^4.0.0",
"astro": "^5.0.0-alpha.0",
"tailwindcss": "^3.0.24"
},
"publishConfig": {

View file

@ -1,5 +1,43 @@
# @astrojs/vercel
## 8.0.0-alpha.0
### Major Changes
- [#11714](https://github.com/withastro/astro/pull/11714) [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6) Thanks [@matthewp](https://github.com/matthewp)! - Remove support for functionPerRoute
This change removes support for the `functionPerRoute` option both in Astro and `@astrojs/vercel`.
This option made it so that each route got built as separate entrypoints so that they could be loaded as separate functions. The hope was that by doing this it would decrease the size of each function. However in practice routes use most of the same code, and increases in function size limitations made the potential upsides less important.
Additionally there are downsides to functionPerRoute, such as hitting limits on the number of functions per project. The feature also never worked with some Astro features like i18n domains and request rewriting.
Given this, the feature has been removed from Astro.
### Minor Changes
- [#11728](https://github.com/withastro/astro/pull/11728) [`5ea02b1`](https://github.com/withastro/astro/commit/5ea02b12fdb9b8ca45b1229bb9d04bc3d1270e0f) Thanks [@matthewp](https://github.com/matthewp)! - Deprecates the `functionPerRoute` option
This option is now deprecated, and will be removed entirely in Astro v5.0. We suggest removing this option from your configuration as soon as you are able to:
```diff
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
export default defineConfig({
// ...
output: 'server',
adapter: vercel({
- functionPerRoute: true,
}),
});
```
### Patch Changes
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
## 7.7.2
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/vercel",
"description": "Deploy your site to Vercel",
"version": "7.7.2",
"version": "8.0.0-alpha.0",
"type": "module",
"author": "withastro",
"license": "MIT",
@ -60,7 +60,7 @@
"web-vitals": "^3.5.2"
},
"peerDependencies": {
"astro": "^4.2.0"
"astro": "^5.0.0-alpha.0"
},
"devDependencies": {
"astro": "workspace:*",

View file

@ -272,9 +272,7 @@ export default function vercelServerless({
});
},
'astro:config:done': ({ setAdapter, config }) => {
setAdapter(
getAdapter({ edgeMiddleware, middlewareSecret, skewProtection }),
);
setAdapter(getAdapter({ edgeMiddleware, middlewareSecret, skewProtection }));
_config = config;
_buildTempFolder = config.build.server;

View file

@ -17,8 +17,6 @@ describe('Serverless with dynamic routes', () => {
it('build successful', async () => {
assert.ok(await fixture.readFile('../.vercel/output/static/index.html'));
assert.ok(
await fixture.readFile('../.vercel/output/functions/_render.func/.vc-config.json'),
);
assert.ok(await fixture.readFile('../.vercel/output/functions/_render.func/.vc-config.json'));
});
});

View file

@ -1,5 +1,12 @@
# @astrojs/vue
## 5.0.0-alpha.0
### Patch Changes
- Updated dependencies [[`b6fbdaa`](https://github.com/withastro/astro/commit/b6fbdaa94a9ecec706a99e1938fbf5cd028c72e0), [`89bab1e`](https://github.com/withastro/astro/commit/89bab1e70786123fbe933a9d7a1b80c9334dcc5f), [`d74617c`](https://github.com/withastro/astro/commit/d74617cbd3278feba05909ec83db2d73d57a153e), [`e90f559`](https://github.com/withastro/astro/commit/e90f5593d23043579611452a84b9e18ad2407ef9), [`2df49a6`](https://github.com/withastro/astro/commit/2df49a6fb4f6d92fe45f7429430abe63defeacd6), [`8a53517`](https://github.com/withastro/astro/commit/8a5351737d6a14fc55f1dafad8f3b04079e81af6)]:
- astro@5.0.0-alpha.0
## 4.5.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/vue",
"version": "4.5.0",
"version": "5.0.0-alpha.0",
"description": "Use Vue components within Astro",
"type": "module",
"types": "./dist/index.d.ts",
@ -58,7 +58,7 @@
"vue": "^3.4.38"
},
"peerDependencies": {
"astro": "^4.0.0",
"astro": "^5.0.0-alpha.0",
"vue": "^3.2.30"
},
"engines": {

View file

@ -1,5 +1,16 @@
# @astrojs/markdown-remark
## 6.0.0-alpha.0
### Major Changes
- [#11661](https://github.com/withastro/astro/pull/11661) [`83a2a64`](https://github.com/withastro/astro/commit/83a2a648418ad30f4eb781d1c1b5f2d8a8ac846e) Thanks [@bluwy](https://github.com/bluwy)! - Renames the following CSS variables theme color token names to better align with the Shiki v1 defaults:
- `--astro-code-color-text` => `--astro-code-foreground`
- `--astro-code-color-background` => `--astro-code-background`
You can perform a global find and replace in your project to migrate to the new token names.
## 5.2.0
### Minor Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/markdown-remark",
"version": "5.2.0",
"version": "6.0.0-alpha.0",
"type": "module",
"author": "withastro",
"license": "MIT",

105
pnpm-lock.yaml generated
View file

@ -116,13 +116,13 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/blog:
dependencies:
'@astrojs/mdx':
specifier: ^3.1.3
specifier: ^4.0.0-alpha.0
version: link:../../packages/integrations/mdx
'@astrojs/rss':
specifier: ^4.0.7
@ -131,13 +131,13 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/container-with-vitest:
@ -146,7 +146,7 @@ importers:
specifier: ^3.6.2
version: link:../../packages/integrations/react
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -177,7 +177,7 @@ importers:
specifier: ^3.14.1
version: 3.14.1
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/framework-multiple:
@ -192,10 +192,10 @@ importers:
specifier: ^4.4.1
version: link:../../packages/integrations/solid
'@astrojs/svelte':
specifier: ^5.7.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
'@astrojs/vue':
specifier: ^4.5.0
specifier: ^5.0.0-alpha.0
version: link:../../packages/integrations/vue
'@types/react':
specifier: ^18.3.3
@ -204,7 +204,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@ -234,7 +234,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.23.2)
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@ -252,7 +252,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
react:
specifier: ^18.3.1
@ -267,7 +267,7 @@ importers:
specifier: ^4.4.1
version: link:../../packages/integrations/solid
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
solid-js:
specifier: ^1.8.21
@ -276,10 +276,10 @@ importers:
examples/framework-svelte:
dependencies:
'@astrojs/svelte':
specifier: ^5.7.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@ -288,10 +288,10 @@ importers:
examples/framework-vue:
dependencies:
'@astrojs/vue':
specifier: ^4.5.0
specifier: ^5.0.0-alpha.0
version: link:../../packages/integrations/vue
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
vue:
specifier: ^3.4.38
@ -300,25 +300,25 @@ importers:
examples/hackernews:
dependencies:
'@astrojs/node':
specifier: ^8.3.3
specifier: ^9.0.0-alpha.0
version: link:../../packages/integrations/node
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/middleware:
dependencies:
'@astrojs/node':
specifier: ^8.3.3
specifier: ^9.0.0-alpha.0
version: link:../../packages/integrations/node
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -331,31 +331,31 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/server-islands:
devDependencies:
'@astrojs/node':
specifier: ^8.3.3
specifier: ^9.0.0-alpha.0
version: link:../../packages/integrations/node
'@astrojs/react':
specifier: ^3.6.2
version: link:../../packages/integrations/react
'@astrojs/tailwind':
specifier: ^5.1.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/tailwind
'@fortawesome/fontawesome-free':
specifier: ^6.6.0
@ -370,7 +370,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
postcss:
specifier: ^8.4.41
@ -388,13 +388,13 @@ importers:
examples/ssr:
dependencies:
'@astrojs/node':
specifier: ^8.3.3
specifier: ^9.0.0-alpha.0
version: link:../../packages/integrations/node
'@astrojs/svelte':
specifier: ^5.7.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@ -403,7 +403,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
sass:
specifier: ^1.77.8
@ -415,37 +415,37 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/view-transitions:
devDependencies:
'@astrojs/node':
specifier: ^8.3.3
specifier: ^9.0.0-alpha.0
version: link:../../packages/integrations/node
'@astrojs/tailwind':
specifier: ^5.1.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/tailwind
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/with-markdoc:
dependencies:
'@astrojs/markdoc':
specifier: ^0.11.3
specifier: ^1.0.0-alpha.0
version: link:../../packages/integrations/markdoc
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/with-markdown-plugins:
dependencies:
'@astrojs/markdown-remark':
specifier: ^5.2.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/markdown/remark
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@ -466,19 +466,19 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
examples/with-mdx:
dependencies:
'@astrojs/mdx':
specifier: ^3.1.3
specifier: ^4.0.0-alpha.0
version: link:../../packages/integrations/mdx
'@astrojs/preact':
specifier: ^3.5.1
version: link:../../packages/integrations/preact
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@ -493,7 +493,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.2)(preact@10.23.2)
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
nanostores:
specifier: ^0.11.2
@ -505,16 +505,16 @@ importers:
examples/with-tailwindcss:
dependencies:
'@astrojs/mdx':
specifier: ^3.1.3
specifier: ^4.0.0-alpha.0
version: link:../../packages/integrations/mdx
'@astrojs/tailwind':
specifier: ^5.1.0
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/tailwind
'@types/canvas-confetti':
specifier: ^1.6.4
version: 1.6.4
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@ -532,7 +532,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^4.14.2
specifier: ^5.0.0-alpha.0
version: link:../../packages/astro
vitest:
specifier: ^2.0.5
@ -5379,15 +5379,6 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
packages/integrations/vercel/test/fixtures/functionPerRoute:
dependencies:
'@astrojs/vercel':
specifier: workspace:*
version: link:../../..
astro:
specifier: workspace:*
version: link:../../../../../astro
packages/integrations/vercel/test/fixtures/image:
dependencies:
'@astrojs/vercel':
@ -9361,12 +9352,10 @@ packages:
libsql@0.3.19:
resolution: {integrity: sha512-Aj5cQ5uk/6fHdmeW0TiXK42FqUlwx7ytmMLPSaUQPin5HKKKuUPD62MAbN4OEweGBBI7q1BekoEN4gPUEL6MZA==}
cpu: [x64, arm64, wasm32]
os: [darwin, linux, win32]
libsql@0.4.1:
resolution: {integrity: sha512-qZlR9Yu1zMBeLChzkE/cKfoKV3Esp9cn9Vx5Zirn4AVhDWPcjYhKwbtJcMuHehgk3mH+fJr9qW+3vesBWbQpBg==}
cpu: [x64, arm64, wasm32]
os: [darwin, linux, win32]
lilconfig@2.1.0: