Commit Graph

66 Commits

Author SHA1 Message Date
Insomnia
da68781c30 Bump app version to 12.2.0 2025-12-19 00:24:44 +00:00
Insomnia
139791a4fb Bump app version to 12.2.0-beta.1 2025-12-16 19:56:31 +00:00
Insomnia
d0f07bf1d7 Bump app version to 12.2.0-beta.0 2025-12-12 09:15:42 +00:00
Bingbing
1d625ba1c9 refactor: extract insomnia-api (#9093) 2025-12-08 03:57:47 +00:00
Jack Kavanagh
76fa0c2349 explicit noEmit (#9437) 2025-11-28 11:52:19 +00:00
Jack Kavanagh
c62a114d28 Chore: eslint-autofixes (#9421)
* sort and remove a few

* autofix 1

* remove useless undefined

* fix types

* number seperators

* native coercion

* utf8

* explicit number

* dom node dataset

* explicit unused catch

* array find

* fix types

* prefer negative index

* from code point

* fix error layout

* prefer ternary

* explicit length

* useless case

* named functions

* utf8

* import style

* default parameters

* no instance of

* clone

* use regex test

* single call

* prettier

* fix types

* Revert "use regex test"

This reverts commit 8fb9e991fffa9e3a51ff75cdc29dad331ed2fb66.
2025-11-27 09:36:52 +00:00
Jack Kavanagh
2f4e3a8e65 run prettier (#9431) 2025-11-26 11:19:07 +00:00
Jack Kavanagh
9598d828d6 Fix/proxy-config-INS-1532 (#9416)
* improve logs

* use request derived proxy protocol

* clarify logs

* fix tests
2025-11-25 16:30:32 +00:00
Insomnia
5d4f750b31 Bump app version to 12.1.0 2025-11-21 06:47:53 +00:00
Insomnia
0c640f58c1 Bump app version to 12.1.0-beta.1 2025-11-20 09:58:45 +00:00
Jack Kavanagh
2d64f5b0a1 chore: normalise filenames (#9399)
* add rule

* kebab case

* kebab case

* kebab case

* fix import path

* fix snapshot
2025-11-19 11:00:54 +00:00
Ryan Willis
d798be87dc feat(inso): support request timeouts (#9363)
* feat: support request timeouts in inso

---------

Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2025-11-18 10:50:19 -07:00
Insomnia
1cec82cc26 Bump app version to 12.1.0-beta.0 2025-11-14 08:29:15 +00:00
Pavlos Koutoglou
9044a77e91 fix: Insomnia V5 Schema changes [INS-847] (#9275)
* 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>
2025-11-10 11:59:56 +02:00
Insomnia
62d56e3863 Bump app version to 12.0.0 2025-11-04 18:32:25 +08:00
Insomnia
18352b3ea7 Bump app version to 12.0.0-beta.0 2025-10-24 03:59:15 +00:00
Insomnia
605f21111d Bump app version to 11.6.2 2025-10-21 19:49:00 +00:00
Insomnia
0d9ff79bd2 Bump app version to 11.6.1 2025-09-18 06:46:23 +00:00
Insomnia
af7104f189 Bump app version to 11.6.0 2025-09-11 07:46:54 +00:00
George
a8d4b607d5 fix: sendRequest doesnt return error in some cases - INS-1262 (#9059)
* fix: sendRequest doesnt return error in some cases

* chore: formatting

* chore: refactoring async styles
2025-09-08 17:56:41 +08:00
Insomnia
0aa90e31d0 Bump app version to 11.6.0-beta.0 2025-09-05 07:42:11 +00:00
Curry Yang
87f73a6ab0 feat: auth for socket.io-[INS-1270] (#9066)
* feat: auth for socket.io

* fix: type check

* fix: ts issue

* feat: add auth indicator
2025-09-03 07:54:57 +00:00
Jack Kavanagh
b898fefb1c prune db methods, and improve type-checking (#8993)
* remove unused hooks

* remove _empty

* remove unused all

* fix test

* align get and get where

* getOrCreate

* create string union of model types

* fix bad test

* remove getMostRecent

* simplify renderer change listeners

* remove batch modify usage

* use async api

* use localhost for ci

* remove false db typings

* allow undefined as a bridge response

* improve typing

* eliminate find most recent

* fix vitest path aliases

* types

* simplify insert

* eliminate upsert

* fix tests

* remove partial type

* fix tests

* remove redundancy, init types

* fix types

* delete comments

* remove optional types

* fix coercion

* fix types

* add export types and remove modeltypes
2025-08-28 13:49:24 +02:00
Insomnia
c46c54bd03 Bump app version to 11.5.0 2025-08-26 06:10:06 +00:00
Insomnia
614a70041d Bump app version to 11.5.0-beta.4 2025-08-25 09:51:04 +00:00
Insomnia
b927392764 Bump app version to 11.5.0-beta.3 2025-08-25 05:42:40 +00:00
Pavlos Koutoglou
8beb63f7da Bump app version to 11.5.0-beta.2 2025-08-21 14:07:05 +00:00
Jay Wu
efbd7c3900 Bump app version to 11.5.0-beta.1 2025-08-20 06:24:47 +00:00
Curry Yang
289bc96e18 Bump app version to 11.5.0-beta.0 2025-08-15 03:11:52 +00:00
Jack Kavanagh
3ac3965b45 *.min.js and entry.* naming conventions (#8968)
* use min.js convention

* rename to entry

* rename main.ts

* fix electorn builder config

* fix types

* fix hidden window entry

* rename esbuild.main.ts to entrypoints
2025-08-13 11:05:56 +00:00
James Gatz
aa838bf39c chore(Architecture): react router spa mode (#8902)
* 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>
2025-08-08 11:10:28 +02:00
xdm
ab68d5c045 fix: hide the disabled queries in url.getQueryString()[NS-1073] (#8949) 2025-08-07 18:18:55 +08:00
Noritaka Kobayashi
9e568ac36b chore: fix typos (#8929) 2025-08-05 11:22:04 +08:00
Jack Kavanagh
b6c7467810 replace lodash with es-toolkit (#8909) 2025-07-31 06:40:26 +00:00
Jay Wu
6137ff6cf9 Bump app version to 11.4.0 2025-07-30 09:06:55 +00:00
Curry Yang
25c66a6fce Bump app version to 11.4.0-beta.1 2025-07-29 10:15:28 +00:00
George
09e7a5ed1d fix: auto complete response in script editor (#8910) 2025-07-28 17:01:16 +08:00
Curry Yang
d46b9a1e2a Bump app version to 11.4.0-beta.0 2025-07-24 10:58:09 +00:00
George
6b884632a1 refactor: relax the contraint by removing http message checking (#8896) 2025-07-24 10:22:47 +08:00
George
54c8bde1f3 fix: extend insomnia.response.to assertion with chai plugin utilities (#8875) 2025-07-23 16:16:20 +08:00
Jack Kavanagh
1fe9e61fac More-routes (#8893)
* move workspace

* prettier

* lint fix

* fix paths

* move project route

* move remote-collections

* runner

* move git-actions

* git-creds

* git org

* move git workspace and project actions

* move invite

* rename invites

* split collaborator actions

* fix members

* fix route ids
2025-07-22 15:00:43 +00:00
Jack Kavanagh
90bd4d47ab Refactor plugin structure to avoid inso bundling UI logic (#8892)
* 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
2025-07-22 11:58:46 +02:00
George
b99c4ee5c2 fix: PropertyList.get should return value instead of whole object when possible (#8867) 2025-07-15 16:51:35 +08:00
George
f649db009d docs: add docs for script sdk environment (#8854) 2025-07-14 02:40:24 +00:00
Jay Wu
37af3e3ea1 Bump app version to 11.3.0 2025-07-10 07:59:23 +00:00
Curry Yang
cc8ff00f23 Bump app version to 11.3.0-beta.1 2025-07-08 09:41:40 +00:00
Jay Wu
3b05ea17f8 Bump app version to 11.3.0-beta.0 2025-07-01 20:13:50 +08:00
Kent Wang
2c65178d7b fix(script): Insomnia.global.set is not updating environment when only global base environment is activated[INS-5795] (#8790)
* Fix insomnia.global script issue
* Fix environment name issue
2025-06-19 15:25:44 +08:00
Jay Wu
fa553a620c Bump app version to 11.2.0 2025-06-05 05:11:01 +00:00
Jay Wu
3f1004dde4 Bump app version to 11.2.0-beta.0 2025-05-30 13:05:49 +00:00