* Clarify comment on network-related errors
Updated comment for clarity on error checking.
* fix: Migration System & Intelligent Diff Detection [INS-847] (#9278)
* feat: add significant diff detection functionality
* feat: add Insomnia schema version constant
* feat: add migration functions for Insomnia schema version 5.1
* feat: implement migration functions and property normalization for Insomnia schema
* feat: add comprehensive Insomnia schema migration guide
* feat: optimize property order normalization for arrays in normalizePropertyOrder function
* Update packages/insomnia/src/common/insomnia-schema-migrations/index.ts
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* Update packages/insomnia/src/common/insomnia-schema-migrations/migration.md
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* Update packages/insomnia/src/common/insomnia-schema-migrations/index.ts
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
---------
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* fix: Git VCS Intelligence Layer [INS-847] (#9276)
* refactor: enhance NeDBClient and project routing logic with improved documentation and handling
* test: enhance NeDBClient tests with additional scenarios and improved structure
* docs: enhance Git service documentation with detailed module overview and function descriptions
* feat: enhance GitVCS with intelligent diff analysis and improved status reporting
* feat: enhance checkout action to support forced branch switching when no uncommitted changes exist
* refactor: simplify getGitChanges calls in multipleCommitToGitRepoAction
* fix: Core V5 Schema Foundation & Parser Implementation [INS-847] (#9281)
* feat: add Zod schemas for Insomnia v5 import parsing and validation
* feat: enhance Insomnia v5 import/export utilities with comprehensive mapping functions and error handling
* feat: enhance Request model with comprehensive documentation and additional authentication configurations
* feat: make QueryParam value optional for improved flexibility
* feat: improve data handling in removeEmptyFields and getCollection functions
* refactor: simplify removeEmptyFields and update terminology in getCollection function
* fix: UI Components, Routes [INS-847] (#9277)
* fix: enhance User-Agent header structure in clientAction functions
* fix: add hideValueType prop to KeyValueEditor for conditional rendering
* fix: add hideValueType prop to MockResponseHeadersEditor, RequestHeadersEditor, and GrpcRequestPane for consistent rendering
* fix: update onChange handler in RequestParametersEditor for type safety
* fix: remove organizationId from dependency array in GitBranchesModal, GitProjectBranchesModal, and GitStagingModal for improved effect handling
* fix: remove callback from db.init in export workspaces test for cleaner initialization
* fix: remove organizationId and workspaceId from useParams in GitProjectStagingModal for cleaner code
* fix: improve merge result validation by applying schema migration and handling errors more effectively
* fix: remove hideValueType prop from multiple editors for cleaner code
* Import React alongside FC and useCallback
* Import React alongside FC and useCallback
* Import React alongside other hooks in grpc-request-pane
* Update packages/insomnia/src/ui/components/key-value-editor/key-value-editor.tsx
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* fix: import useState in KeyValueEditor for state management
---------
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* chore: Update schema version to 5.1 in various YAML files [INS-847] (#9280)
* Clarify comment on network-related errors
Updated comment for clarity on error checking.
* chore: update schema version to 5.1 in various YAML files
- Updated schema_version to "5.1" in example-spec.yaml, with-tests.yaml, after-response-collection.yaml, chained-responses.yaml, client-certs.yaml, collection-for-global-environments.yaml, environments.yaml, global-environment.yaml, graphql.yaml, grpc-mtls.yaml, grpc.yaml, header-templates.yaml, import-from-url.yaml, multiple-workspaces.yaml, insomnia4-update.yaml, insomnia4.yaml, mock-server.yaml, oauth.yaml, openapi3.yaml, pre-request-collection.yaml, runner-collection.yaml, script-global-environment.yaml, simple.yaml, smoke-test-collection.yaml, socket-io.yaml, swagger2.yaml, template-tag-collection.yaml, unit-test.yaml, vault-collection.yaml, and websockets.yaml.
- Cleaned up unnecessary parameters and headers in multiple files.
- Adjusted formatting for better readability in several scripts and body texts.
* fix: Enhance discardChanges to support unstaged and staged options [INS-1099] (#9279)
* fix: enhance discardChanges to support unstaged and staged options
* fix: simplify discardChanges function by removing unused options
* fix: enhance discardChanges to handle unstaged changes more effectively
* fix: update import path for InsomniaFile type in schema migrations
* fix: simplify useParams destructuring in GitProjectStagingModal
* fix: Preserve OpenAPI spec contents during v5.1 schema migration (#9314)
* fix: remove unnecessary comment in AskModal component
* fix: remove unnecessary comment in AskModal component
* fix: preserve OpenAPI $ref entries and specific properties in cleanHeadersAndParameters function
* fix: skip OpenAPI spec contents in cleanHeadersAndParameters function
* test: add comprehensive tests for Insomnia Schema Migrations v5.1
* Grpc metadata
* Ignore metadata
* Fix migration
* Include all inside try
* Fix test
---------
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* first pass
fix tests
move all react things in dev
try-package
build stuff
use http protocol instead of file
handle refresh
fix tests and routeloaderdata apths
fix npm run dev
fix sorts
fix hidden browser window
cleanup files
Typesafe /auth/* routes
typesafe commands route
git-credentials typesafe routes
import typesafe routes
fix types
fix hidden browser window
invite and collaborators typesafe routes
fix types
remove workarounds
fix dashboard test
more types
git typesafe routes
fix runner test
typesafe scratchpad navigation
fix remove unused project route
fix test routes
add space
request typesafe routes
git credentials typescript conspiracy
git typesafe routes
typecheck
debug bundles for inso
fix test
fix request group tab
workspace typesafe routes
feedback
All routes use generated types
Add typed fetchers to actions and loader
Use typed fetchers in the app
move git actions to the root
* fix react-use usage
update import source field
Spawning npm fails the build
Add ~ module resolution to vitest
add initialEntry functionality
fix update environment name requirement
fix settings patch
use loader for fetching the vault key and fix process.env.PLAYWRIGHT issue
fix missing type
Centralize useRouteLoaderData to routes
Use environment for vitest tests that run browser code
Update remaining fetchers to typesafe versions
remove unused fetcher and add callback to sync
Wrap load/submit in useCallback to keep them stable between re-renders
Update deps lists with stable submit functions
fix lint issue
* fix ts issues
* Add toaster to root
* Use shell for running scripts with spawn on Windows
* Move renderer bundling out of the build script
* Fix request-pane test flakiness
* update the url we use for internal purposes
* Increase timeout for release workflow
* fix flaky bundling test
---------
Co-authored-by: jackkav <jackkav@gmail.com>
* extracting template functions to src
* move all ui export logic into ui
* remove modal from plugin init
* remove har from plugin api
* remove alert and prompt model shortcuts
* replace renderPurpose with renderer check
* split plugin barrel
* fix test
* use window to work around renderer imports
* restore har api
* fix test