Skip to content

Remove deprecated Docusaurus config and update browserslist#794

Open
Juminstock wants to merge 3 commits into
mainfrom
fix/update-configs
Open

Remove deprecated Docusaurus config and update browserslist#794
Juminstock wants to merge 3 commits into
mainfrom
fix/update-configs

Conversation

@Juminstock

Copy link
Copy Markdown
Contributor

Summary

Applies three housekeeping changes flagged as warnings by Docusaurus 3.10.1. This PR is intended to land after #793.

Changes

  • Migrated onBrokenMarkdownLinks from the deprecated top-level field to the new siteConfig.markdown.hooks.onBrokenMarkdownLinks API introduced in Docusaurus 3.10
  • Removed babel.config.js — Docusaurus 3.10.1 uses SWC as the default bundler, making the Babel preset file redundant
  • Updated caniuse-lite from 1.0.30001726 to 1.0.30001793 to clear the stale browserslist data warning

Dependency

Requires #793 (Docusaurus 3.10.1 upgrade) to be merged before this PR, since markdown.hooks is not available in 3.8.1.

@Juminstock Juminstock self-assigned this Jun 4, 2026
@Juminstock Juminstock added the documentation Improvements or additions to documentation label Jun 4, 2026
@ipapandinas

Copy link
Copy Markdown
Contributor

@Juminstock The build_and_preview check is failing with an explicit error. Please fix it and try on local with yarn build.

Migrates onBrokenMarkdownLinks to the new markdown.hooks API (Docusaurus
3.10+), removes the now-redundant babel.config.js since SWC is the default
bundler, and refreshes caniuse-lite to the latest browserslist data.

Requires #793 to be merged first.
Replace short-form range qualifiers (e.g. picomatch@^2) with the exact
descriptors present in yarn.lock so Yarn 4 actually applies the overrides.
Also force uuid@^8.3.2 to ^11.1.1 to close the remaining alert.

Closes Dependabot alerts: brace-expansion, minimatch, picomatch (v2+v4),
ajv (v6+v8), js-yaml (v3+v4), uuid.
Covers alert #137 (brace-expansion < 1.1.13). The previous commit only
fixed the v2 range; v1 (^1.1.7 → 1.1.12) was still vulnerable.
@Juminstock Juminstock force-pushed the fix/update-configs branch from 9dbeba4 to f6fcbff Compare June 5, 2026 15:22
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit f6fcbff):

https://astar-docs--pr794-fix-update-configs-vgnft7qd.web.app

(expires Fri, 12 Jun 2026 15:23:40 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f2f13e9b593d211faae6343d67a88fac3fd7268d

@ipapandinas ipapandinas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to bump deps in a follow-up PR, resolutions is not the ideal implementation choice for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants