diff --git a/.changeset/pre.json b/.changeset/pre.json index 2023b5251df9..d3d6539f6210 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -30,13 +30,18 @@ "@astrojs/markdown-remark": "7.0.1", "@astrojs/telemetry": "3.3.0", "@astrojs/underscore-redirects": "1.0.2", - "@astrojs/upgrade": "0.7.1" + "@astrojs/upgrade": "0.7.1", + "@astrojs/markdown-satteri": "0.2.2" }, "changesets": [ "common-pears-drive", "fix-dev-port-vite-restart", "goofy-tigers-like", "rusty-compilers-only", - "two-eels-live" + "satteri-prism", + "silly-spoons-write", + "two-eels-live", + "update-vite-plugin-svelte-v7", + "wacky-bugs-act" ] } diff --git a/examples/advanced-routing/package.json b/examples/advanced-routing/package.json index da349c7b98e6..4e3edb9d2143 100644 --- a/examples/advanced-routing/package.json +++ b/examples/advanced-routing/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@astrojs/node": "^11.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "hono": "^4.12.14" } } diff --git a/examples/basics/package.json b/examples/basics/package.json index 686e81d0718c..bbea735c012f 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -13,6 +13,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 4369f33ee9f3..4a06c6cc2d11 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -13,10 +13,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^6.0.0-alpha.0", + "@astrojs/mdx": "^6.0.0-alpha.1", "@astrojs/rss": "^4.0.18", - "@astrojs/sitemap": "^3.7.2", - "astro": "^7.0.0-alpha.1", + "@astrojs/sitemap": "^3.7.3", + "astro": "^7.0.0-alpha.2", "sharp": "^0.34.3" } } diff --git a/examples/component/package.json b/examples/component/package.json index de95eee30cd3..8209f0d37d07 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -18,7 +18,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" }, "peerDependencies": { "astro": "^5.0.0 || ^6.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 04e69af85dd8..87096ad60dcf 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@astrojs/react": "^6.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "react": "^18.3.1", "react-dom": "^18.3.1", "vitest": "^4.1.0" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index c37ed09c8684..eb86c6608f59 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -16,6 +16,6 @@ "@astrojs/alpinejs": "^1.0.0-alpha.0", "@types/alpinejs": "^3.13.11", "alpinejs": "^3.15.8", - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 024a440ec33d..042b0f538d51 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -16,11 +16,11 @@ "@astrojs/preact": "^6.0.0-alpha.0", "@astrojs/react": "^6.0.0-alpha.0", "@astrojs/solid-js": "^7.0.0-alpha.0", - "@astrojs/svelte": "^9.0.0-alpha.0", + "@astrojs/svelte": "^9.0.0-alpha.2", "@astrojs/vue": "^7.0.0-alpha.0", "@types/react": "^18.3.28", "@types/react-dom": "^18.3.7", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "preact": "^10.28.4", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index cb176d606332..5ee5bb1e6b48 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -15,7 +15,7 @@ "dependencies": { "@astrojs/preact": "^6.0.0-alpha.0", "@preact/signals": "^2.8.1", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "preact": "^10.28.4" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 9a8bbf350ac0..4eda1a1ec728 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -16,7 +16,7 @@ "@astrojs/react": "^6.0.0-alpha.0", "@types/react": "^18.3.28", "@types/react-dom": "^18.3.7", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index d8578d6a9a61..f59aaa01c322 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@astrojs/solid-js": "^7.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "solid-js": "^1.9.11" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 4113c6a183b2..d7a1389490c0 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -13,8 +13,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/svelte": "^9.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "@astrojs/svelte": "^9.0.0-alpha.2", + "astro": "^7.0.0-alpha.2", "svelte": "^5.53.5" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 1008c64195d1..c98a9df584dd 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@astrojs/vue": "^7.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "vue": "^3.5.29" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 397529c4bb12..e7c152752ab8 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -14,6 +14,6 @@ }, "dependencies": { "@astrojs/node": "^11.0.0-alpha.0", - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 5a4f639aeca8..1a071026b2ac 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -18,7 +18,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 792d3ed094cb..fee2949932dd 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -13,6 +13,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 2afc6822c581..7921ea75c4ac 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -13,6 +13,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index f71d7ad924d6..64fb65b1e2dd 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -15,8 +15,8 @@ }, "dependencies": { "@astrojs/node": "^11.0.0-alpha.0", - "@astrojs/svelte": "^9.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "@astrojs/svelte": "^9.0.0-alpha.2", + "astro": "^7.0.0-alpha.2", "svelte": "^5.53.5" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index f4c6a626fa4f..d47fda8b755e 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -9,7 +9,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "sass": "^1.97.3", "sharp": "^0.34.3" }, diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index 35214959f800..21957e232d8e 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@types/node": "^22.10.6", - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" }, "engines": { "node": ">=22.12.0" diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index d7236a7bf276..710ebcc239c6 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -14,6 +14,6 @@ }, "dependencies": { "@astrojs/markdoc": "^2.0.0-alpha.0", - "astro": "^7.0.0-alpha.1" + "astro": "^7.0.0-alpha.2" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index a0d5ad70c3bb..cf4e94967888 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,9 +13,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^6.0.0-alpha.0", + "@astrojs/mdx": "^6.0.0-alpha.1", "@astrojs/preact": "^6.0.0-alpha.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "preact": "^10.28.4" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 9e943b61bdef..10736fc273ee 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -15,7 +15,7 @@ "dependencies": { "@astrojs/preact": "^6.0.0-alpha.0", "@nanostores/preact": "^1.0.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "nanostores": "^1.1.1", "preact": "^10.28.4" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 475ff799843f..fe50ee333e36 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -13,10 +13,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^6.0.0-alpha.0", + "@astrojs/mdx": "^6.0.0-alpha.1", "@tailwindcss/vite": "^4.2.1", "@types/canvas-confetti": "^1.9.0", - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "canvas-confetti": "^1.9.4", "tailwindcss": "^4.2.1" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 3b3cfa417255..d340df7b6a6e 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -14,7 +14,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^7.0.0-alpha.1", + "astro": "^7.0.0-alpha.2", "vitest": "^5.0.0-beta.2" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 3d81728aa0f0..47492cbe50fa 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,48 @@ # astro +## 7.0.0-alpha.2 + +### Major Changes + +- [#16725](https://github.com/withastro/astro/pull/16725) [`10229f7`](https://github.com/withastro/astro/commit/10229f73dbf0f19b9936e9a23f0abc774a4c579e) Thanks [@ArmandPhilippot](https://github.com/ArmandPhilippot)! - Removes deprecated APIs exported from `astro:transitions`. + + In Astro 6.x, some helpers available in `astro:transitions` and `astro:transitions/client` were deprecated. + + In Astro 7.0, the following APIs can no longer be used in your project: + - `TRANSITION_BEFORE_PREPARATION` + - `TRANSITION_AFTER_PREPARATION` + - `TRANSITION_BEFORE_SWAP` + - `TRANSITION_AFTER_SWAP` + - `TRANSITION_PAGE_LOAD` + - `isTransitionBeforePreparationEvent()` + - `isTransitionBeforeSwapEvent()` + - `createAnimationScope()` + + #### What should I do? + + Remove any occurrence of `createAnimationScope()`: + + ```diff + -import { createAnimationScope } from 'astro:transitions'; + ``` + + Replace any occurrence of the other APIs using the lifecycle event names directly: + + ```diff + -import { + - TRANSITION_AFTER_SWAP, + - isTransitionBeforePreparationEvent, + -} from 'astro:transitions/client'; + + -console.log(isTransitionBeforePreparationEvent(event)); + +console.log(event.type === 'astro:before-preparation'); + + -console.log(TRANSITION_AFTER_SWAP); + +console.log('astro:after-swap'); + ``` + + Learn more about all utilities available in the [View Transitions Router API Reference](https://v7.docs.astro.build/en/reference/modules/astro-transitions/). + ## 7.0.0-alpha.1 ### Patch Changes @@ -25,6 +68,7 @@ - [#15819](https://github.com/withastro/astro/pull/15819) [`cafec4e`](https://github.com/withastro/astro/commit/cafec4e23365061491103dfce2e889a15cf86f27) Thanks [@delucis](https://github.com/delucis)! - Fixes `--port` flag being ignored after a Vite-triggered server restart (e.g. when a `.env` file changes) - [#16434](https://github.com/withastro/astro/pull/16434) [`ee079d4`](https://github.com/withastro/astro/commit/ee079d4c7f143076b84d663c832911009a077c7f) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where i18n domains would return 404 when `trailingSlash` is set to `never`. + ## 6.4.4 ### Patch Changes diff --git a/packages/astro/e2e/nested-in-svelte.test.ts b/packages/astro/e2e/nested-in-svelte.test.ts index 8c4e873fa19c..c57a8479612e 100644 --- a/packages/astro/e2e/nested-in-svelte.test.ts +++ b/packages/astro/e2e/nested-in-svelte.test.ts @@ -14,88 +14,88 @@ test.afterAll(async () => { }); test.describe('Nested Frameworks in Svelte', () => { - test('React counter', async ({ astro, page }) => { - await page.goto(astro.resolveUrl('/')); + test('React counter', async ({ astro, page }) => { + await page.goto(astro.resolveUrl('/')); - const counter = page.locator('#react-counter'); - await expect(counter, 'component is visible').toBeVisible(); + const counter = page.locator('#react-counter'); + await expect(counter, 'component is visible').toBeVisible(); - const count = counter.locator('#react-counter-count'); - await expect(count, 'initial count is 0').toHaveText('0'); + const count = counter.locator('#react-counter-count'); + await expect(count, 'initial count is 0').toHaveText('0'); - await waitForHydrate(page, counter); + await waitForHydrate(page, counter); - const increment = counter.locator('#react-counter-increment'); - await increment.click(); + const increment = counter.locator('#react-counter-increment'); + await increment.click(); - await expect(count, 'count incremented by 1').toHaveText('1'); - }); + await expect(count, 'count incremented by 1').toHaveText('1'); + }); - test('Preact counter', async ({ astro, page }) => { - await page.goto(astro.resolveUrl('/')); + test('Preact counter', async ({ astro, page }) => { + await page.goto(astro.resolveUrl('/')); - const counter = page.locator('#preact-counter'); - await expect(counter, 'component is visible').toBeVisible(); + const counter = page.locator('#preact-counter'); + await expect(counter, 'component is visible').toBeVisible(); - const count = counter.locator('#preact-counter-count'); - await expect(count, 'initial count is 0').toHaveText('0'); + const count = counter.locator('#preact-counter-count'); + await expect(count, 'initial count is 0').toHaveText('0'); - await waitForHydrate(page, counter); + await waitForHydrate(page, counter); - const increment = counter.locator('#preact-counter-increment'); - await increment.click(); + const increment = counter.locator('#preact-counter-increment'); + await increment.click(); - await expect(count, 'count incremented by 1').toHaveText('1'); - }); + await expect(count, 'count incremented by 1').toHaveText('1'); + }); - test('Solid counter', async ({ astro, page }) => { - await page.goto(astro.resolveUrl('/')); + test('Solid counter', async ({ astro, page }) => { + await page.goto(astro.resolveUrl('/')); - const counter = page.locator('#solid-counter'); - await expect(counter, 'component is visible').toBeVisible(); + const counter = page.locator('#solid-counter'); + await expect(counter, 'component is visible').toBeVisible(); - const count = counter.locator('#solid-counter-count'); - await expect(count, 'initial count is 0').toHaveText('0'); + const count = counter.locator('#solid-counter-count'); + await expect(count, 'initial count is 0').toHaveText('0'); - await waitForHydrate(page, counter); + await waitForHydrate(page, counter); - const increment = counter.locator('#solid-counter-increment'); - await increment.click(); + const increment = counter.locator('#solid-counter-increment'); + await increment.click(); - await expect(count, 'count incremented by 1').toHaveText('1'); - }); + await expect(count, 'count incremented by 1').toHaveText('1'); + }); - test('Vue counter', async ({ astro, page }) => { - await page.goto(astro.resolveUrl('/')); + test('Vue counter', async ({ astro, page }) => { + await page.goto(astro.resolveUrl('/')); - const counter = page.locator('#vue-counter'); - await expect(counter, 'component is visible').toBeVisible(); + const counter = page.locator('#vue-counter'); + await expect(counter, 'component is visible').toBeVisible(); - const count = counter.locator('#vue-counter-count'); - await expect(count, 'initial count is 0').toHaveText('0'); + const count = counter.locator('#vue-counter-count'); + await expect(count, 'initial count is 0').toHaveText('0'); - await waitForHydrate(page, counter); + await waitForHydrate(page, counter); - const increment = counter.locator('#vue-counter-increment'); - await increment.click(); + const increment = counter.locator('#vue-counter-increment'); + await increment.click(); - await expect(count, 'count incremented by 1').toHaveText('1'); - }); + await expect(count, 'count incremented by 1').toHaveText('1'); + }); - test('Svelte counter', async ({ astro, page }) => { - await page.goto(astro.resolveUrl('/')); + test('Svelte counter', async ({ astro, page }) => { + await page.goto(astro.resolveUrl('/')); - const counter = page.locator('#svelte-counter'); - await expect(counter, 'component is visible').toBeVisible(); + const counter = page.locator('#svelte-counter'); + await expect(counter, 'component is visible').toBeVisible(); - const count = counter.locator('#svelte-counter-count'); - await expect(count, 'initial count is 0').toHaveText('0'); + const count = counter.locator('#svelte-counter-count'); + await expect(count, 'initial count is 0').toHaveText('0'); - await waitForHydrate(page, counter); + await waitForHydrate(page, counter); - const increment = counter.locator('#svelte-counter-increment'); - await increment.click(); + const increment = counter.locator('#svelte-counter-increment'); + await increment.click(); - await expect(count, 'count incremented by 1').toHaveText('1'); - }); + await expect(count, 'count incremented by 1').toHaveText('1'); }); +}); diff --git a/packages/astro/package.json b/packages/astro/package.json index 231fcaa822a0..20f205e822cd 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "7.0.0-alpha.1", + "version": "7.0.0-alpha.2", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/cloudflare/CHANGELOG.md b/packages/integrations/cloudflare/CHANGELOG.md index ca31641b9bda..eb528299db4a 100644 --- a/packages/integrations/cloudflare/CHANGELOG.md +++ b/packages/integrations/cloudflare/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/cloudflare +## 14.0.0-alpha.1 + +### Patch Changes + +- [#16671](https://github.com/withastro/astro/pull/16671) [`fd926fd`](https://github.com/withastro/astro/commit/fd926fdafd4a5e94dd156105dacb214741f4b7ac) Thanks [@alexanderniebuhr](https://github.com/alexanderniebuhr)! - Removes deprecations warnings added in Astro v6 for Cloudflare specific Astro.locals properties. + +- Updated dependencies [[`10229f7`](https://github.com/withastro/astro/commit/10229f73dbf0f19b9936e9a23f0abc774a4c579e)]: + - astro@7.0.0-alpha.2 + - @astrojs/underscore-redirects@1.0.3 + ## 14.0.0-alpha.0 ### Major Changes @@ -10,6 +20,7 @@ - Updated dependencies [[`cafec4e`](https://github.com/withastro/astro/commit/cafec4e23365061491103dfce2e889a15cf86f27), [`cafec4e`](https://github.com/withastro/astro/commit/cafec4e23365061491103dfce2e889a15cf86f27), [`c30a778`](https://github.com/withastro/astro/commit/c30a7789a477e44826c54c8560587d09dc46a229), [`ee079d4`](https://github.com/withastro/astro/commit/ee079d4c7f143076b84d663c832911009a077c7f)]: - astro@7.0.0-alpha.0 + ## 13.6.1 ### Patch Changes diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index db94a25362ea..1ce63fdf408b 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/cloudflare", "description": "Deploy your site to Cloudflare Workers", - "version": "14.0.0-alpha.0", + "version": "14.0.0-alpha.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -51,7 +51,7 @@ "vite": "^8.0.13" }, "peerDependencies": { - "astro": "^7.3.0-alpha.0", + "astro": "^7.0.0-alpha.2", "wrangler": "^4.83.0" }, "devDependencies": { diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index 00f99681a296..326db990276a 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,26 @@ # @astrojs/mdx +## 6.0.0-alpha.1 + +### Patch Changes + +- [#16969](https://github.com/withastro/astro/pull/16969) [`4a31f90`](https://github.com/withastro/astro/commit/4a31f90c765bcd1c4af8b85160b74a0da338cfe7) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds support for Prism syntax highlighting to the Sätteri Markdown and MDX processors. Setting `markdown.syntaxHighlight` to `'prism'` now highlights your code blocks with Prism. + + ```js + // astro.config.mjs + import { satteri } from '@astrojs/markdown-satteri'; + + export default defineConfig({ + markdown: { + processor: satteri(), + syntaxHighlight: 'prism', + }, + }); + ``` + +- Updated dependencies [[`4a31f90`](https://github.com/withastro/astro/commit/4a31f90c765bcd1c4af8b85160b74a0da338cfe7)]: + - @astrojs/markdown-satteri@0.3.0-alpha.0 + ## 6.0.0-alpha.0 ### Major Changes @@ -10,6 +31,7 @@ - Updated dependencies [[`cafec4e`](https://github.com/withastro/astro/commit/cafec4e23365061491103dfce2e889a15cf86f27), [`cafec4e`](https://github.com/withastro/astro/commit/cafec4e23365061491103dfce2e889a15cf86f27), [`c30a778`](https://github.com/withastro/astro/commit/c30a7789a477e44826c54c8560587d09dc46a229), [`ee079d4`](https://github.com/withastro/astro/commit/ee079d4c7f143076b84d663c832911009a077c7f)]: - astro@7.0.0-alpha.0 + ## 6.0.2 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 498a250c0944..ed02c87283ad 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/mdx", "description": "Add support for MDX pages in your Astro site", - "version": "6.0.0-alpha.0", + "version": "6.0.0-alpha.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/solid/src/index.ts b/packages/integrations/solid/src/index.ts index 3ee9e391a870..91712fc8ccec 100644 --- a/packages/integrations/solid/src/index.ts +++ b/packages/integrations/solid/src/index.ts @@ -44,7 +44,10 @@ function getViteConfiguration( { include, exclude }: Options, devtoolsPlugin: DevtoolsPlugin | null, ) { - const plugins: PluginOption[] = [solid({ include, exclude, ssr: true }), configEnvironmentPlugin()]; + const plugins: PluginOption[] = [ + solid({ include, exclude, ssr: true }), + configEnvironmentPlugin(), + ]; if (devtoolsPlugin) { plugins.push(devtoolsPlugin({ autoname: true })); diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md index ea4130690729..35532d5fac0a 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/svelte +## 9.0.0-alpha.2 + +### Minor Changes + +- [#16549](https://github.com/withastro/astro/pull/16549) [`9d9d516`](https://github.com/withastro/astro/commit/9d9d516ba95fb888d5e8c62892269cf047b523e9) Thanks [@ocavue](https://github.com/ocavue)! - Updates `@sveltejs/vite-plugin-svelte` to v7. No user action is necessary. + ## 9.0.0-alpha.0 ### Major Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index f47f7b7e4f6d..1b477e4e5436 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "9.0.0-alpha.1", + "version": "9.0.0-alpha.2", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/vue/src/index.ts b/packages/integrations/vue/src/index.ts index 2e86b0d4cba7..6e8cbe3a4d63 100644 --- a/packages/integrations/vue/src/index.ts +++ b/packages/integrations/vue/src/index.ts @@ -121,7 +121,11 @@ async function getViteConfiguration( // The vue vite plugin may not manage to resolve it automatically vueOptions.compiler ??= await import('vue/compiler-sfc'); - const plugins: PluginOption[] = [vue(vueOptions), virtualAppEntrypoint(vueOptions), configEnvironmentPlugin()]; + const plugins: PluginOption[] = [ + vue(vueOptions), + virtualAppEntrypoint(vueOptions), + configEnvironmentPlugin(), + ]; if (options?.jsx) { const vueJsx = (await import('@vitejs/plugin-vue-jsx')).default; diff --git a/packages/markdown/satteri/CHANGELOG.md b/packages/markdown/satteri/CHANGELOG.md index 72f98b3765ff..818422fb9443 100644 --- a/packages/markdown/satteri/CHANGELOG.md +++ b/packages/markdown/satteri/CHANGELOG.md @@ -1,5 +1,23 @@ # @astrojs/markdown-satteri +## 0.3.0-alpha.0 + +### Minor Changes + +- [#16969](https://github.com/withastro/astro/pull/16969) [`4a31f90`](https://github.com/withastro/astro/commit/4a31f90c765bcd1c4af8b85160b74a0da338cfe7) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds support for Prism syntax highlighting to the Sätteri Markdown and MDX processors. Setting `markdown.syntaxHighlight` to `'prism'` now highlights your code blocks with Prism. + + ```js + // astro.config.mjs + import { satteri } from '@astrojs/markdown-satteri'; + + export default defineConfig({ + markdown: { + processor: satteri(), + syntaxHighlight: 'prism', + }, + }); + ``` + ## 0.2.2 ### Patch Changes diff --git a/packages/markdown/satteri/package.json b/packages/markdown/satteri/package.json index b4eb79137a35..4251f585bd53 100644 --- a/packages/markdown/satteri/package.json +++ b/packages/markdown/satteri/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-satteri", - "version": "0.2.2", + "version": "0.3.0-alpha.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8f070959bd12..f610978b8b24 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -197,7 +197,7 @@ importers: specifier: ^11.0.0-alpha.0 version: link:../../packages/integrations/node astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro hono: specifier: ^4.12.14 @@ -206,22 +206,22 @@ importers: examples/basics: dependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/blog: dependencies: '@astrojs/mdx': - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/integrations/mdx '@astrojs/rss': specifier: ^4.0.18 version: link:../../packages/astro-rss '@astrojs/sitemap': - specifier: ^3.7.2 + specifier: ^3.7.3 version: link:../../packages/integrations/sitemap astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro sharp: specifier: ^0.34.3 @@ -230,7 +230,7 @@ importers: examples/component: devDependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/container-with-vitest: @@ -239,7 +239,7 @@ importers: specifier: ^6.0.0-alpha.0 version: link:../../packages/integrations/react astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -270,7 +270,7 @@ importers: specifier: ^3.15.8 version: 3.15.8 astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/framework-multiple: @@ -285,7 +285,7 @@ importers: specifier: ^7.0.0-alpha.0 version: link:../../packages/integrations/solid '@astrojs/svelte': - specifier: ^9.0.0-alpha.0 + specifier: ^9.0.0-alpha.2 version: link:../../packages/integrations/svelte '@astrojs/vue': specifier: ^7.0.0-alpha.0 @@ -297,7 +297,7 @@ importers: specifier: ^18.3.7 version: 18.3.7(@types/react@18.3.28) astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro preact: specifier: ^10.28.4 @@ -327,7 +327,7 @@ importers: specifier: ^2.8.1 version: 2.8.2(preact@10.29.0) astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro preact: specifier: ^10.28.4 @@ -345,7 +345,7 @@ importers: specifier: ^18.3.7 version: 18.3.7(@types/react@18.3.28) astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -360,7 +360,7 @@ importers: specifier: ^7.0.0-alpha.0 version: link:../../packages/integrations/solid astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro solid-js: specifier: ^1.9.11 @@ -369,10 +369,10 @@ importers: examples/framework-svelte: dependencies: '@astrojs/svelte': - specifier: ^9.0.0-alpha.0 + specifier: ^9.0.0-alpha.2 version: link:../../packages/integrations/svelte astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro svelte: specifier: ^5.53.5 @@ -384,7 +384,7 @@ importers: specifier: ^7.0.0-alpha.0 version: link:../../packages/integrations/vue astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro vue: specifier: ^3.5.29 @@ -396,25 +396,25 @@ importers: specifier: ^11.0.0-alpha.0 version: link:../../packages/integrations/node astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/ssr: @@ -423,10 +423,10 @@ importers: specifier: ^11.0.0-alpha.0 version: link:../../packages/integrations/node '@astrojs/svelte': - specifier: ^9.0.0-alpha.0 + specifier: ^9.0.0-alpha.2 version: link:../../packages/integrations/svelte astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro svelte: specifier: ^5.53.5 @@ -435,7 +435,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro sass: specifier: ^1.97.3 @@ -450,7 +450,7 @@ importers: specifier: ^22.19.0 version: 22.19.19 astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/with-markdoc: @@ -459,19 +459,19 @@ importers: specifier: ^2.0.0-alpha.0 version: link:../../packages/integrations/markdoc astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro examples/with-mdx: dependencies: '@astrojs/mdx': - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/integrations/mdx '@astrojs/preact': specifier: ^6.0.0-alpha.0 version: link:../../packages/integrations/preact astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro preact: specifier: ^10.28.4 @@ -486,7 +486,7 @@ importers: specifier: ^1.0.0 version: 1.0.0(nanostores@1.1.1)(preact@10.29.0) astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro nanostores: specifier: ^1.1.1 @@ -498,7 +498,7 @@ importers: examples/with-tailwindcss: dependencies: '@astrojs/mdx': - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/integrations/mdx '@tailwindcss/vite': specifier: ^4.2.1 @@ -507,7 +507,7 @@ importers: specifier: ^1.9.0 version: 1.9.0 astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro canvas-confetti: specifier: ^1.9.4 @@ -519,7 +519,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^7.0.0-alpha.1 + specifier: ^7.0.0-alpha.2 version: link:../../packages/astro vitest: specifier: ^5.0.0-beta.2