Conversation
🦋 Changeset detectedLatest commit: 93160e6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughRemoved tsconfig skipLibCheck; added lru-cache devDependency and postinstall script change; removed global Reducer/Array reduce typings; added several vendor typing patches; introduced local federation link implementation under packages/import with multiple new modules; added scripts/fix-astrojs-typings.js. Changes
Sequence Diagram(s)sequenceDiagram
participant Consumer
participant Extractor as extractLinkImplementations
participant FederatedLink
participant LinkUrl as FederatedLinkUrl
participant LinkImport as FederatedLinkImport
Consumer->>Extractor: provide typeDefs (DocumentNode)
Extractor->>FederatedLink: FederatedLink.fromTypedefs(typeDefs)
FederatedLink->>LinkUrl: FederatedLinkUrl.fromUrl(...)
FederatedLink->>LinkImport: FederatedLinkImport.fromTypedefs(...)
Extractor-->>Consumer: return { links, resolveImportName, matchesImplementation }
Consumer->>Extractor: resolveImportName(identity, name)
Extractor-->>FederatedLink: lookup identity -> resolveImportName(name)
Consumer->>Extractor: matchesImplementation(identity, version)
Extractor-->>LinkUrl: supports(version) -> boolean
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@scripts/fix-astrojs-typings.js`:
- Around line 1-13: Wrap the file read/write logic in a try-catch (or check
existence with fs.existsSync) so the script does not crash when
`@astrojs/compiler` is missing: before calling readFileSync on filePath
(constructed via __dirname and join) verify the file exists or catch errors
around readFileSync/JSON.parse, log a helpful message and exit gracefully;
similarly wrap writeFileSync and ensure pkg.types is set on the parsed pkg
object before writing, and write JSON with a trailing newline (e.g.,
JSON.stringify(pkg, null, 2) + '\n') to filePath to ensure POSIX newline at EOF.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 20596fec-2830-47fb-aad2-ab3f327ff4f5
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (5)
package.jsonpackages/utils/src/declarations.d.tspatches/@types+mdx+2.0.13.patchpatches/lru-cache+10.4.3.patchscripts/fix-astrojs-typings.js
💤 Files with no reviewable changes (1)
- packages/utils/src/declarations.d.ts
✅ Files skipped from review due to trivial changes (1)
- package.json
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-tools/import |
7.1.12-alpha-20260306141335-93160e66c86b26eb95150a3fe8f5a823401eb925 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/graphql-file-loader |
8.1.12-alpha-20260306141335-93160e66c86b26eb95150a3fe8f5a823401eb925 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/node-require |
7.0.37-alpha-20260306141335-93160e66c86b26eb95150a3fe8f5a823401eb925 |
npm ↗︎ unpkg ↗︎ |
💻 Website PreviewThe latest changes are available as preview in: https://pr-8019.graphql-tools.pages.dev |
No description provided.