fix(deps): update dependency astro to v2#6
Merged
4-Leafs-Code merged 1 commit intomainfrom Feb 8, 2023
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.9.0->^2.0.0Release Notes
withastro/astro
v2.0.8Compare Source
Patch Changes
c0e4b1df9Thanks @matthewp! - Fix mixed usage of aliases and relative for client hydrationv2.0.7Compare Source
Patch Changes
#6161
f6fc662c3Thanks @matthewp! - Prevent ?inline and ?raw CSS from being bundled as CSS#6149
592386b75Thanks @bloycey! - Moved pagination error to AstroErrorData#6153
1b591a143Thanks @torchsmith! - Respectvite.build.emptyOutDirsetting duringastro build#6092
bf8d7366aThanks @bholmesdev! - Ensure vite config (aliases, custom modules, etc) is respected when loading the content collection config#6111
ec38a8921Thanks @e111077! - Implement client:only functionality in Lit and add lit to the client:only warning#6124
f20a85b64Thanks @FredKSchott! - Fix outdated error message inpaginate()function.#6122
9f22ac3d0Thanks @bholmesdev! - Content collections: Fix accidental "use underscore to ignore" logs for.DS_Storefiles and underscored directory names.#6163
cee70f5c6Thanks @Princesseuh! - Fix returning hex / base64 images from endpoints not working in dev#6114
ac7fb04d6Thanks @bluwy! - Fix sourcemap generation when scanning files#6152
d1f5611feThanks @matthewp! - Fix MDX related head placement bugsThis fixes a variety of head content placement bugs (such as page
<link>) related to MDX, especially when used in content collections. Issues fixed:#6119
2189170beThanks @matthewp! - Fix hoisted script propagation in content collection pages#6117
32abe49bdThanks @Princesseuh! - Fix polyfills not being available in certain casesv2.0.6Compare Source
Patch Changes
9bec6bc41Thanks @matthewp! - Fixes head contents being placed in body in MDX componentsv2.0.5Compare Source
Patch Changes
#6052
9793f19ecThanks @mayank99! - Error overlay will now show the error'scauseif available.#6070
f91615f5cThanks @AirBorne04! - * safe guard against TextEncode.encode(HTMLString) [errors on vercel edge]#6064
2fb72c887Thanks @bholmesdev! - Apply MDXcomponentsexport when rendering as a content collection entryv2.0.4Compare Source
Patch Changes
#6045
41e97158bThanks @natemoo-re! - Improve error handling when an Astro component is rendered manually#6036
e779c6242Thanks @natemoo-re! - Improve error handling when top-levelreturnis presentv2.0.2Compare Source
Patch Changes
#5983
b53e0717bThanks @natemoo-re! - Fixes a dev server edge case where prerender + getStaticPaths would not 404 on an unmatched route#5992
60b32d585Thanks @HiDeoo! - FixAstro.url.protocolwhen using the @astrojs/node SSR adapter with HTTPS#5971
883e0cc29Thanks @JLarky! - improve error message: change @astrojs/solid to @astrojs/solid-js#5970
dabce6b8cThanks @bholmesdev! - Add type guard support to filters ongetCollection()#5952
aedf23f85Thanks @wulinsheng123! - Fix custom theme handling for<Code>componentUpdated dependencies [
7abb1e905]:v2.0.1Compare Source
Patch Changes
#5969
f4c71e5ebThanks @matthewp! - Fix usage of logger in Vercel EdgeThis protects against usage of
processglobal in shimmed environments.#5962
46b6e1426Thanks @MoustaphaDev! - Fix Content Collections not loading config file when there are spaces in the folder tree#5972
02549b8ceThanks @bluwy! - Correctly detect Node.js versionv2.0.0Compare Source
Major Changes
#5687
e2019be6fThanks @bholmesdev! - Give remark and rehype plugins access to user frontmatter via frontmatter injection. This meansdata.astro.frontmatteris now the complete Markdown or MDX document's frontmatter, rather than an empty object.This allows plugin authors to modify existing frontmatter, or compute new properties based on other properties. For example, say you want to compute a full image URL based on an
imageSrcslug in your document frontmatter:When using Content Collections, you can access this modified frontmatter using the
remarkPluginFrontmatterproperty returned when rendering an entry.Migration instructions
Plugin authors should now check for user frontmatter when applying defaults.
For example, say a remark plugin wants to apply a default
titleif none is present. Add a conditional to check if the property is present, and update if none exists:export function remarkInjectTitlePlugin() { return function (tree, file) { const { frontmatter } = file.data.astro; + if (!frontmatter.title) { frontmatter.title = 'Default title'; + } } }This differs from previous behavior, where a Markdown file's frontmatter would always override frontmatter injected via remark or reype.
#5891
05caf445dThanks @bholmesdev! - Remove deprecated Markdown APIs from Astro v0.X. This includesgetHeaders(), the.astroproperty for layouts, and therawContent()andcompiledContent()error messages for MDX.#5778
49ab4f231Thanks @bluwy! - Remove proload to load the Astro config. It will now use NodeJS and Vite to load the config only.#5728
8fb28648fThanks @natemoo-re! - The previously experimental features--experimental-error-overlayand--experimental-prerender, both added in v1.7.0, are now the default.You'll notice that the error overlay during
astro devhas a refreshed visual design and provides more context for your errors.The
prerenderfeature is now enabled by default when usingoutput: 'server'. To prerender a particular page, addexport const prerender = trueto your frontmatter.#5782
1f92d64eaThanks @Princesseuh! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0#5771
259a539d7Thanks @matthewp! - Removes support for astroFlavoredMarkdownIn 1.0 Astro moved the old Astro Flavored Markdown (also sometimes called Components in Markdown) to a legacy feature. This change removes the
legacy.astroFlavoredMarkdownoption completely.In 2.0 this feature will not be available in Astro at all. We recommend migration to MDX for those were still using this feature in 1.x.
#5941
304823811Thanks @bholmesdev! - Content collections: Introduce a newslugfrontmatter field for overriding the generated slug. This replaces the previousslug()collection config option from Astro 1.X and the 2.0 beta.When present in a Markdown or MDX file, this will override the generated slug for that entry.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.