mirror of
https://github.com/withastro/astro.git
synced 2025-03-24 23:21:57 -05:00
[ci] release (beta) (#9114)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
cdabf6ef02
commit
415fec54f8
66 changed files with 330 additions and 154 deletions
|
@ -28,5 +28,21 @@
|
|||
"@astrojs/telemetry": "3.0.4",
|
||||
"@astrojs/underscore-redirects": "0.3.3"
|
||||
},
|
||||
"changesets": []
|
||||
"changesets": [
|
||||
"beige-jokes-report",
|
||||
"calm-baboons-watch",
|
||||
"clever-beds-notice",
|
||||
"giant-snails-perform",
|
||||
"khaki-fans-sell",
|
||||
"light-ties-poke",
|
||||
"modern-candles-sip",
|
||||
"plenty-candles-help",
|
||||
"rude-hairs-whisper",
|
||||
"shiny-trees-sip",
|
||||
"short-deers-whisper",
|
||||
"slow-hornets-try",
|
||||
"sour-games-burn",
|
||||
"wicked-sloths-develop",
|
||||
"wild-apricots-rescue"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^1.1.5",
|
||||
"@astrojs/rss": "^3.0.0",
|
||||
"@astrojs/mdx": "^2.0.0-beta.0",
|
||||
"@astrojs/rss": "^4.0.0-beta.0",
|
||||
"@astrojs/sitemap": "^3.0.3",
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
"@astrojs/alpinejs": "^0.3.1",
|
||||
"@types/alpinejs": "^3.13.5",
|
||||
"alpinejs": "^3.13.3",
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/lit": "^3.0.3",
|
||||
"@webcomponents/template-shadowroot": "^0.2.1",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"lit": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/preact": "^3.0.1",
|
||||
"@astrojs/react": "^3.0.6",
|
||||
"@astrojs/react": "^3.0.7-beta.0",
|
||||
"@astrojs/solid-js": "^3.0.2",
|
||||
"@astrojs/svelte": "^4.0.4",
|
||||
"@astrojs/vue": "^3.0.4",
|
||||
"astro": "^3.6.1",
|
||||
"@astrojs/svelte": "^5.0.0-beta.0",
|
||||
"@astrojs/vue": "^4.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"preact": "^10.19.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/preact": "^3.0.1",
|
||||
"@preact/signals": "^1.2.1",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"preact": "^10.19.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/react": "^3.0.6",
|
||||
"@astrojs/react": "^3.0.7-beta.0",
|
||||
"@types/react": "^18.2.37",
|
||||
"@types/react-dom": "^18.2.15",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/solid-js": "^3.0.2",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"solid-js": "^1.8.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/svelte": "^4.0.4",
|
||||
"astro": "^3.6.1",
|
||||
"@astrojs/svelte": "^5.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"svelte": "^4.2.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/vue": "^3.0.4",
|
||||
"astro": "^3.6.1",
|
||||
"@astrojs/vue": "^4.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"vue": "^3.3.8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^6.0.4",
|
||||
"astro": "^3.6.1"
|
||||
"@astrojs/node": "^7.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
],
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
"server": "node dist/server/entry.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^6.0.4",
|
||||
"astro": "^3.6.1",
|
||||
"@astrojs/node": "^7.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"html-minifier": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
"server": "node dist/server/entry.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "^6.0.4",
|
||||
"@astrojs/svelte": "^4.0.4",
|
||||
"astro": "^3.6.1",
|
||||
"@astrojs/node": "^7.0.0-beta.0",
|
||||
"@astrojs/svelte": "^5.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"svelte": "^4.2.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/tailwind": "^5.0.2",
|
||||
"@astrojs/node": "^6.0.4",
|
||||
"astro": "^3.6.1"
|
||||
"@astrojs/tailwind": "^6.0.0-beta.0",
|
||||
"@astrojs/node": "^7.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdoc": "^0.7.2",
|
||||
"astro": "^3.6.1"
|
||||
"@astrojs/markdoc": "^1.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/markdown-remark": "^3.5.0",
|
||||
"astro": "^3.6.1",
|
||||
"@astrojs/markdown-remark": "^4.0.0-beta.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"hast-util-select": "^6.0.2",
|
||||
"rehype-autolink-headings": "^7.1.0",
|
||||
"rehype-slug": "^6.0.0",
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^1.1.5",
|
||||
"@astrojs/mdx": "^2.0.0-beta.0",
|
||||
"@astrojs/preact": "^3.0.1",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"preact": "^10.19.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/preact": "^3.0.1",
|
||||
"@nanostores/preact": "^0.5.0",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"nanostores": "^0.9.5",
|
||||
"preact": "^10.19.2"
|
||||
}
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^1.1.5",
|
||||
"@astrojs/tailwind": "^5.0.2",
|
||||
"@astrojs/mdx": "^2.0.0-beta.0",
|
||||
"@astrojs/tailwind": "^6.0.0-beta.0",
|
||||
"@types/canvas-confetti": "^1.6.3",
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"autoprefixer": "^10.4.15",
|
||||
"canvas-confetti": "^1.9.1",
|
||||
"postcss": "^8.4.28",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"vite-plugin-pwa": "0.17.0",
|
||||
"workbox-window": "^7.0.0"
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^3.6.1",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"vitest": "^0.34.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @astrojs/rss
|
||||
|
||||
## 4.0.0-beta.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#9168](https://github.com/withastro/astro/pull/9168) [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17) Thanks [@bluwy](https://github.com/bluwy)! - Removes the `drafts` option as the feature is deprecated in Astro 3.0
|
||||
|
||||
## 3.0.0
|
||||
|
||||
### Major Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/rss",
|
||||
"description": "Add RSS feeds to your Astro projects",
|
||||
"version": "3.0.0",
|
||||
"version": "4.0.0-beta.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,70 @@
|
|||
# astro
|
||||
|
||||
## 4.0.0-beta.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#9138](https://github.com/withastro/astro/pull/9138) [`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3) Thanks [@bluwy](https://github.com/bluwy)! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.
|
||||
|
||||
**Potentially breaking change:** The default value of `markdown.remarkRehype.footnoteBackLabel` is changed from `"Back to content"` to `"Back to reference 1"`. See the `mdast-util-to-hast` [commit](https://github.com/syntax-tree/mdast-util-to-hast/commit/56c88e45690be138fad9f0bf367b939d09816863) for more information.
|
||||
|
||||
- [#9181](https://github.com/withastro/astro/pull/9181) [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e) Thanks [@bluwy](https://github.com/bluwy)! - Removes support for returning simple objects from endpoints (deprecated since Astro 3.0). You should return a `Response` instead.
|
||||
|
||||
`ResponseWithEncoding` is also removed. You can refactor the code to return a response with an array buffer instead, which is encoding agnostic.
|
||||
|
||||
The types for middlewares have also been revised. To type a middleware function, you should now use `MiddlewareHandler` instead of `MiddlewareResponseHandler`. If you used `defineMiddleware()` to type the function, no changes are needed.
|
||||
|
||||
- [#9122](https://github.com/withastro/astro/pull/9122) [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721) Thanks [@bluwy](https://github.com/bluwy)! - Adds Vite 5 support. There are no breaking changes from Astro. Check the [Vite migration guide](https://vitejs.dev/guide/migration.html) for details of the breaking changes from Vite instead.
|
||||
|
||||
- [#9196](https://github.com/withastro/astro/pull/9196) [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6) Thanks [@bluwy](https://github.com/bluwy)! - Removes support for Shiki custom language's `path` property. The language JSON file should be imported and passed to the option instead.
|
||||
|
||||
```diff
|
||||
// astro.config.js
|
||||
+ import customLang from './custom.tmLanguage.json'
|
||||
|
||||
export default defineConfig({
|
||||
markdown: {
|
||||
shikiConfig: {
|
||||
langs: [
|
||||
- { path: './custom.tmLanguage.json' },
|
||||
+ customLang,
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
- [#9168](https://github.com/withastro/astro/pull/9168) [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17) Thanks [@bluwy](https://github.com/bluwy)! - Removes deprecated features from Astro 3.0
|
||||
|
||||
- Adapters are now required to pass `supportedAstroFeatures` to specify a list of features they support.
|
||||
- The `build.split` and `build.excludeMiddleware` options are removed. Use `functionPerRoute` and `edgeMiddleware` from adapters instead.
|
||||
- The `markdown.drafts` option and draft feature is removed. Use content collections instead.
|
||||
- Lowercase endpoint names are no longer supported. Use uppercase endpoint names instead.
|
||||
- `getHeaders()` exported from markdown files is removed. Use `getHeadings()` instead.
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#9105](https://github.com/withastro/astro/pull/9105) [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Update CLI logging experience
|
||||
|
||||
- [#9161](https://github.com/withastro/astro/pull/9161) [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299) Thanks [@bluwy](https://github.com/bluwy)! - Renames the `entryPoint` property of the `injectRoute` integrations API to `entrypoint` for consistency. A warning will be shown prompting you to update your code when using the old name.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#9149](https://github.com/withastro/astro/pull/9149) [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c) Thanks [@bluwy](https://github.com/bluwy)! - Removes vendored Vite's `importMeta.d.ts` file in favour of Vite 5's new `vite/types/import-meta.d.ts` export
|
||||
|
||||
- [#9150](https://github.com/withastro/astro/pull/9150) [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6) Thanks [@bluwy](https://github.com/bluwy)! - Refactors virtual modules exports. This should not break your project unless you import Astro's internal modules, including:
|
||||
|
||||
- `astro/middleware/namespace`
|
||||
- `astro/transitions`
|
||||
- `astro/transitions/router`
|
||||
- `astro/transitions/events`
|
||||
- `astro/transitions/types`
|
||||
- `astro/prefetch`
|
||||
- `astro/i18n`
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`addb57c8e`](https://github.com/withastro/astro/commit/addb57c8e80b7b67ec61224666f3a1db5c44410c), [`c7953645e`](https://github.com/withastro/astro/commit/c7953645eeaaf9e87c6db4494b0023d2c1878ff0)]:
|
||||
- @astrojs/markdown-remark@4.0.0-beta.0
|
||||
|
||||
## 3.6.1
|
||||
|
||||
### Patch Changes
|
||||
|
|
3
packages/astro/client.d.ts
vendored
3
packages/astro/client.d.ts
vendored
|
@ -126,7 +126,8 @@ declare module 'astro:transitions/client' {
|
|||
|
||||
export type Fallback = import('./dist/virtual-modules/transitions-types.js').Fallback;
|
||||
export type Direction = import('./dist/virtual-modules/transitions-types.ts').Direction;
|
||||
export type NavigationTypeString = import('./dist/virtual-modules/transitions-types.js').NavigationTypeString;
|
||||
export type NavigationTypeString =
|
||||
import('./dist/virtual-modules/transitions-types.js').NavigationTypeString;
|
||||
export type Options = import('./dist/virtual-modules/transitions-types.js').Options;
|
||||
|
||||
type EventModule = typeof import('./dist/virtual-modules/transitions-events.js');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astro",
|
||||
"version": "3.6.1",
|
||||
"version": "4.0.0-beta.0",
|
||||
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -44,14 +44,14 @@ async function benchmark({ fixtures, templates, numPosts }) {
|
|||
const test = Array.isArray(flags.test)
|
||||
? flags.test
|
||||
: typeof flags.test === 'string'
|
||||
? [flags.test]
|
||||
: ['simple', 'with-astro-components', 'with-react-components'];
|
||||
? [flags.test]
|
||||
: ['simple', 'with-astro-components', 'with-react-components'];
|
||||
|
||||
const formats = Array.isArray(flags.format)
|
||||
? flags.format
|
||||
: typeof flags.format === 'string'
|
||||
? [flags.format]
|
||||
: ['md', 'mdx', 'mdoc'];
|
||||
? [flags.format]
|
||||
: ['md', 'mdx', 'mdoc'];
|
||||
|
||||
const numPosts = flags.numPosts || 1000;
|
||||
|
||||
|
|
|
@ -223,8 +223,8 @@ function rollupPluginAstroBuildCSS(options: PluginOptions): VitePlugin[] {
|
|||
inlineConfig === 'always'
|
||||
? true
|
||||
: inlineConfig === 'never'
|
||||
? false
|
||||
: assetSize <= assetsInlineLimit;
|
||||
? false
|
||||
: assetSize <= assetsInlineLimit;
|
||||
|
||||
// there should be a single js object for each stylesheet,
|
||||
// allowing the single reference to be shared and checked for duplicates
|
||||
|
|
|
@ -162,14 +162,14 @@ export type StripEnums<T extends Record<string, any>> = {
|
|||
[K in keyof T]: T[K] extends boolean
|
||||
? T[K]
|
||||
: T[K] extends string
|
||||
? T[K]
|
||||
: T[K] extends object
|
||||
? T[K]
|
||||
: T[K] extends Array<any>
|
||||
? T[K]
|
||||
: T[K] extends undefined
|
||||
? undefined
|
||||
: any;
|
||||
? T[K]
|
||||
: T[K] extends object
|
||||
? T[K]
|
||||
: T[K] extends Array<any>
|
||||
? T[K]
|
||||
: T[K] extends undefined
|
||||
? undefined
|
||||
: any;
|
||||
};
|
||||
|
||||
export interface TSConfig {
|
||||
|
|
|
@ -43,7 +43,6 @@ export default async function dev(inlineConfig: AstroInlineConfig): Promise<DevS
|
|||
base: restart.container.settings.config.base,
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
const currentVersion = process.env.PACKAGE_VERSION ?? '0.0.0';
|
||||
if (currentVersion.includes('-')) {
|
||||
|
|
|
@ -93,9 +93,8 @@ export function createSafeError(err: any): Error {
|
|||
} else {
|
||||
const error = new Error(JSON.stringify(err));
|
||||
|
||||
(
|
||||
error as SSRError
|
||||
).hint = `To get as much information as possible from your errors, make sure to throw Error objects instead of \`${typeof err}\`. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error for more information.`;
|
||||
(error as SSRError).hint =
|
||||
`To get as much information as possible from your errors, make sure to throw Error objects instead of \`${typeof err}\`. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error for more information.`;
|
||||
|
||||
return error;
|
||||
}
|
||||
|
|
|
@ -8,10 +8,10 @@ export interface LogWritable<T> {
|
|||
export type LoggerLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent'; // same as Pino
|
||||
|
||||
/**
|
||||
* Defined logger labels. Add more as needed, but keep them high-level & reusable,
|
||||
* rather than specific to a single command, function, use, etc. The label will be
|
||||
* Defined logger labels. Add more as needed, but keep them high-level & reusable,
|
||||
* rather than specific to a single command, function, use, etc. The label will be
|
||||
* shown in the log message to the user, so it should be relevant.
|
||||
*/
|
||||
*/
|
||||
export type LoggerLabel =
|
||||
| 'add'
|
||||
| 'build'
|
||||
|
@ -122,7 +122,7 @@ function padStr(str: string, len: number) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the prefix for a log message.
|
||||
* Get the prefix for a log message.
|
||||
* This includes the timestamp, log level, and label all properly formatted
|
||||
* with colors. This is shared across different loggers, so it's defined here.
|
||||
*/
|
||||
|
|
|
@ -187,7 +187,6 @@ export function formatConfigErrorMessage(err: ZodError) {
|
|||
)}`;
|
||||
}
|
||||
|
||||
|
||||
export function formatErrorMessage(err: ErrorWithMetadata, args: string[] = []): string {
|
||||
const isOurError = AstroError.is(err) || CompilerError.is(err) || AstroUserError.is(err);
|
||||
|
||||
|
|
|
@ -107,10 +107,7 @@ export class RouteCache {
|
|||
// Warn here so that an unexpected double-call of getStaticPaths()
|
||||
// isn't invisible and developer can track down the issue.
|
||||
if (this.mode === 'production' && this.cache[route.component]?.staticPaths) {
|
||||
this.logger.warn(
|
||||
null,
|
||||
`Internal Warning: route cache overwritten. (${route.component})`
|
||||
);
|
||||
this.logger.warn(null, `Internal Warning: route cache overwritten. (${route.component})`);
|
||||
}
|
||||
this.cache[route.component] = entry;
|
||||
}
|
||||
|
|
|
@ -67,8 +67,8 @@ function stringifyChunk(
|
|||
let prescriptType: PrescriptType = needsHydrationScript
|
||||
? 'both'
|
||||
: needsDirectiveScript
|
||||
? 'directive'
|
||||
: null;
|
||||
? 'directive'
|
||||
: null;
|
||||
if (prescriptType) {
|
||||
let prescripts = getPrescripts(result, prescriptType, hydration.directive);
|
||||
return markHTMLString(prescripts);
|
||||
|
|
|
@ -145,8 +145,8 @@ class ViewTransitionStyleSheet {
|
|||
direction === 'backwards'
|
||||
? `[data-astro-transition=back]`
|
||||
: direction === 'forwards'
|
||||
? ''
|
||||
: `[data-astro-transition=${direction}]`;
|
||||
? ''
|
||||
: `[data-astro-transition=${direction}]`;
|
||||
this.addRule('modern', `${prefix}::view-transition-${image}(${name}) { ${animation} }`);
|
||||
this.addRule(
|
||||
'fallback',
|
||||
|
|
|
@ -426,8 +426,8 @@ async function transition(
|
|||
const navigationType = historyState
|
||||
? 'traverse'
|
||||
: options.history === 'replace'
|
||||
? 'replace'
|
||||
: 'push';
|
||||
? 'replace'
|
||||
: 'push';
|
||||
|
||||
if (samePage(from, to) && !options.formData /* not yet: && to.hash*/) {
|
||||
if (navigationType !== 'traverse') {
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# create-astro
|
||||
|
||||
## 4.5.2-beta.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#9105](https://github.com/withastro/astro/pull/9105) [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Stop clearing the console on start
|
||||
|
||||
## 4.5.1
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "create-astro",
|
||||
"version": "4.5.1",
|
||||
"version": "4.5.2-beta.0",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
# @astrojs/markdoc
|
||||
|
||||
## 1.0.0-beta.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 0.7.2
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/markdoc",
|
||||
"description": "Add support for Markdoc in your Astro site",
|
||||
"version": "0.7.2",
|
||||
"version": "1.0.0-beta.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
@ -75,7 +75,7 @@
|
|||
"zod": "^3.22.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/markdown-remark": "workspace:*",
|
||||
|
|
|
@ -1,5 +1,19 @@
|
|||
# @astrojs/mdx
|
||||
|
||||
## 2.0.0-beta.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#9138](https://github.com/withastro/astro/pull/9138) [`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3) Thanks [@bluwy](https://github.com/bluwy)! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.
|
||||
|
||||
**Potentially breaking change:** The default value of `markdown.remarkRehype.footnoteBackLabel` is changed from `"Back to content"` to `"Back to reference 1"`. See the `mdast-util-to-hast` [commit](https://github.com/syntax-tree/mdast-util-to-hast/commit/56c88e45690be138fad9f0bf367b939d09816863) for more information.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`addb57c8e`](https://github.com/withastro/astro/commit/addb57c8e80b7b67ec61224666f3a1db5c44410c), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`c7953645e`](https://github.com/withastro/astro/commit/c7953645eeaaf9e87c6db4494b0023d2c1878ff0), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- @astrojs/markdown-remark@4.0.0-beta.0
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 1.1.5
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/mdx",
|
||||
"description": "Add support for MDX pages in your Astro site",
|
||||
"version": "1.1.5",
|
||||
"version": "2.0.0-beta.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
@ -51,7 +51,7 @@
|
|||
"vfile": "^6.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.3.10",
|
||||
|
|
|
@ -190,7 +190,10 @@ export default function mdx(partialMdxOptions: Partial<MdxOptions> = {}): AstroI
|
|||
componentsCode += ' }';
|
||||
|
||||
// Make `Content` the default export so we can wrap `MDXContent` and pass in `Fragment`
|
||||
code = code.replace('export default function MDXContent', 'function MDXContent');
|
||||
code = code.replace(
|
||||
'export default function MDXContent',
|
||||
'function MDXContent'
|
||||
);
|
||||
code += `\nexport const Content = (props = {}) => MDXContent({
|
||||
...props,
|
||||
components: ${componentsCode},
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
# @astrojs/node
|
||||
|
||||
## 7.0.0-beta.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 6.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/node",
|
||||
"description": "Deploy your site to a Node.js server",
|
||||
"version": "6.0.4",
|
||||
"version": "7.0.0-beta.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
@ -37,7 +37,7 @@
|
|||
"server-destroy": "^1.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.17.8",
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
# @astrojs/react
|
||||
|
||||
## 3.0.7-beta.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#9122](https://github.com/withastro/astro/pull/9122) [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721) Thanks [@bluwy](https://github.com/bluwy)! - Adds Vite 5 support. There are no breaking changes from Astro. Check the [Vite migration guide](https://vitejs.dev/guide/migration.html) for details of the breaking changes from Vite instead.
|
||||
|
||||
## 3.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/react",
|
||||
"description": "Use React components within Astro",
|
||||
"version": "3.0.6",
|
||||
"version": "3.0.7-beta.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
|
|
@ -1,5 +1,18 @@
|
|||
# @astrojs/svelte
|
||||
|
||||
## 5.0.0-beta.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#9122](https://github.com/withastro/astro/pull/9122) [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721) Thanks [@bluwy](https://github.com/bluwy)! - Adds Vite 5 support. There are no breaking changes from Astro. Check the [Vite migration guide](https://vitejs.dev/guide/migration.html) for details of the breaking changes from Vite instead.
|
||||
|
||||
- [#9122](https://github.com/withastro/astro/pull/9122) [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721) Thanks [@bluwy](https://github.com/bluwy)! - Drops support for Svelte 3 as `@sveltejs/vite-plugin-svelte` is updated to `3.0.0` which does not support Svelte 3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 4.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/svelte",
|
||||
"version": "4.0.4",
|
||||
"version": "5.0.0-beta.0",
|
||||
"description": "Use Svelte components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
@ -52,7 +52,7 @@
|
|||
"vite": "^5.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"svelte": "^4.0.0 || ^5.0.0-next.1"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
# @astrojs/tailwind
|
||||
|
||||
## 6.0.0-beta.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 5.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/tailwind",
|
||||
"description": "Use Tailwind CSS to style your Astro site",
|
||||
"version": "5.0.2",
|
||||
"version": "6.0.0-beta.0",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
"author": "withastro",
|
||||
|
@ -43,7 +43,7 @@
|
|||
"vite": "^5.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"tailwindcss": "^3.0.24"
|
||||
},
|
||||
"publishConfig": {
|
||||
|
|
|
@ -1,5 +1,16 @@
|
|||
# @astrojs/vercel
|
||||
|
||||
## 6.0.0-beta.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#9184](https://github.com/withastro/astro/pull/9184) [`a145ac07e`](https://github.com/withastro/astro/commit/a145ac07e75927e13af62e28d13bc8217a362b8e) Thanks [@bluwy](https://github.com/bluwy)! - Removes deprecated `analytics` option. Use the `webAnalytics` option instead.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 5.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/vercel",
|
||||
"description": "Deploy your site to Vercel",
|
||||
"version": "5.2.0",
|
||||
"version": "6.0.0-beta.0",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
"license": "MIT",
|
||||
|
@ -61,7 +61,7 @@
|
|||
"web-vitals": "^3.4.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/set-cookie-parser": "^2.4.6",
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
# @astrojs/vue
|
||||
|
||||
## 4.0.0-beta.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#9122](https://github.com/withastro/astro/pull/9122) [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721) Thanks [@bluwy](https://github.com/bluwy)! - Adds Vite 5 support. There are no breaking changes from Astro. Check the [Vite migration guide](https://vitejs.dev/guide/migration.html) for details of the breaking changes from Vite instead.
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 3.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/vue",
|
||||
"version": "3.0.4",
|
||||
"version": "4.0.0-beta.0",
|
||||
"description": "Use Vue components within Astro",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
@ -57,7 +57,7 @@
|
|||
"vue": "^3.3.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0",
|
||||
"astro": "^4.0.0-beta.0",
|
||||
"vue": "^3.2.30"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -1,5 +1,22 @@
|
|||
# @astrojs/markdown-remark
|
||||
|
||||
## 4.0.0-beta.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- [#9138](https://github.com/withastro/astro/pull/9138) [`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3) Thanks [@bluwy](https://github.com/bluwy)! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.
|
||||
|
||||
**Potentially breaking change:** The default value of `markdown.remarkRehype.footnoteBackLabel` is changed from `"Back to content"` to `"Back to reference 1"`. See the `mdast-util-to-hast` [commit](https://github.com/syntax-tree/mdast-util-to-hast/commit/56c88e45690be138fad9f0bf367b939d09816863) for more information.
|
||||
|
||||
- [#9182](https://github.com/withastro/astro/pull/9182) [`c7953645e`](https://github.com/withastro/astro/commit/c7953645eeaaf9e87c6db4494b0023d2c1878ff0) Thanks [@bluwy](https://github.com/bluwy)! - Removes deprecated APIs. All Astro packages had been refactored to not use these APIs.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#9147](https://github.com/withastro/astro/pull/9147) [`addb57c8e`](https://github.com/withastro/astro/commit/addb57c8e80b7b67ec61224666f3a1db5c44410c) Thanks [@bluwy](https://github.com/bluwy)! - Fixes `RemarkRehype` type's `handler` and `handlers` properties
|
||||
|
||||
- Updated dependencies [[`abf601233`](https://github.com/withastro/astro/commit/abf601233f8188d118a8cb063c777478d8d9f1a3), [`6201bbe96`](https://github.com/withastro/astro/commit/6201bbe96c2a083fb201e4a43a9bd88499821a3e), [`cdabf6ef0`](https://github.com/withastro/astro/commit/cdabf6ef02be7220fd2b6bdcef924ceca089381e), [`1c48ed286`](https://github.com/withastro/astro/commit/1c48ed286538ab9e354eca4e4dcd7c6385c96721), [`37697a2c5`](https://github.com/withastro/astro/commit/37697a2c5511572dc29c0a4ea46f90c2f62be8e6), [`bd0c2e9ae`](https://github.com/withastro/astro/commit/bd0c2e9ae3389a9d3085050c1e8134ae98dff299), [`0fe3a7ed5`](https://github.com/withastro/astro/commit/0fe3a7ed5d7bb1a9fce1623e84ba14104b51223c), [`710be505c`](https://github.com/withastro/astro/commit/710be505c9ddf416e77a75343d8cae9c497d72c6), [`153a5abb9`](https://github.com/withastro/astro/commit/153a5abb905042ac68b712514dc9ec387d3e6b17)]:
|
||||
- astro@4.0.0-beta.0
|
||||
|
||||
## 3.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/markdown-remark",
|
||||
"version": "3.5.0",
|
||||
"version": "4.0.0-beta.0",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
"license": "MIT",
|
||||
|
@ -28,7 +28,7 @@
|
|||
"test": "mocha --exit --timeout 20000"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "^3.0.0"
|
||||
"astro": "^4.0.0-beta.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/prism": "^3.0.0",
|
||||
|
|
98
pnpm-lock.yaml
generated
98
pnpm-lock.yaml
generated
|
@ -125,28 +125,28 @@ importers:
|
|||
examples/basics:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/blog:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^1.1.5
|
||||
specifier: ^2.0.0-beta.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/rss':
|
||||
specifier: ^3.0.0
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro-rss
|
||||
'@astrojs/sitemap':
|
||||
specifier: ^3.0.3
|
||||
version: link:../../packages/integrations/sitemap
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/component:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/framework-alpine:
|
||||
|
@ -161,7 +161,7 @@ importers:
|
|||
specifier: ^3.13.3
|
||||
version: 3.13.3
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/framework-lit:
|
||||
|
@ -173,7 +173,7 @@ importers:
|
|||
specifier: ^0.2.1
|
||||
version: 0.2.1
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
lit:
|
||||
specifier: ^2.8.0
|
||||
|
@ -185,19 +185,19 @@ importers:
|
|||
specifier: ^3.0.1
|
||||
version: link:../../packages/integrations/preact
|
||||
'@astrojs/react':
|
||||
specifier: ^3.0.6
|
||||
specifier: ^3.0.7-beta.0
|
||||
version: link:../../packages/integrations/react
|
||||
'@astrojs/solid-js':
|
||||
specifier: ^3.0.2
|
||||
version: link:../../packages/integrations/solid
|
||||
'@astrojs/svelte':
|
||||
specifier: ^4.0.4
|
||||
specifier: ^5.0.0-beta.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
'@astrojs/vue':
|
||||
specifier: ^3.0.4
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/integrations/vue
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.19.2
|
||||
|
@ -227,7 +227,7 @@ importers:
|
|||
specifier: ^1.2.1
|
||||
version: 1.2.1(preact@10.19.2)
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.19.2
|
||||
|
@ -236,7 +236,7 @@ importers:
|
|||
examples/framework-react:
|
||||
dependencies:
|
||||
'@astrojs/react':
|
||||
specifier: ^3.0.6
|
||||
specifier: ^3.0.7-beta.0
|
||||
version: link:../../packages/integrations/react
|
||||
'@types/react':
|
||||
specifier: ^18.2.37
|
||||
|
@ -245,7 +245,7 @@ importers:
|
|||
specifier: ^18.2.15
|
||||
version: 18.2.15
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
react:
|
||||
specifier: ^18.2.0
|
||||
|
@ -260,7 +260,7 @@ importers:
|
|||
specifier: ^3.0.2
|
||||
version: link:../../packages/integrations/solid
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
solid-js:
|
||||
specifier: ^1.8.5
|
||||
|
@ -269,10 +269,10 @@ importers:
|
|||
examples/framework-svelte:
|
||||
dependencies:
|
||||
'@astrojs/svelte':
|
||||
specifier: ^4.0.4
|
||||
specifier: ^5.0.0-beta.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.5
|
||||
|
@ -281,10 +281,10 @@ importers:
|
|||
examples/framework-vue:
|
||||
dependencies:
|
||||
'@astrojs/vue':
|
||||
specifier: ^3.0.4
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/integrations/vue
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
vue:
|
||||
specifier: ^3.3.8
|
||||
|
@ -293,25 +293,25 @@ importers:
|
|||
examples/hackernews:
|
||||
dependencies:
|
||||
'@astrojs/node':
|
||||
specifier: ^6.0.4
|
||||
specifier: ^7.0.0-beta.0
|
||||
version: link:../../packages/integrations/node
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/integration:
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/middleware:
|
||||
dependencies:
|
||||
'@astrojs/node':
|
||||
specifier: ^6.0.4
|
||||
specifier: ^7.0.0-beta.0
|
||||
version: link:../../packages/integrations/node
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
html-minifier:
|
||||
specifier: ^4.0.0
|
||||
|
@ -320,31 +320,31 @@ importers:
|
|||
examples/minimal:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/non-html-pages:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/portfolio:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/ssr:
|
||||
dependencies:
|
||||
'@astrojs/node':
|
||||
specifier: ^6.0.4
|
||||
specifier: ^7.0.0-beta.0
|
||||
version: link:../../packages/integrations/node
|
||||
'@astrojs/svelte':
|
||||
specifier: ^4.0.4
|
||||
specifier: ^5.0.0-beta.0
|
||||
version: link:../../packages/integrations/svelte
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
svelte:
|
||||
specifier: ^4.2.5
|
||||
|
@ -353,31 +353,31 @@ importers:
|
|||
examples/view-transitions:
|
||||
devDependencies:
|
||||
'@astrojs/node':
|
||||
specifier: ^6.0.4
|
||||
specifier: ^7.0.0-beta.0
|
||||
version: link:../../packages/integrations/node
|
||||
'@astrojs/tailwind':
|
||||
specifier: ^5.0.2
|
||||
specifier: ^6.0.0-beta.0
|
||||
version: link:../../packages/integrations/tailwind
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-markdoc:
|
||||
dependencies:
|
||||
'@astrojs/markdoc':
|
||||
specifier: ^0.7.2
|
||||
specifier: ^1.0.0-beta.0
|
||||
version: link:../../packages/integrations/markdoc
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-markdown-plugins:
|
||||
dependencies:
|
||||
'@astrojs/markdown-remark':
|
||||
specifier: ^3.5.0
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/markdown/remark
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
hast-util-select:
|
||||
specifier: ^6.0.2
|
||||
|
@ -398,19 +398,19 @@ importers:
|
|||
examples/with-markdown-shiki:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
|
||||
examples/with-mdx:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^1.1.5
|
||||
specifier: ^2.0.0-beta.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/preact':
|
||||
specifier: ^3.0.1
|
||||
version: link:../../packages/integrations/preact
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
preact:
|
||||
specifier: ^10.19.2
|
||||
|
@ -425,7 +425,7 @@ importers:
|
|||
specifier: ^0.5.0
|
||||
version: 0.5.0(nanostores@0.9.5)(preact@10.19.2)
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
nanostores:
|
||||
specifier: ^0.9.5
|
||||
|
@ -437,16 +437,16 @@ importers:
|
|||
examples/with-tailwindcss:
|
||||
dependencies:
|
||||
'@astrojs/mdx':
|
||||
specifier: ^1.1.5
|
||||
specifier: ^2.0.0-beta.0
|
||||
version: link:../../packages/integrations/mdx
|
||||
'@astrojs/tailwind':
|
||||
specifier: ^5.0.2
|
||||
specifier: ^6.0.0-beta.0
|
||||
version: link:../../packages/integrations/tailwind
|
||||
'@types/canvas-confetti':
|
||||
specifier: ^1.6.3
|
||||
version: 1.6.3
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
autoprefixer:
|
||||
specifier: ^10.4.15
|
||||
|
@ -464,7 +464,7 @@ importers:
|
|||
examples/with-vite-plugin-pwa:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
vite-plugin-pwa:
|
||||
specifier: 0.17.0
|
||||
|
@ -476,7 +476,7 @@ importers:
|
|||
examples/with-vitest:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: ^3.6.1
|
||||
specifier: ^4.0.0-beta.0
|
||||
version: link:../../packages/astro
|
||||
vitest:
|
||||
specifier: ^0.34.2
|
||||
|
@ -2038,12 +2038,6 @@ importers:
|
|||
specifier: workspace:*
|
||||
version: link:../../..
|
||||
|
||||
packages/astro/test/fixtures/astro-markdown-drafts:
|
||||
dependencies:
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
version: link:../../..
|
||||
|
||||
packages/astro/test/fixtures/astro-markdown-frontmatter-injection:
|
||||
dependencies:
|
||||
astro:
|
||||
|
|
Loading…
Add table
Reference in a new issue