Compare commits
43 commits
main
...
cloudflare
Author | SHA1 | Date | |
---|---|---|---|
|
fb06f48810 | ||
|
25edd88cae | ||
|
f819edc5f9 | ||
|
0c15bff2f2 | ||
|
c88df39e4c | ||
|
031cceb56d | ||
|
a08e626d6a | ||
|
140c81908c | ||
|
5b5f8ec31d | ||
|
40e54544dc | ||
|
9b544b9fac | ||
|
f3130d63a2 | ||
|
21a3774d53 | ||
|
37563b73f2 | ||
|
5c59d3d1f5 | ||
|
33fd1c9766 | ||
|
b221969e61 | ||
|
c69c364c9f | ||
|
ab7e1b9a5a | ||
|
5b3f96c48e | ||
|
0cee60c0af | ||
|
fefdcc0c32 | ||
|
25bfd4a74c | ||
|
3ef84b4790 | ||
|
f4fa0bf1d5 | ||
|
615f734d4e | ||
|
2ef8d8a8ce | ||
|
46d8f649d5 | ||
|
7ddbd94e5f | ||
|
7bb96bbde0 | ||
|
d271756e89 | ||
|
803cd0f370 | ||
|
2dd458d712 | ||
|
f5c1122921 | ||
|
b7f33c6c17 | ||
|
07da4f8e73 | ||
|
566af8982f | ||
|
99c5c2a2e3 | ||
|
f27570d753 | ||
|
624595e353 | ||
|
9c048888da | ||
|
b2ce69704b | ||
|
f135b0d94b |
208 changed files with 2435 additions and 1319 deletions
|
@ -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,
|
||||
}
|
||||
});
|
||||
```
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Remove legacy compiler error handling
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix edge case with bundle generation by emitting a single chunk for pages
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/lit': patch
|
||||
---
|
||||
|
||||
Only shim fetch if not already present
|
|
@ -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`.
|
|
@ -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
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Upgrade compiler and handle breaking changes
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Persist CLI flags when restarting the dev server
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add a theme toggle button to the error overlay
|
5
.changeset/fluffy-cherries-shake.md
Normal file
5
.changeset/fluffy-cherries-shake.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes a dev server edge case where prerender + getStaticPaths would not 404 on an unmatched route
|
|
@ -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 };
|
||||
```
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Simplify HMR handling
|
|
@ -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
|
5
.changeset/fresh-eels-speak.md
Normal file
5
.changeset/fresh-eels-speak.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/react': patch
|
||||
---
|
||||
|
||||
Support passing `children` as props to a React component
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
'@astrojs/mdx': patch
|
||||
'@astrojs/markdown-remark': patch
|
||||
---
|
||||
|
||||
fix shiki css class replace logic
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/partytown': patch
|
||||
---
|
||||
|
||||
Bumps `@builder.io/partytown` version in partytown integration to fix deprecation warning in pagespeed insights
|
|
@ -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.
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
'@astrojs/lit': patch
|
||||
---
|
||||
|
||||
Fix Lit slotted content
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix `prerender` when used with `getStaticPaths`
|
|
@ -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.
|
|
@ -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.
|
|
@ -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
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/netlify': patch
|
||||
---
|
||||
|
||||
Fix set-cookies not working in certain cases when using Node 18+
|
|
@ -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! -->
|
||||
```
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix importing client-side components with alias
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/image': patch
|
||||
---
|
||||
|
||||
Fix the integration failing to work properly on Node 18+
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/markdown-remark': major
|
||||
---
|
||||
|
||||
Drop support for legacy Astro-flavored Markdown
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Handle server restart from Vite plugins
|
|
@ -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"
|
||||
]
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix for hoisted scripts in project with spaces in the file path
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/mdx': patch
|
||||
---
|
||||
|
||||
Fix broken links in README
|
|
@ -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({
|
||||
...
|
||||
})
|
||||
```
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': minor
|
||||
---
|
||||
|
||||
Generate content types when running `astro check`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/node': patch
|
||||
---
|
||||
|
||||
Support custom 404 page in standalone mode
|
|
@ -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
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove outdated Vue info log. Remove `toString` support for `RenderTemplateResult`.
|
5
.changeset/serious-turtles-explode.md
Normal file
5
.changeset/serious-turtles-explode.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
improve error message: change @astrojs/solid to @astrojs/solid-js
|
|
@ -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
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add error location during build for user-generated errors
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Cleanup dependencies
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add helpful error message when the MDX integration is missing.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Update `@astrojs/compiler` to `v1.0.0`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/netlify': patch
|
||||
---
|
||||
|
||||
Fix issue with prerendered pages when using `edge-functions` adapter
|
|
@ -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`.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/svelte': major
|
||||
---
|
||||
|
||||
Simplify Svelte preprocess setup. `<style lang="postcss">` is now required if using PostCSS inside style tags.
|
5
.changeset/strong-hotels-sort.md
Normal file
5
.changeset/strong-hotels-sort.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add type guard support to filters on `getCollection()`
|
|
@ -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
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix `Code.astro` shiki css class replace logic
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix route matching when path includes special characters
|
5
.changeset/ten-icons-raise.md
Normal file
5
.changeset/ten-icons-raise.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Astro <Code> component is not able to use a custom theme anymore
|
|
@ -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.
|
|
@ -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 }
|
||||
})
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Update compiler to 1.0.1
|
|
@ -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);
|
||||
```
|
|
@ -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.
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'@astrojs/image': patch
|
||||
---
|
||||
|
||||
Fix crash on Netlify Functions due to `import.meta.url`
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Respect `vite.envPrefix` if provided
|
|
@ -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: '...',
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
```
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
'astro': minor
|
||||
'@astrojs/node': minor
|
||||
---
|
||||
|
||||
Add support for serving well-known URIs with the @astrojs/node SSR adapter
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': major
|
||||
---
|
||||
|
||||
Remove unused exports
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Enable `skipLibCheck` by default
|
14
README.md
14
README.md
|
@ -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 —
|
||||
<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: ‹div›RIOTS, StackUp, DEEPGRAM
|
||||
Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro)
|
||||
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^2.0.0-beta.0"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^2.0.0-beta.0"
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.0-beta.3"
|
||||
"astro": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^2.0.0-beta.3",
|
||||
"astro": "^2.0.1",
|
||||
"vitest": "^0.20.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue