ddanielsantos / blog

https://ddaniel.me
1 stars 0 forks source link

fix(deps): update dependency astro to v2 #33

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro (source) ^1.9.0 -> ^2.0.0 age adoption passing confidence

Release Notes

withastro/astro ### [`v2.0.10`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​2010) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.9...astro@2.0.10) ##### Patch Changes - [#​6183](https://togithub.com/withastro/astro/pull/6183) [`436bd0934`](https://togithub.com/withastro/astro/commit/436bd09341693fc705f2a55d460eed3afa413432) Thanks [@​Jutanium](https://togithub.com/Jutanium)! - Fixes the first-page value of `url.prev` when paginating a spread route at the root - [#​6198](https://togithub.com/withastro/astro/pull/6198) [`a9bdd9cc4`](https://togithub.com/withastro/astro/commit/a9bdd9cc4e41512fbe723620c995e6a110032ebf) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fixes usage of Code component in Vercel - [#​6182](https://togithub.com/withastro/astro/pull/6182) [`938ad514c`](https://togithub.com/withastro/astro/commit/938ad514cd75c09756cd24223346159172f5fd60) Thanks [@​matthewp](https://togithub.com/matthewp)! - Ensure base configuration appended to content collection styles - [#​6197](https://togithub.com/withastro/astro/pull/6197) [`c75d319ee`](https://togithub.com/withastro/astro/commit/c75d319ee6b657402b902b1b46b9d3f2d0e5370b) Thanks [@​BryceRussell](https://togithub.com/BryceRussell)! - Fix `border` and `frame` attribute types on `TableHTMLAttributes` interface - [#​6180](https://togithub.com/withastro/astro/pull/6180) [`6fa6025b3`](https://togithub.com/withastro/astro/commit/6fa6025b34b9447e142c4788c0cdc2dfe03f334f) Thanks [@​matthewp](https://togithub.com/matthewp)! - Allow binary data to be returned from api routes in SSG - [#​6196](https://togithub.com/withastro/astro/pull/6196) [`3390cb844`](https://togithub.com/withastro/astro/commit/3390cb84443a43eb997f3efeb5ca298a8477aaf0) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fix head injection misplacement with Astro.slots.render() ### [`v2.0.9`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​209) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.8...astro@2.0.9) ##### Patch Changes - [#​6176](https://togithub.com/withastro/astro/pull/6176) [`8bbdcf17d`](https://togithub.com/withastro/astro/commit/8bbdcf17dd6c9142c18bc1551ee4854a60bc58cb) Thanks [@​matthewp](https://togithub.com/matthewp)! - Take dynamic import into account in CSS ordering - [#​6170](https://togithub.com/withastro/astro/pull/6170) [`ec2f2a31d`](https://togithub.com/withastro/astro/commit/ec2f2a31dec78e5749cdea524ae926a19df300e3) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Show content config errors in overlay, instead of stopping the dev server. ### [`v2.0.8`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​208) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.7...astro@2.0.8) ##### Patch Changes - [#​6168](https://togithub.com/withastro/astro/pull/6168) [`c0e4b1df9`](https://togithub.com/withastro/astro/commit/c0e4b1df9fc2279a15eadb8aaa95efdc1c6e9cbf) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fix mixed usage of aliases and relative for client hydration ### [`v2.0.7`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​207) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.6...astro@2.0.7) ##### Patch Changes - [#​6161](https://togithub.com/withastro/astro/pull/6161) [`f6fc662c3`](https://togithub.com/withastro/astro/commit/f6fc662c3c59d164584c6287a930fcd1c9086ee6) Thanks [@​matthewp](https://togithub.com/matthewp)! - Prevent ?inline and ?raw CSS from being bundled as CSS - [#​6149](https://togithub.com/withastro/astro/pull/6149) [`592386b75`](https://togithub.com/withastro/astro/commit/592386b75541f3b7f7d95c631f86024b7e2d314d) Thanks [@​bloycey](https://togithub.com/bloycey)! - Moved pagination error to AstroErrorData - [#​6153](https://togithub.com/withastro/astro/pull/6153) [`1b591a143`](https://togithub.com/withastro/astro/commit/1b591a1431b44eacd239ed8f76809916cabca1db) Thanks [@​torchsmith](https://togithub.com/torchsmith)! - Respect `vite.build.emptyOutDir` setting during `astro build` - [#​6092](https://togithub.com/withastro/astro/pull/6092) [`bf8d7366a`](https://togithub.com/withastro/astro/commit/bf8d7366acb57e1b21181cc40fff55a821d8119e) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Ensure vite config (aliases, custom modules, etc) is respected when loading the content collection config - [#​6111](https://togithub.com/withastro/astro/pull/6111) [`ec38a8921`](https://togithub.com/withastro/astro/commit/ec38a8921f02a275949abcababe1b8afdf8184a2) Thanks [@​e111077](https://togithub.com/e111077)! - Implement client:only functionality in Lit and add lit to the client:only warning - [#​6124](https://togithub.com/withastro/astro/pull/6124) [`f20a85b64`](https://togithub.com/withastro/astro/commit/f20a85b642994f240d8c94260fc55ffa1fd14294) Thanks [@​FredKSchott](https://togithub.com/FredKSchott)! - Fix outdated error message in `paginate()` function. - [#​6122](https://togithub.com/withastro/astro/pull/6122) [`9f22ac3d0`](https://togithub.com/withastro/astro/commit/9f22ac3d097ef2cb3b2bbe5343b8a8a49d83425d) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Content collections: Fix accidental "use underscore to ignore" logs for `.DS_Store` files and underscored directory names. - [#​6163](https://togithub.com/withastro/astro/pull/6163) [`cee70f5c6`](https://togithub.com/withastro/astro/commit/cee70f5c6ac9b0d2edc1f8a6f8f5043605576026) Thanks [@​Princesseuh](https://togithub.com/Princesseuh)! - Fix returning hex / base64 images from endpoints not working in dev - [#​6114](https://togithub.com/withastro/astro/pull/6114) [`ac7fb04d6`](https://togithub.com/withastro/astro/commit/ac7fb04d6b162f28a337918138d5737e2c0fffad) Thanks [@​bluwy](https://togithub.com/bluwy)! - Fix sourcemap generation when scanning files - [#​6152](https://togithub.com/withastro/astro/pull/6152) [`d1f5611fe`](https://togithub.com/withastro/astro/commit/d1f5611febfd020cca4078c71bafe599015edd16) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fix MDX related head placement bugs This fixes a variety of head content placement bugs (such as page ``) related to MDX, especially when used in content collections. Issues fixed: - Head content being placed in the body instead of the head. - Head content missing when rendering an MDX component from within a nested Astro component. - [#​6119](https://togithub.com/withastro/astro/pull/6119) [`2189170be`](https://togithub.com/withastro/astro/commit/2189170be523f74f244e84ccab22c655219773ce) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fix hoisted script propagation in content collection pages - [#​6117](https://togithub.com/withastro/astro/pull/6117) [`32abe49bd`](https://togithub.com/withastro/astro/commit/32abe49bd073417b480b1b990f432a837c12eb6f) Thanks [@​Princesseuh](https://togithub.com/Princesseuh)! - Fix polyfills not being available in certain cases ### [`v2.0.6`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​206) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.5...astro@2.0.6) ##### Patch Changes - [#​6107](https://togithub.com/withastro/astro/pull/6107) [`9bec6bc41`](https://togithub.com/withastro/astro/commit/9bec6bc410f324a41c67e5d185fa86f78d7625f2) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fixes head contents being placed in body in MDX components ### [`v2.0.5`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​205) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.4...astro@2.0.5) ##### Patch Changes - [#​6052](https://togithub.com/withastro/astro/pull/6052) [`9793f19ec`](https://togithub.com/withastro/astro/commit/9793f19ecd4e64cbf3140454fe52aeee2c22c8c9) Thanks [@​mayank99](https://togithub.com/mayank99)! - Error overlay will now show the error's `cause` if available. - [#​6070](https://togithub.com/withastro/astro/pull/6070) [`f91615f5c`](https://togithub.com/withastro/astro/commit/f91615f5c04fde36f115dad9110dd75254efd61d) Thanks [@​AirBorne04](https://togithub.com/AirBorne04)! - \* safe guard against TextEncode.encode(HTMLString) \[errors on vercel edge] - safe guard against html.replace when html is undefined - [#​6064](https://togithub.com/withastro/astro/pull/6064) [`2fb72c887`](https://togithub.com/withastro/astro/commit/2fb72c887f71c0a69ab512870d65b8c867774766) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Apply MDX `components` export when rendering as a content collection entry ### [`v2.0.4`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​204) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.2...astro@2.0.4) ##### Patch Changes - [#​6045](https://togithub.com/withastro/astro/pull/6045) [`41e97158b`](https://togithub.com/withastro/astro/commit/41e97158ba90d23d346b6e3ff6c7c14b5ecbe903) Thanks [@​natemoo-re](https://togithub.com/natemoo-re)! - Improve error handling when an Astro component is rendered manually - [#​6036](https://togithub.com/withastro/astro/pull/6036) [`e779c6242`](https://togithub.com/withastro/astro/commit/e779c6242418d1d4102e683ca5b851b764c89688) Thanks [@​natemoo-re](https://togithub.com/natemoo-re)! - Improve error handling when top-level `return` is present ### [`v2.0.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​202) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.1...astro@2.0.2) ##### Patch Changes - [#​5983](https://togithub.com/withastro/astro/pull/5983) [`b53e0717b`](https://togithub.com/withastro/astro/commit/b53e0717b7f6b042baaeec7f87999e99c76c031c) Thanks [@​natemoo-re](https://togithub.com/natemoo-re)! - Fixes a dev server edge case where prerender + getStaticPaths would not 404 on an unmatched route - [#​5992](https://togithub.com/withastro/astro/pull/5992) [`60b32d585`](https://togithub.com/withastro/astro/commit/60b32d58565d87e87573eb268408293fc28ec657) Thanks [@​HiDeoo](https://togithub.com/HiDeoo)! - Fix `Astro.url.protocol` when using the [@​astrojs/node](https://togithub.com/astrojs/node) SSR adapter with HTTPS - [#​5971](https://togithub.com/withastro/astro/pull/5971) [`883e0cc29`](https://togithub.com/withastro/astro/commit/883e0cc29968d51ed6c7515be035a40b28bafdad) Thanks [@​JLarky](https://togithub.com/JLarky)! - improve error message: change [@​astrojs/solid](https://togithub.com/astrojs/solid) to [@​astrojs/solid-js](https://togithub.com/astrojs/solid-js) - [#​5970](https://togithub.com/withastro/astro/pull/5970) [`dabce6b8c`](https://togithub.com/withastro/astro/commit/dabce6b8c684f851c3535f8acead06cbef6dce2a) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Add type guard support to filters on `getCollection()` - [#​5952](https://togithub.com/withastro/astro/pull/5952) [`aedf23f85`](https://togithub.com/withastro/astro/commit/aedf23f8582e32a6b94b81ddba9b323831f2b22a) Thanks [@​wulinsheng123](https://togithub.com/wulinsheng123)! - Fix custom theme handling for `` component - Updated dependencies \[[`7abb1e905`](https://togithub.com/withastro/astro/commit/7abb1e9056c4b4fd0abfced347df32a41cdfbf28)]: - [@​astrojs/markdown-remark](https://togithub.com/astrojs/markdown-remark)[@​2](https://togithub.com/2).0.1 ### [`v2.0.1`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​2010) [Compare Source](https://togithub.com/withastro/astro/compare/astro@2.0.0...astro@2.0.1) ##### Patch Changes - [#​6183](https://togithub.com/withastro/astro/pull/6183) [`436bd0934`](https://togithub.com/withastro/astro/commit/436bd09341693fc705f2a55d460eed3afa413432) Thanks [@​Jutanium](https://togithub.com/Jutanium)! - Fixes the first-page value of `url.prev` when paginating a spread route at the root - [#​6198](https://togithub.com/withastro/astro/pull/6198) [`a9bdd9cc4`](https://togithub.com/withastro/astro/commit/a9bdd9cc4e41512fbe723620c995e6a110032ebf) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fixes usage of Code component in Vercel - [#​6182](https://togithub.com/withastro/astro/pull/6182) [`938ad514c`](https://togithub.com/withastro/astro/commit/938ad514cd75c09756cd24223346159172f5fd60) Thanks [@​matthewp](https://togithub.com/matthewp)! - Ensure base configuration appended to content collection styles - [#​6197](https://togithub.com/withastro/astro/pull/6197) [`c75d319ee`](https://togithub.com/withastro/astro/commit/c75d319ee6b657402b902b1b46b9d3f2d0e5370b) Thanks [@​BryceRussell](https://togithub.com/BryceRussell)! - Fix `border` and `frame` attribute types on `TableHTMLAttributes` interface - [#​6180](https://togithub.com/withastro/astro/pull/6180) [`6fa6025b3`](https://togithub.com/withastro/astro/commit/6fa6025b34b9447e142c4788c0cdc2dfe03f334f) Thanks [@​matthewp](https://togithub.com/matthewp)! - Allow binary data to be returned from api routes in SSG - [#​6196](https://togithub.com/withastro/astro/pull/6196) [`3390cb844`](https://togithub.com/withastro/astro/commit/3390cb84443a43eb997f3efeb5ca298a8477aaf0) Thanks [@​matthewp](https://togithub.com/matthewp)! - Fix head injection misplacement with Astro.slots.render() ### [`v2.0.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#​200) [Compare Source](https://togithub.com/withastro/astro/compare/astro@1.9.2...astro@2.0.0) > **Note** > This is a detailed changelog of all changes in Astro v2.\ > See our [upgrade guide](https://docs.astro.build/en/guides/upgrade-to/v2/) for an overview of steps needed to upgrade an existing project. ##### Major Changes - [#​5687](https://togithub.com/withastro/astro/pull/5687) [`e2019be6f`](https://togithub.com/withastro/astro/commit/e2019be6ffa46fa33d92cfd346f9ecbe51bb7144) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Give remark and rehype plugins access to user frontmatter via frontmatter injection. This means `data.astro.frontmatter` is 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 `imageSrc` slug in your document frontmatter: ```ts export function remarkInjectSocialImagePlugin() { return function (tree, file) { const { frontmatter } = file.data.astro; frontmatter.socialImageSrc = new URL(frontmatter.imageSrc, 'https://my-blog.com/').pathname; }; } ``` When using Content Collections, you can access this modified frontmatter using the `remarkPluginFrontmatter` property 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 `title` if none is present. Add a conditional to check if the property is present, and update if none exists: ```diff 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](https://togithub.com/withastro/astro/pull/5891) [`05caf445d`](https://togithub.com/withastro/astro/commit/05caf445d4d2728f1010aeb2179a9e756c2fd17d) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Remove deprecated Markdown APIs from Astro v0.X. This includes `getHeaders()`, the `.astro` property for layouts, and the `rawContent()` and `compiledContent()` error messages for MDX. - [#​5778](https://togithub.com/withastro/astro/pull/5778) [`49ab4f231`](https://togithub.com/withastro/astro/commit/49ab4f231c23b34891c3ee86f4b92bf8d6d267a3) Thanks [@​bluwy](https://togithub.com/bluwy)! - Remove proload to load the Astro config. It will now use NodeJS and Vite to load the config only. - [#​5728](https://togithub.com/withastro/astro/pull/5728) [`8fb28648f`](https://togithub.com/withastro/astro/commit/8fb28648f66629741cb976bfe34ccd9d8f55661e) Thanks [@​natemoo-re](https://togithub.com/natemoo-re)! - The previously experimental features `--experimental-error-overlay` and `--experimental-prerender`, both added in v1.7.0, are now the default. You'll notice that the error overlay during `astro dev` has a refreshed visual design and provides more context for your errors. The `prerender` feature is now enabled by default when using `output: 'server'`. To prerender a particular page, add `export const prerender = true` to your frontmatter. > **Warning** > Integration authors that previously relied on the exact structure of Astro's v1.0 build output may notice some changes to our output file structure. Please test your integrations to ensure compatability. > Users that have configured a custom `vite.build.rollupOptions.output.chunkFileNames` should ensure that their Astro project is configured as an ESM Node project. Either include `"type": "module"` in your root `package.json` file or use the `.mjs` extension for `chunkFileNames`. - [#​5782](https://togithub.com/withastro/astro/pull/5782) [`1f92d64ea`](https://togithub.com/withastro/astro/commit/1f92d64ea35c03fec43aff64eaf704dc5a9eb30a) Thanks [@​Princesseuh](https://togithub.com/Princesseuh)! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0 - [#​5771](https://togithub.com/withastro/astro/pull/5771) [`259a539d7`](https://togithub.com/withastro/astro/commit/259a539d7d70c783330c797794b15716921629cf) Thanks [@​matthewp](https://togithub.com/matthewp)! - Removes support for astroFlavoredMarkdown In 1.0 Astro moved the old Astro Flavored Markdown (also sometimes called Components in Markdown) to a legacy feature. This change removes the `legacy.astroFlavoredMarkdown` option 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](https://togithub.com/withastro/astro/pull/5941) [`304823811`](https://togithub.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565) Thanks [@​bholmesdev](https://togithub.com/bholmesdev)! - Content collections: Introduce a new `slug` frontmatter field for overriding the generated slug. This replaces the previous `slug()` 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. ```diff ```

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

â™» 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.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
portfolio ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 10, 2023 at 5:01AM (UTC)