From baeb7e9a9d0fa7c8845f51ee1e5fd99b8a7bd6ac Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:27:14 +0000 Subject: [PATCH] Update dependency unified to v11 (#419) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [unified](https://unifiedjs.com) ([source](https://togithub.com/unifiedjs/unified)) | [`8.4.2` -> `11.0.3`](https://renovatebot.com/diffs/npm/unified/8.4.2/11.0.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/unified/11.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/unified/11.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/unified/8.4.2/11.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/unified/8.4.2/11.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
unifiedjs/unified (unified) ### [`v11.0.3`](https://togithub.com/unifiedjs/unified/releases/tag/11.0.3) [Compare Source](https://togithub.com/unifiedjs/unified/compare/11.0.2...11.0.3) ##### Fix - [`8dee2ab`](https://togithub.com/unifiedjs/unified/commit/8dee2ab) Fix support for functions in data **Full Changelog**: https://github.com/unifiedjs/unified/compare/11.0.2...11.0.3 ### [`v11.0.2`](https://togithub.com/unifiedjs/unified/releases/tag/11.0.2) [Compare Source](https://togithub.com/unifiedjs/unified/compare/11.0.1...11.0.2) - [`cea788b`](https://togithub.com/unifiedjs/unified/commit/cea788b) Fix type of settings if nothing is registered yet **Full Changelog**: https://github.com/unifiedjs/unified/compare/11.0.1...11.0.2 ### [`v11.0.1`](https://togithub.com/unifiedjs/unified/releases/tag/11.0.1) [Compare Source](https://togithub.com/unifiedjs/unified/compare/11.0.0...11.0.1) - [`d1a915d`](https://togithub.com/unifiedjs/unified/commit/d1a915d) Fix incorrect type of `settings` in presets **Full Changelog**: https://github.com/unifiedjs/unified/compare/11.0.0...11.0.1 ### [`v11.0.0`](https://togithub.com/unifiedjs/unified/releases/tag/11.0.0) [Compare Source](https://togithub.com/unifiedjs/unified/compare/10.1.2...11.0.0) ##### Change - [`baf80b2`](https://togithub.com/unifiedjs/unified/commit/baf80b2) Change to require Node.js 16 **migrate**: update too - [`dd9834a`](https://togithub.com/unifiedjs/unified/commit/dd9834a) Update `@types/unist` **migrate**: update too - [`620ccf9`](https://togithub.com/unifiedjs/unified/commit/620ccf9) Update [`vfile`](https://togithub.com/vfile/vfile/releases/tag/6.0.0) **migrate**: update too ##### Change (unlikey to affect you) - [`a44db46`](https://togithub.com/unifiedjs/unified/commit/a44db46) Add `Data`, `Settings` types to augment shared data **migrate**: if you deal with data, type it, see commit for info - [`fb49556`](https://togithub.com/unifiedjs/unified/commit/fb49556) Change to replace `Buffer` with `Uint8Array` **migrate**: you’re probably fine unless you use weird encodings, see commit for details if so - [`f3e71a8`](https://togithub.com/unifiedjs/unified/commit/f3e71a8) Remove `Attacher` type **migrate**: use `Plugin` instead - [`cc53bb6`](https://togithub.com/unifiedjs/unified/commit/cc53bb6) Remove `FrozenProcessor` type **migrate**: use `Processor` instead - [`1aa3494`](https://togithub.com/unifiedjs/unified/commit/1aa3494) Change to yield `undefined`, not `null` **migrate**: expect `undefined` - [`932c140`](https://togithub.com/unifiedjs/unified/commit/932c140) Change to use `exports` **migrate**: don’t use private APIs - [`8e57478`](https://togithub.com/unifiedjs/unified/commit/8e57478) Remove support for classes as compilers, parsers **migrate**: if you love classes, see commit message - [`4676814`](https://togithub.com/unifiedjs/unified/commit/4676814) Remove support for compilers returning nullish **migrate**: nobody did that - [`807ffb9`](https://togithub.com/unifiedjs/unified/commit/807ffb9) Add improved types **migrate**: it’s probably just better if anything changed at all - [`b35afe0`](https://togithub.com/unifiedjs/unified/commit/b35afe0) Add useful error on empty presets by [@​wooorm](https://togithub.com/wooorm) in [https://github.com/unifiedjs/unified/pull/202](https://togithub.com/unifiedjs/unified/pull/202) - [`6f068a0`](https://togithub.com/unifiedjs/unified/commit/6f068a0) Fix to deep clone preset settings - [`56ee288`](https://togithub.com/unifiedjs/unified/commit/56ee288) Fix non-first parameter merging when reconfiguring plugins ##### Misc - [`e58b095`](https://togithub.com/unifiedjs/unified/commit/e58b095) [`ad06700`](https://togithub.com/unifiedjs/unified/commit/ad06700) [`40f0329`](https://togithub.com/unifiedjs/unified/commit/40f0329) Refactor code-style - [`ffc146c`](https://togithub.com/unifiedjs/unified/commit/ffc146c) Update `typescript` by [@​ChristianMurphy](https://togithub.com/ChristianMurphy) in [https://github.com/unifiedjs/unified/pull/216](https://togithub.com/unifiedjs/unified/pull/216) - [`7148746`](https://togithub.com/unifiedjs/unified/commit/7148746) [`144eec0`](https://togithub.com/unifiedjs/unified/commit/144eec0) [`2d95451`](https://togithub.com/unifiedjs/unified/commit/2d95451) Add improved docs - [`afb704a`](https://togithub.com/unifiedjs/unified/commit/afb704a) Fix some typos by [@​ChristianMurphy](https://togithub.com/ChristianMurphy) in [https://github.com/unifiedjs/unified/pull/225](https://togithub.com/unifiedjs/unified/pull/225) - [`2aa15ea`](https://togithub.com/unifiedjs/unified/commit/2aa15ea) Refactor types - [`a06537c`](https://togithub.com/unifiedjs/unified/commit/a06537c) Add sponsor **Full Changelog**: https://github.com/unifiedjs/unified/compare/10.1.2...11.0.0 ### [`v10.1.2`](https://togithub.com/unifiedjs/unified/releases/tag/10.1.2) [Compare Source](https://togithub.com/unifiedjs/unified/compare/10.1.1...10.1.2) - [`dc85d21`](https://togithub.com/unifiedjs/unified/commit/dc85d21) Fix typo by [@​jablko](https://togithub.com/jablko) in [https://github.com/unifiedjs/unified/pull/185](https://togithub.com/unifiedjs/unified/pull/185) **Full Changelog**: https://github.com/unifiedjs/unified/compare/10.1.1...10.1.2 ### [`v10.1.1`](https://togithub.com/unifiedjs/unified/releases/tag/10.1.1) [Compare Source](https://togithub.com/unifiedjs/unified/compare/10.1.0...10.1.1) - [`6b060c2`](https://togithub.com/unifiedjs/unified/commit/6b060c2) Fix type of `run` signature by [@​alvinleung1996](https://togithub.com/alvinleung1996) in [https://github.com/unifiedjs/unified/pull/174](https://togithub.com/unifiedjs/unified/pull/174) **Full Changelog**: https://github.com/unifiedjs/unified/compare/10.1.0...10.1.1 ### [`v10.1.0`](https://togithub.com/unifiedjs/unified/releases/tag/10.1.0) [Compare Source](https://togithub.com/unifiedjs/unified/compare/10.0.1...10.1.0) - [`134ecad`](https://togithub.com/unifiedjs/unified/commit/134ecad) Add plugin input/output type parameters ### [`v10.0.1`](https://togithub.com/unifiedjs/unified/releases/tag/10.0.1) [Compare Source](https://togithub.com/unifiedjs/unified/compare/10.0.0...10.0.1) - [`591b0c0`](https://togithub.com/unifiedjs/unified/commit/591b0c0) Fix types to support `void` async transformers ### [`v10.0.0`](https://togithub.com/unifiedjs/unified/releases/tag/10.0.0) [Compare Source](https://togithub.com/unifiedjs/unified/compare/9.2.2...10.0.0) ##### Breaking - [`dc46bc5`](https://togithub.com/unifiedjs/unified/commit/dc46bc5) Use ESM and update `vfile` - Change: ```js // from cjs import var unified = require('unified') // to esm import import {unified} from 'unified' ``` Learn [more about ESM in this guide](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) - **Breaking**: this updates `vfile`, which importantly renames ~~`vfile.contents`~~ to `vfile.value`. See [`vfile@5`](https://togithub.com/vfile/vfile/releases/tag/5.0.0) - Inconsequential: this updates `trough`, which removes support for Promise-like objects returned from plugins, in favor of only support actual promises. To update, instead of returning an object with a `then` function, return and *actual* promise ##### Types - [`b3e2464`](https://togithub.com/unifiedjs/unified/commit/b3e2464) Rewrite types - Removed the type parameter `P` for processor settings - Use `any[]` instead of `[Record?]` for the default plugin type parameters - [`45eb72e`](https://togithub.com/unifiedjs/unified/commit/45eb72e) Update types for ESM - [`2c7ba99`](https://togithub.com/unifiedjs/unified/commit/2c7ba99) [`8eda349`](https://togithub.com/unifiedjs/unified/commit/8eda349) Add explicit dependency on `@types/unist` - [`0e8f611`](https://togithub.com/unifiedjs/unified/commit/0e8f611) Remove typescript@3 legacy support - [`350ed9d`](https://togithub.com/unifiedjs/unified/commit/350ed9d) Fix `next` in types of transformer signature - [`b22bf8e`](https://togithub.com/unifiedjs/unified/commit/b22bf8e) Add support for buffer, other return values - [`4bfd6c8`](https://togithub.com/unifiedjs/unified/commit/4bfd6c8) [`b8fe5ec`](https://togithub.com/unifiedjs/unified/commit/b8fe5ec) [`6ef3933`](https://togithub.com/unifiedjs/unified/commit/6ef3933) Add support for boolean plugin options ##### Project - [`88374fc`](https://togithub.com/unifiedjs/unified/commit/88374fc) Add `esast` to list of syntax trees - [`a6ff3c1`](https://togithub.com/unifiedjs/unified/commit/a6ff3c1) Fix links - [`ee6ee47`](https://togithub.com/unifiedjs/unified/commit/ee6ee47) Update examples in `readme.md` - [`32abf7c`](https://togithub.com/unifiedjs/unified/commit/32abf7c) [`60de570`](https://togithub.com/unifiedjs/unified/commit/60de570) [`115898a`](https://togithub.com/unifiedjs/unified/commit/115898a) Refactor code style ### [`v9.2.2`](https://togithub.com/unifiedjs/unified/releases/tag/9.2.2) [Compare Source](https://togithub.com/unifiedjs/unified/compare/9.2.1...9.2.2) - [`bc50a01`](https://togithub.com/unifiedjs/unified/commit/bc50a01) Fix to set `vfile.value` if a vfile@5 is given ### [`v9.2.1`](https://togithub.com/unifiedjs/unified/releases/tag/9.2.1) [Compare Source](https://togithub.com/unifiedjs/unified/compare/9.2.0...9.2.1) - [`fe51be2`](https://togithub.com/unifiedjs/unified/commit/fe51be2) Fix mutating options - [`8f135d0`](https://togithub.com/unifiedjs/unified/commit/8f135d0) Refactor to improve bundle size - [`ad12369`](https://togithub.com/unifiedjs/unified/commit/ad12369) Remove outdated description of compile results ### [`v9.2.0`](https://togithub.com/unifiedjs/unified/releases/tag/9.2.0) [Compare Source](https://togithub.com/unifiedjs/unified/compare/9.1.0...9.2.0) - [`7fc4271`](https://togithub.com/unifiedjs/unified/commit/7fc4271) Add variadic tuple types for plugin tuple ### [`v9.1.0`](https://togithub.com/unifiedjs/unified/releases/tag/9.1.0) [Compare Source](https://togithub.com/unifiedjs/unified/compare/9.0.0...9.1.0) - [`56fdba4`](https://togithub.com/unifiedjs/unified/commit/56fdba4) Add `FrozenProcessor` interface to types ### [`v9.0.0`](https://togithub.com/unifiedjs/unified/releases/tag/9.0.0) [Compare Source](https://togithub.com/unifiedjs/unified/compare/8.4.2...9.0.0) - [`c3ba172`](https://togithub.com/unifiedjs/unified/commit/c3ba172) Set `file.result` when processing to non-text (**breaking**, if you’re using `.process` or `.processSync` with a compiler that returns an object, then those results were available at ~~`file.contents`~~ and are now at `file.result`)
--- ### 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. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs). --- .../actions/validate-docs-links/package.json | 2 +- .github/pnpm-lock.yaml | 55 +------------------ 2 files changed, 3 insertions(+), 54 deletions(-) diff --git a/.github/actions/validate-docs-links/package.json b/.github/actions/validate-docs-links/package.json index c6a8889b2f..4d00febb1f 100644 --- a/.github/actions/validate-docs-links/package.json +++ b/.github/actions/validate-docs-links/package.json @@ -22,7 +22,7 @@ "rehype-raw": "7.0.0", "remark-parse": "11.0.0", "remark-rehype": "11.0.0", - "unified": "8.4.2", + "unified": "11.0.3", "unist-util-visit": "2.0.3" } } diff --git a/.github/pnpm-lock.yaml b/.github/pnpm-lock.yaml index 9787801611..d65fc347f7 100644 --- a/.github/pnpm-lock.yaml +++ b/.github/pnpm-lock.yaml @@ -159,8 +159,8 @@ importers: specifier: 11.0.0 version: 11.0.0 unified: - specifier: 8.4.2 - version: 8.4.2 + specifier: 11.0.3 + version: 11.0.3 unist-util-visit: specifier: 2.0.3 version: 2.0.3 @@ -465,10 +465,6 @@ packages: - debug dev: false - /bail@1.0.5: - resolution: {integrity: sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==} - dev: false - /bail@2.0.2: resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} dev: false @@ -801,11 +797,6 @@ packages: engines: {node: '>=16.17.0'} dev: false - /is-buffer@2.0.5: - resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==} - engines: {node: '>=4'} - dev: false - /is-electron@2.2.2: resolution: {integrity: sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==} dev: false @@ -820,11 +811,6 @@ packages: engines: {node: '>=8'} dev: false - /is-plain-obj@2.1.0: - resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} - engines: {node: '>=8'} - dev: false - /is-plain-obj@4.1.0: resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} engines: {node: '>=12'} @@ -1375,10 +1361,6 @@ packages: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} dev: false - /trough@1.0.5: - resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==} - dev: false - /trough@2.1.0: resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==} dev: false @@ -1413,17 +1395,6 @@ packages: vfile: 6.0.1 dev: false - /unified@8.4.2: - resolution: {integrity: sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==} - dependencies: - '@types/unist': 2.0.7 - bail: 1.0.5 - extend: 3.0.2 - is-plain-obj: 2.1.0 - trough: 1.0.5 - vfile: 4.2.1 - dev: false - /unist-util-is@4.1.0: resolution: {integrity: sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==} dev: false @@ -1440,12 +1411,6 @@ packages: '@types/unist': 3.0.0 dev: false - /unist-util-stringify-position@2.0.3: - resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==} - dependencies: - '@types/unist': 2.0.7 - dev: false - /unist-util-stringify-position@4.0.0: resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} dependencies: @@ -1503,13 +1468,6 @@ packages: vfile: 6.0.1 dev: false - /vfile-message@2.0.4: - resolution: {integrity: sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==} - dependencies: - '@types/unist': 2.0.7 - unist-util-stringify-position: 2.0.3 - dev: false - /vfile-message@4.0.2: resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==} dependencies: @@ -1517,15 +1475,6 @@ packages: unist-util-stringify-position: 4.0.0 dev: false - /vfile@4.2.1: - resolution: {integrity: sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==} - dependencies: - '@types/unist': 2.0.7 - is-buffer: 2.0.5 - unist-util-stringify-position: 2.0.3 - vfile-message: 2.0.4 - dev: false - /vfile@6.0.1: resolution: {integrity: sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==} dependencies: