Commit Graph
88 Commits
Author SHA1 Message Date
Bingbing 4d0d23958d refactor: break render-network and import-v5 circular imports by extracting neutral modules 2026-09-15 14:14:39 +08:00
Bingbing b05886a584 refactor: break 4 circular dependencies (modals/viewers/templating)
- export-requests-modal no longer imports exportRequestsToFile from
  import-export; the modal takes an onExport prop and all three render
  sites (import-export, sidebar-workspace-dropdown, workspace-card-dropdown)
  pass exportRequestsToFile in, cutting modal -> import-export.
- VaultKeyDisplayInput extracted from vault-key-panel into
  settings/vault-key-display-input.tsx so input-vault-key-modal no longer
  imports vault-key-panel.
- ArgConfigFormProps moved from tag-editor-arg-sub-form into
  templating/arg-config-form-props.ts so external-vault-form no longer
  imports tag-editor-arg-sub-form.
- ResponseViewerProps moved into viewers/response-viewer-props.ts and
  ResponseMultipartViewer now receives the body viewer via a BodyViewer
  prop (passed by response-viewer), cutting multipart -> viewer.

insomnia cycles 85 -> 81; no new cycles in any package.
2026-09-15 14:14:29 +08:00
Bingbing 7f2f9098ca refactor: move git remote provider registry singleton into registry module to break provider cycles 2026-09-15 14:14:08 +08:00
Bingbing 54befeb9d6 refactor: break main-process circular imports (git-service/plugin-window/templating-worker-database) 2026-09-15 14:13:58 +08:00
Bingbing 7e8a74b656 refactor: break 8 route<->component circular dependencies via extracted loader hooks
Break the route<->component cycles without touching createFetcherSubmitHook or
use-request.ts, and without generated +types:

- The data-access hooks that descendants import are moved out of route entry files
  into neutral modules that own both the interface and the hook, so route files are
  no longer shared-hook modules:
  * ui/hooks/use-project-loader-data.ts (ProjectLoaderData + useProjectLoaderData)
  * ui/hooks/use-mock-route.ts (MockRouteLoaderData + useMockRouteLoaderData; patcher kept)
  Each route's clientLoader conforms to the interface via 'satisfies', so the type
  has a single source and cannot drift; consumers import the named hook.
- cycle route.update -> content-type-dropdown -> use-request -> route.update is cut
  at the route->component edge by moving the pure updateMimeType/newBodyGraphQL
  helpers to ui/utils/request-mime-type.ts (use-request/createFetcherSubmitHook untouched).
- grpc: GrpcMessage/GrpcRequestState moved to ui/utils/grpc.ts.
- useWorkspaceLoaderData is left in place (route.workspace is not in any cycle).
2026-09-15 13:22:17 +08:00
Bingbing 6e75e85cb9 refactor: move RequestRow type to common/runner-feedback to break runner route cycles 2026-09-14 17:18:47 +08:00
Bingbing 35571b45fb refactor: move shared tab types and context-menu enum into insomnia-tab-context to break tab cycles 2026-09-14 17:18:47 +08:00
Bingbing 0cac52ca56 refactor: extract useRootLoaderData and RootLoaderData out of root.tsx into ui/hooks/use-root-loader-data 2026-09-14 17:18:23 +08:00
Bingbing d56e636883 Merge branch 'develop' into chore/cycle-reference-send-request
# Conflicts:
#	packages/insomnia/src/main/templating-worker-database.ts
#	packages/insomnia/src/plugins/context/network.ts
#	scripts/circular-references/known-violations.json
2026-09-14 15:47:51 +08:00
Bingbing f08d65b45e chore: replace madge circular-reference check with dependency-cruiser (#10468)
## Summary

- Replaces the madge-based `check-cycle-references` with a `dependency-cruiser`-based check, cruised once per npm workspace package.
- Keeps the checker, dependency-cruiser config, and known-cycle baseline together under `scripts/circular-references/`.
- Uses a committed baseline to grandfather existing cycles while failing on new cycles and stale baseline entries.
- Cleans the existing `insomnia-inso` type cycle by using `insomnia-data`'s `AllTypes` instead of importing the database container type.
- CI explicitly uses Bash for correct `tee`/pipeline failure propagation, safely handles skipped checks, and posts a PR report.
- Dropped `madge`/`.madgerc`, added `dependency-cruiser`.
2026-09-10 16:11:43 +08:00
Bingbing b4cee7cd50 refactor: decouple scripting environment imports 2026-09-08 15:51:43 +08:00
Bingbing 713d9881f8 update baseline 2026-09-07 18:13:13 +08:00
Bingbing 5ebb279261 fix: address circular reference review comments 2026-09-03 15:35:28 +08:00
Bingbing 2c22bdbb94 chore: replace madge circular-reference check with dependency-cruiser
The madge-based check-cycle-references never had a committed .madgerc,
so real CI silently resolved without tsconfig path aliases and only
ever saw 10 cycles instead of the ~200 that actually exist once `~/`
imports resolve correctly. Also replaces the base-branch-diff CI
mechanism (checkout base branch, compare cycle counts, never fails)
with a per-package dependency-cruiser cruise gated by a committed
baseline: existing cycles are grandfathered in, any genuinely new
cycle anywhere in the repo now fails CI.
2026-09-02 16:56:01 +08:00
Jack Kavanagh b5ecd5c261 Remove/changelog-stuff (#7036)
* cleanup

* lock
2024-01-31 13:22:06 +01:00
Filipe Freire 45caa9f768 fix: changelog image generator support for new version model 8.0.0 (#6562) 2023-09-26 13:19:57 +01:00
Jack Kavanagh ac0dd5e4b3 use engines config in order to support nix-shell (#5521)
* add shell.nix

* use engines

* fix engine range

* fix
2023-01-05 13:17:34 +00:00
Jack KavanaghandFilipe Freire 4f9027ad94 bump electron 21 (#5173)
* bump electron 20

* bump to 21

* use node 16.16

* remove and bump deps

* package.lock

* fix package lock

* try 21.0.0

* oops

* remove ts-node

* package locks

* fix redirect and eror handling

* remove console.log

* remove react 18 override

* fix import

* update react-virtual api

* bump node-libcurl and electron

* bump node-libcurl to 2.3.5-6

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-10-21 14:41:00 +00:00
Dimitri Mitropoulos 26fe408344 remove nunjucks templating in experimental plugin themes (#4933)
* remove nunjucks usage from core themes

* adds package downloader script

* adds runtime validation for plugins still using nunjucks

* generateThemeCSS no longer needs to be async

* removes Nunjucks as valid type
2022-07-07 13:19:17 +00:00
Dimitri Mitropoulos ed3aad6046 tsconfig cleanup (#4908) 2022-06-27 12:57:50 -04:00
Dimitri Mitropoulos fa02c76afa removes delinquent flowtype leftovers (#4792) 2022-05-18 14:07:17 -04:00
David Marby 53466fc182 Switch to esbuild-runner for running changelog-image to avoid needing tsimportlib (#4742) 2022-05-02 10:25:55 +00:00
David Marby a037a3b844 Fix incrementing npm package versions for pre-release revisions (#4741) 2022-05-02 12:06:52 +02:00
Jack Kavanagh 40af38c3b9 decouple curl options from renderer (#4687)
* move some operations to main

* move more options to main

* move cookies and multipart

* remove cert legacy migration

* move auth and aws helper

* move certs options to main

* remove libcurl usage from renderer and tidy

* extract oauth2 flow back to renderer

* add parse headers tests

* minimally type req

* organise libcurl-promise by req properties

* minimally type used settings

* tidy up debug timeline

* fix cookie bug

* tasty little parsing function refactor

* doh! trim

* tidy up set cookie method/self review

* extracted functions from set-cookie logic

* refactoring with tests

* formatting after rebase

* clarification of duplicate header support

* tighten up parse headers

* simplify aws signing

* fix app version imports
2022-04-20 22:02:32 +01:00
Dimitri Mitropoulos 213e1dd1c8 rename insomnia-app/app to insomnia/src (#4491) 2022-04-20 17:42:19 +00:00
David Marby 0c1afbe48d Add changelog-image generator (#4649) 2022-03-30 12:45:16 +00:00
Dimitri MitropoulosandOpender Singh 5f4c19da35 [TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00
Yash Shah 27184c4f2d fixes #2552:addded a (slightly) more verbose output in check-version.js (#2559)
* fixes #2552:
* updated version script to show more verbose errors in case of a mismatch node version

* added suggested changes
* No output is printed if the node version is aaccurate
* changed colours for the messages to make them more prominent
2020-08-27 03:01:29 +12:00
Opender Singh 2b74221549 Add preinstall step to check node version (#2507) 2020-08-13 09:12:31 +12:00
Gregory Schier 549ce23ce8 Merge All Repositories into Monorepo for easier maintenance (#629)
* All projects into monorepo

* Update CI

* More CI updates

* Extracted a bunch of things into packages

* Publish

 - insomnia-plugin-base64@1.0.1
 - insomnia-plugin-default-headers@1.0.2
 - insomnia-plugin-file@1.0.1
 - insomnia-plugin-hash@1.0.1
 - insomnia-plugin-now@1.0.1
 - insomnia-plugin-request@1.0.1
 - insomnia-plugin-response@1.0.1
 - insomnia-plugin-uuid@1.0.1
 - insomnia-cookies@0.0.2
 - insomnia-importers@1.5.2
 - insomnia-prettify@0.0.3
 - insomnia-url@0.0.2
 - insomnia-xpath@0.0.2

* A bunch of small fixes

* Improved build script

* Fixed

* Merge dangling files

* Usability refactor

* Handle duplicate plugin names
2017-11-26 20:45:40 +00:00
Gregory Schier e9b87686e1 Upgrade Electron Builder (#498)
* Upgrade electron-builder

* Fix optional dep

* Add another dep

* Fix travis

* Fix 7zip install

* Fix icons

* Minor fix

* Delete changelog

* Moved build scripts to JS

* Some adjustments

* Remove lines

* Add 7zip back

* Update scripts

* Small tweaks

* Fix electronbuilder config

* snap dependency

* Fix pkg

* Remove snapd dep

* Updated deps and lots of fixes

* Travis update

* Return package name

* Remove snap for now

* Remove portable

* Try fixing code signing

* Bump cache

* Disable automatic tests

* Fix windows artifacts

* package-lock for app/

* Try fix npm install

* Try again

* Some minor tweaks

* Preleases by default
2017-11-20 16:07:36 +00:00
Gregory Schier 60ee2d8867 Remove Sentry error handling (#172) 2017-05-09 21:20:40 -07:00
Gregory Schier 7b8d26c292 Added import from URI ability (#160)
* Added import from URI ability

* Add protocol handlers

* Fix for keymap setting on read-only mode

* Refactored some main components out

* Protocols shoudl work now
2017-05-03 10:48:23 -07:00
Gregory Schier 85940179e1 CC style fixes and relax URL encoding 2016-11-17 13:22:19 -08:00
Gregory Schier 1cf1037c93 Better Redux (#43)
* Started refactoring redux stores

* Oh God huge refactor here

* Sync contenst updates and nested folders

* Fixed render tests

* A bunch of tweaks
2016-11-16 09:18:39 -08:00
Gregory Schier 7124078f55 Explicitly pass environmentID to send and remove build script 2016-11-09 16:01:10 -08:00
Gregory Schier d3c5510f67 Moved sync directory and sync DB buffering 2016-11-08 19:18:25 -08:00
Gregory Schier 889c9dbbd4 Reworked analytics 2016-10-26 20:41:30 -07:00
Gregory Schier f04d21daa0 Moved update logic to index.html 2016-10-11 14:06:25 -07:00
Gregory Schier 493b4fcfab Cap window bounds and update notification' 2016-10-11 12:47:38 -07:00
Gregory Schier 397fbb3abc Fix external deps 2016-10-05 10:13:43 -07:00
Gregory Schier 318c35c2cb Move a bunch of stuff to async/await (#39)
* Some minor implementations

* Some more

* Lots more

* Removed 'backend' alias

* removed all promises

* Removed a bunch of module exports stuff

* Some morE'

* Fix

* custom DNS

* Tests for DNS

* bug fix

* Some small adjustments

* Small stuff
2016-10-02 13:57:00 -07:00
Gregory Schier 6d9da20bfc Split UI from Lib 2016-09-16 22:46:44 -07:00
Gregory Schier 35cf8ca9a8 Almost working except for the sidebar 2016-09-15 15:45:08 -07:00
Gregory Schier 2ed92a7968 Actual Test Suite (#35)
* Pull out some render utils into functions

* Added some tests for lib functions

* strict refs
2016-09-02 21:32:45 -07:00
Gregory Schier d6b496a243 Fix stupid bug 2016-09-02 12:11:05 -07:00
Gregory Schier e7e85eac50 Fix 2016-08-23 12:53:19 -07:00
Gregory Schier ed150c3e25 remove quotes 2016-08-23 12:47:38 -07:00
Gregory Schier 6a7a0b07bc try 2016-08-23 12:43:01 -07:00
Gregory Schier f10532980a try 2016-08-23 12:37:01 -07:00