Loading...
Loading...
Compare original and translation side by side
examples/*examples/*pnpm changeset --empty.md.changeset/pnpm changeset --empty.changeset/.md---
'<package-name>': patch
---
<changeset message>namepackage.json'astro''@astrojs/node'patchminormajormajorminorastro---
'<package-name>': patch
---
<changeset message>package.jsonname'astro''@astrojs/node'patchminormajorastromajorminor// Too implementation-focused
Logs helpful errors if content is invalid
// Better -- user-facing impact
Adds logging for content collections configuration errors.// 过于侧重实现
当内容无效时记录有用的错误信息
// 更佳——面向用户的影响
为内容集合配置错误添加日志记录。---
'astro': patch
---
Fixes a bug where the toolbar audit would incorrectly flag images as above the fold---
'astro': patch
---
Refactors internal handling of styles and scripts for content collections to improve build performance// Vague
Improves automatic fallbacks generation
// Clear -- reader can tell if it affects them
Improves automatic `fallbacks` generation for the experimental Fonts API---
'astro': patch
---
修复工具栏审核错误将图片标记为首屏可见的问题---
'astro': patch
---
重构内容集合的样式与脚本内部处理逻辑,以提升构建性能// 模糊
改进自动回退生成
// 清晰——读者可判断是否受影响
为实验性Fonts API改进自动`fallbacks`生成---
'astro': minor
---
Adds a new, optional property `timeout` for the `client:idle` directive
This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component.
```astro
<Button client:idle={{ timeout: 500 }} />
```---
'astro': minor
---
为`client:idle`指令添加新的可选属性`timeout`
该值允许你指定UI框架组件 hydration 前的最长等待时间(以毫秒为单位)。
```astro
<Button client:idle={{ timeout: 500 }} />
```---
'astro': major
---
Removes support for Shiki custom language's `path` property. The language JSON file must now 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,
],
},
},
})
```---
'astro': major
---
移除对Shiki自定义语言的`path`属性的支持。现在必须导入语言JSON文件并将其传入选项中。
```diff
// astro.config.js
+ import customLang from './custom.tmLanguage.json'
export default defineConfig({
markdown: {
shikiConfig: {
langs: [
- { path: './custom.tmLanguage.json' },
+ customLang,
],
},
},
})
```#########---
'astro': minor
---
Adds a new Sessions API to store user state between requests for on-demand rendered pages.#########---
'astro': minor
---
添加新的Sessions API,用于在按需渲染页面的请求之间存储用户状态。undefinedundefined