Repository navigation
chore(deps): migrate to @11ty/gray-matter - #12181
Conversation
@11ty/gray-matter@11ty/gray-matter
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: 0 B Total Size: 12 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
Size Change: 0 B Total Size: 12.4 MB ℹ️ View Unchanged
|
|
Hey, awesome! fwiw Eleventy does still support import { importFromString } from "import-module-string";
import * as matter from '@11ty/gray-matter';
matter(str, {
engines: {
js: function(code, filePath) {
return importFromString(`export default ${code.trimStart()}`, { filePath });
}
}
}); |
|
Thanks for the update To be honest I don't even know what's the use case for "javascript front matter", do you think anyone ever used that and it's safe to drop support for it in a major version? We already have a "parseFrontMatter" hook that you can eventually add to pre/post process front matter, it's probably solving the same use-case? |
|
@slorber oh, yeah to be clear I was just offering a compatibility path. I don’t personally think the |
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@docusaurus/core](https://github.com/facebook/docusaurus) ([source](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus)) | [`3.10.1` → `3.10.2`](https://renovatebot.com/diffs/npm/@docusaurus%2fcore/3.10.1/3.10.2) |  |  | | [@docusaurus/faster](https://github.com/facebook/docusaurus) ([source](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-faster)) | [`3.10.1` → `3.10.2`](https://renovatebot.com/diffs/npm/@docusaurus%2ffaster/3.10.1/3.10.2) |  |  | | [@docusaurus/module-type-aliases](https://github.com/facebook/docusaurus) ([source](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-module-type-aliases)) | [`3.10.1` → `3.10.2`](https://renovatebot.com/diffs/npm/@docusaurus%2fmodule-type-aliases/3.10.1/3.10.2) |  |  | | [@docusaurus/plugin-content-docs](https://github.com/facebook/docusaurus) ([source](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-content-docs)) | [`3.10.1` → `3.10.2`](https://renovatebot.com/diffs/npm/@docusaurus%2fplugin-content-docs/3.10.1/3.10.2) |  |  | | [@docusaurus/preset-classic](https://github.com/facebook/docusaurus) ([source](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic)) | [`3.10.1` → `3.10.2`](https://renovatebot.com/diffs/npm/@docusaurus%2fpreset-classic/3.10.1/3.10.2) |  |  | --- ### Release Notes <details> <summary>facebook/docusaurus (@​docusaurus/core)</summary> ### [`v3.10.2`](https://github.com/facebook/docusaurus/blob/HEAD/CHANGELOG.md#3102-2026-07-10) [Compare Source](meta/docusaurus@v3.10.1...v3.10.2) Backport and cherry-pick commits from main for v3.10.2 patch release: - [fix(bundler): do not import `@swc/html`, fix StackBlitz playground #​12055](meta/docusaurus#12055) - [fix(core): use locale url in site config #​12054](meta/docusaurus#12054) - [fix(theme-classic): remove redundant sidebar label titles #​11966](meta/docusaurus#11966) - [fix(mdx-loader): avoid transforming dotted directory links into asset… #​11944](meta/docusaurus#11944) - [fix(dev-server): for HTTPS, support non-RSA TLS certs #​12065](meta/docusaurus#12065) - [fix(utils): fix `extractLeadingEmoji()` edge cases #​12100](meta/docusaurus#12100) - [fix(gtag.js, faster): Fix StackBlitz, vendor `@types/gtag.js`, upgrade `@swc/html` #​12080](meta/docusaurus#12080) - [fix(create-docusaurus): init template README should use npm commands by default #​12138](meta/docusaurus#12138) - [fix(cli): `docusaurus serve` should pass `--host` to `server.listen()` #​12127](meta/docusaurus#12127) - [fix(core): bump detect-port to v2.1, fix pnpm `trustPolicy` downgrade issue #​12012](meta/docusaurus#12012) - [fix(i18n): complete Spanish translations for theme-common and theme-l… #​12180](meta/docusaurus#12180) - [chore(deps): migrate to `@11ty/gray-matter` #​12181](meta/docusaurus#12181) - [fix(core): fix BaseUrlIssueBanner little security issue #​12260](meta/docusaurus#12260) - [fix(core): accept boolean attributes in headTags config validation #​12238](meta/docusaurus#12238) - [fix(sitemap): don't drop lastmod for an epoch (0) timestamp #​12212](meta/docusaurus#12212) - [fix(utils): preserve author names containing commas in git log parsing #​12069](meta/docusaurus#12069) </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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 these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTEuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE5MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: Lunny Xiao <[email protected]> Reviewed-on: https://gitea.com/gitea/docs/pulls/466 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: Renovate Bot <[email protected]>
Motivation
Fix #12174
Migrate from unmaintained
gray-matterto@11ty/gray-matter, as suggested by @onyb here: #11719 (comment)Using v1 for now to be more conservative so that I can backport this in a patch release of Docusaurus v3
A follow-up PR upgrades to v2, which removes JavaScript front matter support (somewhat a breaking change?)
=> #12182
cc @zachleat thanks for the fork 👍
Test Plan
CI
Test links
https://deploy-preview-12181--docusaurus-2.netlify.app/