summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/pre.json9
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog/package.json4
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/container-with-vitest/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-multiple/package.json2
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json2
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/hackernews/package.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/server-islands/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/starlog/package.json2
-rw-r--r--examples/toolbar-app/package.json2
-rw-r--r--examples/view-transitions/package.json2
-rw-r--r--examples/with-markdoc/package.json4
-rw-r--r--examples/with-markdown-plugins/package.json4
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-mdx/package.json4
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json4
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md73
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/astro/test/content-layer.test.js2
-rw-r--r--packages/integrations/markdoc/CHANGELOG.md9
-rw-r--r--packages/integrations/markdoc/package.json2
-rw-r--r--packages/integrations/mdx/CHANGELOG.md9
-rw-r--r--packages/integrations/mdx/package.json2
-rw-r--r--packages/markdown/remark/CHANGELOG.md17
-rw-r--r--packages/markdown/remark/package.json2
-rw-r--r--pnpm-lock.yaml68
40 files changed, 189 insertions, 74 deletions
diff --git a/.changeset/pre.json b/.changeset/pre.json
index 08d32c548..c0a2eafe8 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -33,24 +33,31 @@
},
"changesets": [
"blue-boats-relax",
+ "breezy-colts-promise",
"chatty-teachers-sit",
+ "clean-donuts-walk",
+ "curvy-walls-kneel",
"eighty-boxes-applaud",
"five-jars-hear",
"healthy-ads-scream",
+ "hungry-jokes-try",
"itchy-toys-march",
+ "large-zebras-sniff",
"long-months-rule",
"many-garlics-lick",
"modern-bears-deny",
+ "moody-waves-think",
"nasty-crabs-worry",
"neat-dots-hear",
"perfect-fans-fly",
"poor-frogs-dream",
"quick-ads-exercise",
+ "selfish-cats-crash",
"selfish-impalas-grin",
- "sixty-masks-lie",
"small-ties-sort",
"spotty-garlics-cheat",
"ten-students-repair",
+ "twelve-comics-march",
"twenty-cobras-push"
]
}
diff --git a/examples/basics/package.json b/examples/basics/package.json
index 95c968663..c26b42253 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index a4ae001da..bf6285aff 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^4.0.0-alpha.1",
+ "@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 514b0dcf0..989be6a44 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json
index a8bb1e977..236d6b2c7 100644
--- a/examples/container-with-vitest/package.json
+++ b/examples/container-with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"@astrojs/react": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index d1395ec3d..4aa7e7ae3 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.1",
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index e0fbab278..ce2a0e5af 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -18,7 +18,7 @@
"@astrojs/vue": "^5.0.0-alpha.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"preact": "^10.23.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index dc337e4f5..ef00d4305 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.2",
"@preact/signals": "^1.3.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"preact": "^10.23.2"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 821a04ba4..28199f6d1 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.2",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index b7993227f..e39fad0f3 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.1",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"solid-js": "^1.8.22"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 9d3f13c9a..eeb90ce1f 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^6.0.0-alpha.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"svelte": "^4.2.19"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 44ff7e461..f50de4c13 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^5.0.0-alpha.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"vue": "^3.4.38"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 0d097bc57..2a1fee8a4 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index d2da2524e..249565a5b 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index b4b6a0ef7..d32b17e9e 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"html-minifier": "^4.0.0"
},
"devDependencies": {
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index b13f79680..aca3644c0 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index 13df70026..d4543998c 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 39e5b8af3..5c0d4bcda 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/server-islands/package.json b/examples/server-islands/package.json
index 810fe728f..083857c03 100644
--- a/examples/server-islands/package.json
+++ b/examples/server-islands/package.json
@@ -17,7 +17,7 @@
"@tailwindcss/forms": "^0.5.8",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"postcss": "^8.4.43",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index 73adf03cb..a5a7d0183 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
"@astrojs/svelte": "^6.0.0-alpha.0",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"svelte": "^4.2.19"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index ca29ad4b2..13709e0c1 100644
--- a/examples/starlog/package.json
+++ b/examples/starlog/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"sass": "^1.77.8",
"sharp": "^0.33.3"
}
diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json
index 005d8f533..1b668b6a9 100644
--- a/examples/toolbar-app/package.json
+++ b/examples/toolbar-app/package.json
@@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index 2b5aace64..2c27b1bcf 100644
--- a/examples/view-transitions/package.json
+++ b/examples/view-transitions/package.json
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@astrojs/node": "^9.0.0-alpha.1",
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index df24c8da8..5aa78b82a 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/markdoc": "^1.0.0-alpha.0",
- "astro": "^5.0.0-alpha.2"
+ "@astrojs/markdoc": "^1.0.0-alpha.1",
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 63df6fc91..3a2f317ee 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/markdown-remark": "^6.0.0-alpha.0",
- "astro": "^5.0.0-alpha.2",
+ "@astrojs/markdown-remark": "^6.0.0-alpha.1",
+ "astro": "^5.0.0-alpha.3",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 779117ef3..12cb403a6 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2"
+ "astro": "^5.0.0-alpha.3"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index 6ab4d7668..f93654173 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^4.0.0-alpha.1",
+ "@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/preact": "^3.5.2",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"preact": "^10.23.2"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 14fab8f9c..7c7843aad 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.2",
"@nanostores/preact": "^0.5.2",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"nanostores": "^0.11.3",
"preact": "^10.23.2"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 31d161dde..8289bf9d6 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/mdx": "^4.0.0-alpha.1",
+ "@astrojs/mdx": "^4.0.0-alpha.2",
"@astrojs/tailwind": "^6.0.0-alpha.0",
"@types/canvas-confetti": "^1.6.4",
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.43",
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index c0ef3a81f..b0d1c32b9 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^5.0.0-alpha.2",
+ "astro": "^5.0.0-alpha.3",
"vitest": "^2.0.5"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 53189df28..db2e6eaa9 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,78 @@
# astro
+## 5.0.0-alpha.3
+
+### Major Changes
+
+- [#11861](https://github.com/withastro/astro/pull/11861) [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59) Thanks [@bluwy](https://github.com/bluwy)! - Cleans up Astro-specfic metadata attached to `vfile.data` in Remark and Rehype plugins. Previously, the metadata was attached in different locations with inconsistent names. The metadata is now renamed as below:
+
+ - `vfile.data.__astroHeadings` -> `vfile.data.astro.headings`
+ - `vfile.data.imagePaths` -> `vfile.data.astro.imagePaths`
+
+ The types of `imagePaths` has also been updated from `Set<string>` to `string[]`. The `vfile.data.astro.frontmatter` metadata is left unchanged.
+
+ While we don't consider these APIs public, they can be accessed by Remark and Rehype plugins that want to re-use Astro's metadata. If you are using these APIs, make sure to access them in the new locations.
+
+- [#11825](https://github.com/withastro/astro/pull/11825) [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce) Thanks [@bluwy](https://github.com/bluwy)! - Updates internal Shiki rehype plugin to highlight code blocks as hast (using Shiki's `codeToHast()` API). This allows a more direct Markdown and MDX processing, and improves the performance when building the project, but may cause issues with existing Shiki transformers.
+
+ If you are using Shiki transformers passed to `markdown.shikiConfig.transformers`, you must make sure they do not use the `postprocess` hook as it no longer runs on code blocks in `.md` and `.mdx` files. (See [the Shiki documentation on transformer hooks](https://shiki.style/guide/transformers#transformer-hooks) for more information).
+
+ Code blocks in `.mdoc` files and `<Code />` component do not use the internal Shiki rehype plugin and are unaffected.
+
+- [#11819](https://github.com/withastro/astro/pull/11819) [`2bdde80`](https://github.com/withastro/astro/commit/2bdde80cd3107d875e2d77e6e9621001e0e8b38a) Thanks [@bluwy](https://github.com/bluwy)! - Updates the Astro config loading flow to ignore processing locally-linked dependencies with Vite (e.g. `npm link`, in a monorepo, etc). Instead, they will be normally imported by the Node.js runtime the same way as other dependencies from `node_modules`.
+
+ Previously, Astro would process locally-linked dependencies which were able to use Vite features like TypeScript when imported by the Astro config file.
+
+ However, this caused confusion as integration authors may test against a package that worked locally, but not when published. This method also restricts using CJS-only dependencies because Vite requires the code to be ESM. Therefore, Astro's behaviour is now changed to ignore processing any type of dependencies by Vite.
+
+ In most cases, make sure your locally-linked dependencies are built to JS before running the Astro project, and the config loading should work as before.
+
+### Patch Changes
+
+- [#11878](https://github.com/withastro/astro/pull/11878) [`334948c`](https://github.com/withastro/astro/commit/334948ced29ed9ab03992f2174547bb9ee3a20c0) Thanks [@ascorbic](https://github.com/ascorbic)! - Adds a new function `refreshContent` to the `astro:server:setup` hook that allows integrations to refresh the content layer. This can be used, for example, to register a webhook endpoint during dev, or to open a socket to a CMS to listen for changes.
+
+ By default, `refreshContent` will refresh all collections. You can optionally pass a `loaders` property, which is an array of loader names. If provided, only collections that use those loaders will be refreshed. For example, A CMS integration could use this property to only refresh its own collections.
+
+ You can also pass a `context` object to the loaders. This can be used to pass arbitrary data, such as the webhook body, or an event from the websocket.
+
+ ```ts
+ {
+ name: 'my-integration',
+ hooks: {
+ 'astro:server:setup': async ({ server, refreshContent }) => {
+ server.middlewares.use('/_refresh', async (req, res) => {
+ if(req.method !== 'POST') {
+ res.statusCode = 405
+ res.end('Method Not Allowed');
+ return
+ }
+ let body = '';
+ req.on('data', chunk => {
+ body += chunk.toString();
+ });
+ req.on('end', async () => {
+ try {
+ const webhookBody = JSON.parse(body);
+ await refreshContent({
+ context: { webhookBody },
+ loaders: ['my-loader']
+ });
+ res.writeHead(200, { 'Content-Type': 'application/json' });
+ res.end(JSON.stringify({ message: 'Content refreshed successfully' }));
+ } catch (error) {
+ res.writeHead(500, { 'Content-Type': 'application/json' });
+ res.end(JSON.stringify({ error: 'Failed to refresh content: ' + error.message }));
+ }
+ });
+ });
+ }
+ }
+ }
+ ```
+
+- Updated dependencies [[`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59), [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce), [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59)]:
+ - @astrojs/markdown-remark@6.0.0-alpha.1
+
## 5.0.0-alpha.2
### Major Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index d9c2cb04f..fe53d41a5 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "5.0.0-alpha.2",
+ "version": "5.0.0-alpha.3",
"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/astro/test/content-layer.test.js b/packages/astro/test/content-layer.test.js
index 75d702a94..d61d30450 100644
--- a/packages/astro/test/content-layer.test.js
+++ b/packages/astro/test/content-layer.test.js
@@ -200,7 +200,7 @@ describe('Content Layer', () => {
// Vite may not have noticed the saved data store yet. Wait a little just in case.
await fixture.onNextDataStoreChange(1000).catch(() => {
// Ignore timeout, because it may have saved before we get here.
- })
+ });
const rawJsonResponse = await fixture.fetch('/collections.json');
const rawJson = await rawJsonResponse.text();
json = devalue.parse(rawJson);
diff --git a/packages/integrations/markdoc/CHANGELOG.md b/packages/integrations/markdoc/CHANGELOG.md
index 558b524e8..41018d53b 100644
--- a/packages/integrations/markdoc/CHANGELOG.md
+++ b/packages/integrations/markdoc/CHANGELOG.md
@@ -1,5 +1,14 @@
# @astrojs/markdoc
+## 1.0.0-alpha.1
+
+### Patch Changes
+
+- [#11825](https://github.com/withastro/astro/pull/11825) [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce) Thanks [@bluwy](https://github.com/bluwy)! - Uses latest version of `@astrojs/markdown-remark` with updated Shiki APIs
+
+- Updated dependencies [[`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59), [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce), [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59)]:
+ - @astrojs/markdown-remark@6.0.0-alpha.1
+
## 1.0.0-alpha.0
### Patch Changes
diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json
index cf35f0f0c..c1881645c 100644
--- a/packages/integrations/markdoc/package.json
+++ b/packages/integrations/markdoc/package.json
@@ -1,7 +1,7 @@
{
"name": "@astrojs/markdoc",
"description": "Add support for Markdoc in your Astro site",
- "version": "1.0.0-alpha.0",
+ "version": "1.0.0-alpha.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md
index b8d718d1e..0d8564a69 100644
--- a/packages/integrations/mdx/CHANGELOG.md
+++ b/packages/integrations/mdx/CHANGELOG.md
@@ -1,5 +1,14 @@
# @astrojs/mdx
+## 4.0.0-alpha.2
+
+### Patch Changes
+
+- [#11861](https://github.com/withastro/astro/pull/11861) [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59) Thanks [@bluwy](https://github.com/bluwy)! - Updates `@astrojs/markdown-remark` and handle its breaking changes
+
+- Updated dependencies [[`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59), [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce), [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59)]:
+ - @astrojs/markdown-remark@6.0.0-alpha.1
+
## 4.0.0-alpha.1
### Minor Changes
diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json
index 7e88bbdf3..9b3bfd60f 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": "4.0.0-alpha.1",
+ "version": "4.0.0-alpha.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md
index 0f0ef4bb8..f2ce5dec0 100644
--- a/packages/markdown/remark/CHANGELOG.md
+++ b/packages/markdown/remark/CHANGELOG.md
@@ -1,5 +1,22 @@
# @astrojs/markdown-remark
+## 6.0.0-alpha.1
+
+### Major Changes
+
+- [#11861](https://github.com/withastro/astro/pull/11861) [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59) Thanks [@bluwy](https://github.com/bluwy)! - Cleans up Astro-specfic metadata attached to `vfile.data` in Remark and Rehype plugins. Previously, the metadata was attached in different locations with inconsistent names. The metadata is now renamed as below:
+
+ - `vfile.data.__astroHeadings` -> `vfile.data.astro.headings`
+ - `vfile.data.imagePaths` -> `vfile.data.astro.imagePaths`
+
+ The types of `imagePaths` has also been updated from `Set<string>` to `string[]`. The `vfile.data.astro.frontmatter` metadata is left unchanged.
+
+ While we don't consider these APIs public, they can be accessed by Remark and Rehype plugins that want to re-use Astro's metadata. If you are using these APIs, make sure to access them in the new locations.
+
+- [#11825](https://github.com/withastro/astro/pull/11825) [`560ef15`](https://github.com/withastro/astro/commit/560ef15ad23bd137b56ef1048eb2df548b99fdce) Thanks [@bluwy](https://github.com/bluwy)! - Updates return object of `createShikiHighlighter` as `codeToHast` and `codeToHtml` to allow generating either the hast or html string directly
+
+- [#11861](https://github.com/withastro/astro/pull/11861) [`3ab3b4e`](https://github.com/withastro/astro/commit/3ab3b4efbcdd2aabea5f949deedf51a5acefae59) Thanks [@bluwy](https://github.com/bluwy)! - Removes `InvalidAstroDataError`, `safelyGetAstroData`, and `setVfileFrontmatter` APIs in favour of `isFrontmatterValid`
+
## 6.0.0-alpha.0
### Major Changes
diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json
index 6e96f4866..e2a8576b0 100644
--- a/packages/markdown/remark/package.json
+++ b/packages/markdown/remark/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/markdown-remark",
- "version": "6.0.0-alpha.0",
+ "version": "6.0.0-alpha.1",
"type": "module",
"author": "withastro",
"license": "MIT",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0eac2cd03..7872177ee 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -116,13 +116,13 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/blog:
dependencies:
'@astrojs/mdx':
- specifier: ^4.0.0-alpha.1
+ specifier: ^4.0.0-alpha.2
version: link:../../packages/integrations/mdx
'@astrojs/rss':
specifier: ^4.0.7
@@ -131,13 +131,13 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/container-with-vitest:
@@ -146,7 +146,7 @@ importers:
specifier: ^3.6.2
version: link:../../packages/integrations/react
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -177,7 +177,7 @@ importers:
specifier: ^3.14.1
version: 3.14.1
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/framework-multiple:
@@ -204,7 +204,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@@ -234,7 +234,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.23.2)
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@@ -252,7 +252,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -267,7 +267,7 @@ importers:
specifier: ^4.4.1
version: link:../../packages/integrations/solid
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
solid-js:
specifier: ^1.8.22
@@ -279,7 +279,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@@ -291,7 +291,7 @@ importers:
specifier: ^5.0.0-alpha.0
version: link:../../packages/integrations/vue
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
vue:
specifier: ^3.4.38
@@ -303,13 +303,13 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/middleware:
@@ -318,7 +318,7 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -331,19 +331,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/server-islands:
@@ -370,7 +370,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
postcss:
specifier: ^8.4.43
@@ -394,7 +394,7 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
svelte:
specifier: ^4.2.19
@@ -403,7 +403,7 @@ importers:
examples/starlog:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
sass:
specifier: ^1.77.8
@@ -415,7 +415,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/view-transitions:
@@ -427,25 +427,25 @@ importers:
specifier: ^6.0.0-alpha.0
version: link:../../packages/integrations/tailwind
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/with-markdoc:
dependencies:
'@astrojs/markdoc':
- specifier: ^1.0.0-alpha.0
+ specifier: ^1.0.0-alpha.1
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/with-markdown-plugins:
dependencies:
'@astrojs/markdown-remark':
- specifier: ^6.0.0-alpha.0
+ specifier: ^6.0.0-alpha.1
version: link:../../packages/markdown/remark
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@@ -466,19 +466,19 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
examples/with-mdx:
dependencies:
'@astrojs/mdx':
- specifier: ^4.0.0-alpha.1
+ specifier: ^4.0.0-alpha.2
version: link:../../packages/integrations/mdx
'@astrojs/preact':
specifier: ^3.5.2
version: link:../../packages/integrations/preact
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
preact:
specifier: ^10.23.2
@@ -493,7 +493,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.3)(preact@10.23.2)
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
nanostores:
specifier: ^0.11.3
@@ -505,7 +505,7 @@ importers:
examples/with-tailwindcss:
dependencies:
'@astrojs/mdx':
- specifier: ^4.0.0-alpha.1
+ specifier: ^4.0.0-alpha.2
version: link:../../packages/integrations/mdx
'@astrojs/tailwind':
specifier: ^6.0.0-alpha.0
@@ -514,7 +514,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.20
@@ -532,7 +532,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^5.0.0-alpha.2
+ specifier: ^5.0.0-alpha.3
version: link:../../packages/astro
vitest:
specifier: ^2.0.5