Skip to content

chore: bump dependencies with Relay 20 support#34

Merged
XiNiHa merged 1 commit into
mainfrom
bump-deps
Jun 17, 2025
Merged

chore: bump dependencies with Relay 20 support#34
XiNiHa merged 1 commit into
mainfrom
bump-deps

Conversation

@XiNiHa

@XiNiHa XiNiHa commented Jun 17, 2025

Copy link
Copy Markdown
Owner

No description provided.

@changeset-bot

changeset-bot Bot commented Jun 17, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 80efcfb

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

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

@gemini-code-assist gemini-code-assist Bot 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.

Summary of Changes

Hello @XiNiHa, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the project's dependencies to ensure full compatibility with Relay 20. It involves adjusting peer dependencies, bumping direct dependencies in the example project to the new major version of Relay, and performing general dependency updates across the entire monorepo to keep all packages current.

Highlights

  • Relay 20 Compatibility: The core solid-relay package's peerDependencies have been updated to explicitly support relay-runtime version 20, alongside existing support for versions 18.1.0 and 19.
  • Dependency Bumps (Relay Ecosystem): The example project's dependencies and devDependencies have been updated to use relay-runtime@^20.0.0 and relay-compiler@^20.0.0, ensuring the example is compatible with the latest major Relay version.
  • General Dependency Updates: Numerous other dependencies across the main package, documentation site, and example project have been bumped to their latest compatible versions, including @types/node, @vitest/*, happy-dom, vinxi, and various font packages.
  • Changeset Entry: A new changeset file (.changeset/giant-falcons-repair.md) has been added, indicating a patch release for solid-relay to document the explicit compatibility with Relay 20.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 17, 2025

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
solid-relay 80efcfb Commit Preview URL Jun 17 2025, 07:06 AM

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request primarily focuses on updating dependencies across the project to introduce support for Relay 20. Key packages like relay-runtime and relay-compiler have been bumped to their respective version 20 releases. The peer dependency for relay-runtime has also been correctly updated.

My main review point, flagged with high severity in both the root package.json and the example/package.json, concerns the version of @types/relay-runtime. It has been updated to ^19.0.2, while relay-runtime itself is now ^20.0.0. This mismatch could lead to type inconsistencies if Relay 20 has breaking API changes not reflected in the v19 type definitions. Verifying this compatibility or updating to a v20 type definition, if available, is recommended to ensure type safety.

Comment thread example/package.json
},
"devDependencies": {
"@types/relay-runtime": "^19.0.1",
"@types/relay-runtime": "^19.0.2",

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.

high

The relay-runtime dependency has been updated to ^20.0.0 (line 16), but @types/relay-runtime is only updated to ^19.0.2. For a major version bump like Relay 20, there's a risk that the type definitions from v19 might not accurately reflect the API of v20. This could lead to incorrect type checking during development or runtime issues if there are breaking API changes in Relay 20 that are not covered by the older type definitions.

Please verify if @types/relay-runtime version 19.0.2 is indeed compatible with relay-runtime v20. If a newer version of the type definitions (e.g., specifically for Relay 20, like ^20.x.x) is available, it would be safer to use that. If a v20 type definition isn't available yet from DefinitelyTyped, this potential discrepancy should be investigated or carefully monitored.

Comment thread package.json
"@types/node": "^22.15.21",
"@types/relay-runtime": "^19.0.1",
"@types/node": "^24.0.3",
"@types/relay-runtime": "^19.0.2",

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.

high

Similar to the concern raised for example/package.json, the relay-runtime devDependency has been updated to ^20.0.0 (line 65), while the corresponding @types/relay-runtime remains at ^19.0.2. This major version difference between the library and its type definitions can lead to type mismatches, especially if Relay 20 introduced breaking API changes.

It's crucial to ensure type compatibility for robust development and testing. Please check if @types/relay-runtime@^19.0.2 accurately reflects the relay-runtime@^20.0.0 API. If a more up-to-date type definition for Relay 20 is available, it should be preferred.

@pkg-pr-new

pkg-pr-new Bot commented Jun 17, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/XiNiHa/solid-relay@34

commit: 80efcfb

@codecov

codecov Bot commented Jun 17, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.93%. Comparing base (66d6a1c) to head (80efcfb).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage   27.93%   27.93%           
=======================================
  Files          21       21           
  Lines        1414     1414           
  Branches       73       73           
=======================================
  Hits          395      395           
  Misses       1019     1019           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@XiNiHa XiNiHa merged commit 0bd2f0b into main Jun 17, 2025
5 checks passed
@XiNiHa XiNiHa deleted the bump-deps branch June 17, 2025 07:06
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