Compare commits

...

43 commits

Author SHA1 Message Date
Matthew Phillips
fb06f48810 Add prerendered routes to Cloudflare routes.json 2023-01-26 12:02:15 -05:00
natemoo-re
25edd88cae [ci] format 2023-01-26 12:02:15 -05:00
wulinsheng123
f819edc5f9 fix: component is not able to use a custom theme anymore (#5952)
* Astro <Code> component is not able to use a custom theme anymore

* Astro <Code> component is not able to use a custom theme anymore

* Astro <Code> component is not able to use a custom theme anymore

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-26 12:02:15 -05:00
Yaroslav Lapin
0c15bff2f2 change @astrojs/solid to @astrojs/solid-js (#5971)
* change @astrojs/solid to @astrojs/solid-js

@astrojs/solid package doesn't exist

* Create serious-turtles-explode.md

* Update .changeset/serious-turtles-explode.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-26 12:02:15 -05:00
HiDeoo
c88df39e4c Support passing children as props to a React component (#5886) 2023-01-26 12:02:15 -05:00
Ben Holmes
031cceb56d [Content collections] Support type guards on getCollection() filter (#5970)
* fix: respect type guards from collection filter

* chore: changeset
2023-01-26 12:02:15 -05:00
Nate Moore
a08e626d6a Handle unmatched 404 when using prerender in dev mode (#5983)
* fix(#5975): unmatched static paths should 404 during dev

* chore: add changeset

Co-authored-by: Nate Moore <nate@astro.build>
2023-01-26 12:02:15 -05:00
Sarah Rainsberger
140c81908c [docs] typo fix in MDX README (#5977) 2023-01-26 12:02:15 -05:00
Houston (Bot)
5b5f8ec31d [ci] release (#5963)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 12:02:15 -05:00
Bjorn Lu
40e54544dc Upgrade semver dependency (#5972) 2023-01-26 12:02:15 -05:00
matthewp
9b544b9fac [ci] format 2023-01-26 12:02:14 -05:00
Matthew Phillips
f3130d63a2 Protect against shimmed process usage in Vercel Edge (#5969)
* Protect against shimmed process usage in Vercel Edge

* Adding a changeset
2023-01-26 12:02:14 -05:00
Lucas Vargas
21a3774d53 docs(svelte): Update integration README (#5966) 2023-01-26 12:02:14 -05:00
Happydev
37563b73f2 Fix Content Collections not loading config file when there are spaces in the folder tree (#5962)
* fix

* add test

* use `fileURLToPath` instead

* chore: changeset

* remove useless config file

* revert back to using `decodeURIComponent`

* test: better test

* re-revert back to using `fileURLToPath`
2023-01-26 12:02:14 -05:00
natemoo-re
5c59d3d1f5 [ci] format 2023-01-26 12:02:14 -05:00
Reuben Tier
33fd1c9766 Ignore lint warning (#5949) 2023-01-26 12:02:14 -05:00
Houston (Bot)
b221969e61 [ci] release (#5959)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 12:02:14 -05:00
Nate Moore
c69c364c9f fix(create-astro): typescript prompt handling (#5958)
* fix(create-astro): typescript prompt handling

* fallback

* fix(create-astro): additional case

Co-authored-by: Nate Moore <nate@astro.build>
2023-01-26 12:02:14 -05:00
bholmesdev
ab7e1b9a5a [ci] format 2023-01-26 12:02:14 -05:00
Houston (Bot)
5b3f96c48e [ci] release (#5948)
* [ci] release

* Update changelogs (#5955)

* [ci] release

* Wrap astro 2.0 beta logs in `<details>`

* Add link to docs upgrade guide

* First pass cleaning up 2.0 release notes

* mdx changes from Sarah

* combine 5584 and 5842 in deno, image, netlify

* markdown/remark incl (5684 & 5769) to match mdx

* Tweak markdown/remark formatting

* Format astro-prism

* Format astro-rss

* Format create-astro

* Format cloudflare

* Format lit

* Format partytown

* Format node

* Format preact

* Format react

* Format solid

* Format svelte

* Format tailwind

* Format vercel

* Format vue

* Format telemetry

* Format webapi

* Format scripts

* Reinstate h3s for headings

Co-authored-by: Ben Holmes <hey@bholmes.dev>

* Reformat mdx

* astro & markdown/remark: Combine #5679 & #5684 changelogs

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-26 12:02:14 -05:00
Matthew Phillips
0cee60c0af Bump lit changesets to minor (#5954) 2023-01-26 12:02:14 -05:00
Matthew Phillips
fefdcc0c32 Exit pre mode (#5947) 2023-01-26 12:02:14 -05:00
Houston (Bot)
25bfd4a74c [ci] release (beta) (#5911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 12:02:14 -05:00
Matthew Phillips
3ef84b4790 Go back to pre-mode (#5946) 2023-01-26 12:02:14 -05:00
Matthew Phillips
f4fa0bf1d5 Exit pre-mode for 2.0 release (#5942) 2023-01-26 12:02:14 -05:00
Ben Holmes
615f734d4e [Content Collections] Add slug frontmatter field (#5941)
* feat: respect `slug` frontmatter prop

* chore: replace `slug` check with proper types

* fix: regen types on `slug` change

* chore: add TODO on slug gen

* tests: update to use `slug` frontmatter prop

* chore: add error message on `slug` inside object schema

* lint

* chore: add note on frontmatter parse

* refactor: move content errors to new heading

* chore: ContentSchemaContainsSlugError

* chore: changeset

* docs: be 10% less gentle

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* fix: avoid parsing slug on unlink

* docs: clarify old API is for beta users

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-26 12:02:14 -05:00
Nate Moore
2ef8d8a8ce chore: migrate changelogs from 1-legacy (#5944)
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-26 12:02:14 -05:00
natemoo-re
46d8f649d5 [ci] format 2023-01-26 12:02:14 -05:00
Nate Moore
7ddbd94e5f Remove duplicate CSS in dev (#5917)
* fix(#5817): remove duplicate CSS in dev

* chore: add changeset

Co-authored-by: Nate Moore <nate@astro.build>
2023-01-26 12:02:14 -05:00
Bjorn Lu
7bb96bbde0 Handle custom injected entry files during build (#5499) 2023-01-26 12:02:14 -05:00
matthewp
d271756e89 [ci] format 2023-01-26 12:02:14 -05:00
Matthew Phillips
803cd0f370 Support prerender in Netlify redirects (#5904)
* Support prerender in Netlify redirects

* Updated sorting algorithm

* Update packages/integrations/netlify/src/shared.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-26 12:02:14 -05:00
Happydev
2dd458d712 fix(@astrojs/tailwind): manually load postcss config file (#5908) 2023-01-26 12:02:14 -05:00
Rishi Raj Jain
f5c1122921 fix: trailingSlash with base breaking partytown file path (#5936)
* fix: trailingSlash with base breaking partytown file path

* Update index.ts

* Update index.ts

* Update index.ts

* fix lint

* Update index.ts
2023-01-26 12:02:14 -05:00
heyhoe
b7f33c6c17 Update magic-string used by @astrojs/image and @astrojs/webapi (#5930) 2023-01-26 12:02:14 -05:00
Chloe A
07da4f8e73 Add alt text for images in README (#5919) 2023-01-26 12:02:14 -05:00
Chris Swithinbank
566af8982f Improve Svelte README (#5923)
* First stylistic pass

* Rework for x/o instead of and

* fix typo

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Add changeset

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-26 12:02:14 -05:00
Chris Swithinbank
99c5c2a2e3 Improve error message for third-party template 404s (#5920) 2023-01-26 12:02:14 -05:00
natemoo-re
f27570d753 [ci] format 2023-01-26 12:02:14 -05:00
Reuben Tier
624595e353 Add headless support to create-astro (#5898)
* Add headless support to create-astro

* Document new flags for create-astro
2023-01-26 12:02:14 -05:00
Erika
9c048888da chore(webapi): Remove unused file (#5916) 2023-01-26 12:02:14 -05:00
Bjorn Lu
b2ce69704b Fix CLI node version check (#5905) 2023-01-26 12:02:14 -05:00
Matthew Phillips
f135b0d94b Cloudflare prerender branch 2023-01-23 10:41:45 -05:00
208 changed files with 2435 additions and 1319 deletions

View file

@ -1,34 +0,0 @@
---
'astro': minor
'@astrojs/mdx': minor
'@astrojs/markdown-remark': minor
---
Introduce a `smartypants` flag to opt-out of Astro's default SmartyPants plugin.
```js
{
markdown: {
smartypants: false,
}
}
```
#### Migration
You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the `extendDefaultPlugins` option. This has now been split into 2 flags to disable each plugin individually:
- `markdown.gfm` to disable GitHub-Flavored Markdown
- `markdown.smartypants` to disable SmartyPants
```diff
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
markdown: {
- extendDefaultPlugins: false,
+ smartypants: false,
+ gfm: false,
}
});
```

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Remove legacy compiler error handling

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix edge case with bundle generation by emitting a single chunk for pages

View file

@ -1,47 +0,0 @@
---
'astro': major
'@astrojs/markdown-remark': major
'@astrojs/mdx': minor
---
Give remark and rehype plugins access to user frontmatter via frontmatter injection. This means `data.astro.frontmatter` is now the _complete_ Markdown or MDX document's frontmatter, rather than an empty object.
This allows plugin authors to modify existing frontmatter, or compute new properties based on other properties. For example, say you want to compute a full image URL based on an `imageSrc` slug in your document frontmatter:
```ts
export function remarkInjectSocialImagePlugin() {
return function (tree, file) {
const { frontmatter } = file.data.astro;
frontmatter.socialImageSrc = new URL(
frontmatter.imageSrc,
'https://my-blog.com/',
).pathname;
}
}
```
#### Content Collections - new `remarkPluginFrontmatter` property
We have changed _inject_ frontmatter to _modify_ frontmatter in our docs to improve discoverability. This is based on support forum feedback, where "injection" is rarely the term used.
To reflect this, the `injectedFrontmatter` property has been renamed to `remarkPluginFrontmatter`. This should clarify this plugin is still separate from the `data` export Content Collections expose today.
#### Migration instructions
Plugin authors should now **check for user frontmatter when applying defaults.**
For example, say a remark plugin wants to apply a default `title` if none is present. Add a conditional to check if the property is present, and update if none exists:
```diff
export function remarkInjectTitlePlugin() {
return function (tree, file) {
const { frontmatter } = file.data.astro;
+ if (!frontmatter.title) {
frontmatter.title = 'Default title';
+ }
}
}
```
This differs from previous behavior, where a Markdown file's frontmatter would _always_ override frontmatter injected via remark or reype.

View file

@ -1,6 +0,0 @@
---
'astro': major
'@astrojs/mdx': minor
---
Remove deprecated Markdown APIs from Astro v0.X. This includes `getHeaders()`, the `.astro` property for layouts, and the `rawContent()` and `compiledContent()` error messages for MDX.

View file

@ -1,5 +0,0 @@
---
'astro': major
---
Remove proload to load the Astro config. It will now use NodeJS and Vite to load the config only.

View file

@ -1,18 +0,0 @@
---
'@astrojs/svelte': major
'astro': minor
---
The fallback Svelte preprocessor will only be applied if a custom `preprocess` option is not passed to the `svelte()` integration option, or in the `svelte.config.js` file.
To support IDE autocompletion, or if you're migrating from `@astrojs/svelte` v1, you can create a `svelte.config.js` file with:
```js
import { vitePreprocess } from '@astrojs/svelte';
export default {
preprocess: vitePreprocess(),
};
```
This file will also be generated by `astro add svelte` by default.

View file

@ -1,5 +0,0 @@
---
'@astrojs/lit': patch
---
Only shim fetch if not already present

View file

@ -1,13 +0,0 @@
---
'astro': major
---
The previously experimental features `--experimental-error-overlay` and `--experimental-prerender`, both added in v1.7.0, are now the default.
You'll notice that the error overlay during `astro dev` has a refreshed visual design and provides more context for your errors.
The `prerender` feature is now enabled by default when using `output: 'server'`. To prerender a particular page, add `export const prerender = true` to your frontmatter.
> **Warning**
> Integration authors that previously relied on the exact structure of Astro's v1.0 build output may notice some changes to our output file structure. Please test your integrations to ensure compatability.
> Users that have configured a custom `vite.build.rollupOptions.output.chunkFileNames` should ensure that their Astro project is configured as an ESM Node project. Either include `"type": "module"` in your root `package.json` file or use the `.mjs` extension for `chunkFileNames`.

View file

@ -1,16 +0,0 @@
---
'astro': major
'@astrojs/prism': major
'create-astro': major
'@astrojs/mdx': minor
'@astrojs/node': major
'@astrojs/preact': major
'@astrojs/react': major
'@astrojs/solid-js': major
'@astrojs/svelte': major
'@astrojs/vercel': major
'@astrojs/vue': major
'@astrojs/telemetry': major
---
Remove support for Node 14. Minimum supported Node version is now >=16.12.0

View file

@ -1,9 +0,0 @@
---
'astro': minor
---
Move generated content collection types to a `.astro` directory. This replaces the previously generated `src/content/types.generated.d.ts` file.
If you're using Git for version control, we recommend ignoring this generated directory by adding `.astro` to your .gitignore.
Astro will also generate the [TypeScript reference path](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-path-) to include `.astro` types in your project. This will update your project's `src/env.d.ts` file, or write one if none exists.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Upgrade compiler and handle breaking changes

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Persist CLI flags when restarting the dev server

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Add a theme toggle button to the error overlay

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes a dev server edge case where prerender + getStaticPaths would not 404 on an unmatched route

View file

@ -1,41 +0,0 @@
---
'@astrojs/rss': minor
---
Update RSS config for readability and consistency with Astro 2.0.
#### Migration - `import.meta.glob()` handling
We have deprecated `items: import.meta.glob(...)` handling in favor of a separate `pagesGlobToRssItems()` helper. This simplifies our `items` configuration option to accept a single type, without losing existing functionality.
If you rely on our `import.meta.glob()` handling, we suggest adding the `pagesGlobToRssItems()` wrapper to your RSS config:
```diff
// src/pages/rss.xml.js
import rss, {
+ pagesGlobToRssItems
} from '@astrojs/rss';
export function get(context) {
return rss({
+ items: pagesGlobToRssItems(
import.meta.glob('./blog/*.{md,mdx}'),
+ ),
});
}
```
#### New `rssSchema` for content collections
`@astrojs/rss` now exposes an `rssSchema` for use with content collections. This ensures all RSS feed properties are present in your frontmatter:
```ts
import { defineCollection } from 'astro:content';
import { rssSchema } from '@astrojs/rss';
const blog = defineCollection({
schema: rssSchema,
});
export const collections = { blog };
```

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Simplify HMR handling

View file

@ -1,8 +0,0 @@
---
'astro': patch
---
Better handle content type generation failures:
- Generate types when content directory is empty
- Log helpful error when running `astro sync` without a content directory
- Avoid swallowing `config.ts` syntax errors from Vite

View file

@ -0,0 +1,5 @@
---
'@astrojs/react': patch
---
Support passing `children` as props to a React component

View file

@ -1,6 +0,0 @@
---
'@astrojs/mdx': patch
'@astrojs/markdown-remark': patch
---
fix shiki css class replace logic

View file

@ -1,5 +0,0 @@
---
'@astrojs/partytown': patch
---
Bumps `@builder.io/partytown` version in partytown integration to fix deprecation warning in pagespeed insights

View file

@ -1,9 +0,0 @@
---
'astro': major
---
Removes support for astroFlavoredMarkdown
In 1.0 Astro moved the old Astro Flavored Markdown (also sometimes called Components in Markdown) to a legacy feature. This change removes the `legacy.astroFlavoredMarkdown` option completely.
In 2.0 this feature will not be available in Astro at all. We recommend migration to MDX for those were still using this feature in 1.x.

View file

@ -1,6 +0,0 @@
---
'astro': patch
'@astrojs/lit': patch
---
Fix Lit slotted content

View file

@ -1,5 +0,0 @@
---
'astro': major
---
Default preview host to `localhost` instead of `127.0.0.1`. This allows the static server and integration preview servers to serve under ipv6.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix `prerender` when used with `getStaticPaths`

View file

@ -1,5 +0,0 @@
---
'astro': major
---
Remove MDX Fragment hack. This was used by `@astrojs/mdx` to access the `Fragment` component, but isn't require anymore since `@astrojs/mdx` v0.12.1.

View file

@ -1,10 +0,0 @@
---
'@astrojs/deno': major
'@astrojs/netlify': major
'@astrojs/image': minor
'astro': major
---
**Breaking Change**: client assets are built to an `_astro` directory rather than the previous `assets` directory. This setting can now be controlled by the new `build` configuration option named `assets`.
This should simplify configuring immutable caching with your adapter provider as all files are now in the same `_astro` directory.

View file

@ -1,6 +0,0 @@
---
'@astrojs/image': patch
---
- Refactor types to support props auto-completion for the `Image` and `Picture` components.
- Pass previously missing `alt` prop to the `getPicture` function

View file

@ -1,5 +0,0 @@
---
'@astrojs/netlify': patch
---
Fix set-cookies not working in certain cases when using Node 18+

View file

@ -1,24 +0,0 @@
---
'astro': major
---
Move getEntry to getEntryBySlug
This change moves `getEntry` to `getEntryBySlug` and accepts a slug rather than an id.
In order to improve support in `[id].astro` routes, particularly in SSR where you do not know what the id of a collection is. Using `getEntryBySlug` instead allows you to map the `[id]` param in your route to the entry. You can use it like this:
```astro
---
import { getEntryBySlug } from 'astro:content';
const entry = await getEntryBySlug('docs', Astro.params.id);
if(!entry) {
return new Response(null, {
status: 404
});
}
---
<!-- You have an entry! Use it! -->
```

View file

@ -1,7 +0,0 @@
---
'astro': major
'@astrojs/svelte': major
'@astrojs/vue': major
---
Upgrade to Vite 4. Please see its [migration guide](https://vitejs.dev/guide/migration.html) for more information.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix importing client-side components with alias

View file

@ -1,5 +0,0 @@
---
'@astrojs/image': patch
---
Fix the integration failing to work properly on Node 18+

View file

@ -1,5 +0,0 @@
---
'@astrojs/markdown-remark': major
---
Drop support for legacy Astro-flavored Markdown

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Handle server restart from Vite plugins

View file

@ -1,128 +0,0 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@example/basics": "0.0.1",
"@example/blog": "0.0.1",
"@example/component": "0.0.1",
"@example/deno": "0.0.1",
"@example/docs": "0.0.1",
"@example/framework-alpine": "0.0.1",
"@example/framework-lit": "0.0.1",
"@example/framework-multiple": "0.0.1",
"@example/framework-preact": "0.0.1",
"@example/framework-react": "0.0.1",
"@example/framework-solid": "0.0.1",
"@example/framework-svelte": "0.0.1",
"@example/framework-vue": "0.0.1",
"@example/hackernews": "0.0.1",
"@example/integration": "0.0.1",
"@example/minimal": "0.0.1",
"@example/non-html-pages": "0.0.1",
"@example/portfolio": "0.0.1",
"@example/ssr": "0.0.1",
"@example/with-content": "0.0.1",
"@example/with-markdown-plugins": "0.0.2",
"@example/with-markdown-shiki": "0.0.1",
"@example/with-mdx": "0.0.1",
"@example/with-nanostores": "0.0.1",
"@example/with-tailwindcss": "0.0.1",
"@example/with-vite-plugin-pwa": "0.0.1",
"@example/with-vitest": "0.0.1",
"astro": "1.9.0",
"@astrojs/prism": "1.0.2",
"@astrojs/rss": "2.0.0",
"@test/component-library-shared": "0.1.0",
"@test/custom-element-renderer": "0.1.0",
"create-astro": "1.2.4",
"@astrojs/alpinejs": "0.1.2",
"@astrojs/cloudflare": "5.0.0",
"@astrojs/deno": "3.0.0",
"@astrojs/image": "0.12.1",
"@astrojs/lit": "1.0.1",
"@astrojs/mdx": "0.14.0",
"@astrojs/netlify": "1.3.0",
"@astrojs/node": "4.0.0",
"@astrojs/partytown": "1.0.2",
"@astrojs/preact": "1.2.0",
"@astrojs/prefetch": "0.1.1",
"@astrojs/react": "1.2.2",
"@astrojs/sitemap": "1.0.0",
"@astrojs/solid-js": "1.2.3",
"@astrojs/svelte": "1.0.2",
"@astrojs/tailwind": "2.1.3",
"@astrojs/turbolinks": "0.1.4",
"@astrojs/vercel": "2.4.0",
"@astrojs/vue": "1.2.2",
"@astrojs/markdown-component": "1.0.2",
"@astrojs/markdown-remark": "1.2.0",
"@astrojs/telemetry": "1.0.1",
"@astrojs/webapi": "1.1.1",
"astro-scripts": "0.0.9"
},
"changesets": [
"angry-pots-boil",
"angry-spoons-flow",
"beige-beds-smile",
"beige-pumpkins-pump",
"calm-emus-raise",
"calm-peas-doubt",
"chatty-planes-bathe",
"chatty-rivers-camp",
"chilled-geese-worry",
"curvy-beds-warn",
"curvy-foxes-reply",
"dull-rabbits-relax",
"eleven-bulldogs-provide",
"few-rice-report",
"fluffy-cups-travel",
"fluffy-mirrors-swim",
"fluffy-onions-wink",
"giant-chefs-rule",
"gold-baboons-tie",
"grumpy-days-yell",
"kind-beers-give",
"lemon-bobcats-kick",
"lemon-eagles-worry",
"lovely-terms-drive",
"lovely-worms-invite",
"mean-suits-cover",
"modern-bulldogs-film",
"neat-eagles-trade",
"new-lies-guess",
"ninety-garlics-fly",
"odd-mirrors-beam",
"poor-chicken-film",
"poor-ladybugs-thank",
"pretty-planes-promise",
"quick-impalas-rush",
"quiet-actors-agree",
"real-nails-clean",
"red-snakes-fetch",
"selfish-tigers-do",
"serious-cats-jog",
"shaggy-bags-attend",
"shaggy-keys-turn",
"shaggy-melons-tap",
"six-carpets-talk",
"smart-clouds-applaud",
"smooth-guests-perform",
"spicy-parrots-beam",
"spicy-tips-dream",
"spotty-bees-switch",
"stupid-wolves-explain",
"sweet-rocks-count",
"swift-kangaroos-decide",
"thick-walls-smell",
"thin-beers-drive",
"thin-seahorses-worry",
"tricky-rabbits-count",
"twelve-cooks-tickle",
"twenty-boxes-know",
"twenty-llamas-type",
"two-geese-eat",
"two-needles-buy",
"wicked-clouds-obey",
"witty-pugs-drum"
]
}

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix for hoisted scripts in project with spaces in the file path

View file

@ -1,5 +0,0 @@
---
'@astrojs/mdx': patch
---
Fix broken links in README

View file

@ -1,20 +0,0 @@
---
'astro': minor
---
Allow Zod objects, unions, discriminated unions, intersections, and transform results as content collection schemas.
#### Migration
Astro requires a `z.object(...)` wrapper on all content collection schemas. Update your content collections config like so:
```diff
// src/content/config.ts
import { z, defineCollection } from 'astro:content';
const blog = defineCollection({
- schema: {
+ schema: z.object({
...
})
```

View file

@ -1,5 +0,0 @@
---
'astro': minor
---
Generate content types when running `astro check`

View file

@ -1,5 +0,0 @@
---
'@astrojs/node': patch
---
Support custom 404 page in standalone mode

View file

@ -1,10 +0,0 @@
---
'@astrojs/cloudflare': major
'@astrojs/deno': major
'@astrojs/image': minor
'@astrojs/netlify': major
'@astrojs/node': major
'@astrojs/vercel': major
---
Remove `astro:build:start` backwards compatibility code

View file

@ -1,5 +0,0 @@
---
'astro': major
---
Remove outdated Vue info log. Remove `toString` support for `RenderTemplateResult`.

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
improve error message: change @astrojs/solid to @astrojs/solid-js

View file

@ -1,5 +0,0 @@
---
'@astrojs/webapi': major
---
Moved target to Node 16. Removed polyfills for AbortController, AbortSignal, atob, btoa, Object.hasOwn, Promise.all, Array.at and String.replaceAll

View file

@ -1,63 +0,0 @@
---
'astro': major
'@astrojs/markdown-remark': major
'@astrojs/mdx': minor
---
Refine Markdown and MDX configuration options for ease-of-use.
#### Markdown
- **Remove `remark-smartypants`** from Astro's default Markdown plugins.
- **Replace the `extendDefaultPlugins` option** with a simplified `gfm` boolean. This is enabled by default, and can be disabled to remove GitHub-Flavored Markdown.
- Ensure GitHub-Flavored Markdown is applied whether or not custom `remarkPlugins` or `rehypePlugins` are configured. If you want to apply custom plugins _and_ remove GFM, manually set `gfm: false` in your config.
#### MDX
- Support _all_ Markdown configuration options (except `drafts`) from your MDX integration config. This includes `syntaxHighlighting` and `shikiConfig` options to further customize the MDX renderer.
- Simplify `extendDefaults` to an `extendMarkdownConfig` option. MDX options will default to their equivalent in your Markdown config. By setting `extendMarkdownConfig` to false, you can "eject" to set your own syntax highlighting, plugins, and more.
#### Migration
To preserve your existing Markdown and MDX setup, you may need some configuration changes:
##### Smartypants manual installation
[Smartypants](https://github.com/silvenon/remark-smartypants) has been removed from Astro's default setup. If you rely on this plugin, [install `remark-smartypants`](https://github.com/silvenon/remark-smartypants#installing) and apply to your `astro.config.*`:
```diff
// astro.config.mjs
import { defineConfig } from 'astro/config';
+ import smartypants from 'remark-smartypants';
export default defineConfig({
markdown: {
+ remarkPlugins: [smartypants],
}
});
```
##### Migrate `extendDefaultPlugins` to `gfm`
You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the `extendDefaultPlugins` option. Since Smartypants has been removed, this has been renamed to `gfm`.
```diff
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
markdown: {
- extendDefaultPlugins: false,
+ gfm: false,
}
});
```
Additionally, applying remark and rehype plugins **no longer disables** `gfm`. You will need to opt-out manually by setting `gfm` to `false`.
##### Migrate MDX's `extendPlugins` to `extendMarkdownConfig`
You may have used the `extendPlugins` option to manage plugin defaults in MDX. This has been replaced by 2 flags:
- `extendMarkdownConfig` (`true` by default) to toggle Markdown config inheritance. This replaces the `extendPlugins: 'markdown'` option.
- `gfm` (`true` by default) to toggle GitHub-Flavored Markdown in MDX. This replaces the `extendPlugins: 'defaults'` option.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Add error location during build for user-generated errors

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Cleanup dependencies

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Add helpful error message when the MDX integration is missing.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Update `@astrojs/compiler` to `v1.0.0`

View file

@ -1,5 +0,0 @@
---
'@astrojs/netlify': patch
---
Fix issue with prerendered pages when using `edge-functions` adapter

View file

@ -1,10 +0,0 @@
---
'@astrojs/deno': major
'@astrojs/netlify': major
'@astrojs/image': minor
'astro': major
---
**Breaking Change**: client assets are built to an `_astro` directory in the build output directory. Previously these were built to various locations, including `assets/`, `chunks/` and the root of build output.
You can control this location with the new `build` configuration option named `assets`.

View file

@ -1,5 +0,0 @@
---
'@astrojs/svelte': major
---
Simplify Svelte preprocess setup. `<style lang="postcss">` is now required if using PostCSS inside style tags.

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Add type guard support to filters on `getCollection()`

View file

@ -1,7 +0,0 @@
---
'@astrojs/webapi': major
---
Replace node-fetch's polyfill with undici.
Since `undici` does not support it, this change also removes custom support for the `file:` protocol

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix `Code.astro` shiki css class replace logic

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix route matching when path includes special characters

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Astro <Code> component is not able to use a custom theme anymore

View file

@ -1,6 +0,0 @@
---
'astro': major
'@astrojs/tailwind': major
---
Remove `style.postcss` Astro config. Refactor tailwind integration to configure through `vite` instead. Also disables `autoprefixer` in dev.

View file

@ -1,14 +0,0 @@
---
'astro': major
'@astrojs/mdx': minor
'@astrojs/markdown-remark': major
---
Baseline the experimental `contentCollections` flag. You're free to remove this from your astro config!
```diff
import { defineConfig } from 'astro/config';
export default defineConfig({
- experimental: { contentCollections: true }
})

View file

@ -1,16 +0,0 @@
---
'@astrojs/cloudflare': major
'@astrojs/deno': major
'@astrojs/netlify': major
'@astrojs/node': major
'@astrojs/svelte': major
'@astrojs/tailwind': major
'@astrojs/vercel': major
'@astrojs/vue': major
'@astrojs/markdown-remark': major
'@astrojs/image': minor
---
Make astro a peerDependency of integrations
This marks `astro` as a peerDependency of several packages that are already getting `major` version bumps. This is so we can more properly track the dependency between them and what version of Astro they are being used with.

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Update compiler to 1.0.1

View file

@ -1,36 +0,0 @@
---
'astro': major
---
Remove deprecated `Astro` global APIs, including `Astro.resolve`, `Astro.fetchContent`, and `Astro.canonicalURL`.
#### `Astro.resolve`
You can resolve asset paths using `import` instead. For example:
```astro
---
import 'style.css'
import imageUrl from './image.png'
---
<img src={imageUrl} />
```
See the [v0.25 migration guide](https://docs.astro.build/en/migrate/#deprecated-astroresolve) for more information.
#### `Astro.fetchContent`
Use `Astro.glob` instead to fetch markdown files, or migrate to the [Content Collections](https://docs.astro.build/en/guides/content-collections/) feature.
```js
let allPosts = await Astro.glob('./posts/*.md');
```
#### `Astro.canonicalURL`
Use `Astro.url` instead to construct the canonical URL.
```js
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
```

View file

@ -1,5 +0,0 @@
---
'astro': major
---
A trailing slash will not be automatically appended to `import.meta.env.SITE`. Instead, it will be the value of the `site` config as is. This may affect usages of `${import.meta.env.SITE}image.png`, which will need to be updated accordingly.

View file

@ -1,5 +0,0 @@
---
'@astrojs/image': patch
---
Fix crash on Netlify Functions due to `import.meta.url`

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Respect `vite.envPrefix` if provided

View file

@ -1,24 +0,0 @@
---
'astro': major
---
Remove `buildConfig` option parameter from integration `astro:build:start` hook in favour of the `build.config` option in the `astro:config:setup` hook.
```js
export default function myIntegration() {
return {
name: 'my-integration',
hooks: {
'astro:config:setup': ({ updateConfig }) => {
updateConfig({
build: {
client: '...',
server: '...',
serverEntry: '...',
},
});
},
},
};
}
```

View file

@ -1,6 +0,0 @@
---
'astro': minor
'@astrojs/node': minor
---
Add support for serving well-known URIs with the @astrojs/node SSR adapter

View file

@ -1,5 +0,0 @@
---
'astro': major
---
Remove unused exports

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Enable `skipLibCheck` by default

View file

@ -1,12 +1,14 @@
![The Astro logo.](assets/social/banner-minimal.png 'The Astro logo.')
<p align="center">
<img src="assets/social/banner-minimal.png" alt="Astro logo">
<br/><br/>
<br/>
<a href="https://astro.build">Astro</a> is a website build tool for the modern web &mdash;
<br/>
powerful developer experience meets lightweight output.
<br/><br/>
</p>
## Install
The **recommended** way to install the latest version of Astro is by running the command below:
@ -89,6 +91,12 @@ Astro is generously supported by Netlify, Storyblok, and several other amazing o
<p align="center">
<a target="_blank" href="https://github.com/sponsors/withastro">
<img alt="sponsors" src="https://astro.build/sponsors.png">
[![Astro's sponsors.](https://astro.build/sponsors.png
"Astro's sponsors.
Platinum sponsors: Netlify, storyblok, Vercel, Ship Shape
Gold sponsors: divRIOTS, StackUp, DEEPGRAM
Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro)
</a>
</p>

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/rss": "^2.1.0-beta.0",
"astro": "^2.0.1",
"@astrojs/mdx": "^0.15.0",
"@astrojs/rss": "^2.1.0",
"@astrojs/sitemap": "^1.0.0"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"

View file

@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
},
"devDependencies": {
"@astrojs/deno": "^4.0.0-beta.2"
"@astrojs/deno": "^4.0.0"
}
}

View file

@ -12,12 +12,12 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^2.0.0-beta.0",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/react": "^2.0.0",
"@astrojs/preact": "^2.0.0",
"@algolia/client-search": "^4.13.1",
"@docsearch/css": "^3.1.0",
"@docsearch/react": "^3.1.0",

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"alpinejs": "^3.10.2",
"@astrojs/alpinejs": "^0.1.2",
"@types/alpinejs": "^3.7.0"

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"lit": "^2.2.5",
"@astrojs/lit": "^1.0.2-beta.0",
"@astrojs/lit": "^1.1.0",
"@webcomponents/template-shadowroot": "^0.1.0"
}
}

View file

@ -11,17 +11,17 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"solid-js": "^1.4.3",
"svelte": "^3.48.0",
"vue": "^3.2.37",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/react": "^2.0.0-beta.0",
"@astrojs/solid-js": "^2.0.0-beta.0",
"@astrojs/svelte": "^2.0.0-beta.2",
"@astrojs/vue": "^2.0.0-beta.1"
"@astrojs/preact": "^2.0.0",
"@astrojs/react": "^2.0.0",
"@astrojs/solid-js": "^2.0.0",
"@astrojs/svelte": "^2.0.0",
"@astrojs/vue": "^2.0.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"preact": "^10.7.3",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/preact": "^2.0.0",
"@preact/signals": "^1.1.0"
}
}

View file

@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^2.0.0-beta.0",
"@astrojs/react": "^2.0.0",
"@types/react": "^18.0.10",
"@types/react-dom": "^18.0.5"
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"solid-js": "^1.4.3",
"@astrojs/solid-js": "^2.0.0-beta.0"
"@astrojs/solid-js": "^2.0.0"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0-beta.2",
"astro": "^2.0.0-beta.3"
"@astrojs/svelte": "^2.0.0",
"astro": "^2.0.1"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"vue": "^3.2.37",
"@astrojs/vue": "^2.0.0-beta.1"
"@astrojs/vue": "^2.0.0"
}
}

View file

@ -12,7 +12,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^5.0.0-beta.1",
"astro": "^2.0.0-beta.3"
"@astrojs/node": "^5.0.0",
"astro": "^2.0.1"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
}
}

View file

@ -12,10 +12,10 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0-beta.2",
"@astrojs/node": "^5.0.0-beta.1",
"@astrojs/svelte": "^2.0.0",
"@astrojs/node": "^5.0.0",
"concurrently": "^7.2.1",
"unocss": "^0.15.6",
"vite-imagetools": "^4.0.4"

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"@astrojs/markdown-remark": "^2.0.0-beta.2",
"astro": "^2.0.1",
"@astrojs/markdown-remark": "^2.0.0",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3"
"astro": "^2.0.1"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"preact": "^10.6.5",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/mdx": "^0.15.0-beta.0"
"@astrojs/preact": "^2.0.0",
"@astrojs/mdx": "^0.15.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"preact": "^10.7.3",
"@astrojs/preact": "^2.0.0-beta.0",
"@astrojs/preact": "^2.0.0",
"nanostores": "^0.5.12",
"@nanostores/preact": "^0.1.3"
}

View file

@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/tailwind": "^3.0.0-beta.1",
"@astrojs/mdx": "^0.15.0",
"@astrojs/tailwind": "^3.0.0",
"@types/canvas-confetti": "^1.4.3",
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.3"
}

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^2.0.0-beta.3",
"astro": "^2.0.1",
"vitest": "^0.20.3"
}
}

View file

@ -1,11 +1,22 @@
# @astrojs/prism
## 2.0.0-beta.0
## 2.0.0
### Major Changes
- [#5782](https://github.com/withastro/astro/pull/5782) [`1f92d64ea`](https://github.com/withastro/astro/commit/1f92d64ea35c03fec43aff64eaf704dc5a9eb30a) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0
## 2.0.0-beta.0
<details>
<summary>See changes in 2.0.0-beta.0</summary>
### Major Changes
- [#5782](https://github.com/withastro/astro/pull/5782) [`1f92d64ea`](https://github.com/withastro/astro/commit/1f92d64ea35c03fec43aff64eaf704dc5a9eb30a) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0
</details>
## 1.0.2
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/prism",
"version": "2.0.0-beta.0",
"version": "2.0.0",
"description": "Supports Prism highlighting in Astro projects",
"author": "withastro",
"type": "module",

View file

@ -1,46 +1,93 @@
# @astrojs/rss
## 2.1.0-beta.0
## 2.1.0
### Minor Changes
- [#5851](https://github.com/withastro/astro/pull/5851) [`81dce94f2`](https://github.com/withastro/astro/commit/81dce94f2a6db598bd9e47fc2a4b9d713e58f286) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update RSS config for readability and consistency with Astro 2.0.
#### Migration - `import.meta.glob()` handling
- **Migration - `import.meta.glob()` handling**
We have deprecated `items: import.meta.glob(...)` handling in favor of a separate `pagesGlobToRssItems()` helper. This simplifies our `items` configuration option to accept a single type, without losing existing functionality.
We have deprecated `items: import.meta.glob(...)` handling in favor of a separate `pagesGlobToRssItems()` helper. This simplifies our `items` configuration option to accept a single type, without losing existing functionality.
If you rely on our `import.meta.glob()` handling, we suggest adding the `pagesGlobToRssItems()` wrapper to your RSS config:
If you rely on our `import.meta.glob()` handling, we suggest adding the `pagesGlobToRssItems()` wrapper to your RSS config:
```diff
// src/pages/rss.xml.js
import rss, {
+ pagesGlobToRssItems
} from '@astrojs/rss';
```diff
// src/pages/rss.xml.js
import rss, {
+ pagesGlobToRssItems
} from '@astrojs/rss';
export function get(context) {
return rss({
+ items: pagesGlobToRssItems(
import.meta.glob('./blog/*.{md,mdx}'),
+ ),
export function get(context) {
return rss({
+ items: pagesGlobToRssItems(
import.meta.glob('./blog/*.{md,mdx}'),
+ ),
});
}
```
- **New `rssSchema` for content collections**
`@astrojs/rss` now exposes an `rssSchema` for use with content collections. This ensures all RSS feed properties are present in your frontmatter:
```ts
import { defineCollection } from 'astro:content';
import { rssSchema } from '@astrojs/rss';
const blog = defineCollection({
schema: rssSchema,
});
}
```
#### New `rssSchema` for content collections
export const collections = { blog };
```
`@astrojs/rss` now exposes an `rssSchema` for use with content collections. This ensures all RSS feed properties are present in your frontmatter:
## 2.1.0-beta.0
```ts
import { defineCollection } from 'astro:content';
import { rssSchema } from '@astrojs/rss';
<details>
<summary>See changes in 2.1.0-beta.0</summary>
const blog = defineCollection({
schema: rssSchema,
});
### Minor Changes
export const collections = { blog };
```
- [#5851](https://github.com/withastro/astro/pull/5851) [`81dce94f2`](https://github.com/withastro/astro/commit/81dce94f2a6db598bd9e47fc2a4b9d713e58f286) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update RSS config for readability and consistency with Astro 2.0.
- **Migration - `import.meta.glob()` handling**
We have deprecated `items: import.meta.glob(...)` handling in favor of a separate `pagesGlobToRssItems()` helper. This simplifies our `items` configuration option to accept a single type, without losing existing functionality.
If you rely on our `import.meta.glob()` handling, we suggest adding the `pagesGlobToRssItems()` wrapper to your RSS config:
```diff
// src/pages/rss.xml.js
import rss, {
+ pagesGlobToRssItems
} from '@astrojs/rss';
export function get(context) {
return rss({
+ items: pagesGlobToRssItems(
import.meta.glob('./blog/*.{md,mdx}'),
+ ),
});
}
```
- **New `rssSchema` for content collections**
`@astrojs/rss` now exposes an `rssSchema` for use with content collections. This ensures all RSS feed properties are present in your frontmatter:
```ts
import { defineCollection } from 'astro:content';
import { rssSchema } from '@astrojs/rss';
const blog = defineCollection({
schema: rssSchema,
});
export const collections = { blog };
```
</details>
## 2.0.0

Some files were not shown because too many files have changed in this diff Show more