Skip to content

chore: remove framework adapters#703

Open
hrishikesh-k wants to merge 14 commits into
mainfrom
hk/split-adapters
Open

chore: remove framework adapters#703
hrishikesh-k wants to merge 14 commits into
mainfrom
hk/split-adapters

Conversation

@hrishikesh-k

@hrishikesh-k hrishikesh-k commented Jun 1, 2026

Copy link
Copy Markdown

context: https://netlify.slack.com/archives/C01TKAEBP3Q/p1780300800170089

notable changes apart from deleting the packages and updating the readme:

  • moved jsdom from identity's package.json to root package.json because with the other packages removed, jsdom was only required by identity. So npm was installing it in node_modules of identity and when running tests, vitest was trying to resolve it in root node_modules causing the tests to fail. previously, because multiple packages required jsdom, npm installed it to root node_modules, which wasn't the case anymore.
  • added typescript overrides for v5. I ended up deleting the lockfile after the jsdom change, just to get on a clean slate. That resulted in typescript 6 being installed because of typescript-eslint. tsup currrently doesn't support it: DTS Build error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. egoist/tsup#1388, so pinning to 5 was the best step.
  • also, downgrade jsdom to v26. the other packges were using 26 anyways, and upgrading to 28 started an issue with html-encoding-sniffer which causes esm issues.

@hrishikesh-k hrishikesh-k requested review from a team as code owners June 1, 2026 18:12
@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Reorders root workspaces and adds a root-level TypeScript override; updates release-please workflow and README package table. Removes numerous nuxt-module and vite-plugin(-tanstack-start) playgrounds, fixtures, docs, and CI workflow files. Applies targeted runtime/test/typing changes across packages (functions registry event emissions, process/env helpers, WebSocket assignment, test typing, devDependencies, and small typing cleanups).

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • netlify/primitives#693: Updates to e2e test infrastructure that overlaps removed fixtures and tests.
  • netlify/primitives#648: Changes around the identity package and workspace wiring that relate to workspaces/package ordering.

Suggested reviewers

  • eduardoboucas
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: remove framework adapters' clearly and concisely summarizes the primary change: removing framework adapter packages from the repository.
Description check ✅ Passed The description is directly related to the changeset, providing context about package removals, notable dependency changes (jsdom hoisting, TypeScript pinning), and a reference link explaining the rationale.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hk/split-adapters

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Around line 5-28: The release-please package map in release-please-config.json
is out of sync with package.json workspaces: remove entries for the deleted
packages (e.g., packages/nuxt-module, packages/vite-plugin,
packages/vite-plugin-tanstack-start) or update their paths to match current
workspaces so release automation no longer targets non-existent paths; open
release-please-config.json, locate the package map section and delete or update
the corresponding keys to match the packages listed in package.json's
"workspaces" (ensure names and paths exactly match).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c0632934-3afe-4826-853d-f5a83979c725

📥 Commits

Reviewing files that changed from the base of the PR and between f1238cd and 0eb8493.

⛔ Files ignored due to path filters (8)
  • package-lock.json is excluded by !**/package-lock.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/android-chrome-192x192.png is excluded by !**/*.png
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/android-chrome-512x512.png is excluded by !**/*.png
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/apple-touch-icon.png is excluded by !**/*.png
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/favicon-16x16.png is excluded by !**/*.png
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/favicon-32x32.png is excluded by !**/*.png
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/favicon.ico is excluded by !**/*.ico
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/favicon.png is excluded by !**/*.png
📒 Files selected for processing (92)
  • package.json
  • packages/nuxt-module/.gitignore
  • packages/nuxt-module/CHANGELOG.md
  • packages/nuxt-module/README.md
  • packages/nuxt-module/eslint.config.mjs
  • packages/nuxt-module/nuxt.config.ts
  • packages/nuxt-module/package.json
  • packages/nuxt-module/playground/.gitignore
  • packages/nuxt-module/playground/netlify/edge-functions/geo.ts
  • packages/nuxt-module/playground/netlify/edge-functions/world-adder.ts
  • packages/nuxt-module/playground/netlify/functions/hello.ts
  • packages/nuxt-module/playground/nuxt.config.ts
  • packages/nuxt-module/playground/package.json
  • packages/nuxt-module/playground/tsconfig.json
  • packages/nuxt-module/src/module.ts
  • packages/nuxt-module/test/basic.test.ts
  • packages/nuxt-module/test/fixtures/basic/.gitignore
  • packages/nuxt-module/test/fixtures/basic/app.vue
  • packages/nuxt-module/test/fixtures/basic/nuxt.config.ts
  • packages/nuxt-module/test/fixtures/basic/package.json
  • packages/nuxt-module/test/fixtures/with-functions/.gitignore
  • packages/nuxt-module/test/fixtures/with-functions/app.vue
  • packages/nuxt-module/test/fixtures/with-functions/netlify/edge-functions/geo.ts
  • packages/nuxt-module/test/fixtures/with-functions/netlify/edge-functions/world-adder.ts
  • packages/nuxt-module/test/fixtures/with-functions/netlify/functions/hello.ts
  • packages/nuxt-module/test/fixtures/with-functions/nuxt.config.ts
  • packages/nuxt-module/test/fixtures/with-functions/package.json
  • packages/nuxt-module/test/functions.test.ts
  • packages/nuxt-module/tsconfig.json
  • packages/vite-plugin-tanstack-start/.gitignore
  • packages/vite-plugin-tanstack-start/CHANGELOG.md
  • packages/vite-plugin-tanstack-start/README.md
  • packages/vite-plugin-tanstack-start/package.json
  • packages/vite-plugin-tanstack-start/src/main.ts
  • packages/vite-plugin-tanstack-start/test/e2e/build.test.ts
  • packages/vite-plugin-tanstack-start/test/e2e/dev.test.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/.gitignore
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/.prettierignore
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/README.md
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/netlify.toml
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/package.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/site.webmanifest
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/Counter.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/DefaultCatchBoundary.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/NotFound.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/PostError.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/UserError.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routeTree.gen.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/router.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/__root.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout/_nested-layout.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout/_nested-layout/route-a.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout/_nested-layout/route-b.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/api/users.$userId.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/api/users.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/customScript[.]js.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/deferred.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/index.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts.$postId.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts.index.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts_.$postId.deep.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/redirect.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/rsc-basic.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/rsc-composite.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/users.$userId.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/users.index.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/users.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/styles/app.css
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/loggingMiddleware.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/posts.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/rsc.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/seo.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/users.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/tsconfig.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/vite.config.ts
  • packages/vite-plugin-tanstack-start/test/support/netlify-deploy.ts
  • packages/vite-plugin-tanstack-start/tsconfig.json
  • packages/vite-plugin-tanstack-start/tsup.config.ts
  • packages/vite-plugin-tanstack-start/vitest.config.ts
  • packages/vite-plugin/.gitignore
  • packages/vite-plugin/CHANGELOG.md
  • packages/vite-plugin/README.md
  • packages/vite-plugin/package.json
  • packages/vite-plugin/src/lib/build.ts
  • packages/vite-plugin/src/lib/logger.ts
  • packages/vite-plugin/src/main.test.ts
  • packages/vite-plugin/src/main.ts
  • packages/vite-plugin/tsconfig.json
  • packages/vite-plugin/tsup.config.ts
  • packages/vite-plugin/vitest.config.ts
💤 Files with no reviewable changes (91)
  • packages/vite-plugin-tanstack-start/.gitignore
  • packages/vite-plugin/README.md
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/styles/app.css
  • packages/nuxt-module/test/fixtures/with-functions/netlify/functions/hello.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout/_nested-layout/route-b.tsx
  • packages/vite-plugin/tsup.config.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/redirect.tsx
  • packages/nuxt-module/test/fixtures/with-functions/.gitignore
  • packages/vite-plugin-tanstack-start/src/main.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout.tsx
  • packages/vite-plugin-tanstack-start/tsconfig.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/tsconfig.json
  • packages/nuxt-module/CHANGELOG.md
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout/_nested-layout.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/rsc.tsx
  • packages/nuxt-module/playground/package.json
  • packages/vite-plugin-tanstack-start/vitest.config.ts
  • packages/nuxt-module/playground/netlify/edge-functions/geo.ts
  • packages/nuxt-module/test/fixtures/basic/.gitignore
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/README.md
  • packages/vite-plugin-tanstack-start/tsup.config.ts
  • packages/nuxt-module/playground/netlify/functions/hello.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/customScript[.]js.ts
  • packages/nuxt-module/test/fixtures/with-functions/app.vue
  • packages/vite-plugin/src/main.test.ts
  • packages/nuxt-module/playground/nuxt.config.ts
  • packages/vite-plugin/.gitignore
  • packages/vite-plugin/package.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/seo.ts
  • packages/vite-plugin/CHANGELOG.md
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/Counter.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts.index.tsx
  • packages/vite-plugin/vitest.config.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/_pathlessLayout/_nested-layout/route-a.tsx
  • packages/nuxt-module/tsconfig.json
  • packages/nuxt-module/test/fixtures/with-functions/netlify/edge-functions/world-adder.ts
  • packages/vite-plugin-tanstack-start/README.md
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/__root.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/PostError.tsx
  • packages/nuxt-module/test/fixtures/with-functions/package.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/vite.config.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/UserError.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/deferred.tsx
  • packages/nuxt-module/src/module.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts.$postId.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/router.tsx
  • packages/nuxt-module/test/fixtures/basic/app.vue
  • packages/vite-plugin/src/lib/build.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/posts.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/.gitignore
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/NotFound.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/api/users.$userId.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/public/site.webmanifest
  • packages/vite-plugin-tanstack-start/package.json
  • packages/nuxt-module/eslint.config.mjs
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/users.tsx
  • packages/vite-plugin-tanstack-start/CHANGELOG.md
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/utils/loggingMiddleware.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/users.$userId.tsx
  • packages/nuxt-module/test/basic.test.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/rsc-composite.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routeTree.gen.ts
  • packages/nuxt-module/README.md
  • packages/nuxt-module/test/functions.test.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/.prettierignore
  • packages/nuxt-module/playground/.gitignore
  • packages/nuxt-module/test/fixtures/basic/nuxt.config.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/index.tsx
  • packages/vite-plugin/src/main.ts
  • packages/nuxt-module/test/fixtures/with-functions/nuxt.config.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/package.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/rsc-basic.tsx
  • packages/vite-plugin-tanstack-start/test/e2e/dev.test.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/users.tsx
  • packages/vite-plugin/tsconfig.json
  • packages/nuxt-module/playground/netlify/edge-functions/world-adder.ts
  • packages/nuxt-module/test/fixtures/basic/package.json
  • packages/nuxt-module/.gitignore
  • packages/nuxt-module/playground/tsconfig.json
  • packages/vite-plugin-tanstack-start/test/e2e/build.test.ts
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/users.index.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts_.$postId.deep.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/components/DefaultCatchBoundary.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/api/users.ts
  • packages/vite-plugin-tanstack-start/test/support/netlify-deploy.ts
  • packages/vite-plugin/src/lib/logger.ts
  • packages/nuxt-module/test/fixtures/with-functions/netlify/edge-functions/geo.ts
  • packages/nuxt-module/nuxt.config.ts
  • packages/nuxt-module/package.json
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/src/routes/posts.tsx
  • packages/vite-plugin-tanstack-start/test/fixtures/start-basic-rc/netlify.toml

Comment thread package.json

@coderabbitai coderabbitai 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
release-please-config.json (1)

8-41: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Retire the publish workflow with these package removals.

Dropping packages/vite-plugin and packages/vite-plugin-tanstack-start from release-please-config.json stops release-please from creating their --release_created outputs, but .github/workflows/release-please.yaml:254-275 still has workflow_dispatch branches that publish both packages unconditionally. That leaves a manual path to ship adapters this PR is trying to retire. Please remove or explicitly disable those publish steps in the same change.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@release-please-config.json` around lines 8 - 41, The release config removed
packages/vite-plugin and packages/vite-plugin-tanstack-start, but the release
workflow still contains unconditional publish steps for those adapters; update
the workflow_dispatch publish branches (the workflow job(s) that run the
"publish" or "dispatch" steps for vite-plugin and vite-plugin-tanstack-start) to
either remove those publish steps or explicitly disable them (e.g., gate by a
conditional or remove the job/step) so release-please can no longer be triggered
manually to publish those packages; locate the publish job names or step ids
referencing vite-plugin and vite-plugin-tanstack-start in the release workflow
and remove or wrap them with a false/disabled condition.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@release-please-config.json`:
- Around line 8-41: The release config removed packages/vite-plugin and
packages/vite-plugin-tanstack-start, but the release workflow still contains
unconditional publish steps for those adapters; update the workflow_dispatch
publish branches (the workflow job(s) that run the "publish" or "dispatch" steps
for vite-plugin and vite-plugin-tanstack-start) to either remove those publish
steps or explicitly disable them (e.g., gate by a conditional or remove the
job/step) so release-please can no longer be triggered manually to publish those
packages; locate the publish job names or step ids referencing vite-plugin and
vite-plugin-tanstack-start in the release workflow and remove or wrap them with
a false/disabled condition.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7a9aca4d-e6e0-4e7e-a7b6-904e7a0b0307

📥 Commits

Reviewing files that changed from the base of the PR and between 0eb8493 and 8ef18ea.

📒 Files selected for processing (1)
  • release-please-config.json

@hrishikesh-k hrishikesh-k marked this pull request as draft June 2, 2026 16:57

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
README.md (1)

30-49: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix README formatting to satisfy Prettier check.

CI is currently failing on README.md formatting (Check formatting / format and 0_format.txt). Please run Prettier on this file and commit the result.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` around lines 30 - 49, The README.md table is failing the Prettier
formatting check; run Prettier (or your repo's format script) on README.md to
reformat the package listing table (including rows like `@netlify/database`,
`@netlify/edge-functions`, `@netlify/identity`) so it matches project formatting
rules, then commit the updated README to satisfy the "Check formatting / format"
CI job.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 36: Replace the HTML comment placeholders ("<!-- TODO description -->")
in the packages table with concrete package descriptions for each listed package
(e.g., replace the placeholder for `@netlify/database` and the other package rows
referenced) so the README presents real, user-facing summaries; update the cell
content for the packages table entries (the second column) to short, clear
descriptions that match the package names (e.g., `@netlify/database` → "Netlify
database client for local and remote data storage") and do the same for the rows
at the other referenced positions.

---

Outside diff comments:
In `@README.md`:
- Around line 30-49: The README.md table is failing the Prettier formatting
check; run Prettier (or your repo's format script) on README.md to reformat the
package listing table (including rows like `@netlify/database`,
`@netlify/edge-functions`, `@netlify/identity`) so it matches project formatting
rules, then commit the updated README to satisfy the "Check formatting / format"
CI job.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bc72b2d8-226d-4e0a-8525-87949ed2034e

📥 Commits

Reviewing files that changed from the base of the PR and between 8ef18ea and 49f7bba.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md Outdated
@hrishikesh-k hrishikesh-k marked this pull request as ready for review June 2, 2026 19:29

@coderabbitai coderabbitai 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/dev/src/lib/env.ts (1)

60-66: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Keep the defensive defaults on these exported helpers.

Removing these defaults turns previously harmless omissions into runtime TypeErrors for JS/untyped callers (Object.entries(variables) and envelopeItems.filter(...)). Restoring the fallbacks preserves the old runtime behavior without changing the TypeScript contract.

Suggested patch
 export const injectEnvVariables = async ({
   accountSlug,
-  baseVariables,
+  baseVariables = {},
   envAPI,
   netlifyAPI,
   siteID,
 }: InjectEnvironmentVariablesOptions) => {
@@
 export const formatEnvelopeData = ({
   context = 'dev',
-  envelopeItems,
+  envelopeItems = [],
   scope = 'any',
   source,
 }: {

Also applies to: 263-270

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/dev/src/lib/env.ts` around lines 60 - 66, The exported helper
injectEnvVariables (and the other exported helper that operates on
envelopeItems) removed defensive defaults which causes runtime TypeErrors for
untyped callers; restore safe defaults by updating function parameter
defaults—e.g. in injectEnvVariables set baseVariables = {} and any optional API
params (envAPI, netlifyAPI) to {} (and siteID to '' if applicable), and in the
other helper set variables = {} or envelopeItems = [] as needed—so calls to
Object.entries(variables) and envelopeItems.filter(...) are safe for JS/untyped
callers while keeping the TypeScript signatures unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@packages/dev/src/lib/env.ts`:
- Around line 60-66: The exported helper injectEnvVariables (and the other
exported helper that operates on envelopeItems) removed defensive defaults which
causes runtime TypeErrors for untyped callers; restore safe defaults by updating
function parameter defaults—e.g. in injectEnvVariables set baseVariables = {}
and any optional API params (envAPI, netlifyAPI) to {} (and siteID to '' if
applicable), and in the other helper set variables = {} or envelopeItems = [] as
needed—so calls to Object.entries(variables) and envelopeItems.filter(...) are
safe for JS/untyped callers while keeping the TypeScript signatures unchanged.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 65095cc9-32e3-4822-a708-ebabd6c4dd4e

📥 Commits

Reviewing files that changed from the base of the PR and between 49f7bba and 86e72f5.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (13)
  • .github/workflows/nuxt-module.yaml
  • README.md
  • package.json
  • packages/database/prod/src/main.test.ts
  • packages/database/prod/src/main.ts
  • packages/dev-utils/src/lib/process.ts
  • packages/dev/src/lib/env.ts
  • packages/functions/dev/src/registry.ts
  • packages/functions/dev/src/runtimes/nodejs/builder.ts
  • packages/functions/dev/src/runtimes/nodejs/config.ts
  • packages/functions/prod/src/lib/system_logger.test.ts
  • packages/identity/prod/package.json
  • packages/otel/src/exporters/netlify.ts
💤 Files with no reviewable changes (2)
  • packages/identity/prod/package.json
  • .github/workflows/nuxt-module.yaml
✅ Files skipped from review due to trivial changes (4)
  • packages/otel/src/exporters/netlify.ts
  • packages/functions/prod/src/lib/system_logger.test.ts
  • packages/database/prod/src/main.test.ts
  • packages/database/prod/src/main.ts

@serhalp serhalp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, other than the package.json#workspaces issue!

Comment thread package.json
Comment thread packages/dev/src/lib/env.ts
Comment thread package.json
@hrishikesh-k hrishikesh-k requested a review from serhalp June 15, 2026 17:06
@serhalp serhalp removed the request for review from a team June 15, 2026 21:08

@serhalp serhalp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. but let's make sure the framework-adapters repo is fully configured and confirmed to be able to publish the packages before merging this one.

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