Skip to content

Update dependency groups across the monorepo#7840

Draft
Copilot wants to merge 7 commits into
mainfrom
copilot/update-dependencies
Draft

Update dependency groups across the monorepo#7840
Copilot wants to merge 7 commits into
mainfrom
copilot/update-dependencies

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

Changelog

New

  • Added a changeset for @primer/mcp to cover the published dependency refresh.

Changed

  • Dependency refresh by logical group

    • Updated @primer/doc-gen and @primer/mcp dependencies to current releases.
    • Updated private support packages: postcss-preset-primer and rollup-plugin-import-css.
    • Updated root tooling versions used across the workspace.
    • Updated @primer/react and @primer/styled-react dependency sets, keeping React/Vite on the compatible track where newer majors broke builds/types.
    • Updated example app dependencies (codesandbox, nextjs, theming) to current compatible versions.
  • Required compatibility fixes for upgraded packages

    • Switched MCP sampling requests to the current SDK shape (temperature instead of nested sampling).
    • Added PostCSS plugin casts in Storybook configs to avoid cross-package PostCSS type conflicts after dependency bumps.
    • Tightened a nullable markdown lint error guard in components-json generation.
    • Adjusted styled-react theme provider children typing to match the installed React/styled-components type graph.
    • Updated PostCSS snapshots where newer plugin versions changed CSS property ordering.
    • Added react-is to styled-components-based examples so Vite production builds resolve correctly.
  • Small follow-up cleanup

    • Fixed generated Next.js next-env.d.ts import formatting to satisfy repo lint rules.
    • Marked the Token resize prop type test as an expected error to match the component’s supported prop surface.

Removed

  • None.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Review by dependency group / commit. Most of the code changes are compatibility shims required to keep the upgraded packages buildable and type-safe.

Example of the MCP SDK adjustment:

await server.server.createMessage({
  messages: [
    {
      role: 'user',
      content: {type: 'text', text: prompt},
    },
  ],
  temperature: 0.4,
  maxTokens: 500,
})

Merge checklist

Original prompt

help me update the dependencies on this project. Go through each logical group and updated it to the latest version, create a commit for each one.

Created from Copilot CLI via the copilot delegate command.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 14, 2026

🦋 Changeset detected

Latest commit: 72df779

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/mcp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI and others added 6 commits May 14, 2026 21:48
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Co-authored-by: joshblack <3901764+joshblack@users.noreply.github.com>
Copilot AI changed the title [WIP] Update dependencies to latest versions Update dependency groups across the monorepo May 14, 2026
Copilot AI requested a review from joshblack May 14, 2026 22:25
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.

2 participants