Compare commits

...

30 commits

Author SHA1 Message Date
Matthew Phillips
6ea867ddd0 Merge branch 'changeset-release/main' into fix-cs3 2023-01-24 11:04:29 -05:00
github-actions[bot]
cc5271d2c0 [ci] release 2023-01-24 15:57:51 +00:00
Chris Swithinbank
4138675a9f
astro & markdown/remark: Combine #5679 & #5684 changelogs 2023-01-24 13:42:00 +01:00
Chris Swithinbank
faa912fca8
Reformat mdx 2023-01-24 13:30:09 +01:00
Chris Swithinbank
84026a2529
Reinstate h3s for headings
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-24 13:25:49 +01:00
Chris Swithinbank
42180b80bf
Format scripts 2023-01-24 13:01:24 +01:00
Chris Swithinbank
ef15456bcf
Format webapi 2023-01-24 13:00:01 +01:00
Chris Swithinbank
73a001d7e5
Format telemetry 2023-01-24 12:57:25 +01:00
Chris Swithinbank
799255ba63
Format vue 2023-01-24 12:56:23 +01:00
Chris Swithinbank
65f4b0ee03
Format vercel 2023-01-24 12:54:37 +01:00
Chris Swithinbank
0621875ad0
Format tailwind 2023-01-24 12:53:04 +01:00
Chris Swithinbank
0f79b055ae
Format svelte 2023-01-24 12:49:30 +01:00
Chris Swithinbank
26a8ce31b4
Format solid 2023-01-24 12:45:28 +01:00
Chris Swithinbank
80ab805eba
Format react 2023-01-24 12:41:03 +01:00
Chris Swithinbank
75f2677f6a
Format preact 2023-01-24 12:38:43 +01:00
Chris Swithinbank
96a2dd3177
Format node 2023-01-24 12:34:52 +01:00
Chris Swithinbank
c05346eb08
Format partytown 2023-01-24 12:32:22 +01:00
Chris Swithinbank
e871be6337
Format lit 2023-01-24 12:30:02 +01:00
Chris Swithinbank
4ee7cfb85d
Format cloudflare 2023-01-24 12:26:16 +01:00
Chris Swithinbank
7a36b040c9
Format create-astro 2023-01-24 12:21:53 +01:00
Chris Swithinbank
05cf311128
Format astro-rss 2023-01-24 12:19:34 +01:00
Chris Swithinbank
42edcdeeef
Format astro-prism 2023-01-24 12:17:35 +01:00
Chris Swithinbank
453d171114
Tweak markdown/remark formatting 2023-01-24 12:07:00 +01:00
Sarah Rainsberger
806f202d28 markdown/remark incl (5684 & 5769) to match mdx 2023-01-24 01:16:22 +00:00
Sarah Rainsberger
56d2b8c760 combine 5584 and 5842 in deno, image, netlify 2023-01-24 01:04:07 +00:00
Sarah Rainsberger
f8abae2e03 mdx changes from Sarah 2023-01-24 00:44:27 +00:00
Chris Swithinbank
1131a6b9c7
First pass cleaning up 2.0 release notes 2023-01-24 01:12:45 +01:00
Chris Swithinbank
d9d7d7e37b
Add link to docs upgrade guide 2023-01-24 00:48:53 +01:00
Chris Swithinbank
25aa70a649
Wrap astro 2.0 beta logs in <details> 2023-01-24 00:32:53 +01:00
github-actions[bot]
b7e6ec71d9 [ci] release 2023-01-23 21:32:15 +00:00
149 changed files with 1555 additions and 1091 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,5 +0,0 @@
---
'@astrojs/partytown': patch
---
fix trailing slash with base path

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': minor
---
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

@ -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

@ -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': minor
---
Fix Lit slotted content

View file

@ -1,5 +0,0 @@
---
'create-astro': patch
---
Support headless runs with `-y` / `--yes`

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Handle custom injected entry files during build

View file

@ -1,5 +0,0 @@
---
'create-astro': patch
---
Improve error message for third-party template 404s

View file

@ -1,43 +0,0 @@
---
'astro': major
---
Content collections: Introduce a new `slug` frontmatter field for overriding the generated slug. This replaces the previous `slug()` collection config option from Astro 1.X and the 2.0 beta.
When present in a Markdown or MDX file, this will override the generated slug for that entry.
```diff
# src/content/blog/post-1.md
---
title: Post 1
+ slug: post-1-custom-slug
---
```
Astro will respect this slug in the generated `slug` type and when using the `getEntryBySlug()` utility:
```astro
---
import { getEntryBySlug } from 'astro:content';
// Retrieve `src/content/blog/post-1.md` by slug with type safety
const post = await getEntryBySlug('blog', 'post-1-custom-slug');
---
```
#### Migration
If you relied on the `slug()` config option, you will need to move all custom slugs to `slug` frontmatter properties in each collection entry.
Additionally, Astro no longer allows `slug` as a collection schema property. This ensures Astro can manage the `slug` property for type generation and performance. Remove this property from your schema and any relevant `slug()` configuration:
```diff
const blog = defineCollection({
schema: z.object({
- slug: z.string().optional(),
}),
- slug({ defaultSlug, data }) {
- return data.slug ?? defaultSlug;
- },
})
```

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,5 +0,0 @@
---
"@astrojs/svelte": patch
---
Improve README

View file

@ -1,6 +0,0 @@
---
'@astrojs/image': patch
'@astrojs/webapi': patch
---
Update magic-string from 0.25.9 to 0.27.0

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,140 +0,0 @@
{
"mode": "exit",
"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",
"beige-waves-wave",
"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",
"kind-panthers-doubt",
"kind-seahorses-reply",
"large-hotels-give",
"large-steaks-film",
"lemon-bobcats-kick",
"lemon-eagles-worry",
"lovely-terms-drive",
"lovely-worms-invite",
"lucky-ants-push",
"lucky-tigers-know",
"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",
"real-rules-occur",
"red-snakes-fetch",
"rotten-cups-happen",
"selfish-tigers-do",
"serious-cats-jog",
"shaggy-bags-attend",
"shaggy-keys-turn",
"shaggy-melons-tap",
"six-carpets-talk",
"six-dingos-add",
"smart-clouds-applaud",
"smooth-guests-perform",
"spicy-parrots-beam",
"spicy-tips-dream",
"spotty-bees-switch",
"stupid-wolves-explain",
"sweet-rocks-count",
"swift-kangaroos-decide",
"ten-paws-obey",
"thick-walls-smell",
"thin-beers-drive",
"thin-seahorses-worry",
"three-comics-share",
"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/netlify': patch
---
Support prerender in \_redirects

View file

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

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Fix duplicate CSS in dev mode when `vite.css.devSourcemap` is provided

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

@ -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
---
Fix CLI node version check

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

@ -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

@ -1,5 +0,0 @@
---
'@astrojs/tailwind': patch
---
Fix vite not picking up Postcss config files because of the tailwind integration

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

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

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.4",
"@astrojs/mdx": "^0.15.0-beta.0",
"@astrojs/rss": "^2.1.0-beta.0",
"astro": "^2.0.0",
"@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.4"
"astro": "^2.0.0"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"

View file

@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.4"
"astro": "^2.0.0"
},
"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.4",
"astro": "^2.0.0",
"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.4",
"astro": "^2.0.0",
"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.4",
"astro": "^2.0.0",
"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.4",
"astro": "^2.0.0",
"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.3",
"@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.4",
"astro": "^2.0.0",
"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.4",
"astro": "^2.0.0",
"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.4",
"astro": "^2.0.0",
"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.3",
"astro": "^2.0.0-beta.4"
"@astrojs/svelte": "^2.0.0",
"astro": "^2.0.0"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.4",
"astro": "^2.0.0",
"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.4"
"@astrojs/node": "^5.0.0",
"astro": "^2.0.0"
}
}

View file

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

View file

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

View file

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

View file

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

View file

@ -12,10 +12,10 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"astro": "^2.0.0-beta.4",
"astro": "^2.0.0",
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0-beta.3",
"@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.4",
"@astrojs/markdown-remark": "^2.0.0-beta.2",
"astro": "^2.0.0",
"@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.4"
"astro": "^2.0.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.0-beta.4",
"astro": "^2.0.0",
"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.4",
"astro": "^2.0.0",
"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.2",
"@astrojs/mdx": "^0.15.0",
"@astrojs/tailwind": "^3.0.0",
"@types/canvas-confetti": "^1.4.3",
"astro": "^2.0.0-beta.4",
"astro": "^2.0.0",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",

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