astro 3.0.0-rc.5
Major Changes
-
#8142
81545197aThanks @natemoo-re! - Fixes for theclass:listdirective- Previously,
class:listwould ocassionally not be merged theclassprop when passed to Astro components. Now,class:listis always converted to aclassprop (as a string value). - Previously,
class:listdiverged fromclsxin a few edge cases. Now,class:listusesclsxdirectly.class:listused to deduplicate matching values, but it no longer doesclass:listused to sort individual values, but it no longer doesclass:listused to supportSetand other iterables, but it no longer does
- Previously,
-
#8179
6011d52d3Thanks @matthewp! - Astro 3.0 Release Candidate -
#8170
be6bbd2c8Thanks @bluwy! - Remove deprecated config option types, deprecated script/style attributes, and deprecatedimageexport fromastro:content -
#8180
f003e7364Thanks @ematipico! - The scoped hash created by the Astro compiler is now lowercase. -
#8169
e79e3779dThanks @bluwy! - Remove pre-shiki v0.14 theme names for compatibility. Please rename to the new theme names to migrate:material-darker->material-theme-darkermaterial-default->material-themematerial-lighter->material-theme-lightermaterial-ocean->material-theme-oceanmaterial-palenight->material-theme-palenight
Patch Changes
-
#8147
adf9fccfdThanks @astrobot-houston! - Do not throw Error when users pass an object with a "type" property -
#8152
582132328Thanks @andremralves! - Displays a new config error ifoutDiris placed withinpublicDir. -
#8147
42785c7b7Thanks @astrobot-houston! - Improve fidelity of time stats when runningastro build -
#8171
95120efbeThanks @Princesseuh! - Fix missing type forimageConfigexport fromastro:assets -
#8147
2ae9d37f0Thanks @astrobot-houston! - Open to configuredbasewhenastro dev --openruns -
#8099
732111cdcThanks @bluwy! - Deprecate themarkdown.draftsconfiguration 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: truefrontmatter property instead. -
#8147
33b8910cfThanks @astrobot-houston! - On back navigation only animate view transitions that were animated going forward. -
#8163
179796405Thanks @delucis! - Make typing ofdefineCollectionmore permissive to support advanced union and intersection types -
#8147
a87cbe400Thanks @astrobot-houston! - fix: reinsert attribute to specify direction of ViewTransition (forward / back) -
#8132
767eb6866Thanks @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 theResponseWithEncodingutility 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