Skip to content

refactor: remove dead vite config stubs and fix stale comments#10026

Merged
jackkav merged 5 commits into
developfrom
pr/disable-node-integration-followup
Jun 4, 2026
Merged

refactor: remove dead vite config stubs and fix stale comments#10026
jackkav merged 5 commits into
developfrom
pr/disable-node-integration-followup

Conversation

@jackkav
Copy link
Copy Markdown
Contributor

@jackkav jackkav commented Jun 4, 2026

Summary

  • Remove @apidevtools/swagger-parser and mocha from externalDependencies — both are only imported in the main process, never in the renderer
  • Update stale comment claiming nodeIntegration: true is still being used
  • Remove misleading insomnia-testing example from SSR conditions comment
  • Remove main and types fields from insomnia-testing/package.json pointing to non-existent src/index.ts

Why

These are leftover from the nodeIntegration=false transition in PR #9996. The config is now dead code that misleads future maintainers.

Testing

  • npm run type-check -w insomnia
  • npm run type-check -w insomnia-testing

- Remove @apidevtools/swagger-parser and mocha from externalDependencies since both
  are only used in the main process (importers and IPC handler), never in the renderer
- Update stale comment claiming nodeIntegration: true is still used
- Remove misleading insomnia-testing example from SSR conditions comment
- Remove main/types fields from insomnia-testing package.json since they point to
  a non-existent src/index.ts; all consumers use explicit deep path imports
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

✅ Circular References Report

Generated at: 2026-06-04T09:33:51.947Z
Status: ✅ NO CHANGE

Summary

Metric Base (develop) PR Change
Total Circular References 8 8 0 (0.00%)
Click to view all circular references in PR (8)
insomnia-inso/src/db/models/types.ts -> insomnia-inso/src/db/types.ts
insomnia/src/network/network.ts -> insomnia-scripting-environment/src/objects/index.ts -> insomnia-scripting-environment/src/objects/collection.ts -> insomnia-scripting-environment/src/objects/response.ts
insomnia/src/network/network.ts -> insomnia-scripting-environment/src/objects/index.ts -> insomnia-scripting-environment/src/objects/insomnia.ts -> insomnia-scripting-environment/src/objects/interfaces.ts
insomnia/src/network/network.ts -> insomnia/src/common/render.ts
insomnia/src/ui/components/settings/import-export.tsx -> insomnia/src/ui/components/modals/export-requests-modal.tsx
insomnia/src/ui/components/tabs/tab-list.tsx -> insomnia/src/ui/components/tabs/tab.tsx
insomnia/src/ui/components/templating/tag-editor-arg-sub-form.tsx -> insomnia/src/ui/components/templating/external-vault/external-vault-form.tsx
insomnia/src/ui/components/viewers/response-viewer.tsx -> insomnia/src/ui/components/viewers/response-multipart-viewer.tsx
Click to view all circular references in base branch (8)
insomnia-inso/src/db/models/types.ts -> insomnia-inso/src/db/types.ts
insomnia/src/network/network.ts -> insomnia-scripting-environment/src/objects/index.ts -> insomnia-scripting-environment/src/objects/collection.ts -> insomnia-scripting-environment/src/objects/response.ts
insomnia/src/network/network.ts -> insomnia-scripting-environment/src/objects/index.ts -> insomnia-scripting-environment/src/objects/insomnia.ts -> insomnia-scripting-environment/src/objects/interfaces.ts
insomnia/src/network/network.ts -> insomnia/src/common/render.ts
insomnia/src/ui/components/settings/import-export.tsx -> insomnia/src/ui/components/modals/export-requests-modal.tsx
insomnia/src/ui/components/tabs/tab-list.tsx -> insomnia/src/ui/components/tabs/tab.tsx
insomnia/src/ui/components/templating/tag-editor-arg-sub-form.tsx -> insomnia/src/ui/components/templating/external-vault/external-vault-form.tsx
insomnia/src/ui/components/viewers/response-viewer.tsx -> insomnia/src/ui/components/viewers/response-multipart-viewer.tsx

Analysis

No Change: This PR does not introduce or remove any circular references.


This report was generated automatically by comparing against the develop branch.

jackkav added 3 commits June 4, 2026 09:26
…omments

- Remove assert/node:assert aliases — no renderer consumer (jshint, isomorphic-git, events, tough-cookie) requires 'assert'
- Condense polyfill comments to show only the evidence (which library needs it)
- Update util comment from tough-cookie (moved to main process) to jshint (actual renderer consumer)
@jackkav jackkav enabled auto-merge (squash) June 4, 2026 09:29
@jackkav jackkav merged commit 54a23e3 into develop Jun 4, 2026
21 checks passed
@jackkav jackkav deleted the pr/disable-node-integration-followup branch June 4, 2026 09:35
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