astro@3.0.0-rc.5
版本发布时间: 2023-08-22 22:21:46
withastro/astro最新发布版本:astro@4.16.16(2024-11-27 22:22:39)
Major Changes
-
#8142
81545197a
Thanks @natemoo-re! - Fixes for theclass:list
directive- Previously,
class:list
would ocassionally not be merged theclass
prop when passed to Astro components. Now,class:list
is always converted to aclass
prop (as a string value). - Previously,
class:list
diverged fromclsx
in a few edge cases. Now,class:list
usesclsx
directly.-
class:list
used to deduplicate matching values, but it no longer does -
class:list
used to sort individual values, but it no longer does -
class:list
used to supportSet
and other iterables, but it no longer does
-
- Previously,
-
#8179
6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate -
#8170
be6bbd2c8
Thanks @bluwy! - Remove deprecated config option types, deprecated script/style attributes, and deprecatedimage
export fromastro:content
-
#8180
f003e7364
Thanks @ematipico! - The scoped hash created by the Astro compiler is now lowercase. -
#8169
e79e3779d
Thanks @bluwy! - Remove pre-shiki v0.14 theme names for compatibility. Please rename to the new theme names to migrate:-
material-darker
->material-theme-darker
-
material-default
->material-theme
-
material-lighter
->material-theme-lighter
-
material-ocean
->material-theme-ocean
-
material-palenight
->material-theme-palenight
-
Patch Changes
-
#8147
adf9fccfd
Thanks @astrobot-houston! - Do not throw Error when users pass an object with a "type" property -
#8152
582132328
Thanks @andremralves! - Displays a new config error ifoutDir
is placed withinpublicDir
. -
#8147
42785c7b7
Thanks @astrobot-houston! - Improve fidelity of time stats when runningastro build
-
#8171
95120efbe
Thanks @Princesseuh! - Fix missing type forimageConfig
export fromastro:assets
-
#8147
2ae9d37f0
Thanks @astrobot-houston! - Open to configuredbase
whenastro dev --open
runs -
#8099
732111cdc
Thanks @bluwy! - Deprecate themarkdown.drafts
configuration option.If you'd like to create draft pages that are visible in dev but not in production, you can migrate to content collections and manually filter out pages with the
draft: true
frontmatter property instead. -
#8147
33b8910cf
Thanks @astrobot-houston! - On back navigation only animate view transitions that were animated going forward. -
#8163
179796405
Thanks @delucis! - Make typing ofdefineCollection
more permissive to support advanced union and intersection types -
#8147
a87cbe400
Thanks @astrobot-houston! - fix: reinsert attribute to specify direction of ViewTransition (forward / back) -
#8132
767eb6866
Thanks @bluwy! - Deprecate returning simple objects from endpoints. Endpoints should only return aResponse
.To return a result with a custom encoding not supported by a
Response
, you can use theResponseWithEncoding
utility class instead.Before:
export function GET() { return { body: '...', encoding: 'binary', }; }
After:
export function GET({ ResponseWithEncoding }) { return new ResponseWithEncoding('...', undefined, 'binary'); }
-
Updated dependencies [
6011d52d3
,e79e3779d
]:- @astrojs/markdown-remark@3.0.0-rc.1
- @astrojs/telemetry@3.0.0-rc.3
- @astrojs/internal-helpers@0.2.0-rc.2