Skip to content

chore: update dependencies#790

Merged
brunozoric merged 39 commits into
masterfrom
bruno/chore/update-dependencies-2026-05-27
May 27, 2026
Merged

chore: update dependencies#790
brunozoric merged 39 commits into
masterfrom
bruno/chore/update-dependencies-2026-05-27

Conversation

@brunozoric
Copy link
Copy Markdown
Contributor

@brunozoric brunozoric commented May 27, 2026

Summary

Modernize project dependencies while preserving CommonJS compatibility. This is a broad update covering 35+ packages across the stack — runtime deps, dev tooling, and build infrastructure.

Highlights

  • Tooling overhaul: Replaced ESLint + Prettier with oxlint + oxfmt; removed all eslint-related packages
  • TypeScript upgrade: Added TypeScript v5 as a direct dependency with a typecheck script; upgraded ts-morph to v28
  • Build & runtime deps: Updated Next.js, React 18.3, Tailwind CSS 3.4, PostCSS plugins, chokidar v5, rimraf v6, and many others
  • UI libraries: Updated @headlessui/react to v2, @heroicons/react to v2, @reach packages to v0.18
  • Search: Updated @docsearch/react to v4
  • Babel: Pinned all @babel packages to v7.29.7
  • Removed unused packages: node-gyp, load-json-file, write-json-file, @types/react resolution override
  • Yarn: Upgraded packageManager from yarn 3.2.0 to 4.15.0
  • Minor bumps: debounce 1.2 → 2.2, clsx v2, clean-css v5, fs-extra v11, minimatch v10, concurrently v9, jest v30, and more

CJS-constrained packages (not updated)

These packages are already at their latest CommonJS-compatible version. Their next major versions are ESM-only:

Package Staying at ESM-only from
@mdx-js/mdx 1.6.22 v2
@mdx-js/react 1.6.22 v2
@sindresorhus/slugify 1.1.2 v2
chalk 4.1.2 v5
execa 5.1.1 v6
globby 11.1.0 v12
inquirer 8.2.7 v9
p-map 4.0.0 v5
p-retry 4.6.2 v5
redent 3.0.0 v4
tailwindcss 3.4.19 v4
unist-util-visit 2.0.3 v4

Breaking change migrations

  • @headlessui/react v2: Migrated Dialog.Overlay to DialogBackdrop
  • @svgr/webpack v8: Updated SVGO config format
  • LayoutProcessor test: Rewritten to use proper MdxFile interface

Test plan

  • yarn build completes without errors
  • yarn typecheck passes
  • yarn lint passes with oxlint
  • yarn test passes (jest v30)
  • yarn validate:mdx passes
  • Verify docs site renders correctly in dev (yarn dev)
  • Verify search works with @docsearch/react v4
  • Verify @headlessui/react v2 Dialog components render correctly

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-webiny-com Ready Ready Preview, Comment May 27, 2026 12:17pm

Request Review

brunozoric and others added 4 commits May 27, 2026 09:53
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update jest to v30, @types/jest to v30, jsdom to v29, and pin
@types/react and @types/react-dom to ^18. React kept at 18.2.0 to
match @webiny packages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update @webiny/react-composition, @webiny/react-properties, and
@webiny/utils to v6.3.0. Bump React to 18.3.1 and restore
@types/react and @types/react-dom version ranges.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric and others added 2 commits May 27, 2026 10:34
Update yargs() call in generateDocs.js to match v18 API which
requires invoking yargs as a function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
These packages are currently unused in source but kept as
dependencies.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric and others added 2 commits May 27, 2026 10:44
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…each packages to v0.18

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric and others added 2 commits May 27, 2026 12:27
No longer needed now that @webiny packages use compatible React types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dialog.Overlay was removed in v2; replaced with the standalone
DialogBackdrop component in Header.js and MobileDrawer.js.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric and others added 12 commits May 27, 2026 12:44
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SVGO v3 (bundled with @svgr/webpack v8) requires plugins to be an
array of objects instead of an object.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brunozoric brunozoric self-assigned this May 27, 2026
brunozoric and others added 4 commits May 27, 2026 13:18
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric and others added 7 commits May 27, 2026 13:19
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove prettier, eslint, and all eslint plugins (11 packages)
- Add oxlint for linting
- Update oxfmt ignore patterns for this repo
- Update lint/lint:fix scripts to use oxlint

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Also hoist rimraf require to top level in generateDocs.js.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add `yarn typecheck` script that checks scripts/, generator/, and
  docs/ directories
- Upgrade TypeScript from v4 to v5.9 to support zod v4 .d.cts files
- Add scripts/tsconfig.json for type-checking scripts
- Add skipLibCheck to base tsconfig
- Fix minimatch import in validate-mdx-pairing.ts (named export in v10)
- Fix LinkValidator constructor args in AppConfig.ts
- Widen RemarkPlugin type in MdxCompiler.ts for TS5 compat

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace unsafe `as any` cast with a proper test that creates a
concrete MdxFile subclass and calls processMdx correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
brunozoric and others added 3 commits May 27, 2026 13:59
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add `yarn test` that runs tests across all workspaces via
`yarn workspaces foreach`. Fix LayoutProcessor test to call
processMdx with a proper MdxFile instead of the non-existent
process method.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brunozoric brunozoric merged commit 2a4c8db into master May 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant