447 Commits

Author SHA1 Message Date
Bingbing
a4250a53e3 chore: add circular reference check (#9065) 2025-12-23 02:44:40 +00:00
Bingbing
1d625ba1c9 refactor: extract insomnia-api (#9093) 2025-12-08 03:57:47 +00:00
Jack Kavanagh
14e44f98a3 Chore/bump-linting-pkgs (#9409)
* bump linting pkgs

* add temporary ignores

* fix test

* autofix
2025-11-25 16:49:03 +00:00
Ryan Willis
94aa05e763 feat: clear all credentials upon logout [INS-1630] (#9328)
* feat: clear all credentials upon logout

* also drop secret_id and repo_id, explain git repo drop

* add log out confirmation modal

* fix log out for critical scratchpad test

* empty git repo instead

* update db querying + hide empty error box on failures
2025-10-31 09:02:04 -07:00
Jack Kavanagh
bf113c79cf bump electron 38 (#9282)
* bump electron 38

* bump 38.4

* bump node 22.20
2025-10-23 16:44:03 +00:00
Jack Kavanagh
b94115d77a bumps (#9199) 2025-10-02 08:36:28 +00:00
Jack Kavanagh
4f143c98d7 vite v7 bump (#8842) 2025-08-27 12:34:08 +02: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
Jack Kavanagh
e50056e5cd bump electron 37 (#8978) 2025-08-12 15:35:08 +00:00
Jack Kavanagh
f4247c3ece bump electron 36 (#8963)
* bump electron

* bump npmrc
2025-08-12 09:17:35 +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
Kent Wang
2eca4de150 feat: External vault separation and bundle plugin support for Insomnia & Inso (#8864)
* Move vault related UI code
* Support bundle plugin for app & inso and backend integration (#8857)
* Update Github actions
* spike: bundle plugin installation alternatives (#8899)
* installation alternative by optional dependency
* Refine plugins api
* feat: Execute vault plugin tag in web worker (#8934)
* update bundle test
* fix issues from comment

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-08-07 14:06:41 +00:00
Kent Wang
afda28264e chore: Support auto restart electron when main processor related code changes (#8707)
* Support auto restart electron when main processor related code changes
2025-07-11 03:09:06 +00:00
yaoweiprc
152a113a3d Move dependency decompress to packages/insomnia (#8764) 2025-06-03 10:03:32 +08:00
Jack Kavanagh
5543a6e08f tooling: unicorn eslint (#8743)
* set a few unicorn rules

* autofixes

* fix types

* more minor fixes

* more autofixes

* more normalisation

* prettier run
2025-05-27 09:47:46 +00:00
Jack Kavanagh
0fcd514f2e Bump-vite-v6 (#8608)
* v6

* fix
2025-04-17 12:38:21 -07:00
yaoweiprc
7ef0daf5c1 Improve WSDL import [INS-4291] (#8314)
Improve WSDL import
* Use the feature of apiconnect-wsdl library to import the wsdl files which reference other xsd files.
Patch the npm package apiconnect-wsdl to remove the limits for generating SOAP request samples.

* show detailed error for each convertor when importing, remove unused generic type

* fix review issues
2025-04-17 16:17:02 +08:00
Jack Kavanagh
a6cfebec3e Add-playwright-linting-to-smoke-tests (#8614)
* add smoke lint

* add pw lint

* configure

* autofix

* fixed errors

* fix lint
2025-04-15 17:04:31 +02:00
Jack Kavanagh
3baeb86490 bump ts 5.8 (#8618) 2025-04-15 14:45:54 +02:00
Jack Kavanagh
b30978e33b Full-prettier-run (#8605)
* prettier

* remove markdown linting
2025-04-11 13:37:19 +02:00
Jack Kavanagh
ed001e0c98 Prettier pass 3 (#8586)
* first pass

* use mjs

* 120

* single quote

* consistent quotes

* fix on save

* ancestors

* add recommended

* make vscode integration work

* remove prettier runtime dep

* use esm
2025-04-11 13:11:34 +02:00
Jack Kavanagh
c8c2fcc8a3 renamed sdk to scripting-environment (#8604)
* renamed sdk to scripting-environment

* lock file
2025-04-10 17:03:10 +02:00
Curry Yang
76b8cbe517 chore: simplify scripts in package.json (#8598)
* chore: remove unuse scripts in package.json

* chore: delete build:app and use build instead
2025-04-09 14:16:44 +02:00
Jack Kavanagh
b429feb2f2 Eslint-v9 (#8578)
* autofix recommended

* first pass

* autofix

* fixed lint errors

* pin ts
2025-04-03 16:15:03 +00:00
Jack Kavanagh
ed81844130 eslint: remove unused disabled rules (#8571)
* remove unused disabled rules

* bump plugins

* bump tslint and ignore new rules

* fix exception

* remove unused plugins

* remove config helpers

* remove unused dep
2025-04-02 16:18:21 +02:00
Filipe Freire
3f86211139 chore: bump electron 35 [INS-5154] (#8490)
* chore: bump electron 35 [no-ticket]

* fix: build.ts poiting to node 22

* fix: update types

* fix: comment out inso build.ts node version check

* fix: bump npx pkg

* skip flakey tests

* bump timeout

* use glob instead of regex

* fix windows inconsistency

* revert experiemental changes

* fix: revert timeout

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2025-03-20 10:53:34 +01:00
yaoweiprc
cd1625a213 Solve the bug related to importing multiple workspaces in one file [INS-5077] (#8442)
* Solve the bug that it imports all resources to all workspaces when there are multiple workspaces in one imported file

* add smoke test

* Apply suggestions from code review

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* Use import-from-clipboard instead of import-from-file in smoke test

---------

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2025-03-18 12:03:11 +00:00
Jack Kavanagh
3ff0d34c62 Bump-electron-33 (#8285)
* update flake

* bump node and electron versions

* bump libcurl

* package-lock

* libcurl 2.33.3

* fix types

* bump libcurl 2.33.4

* fix electron breaking change webUtils

* oops

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2025-01-10 16:44:20 +01:00
Jack Kavanagh
b5cb3d376f chore: Package json bumps (#8030) 2024-10-01 01:38:40 +02:00
James Gatz
873721c591 update typescript and lib to 2023 (#8022)
* update typescript and lib to 2023

* fix type check

* make key thing uniform

* fix types

* fix types some more

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-09-27 15:52:34 +02:00
Jack Kavanagh
ccf577b9df Bump/electron-31 (#7884)
* bump required node version

* bump node-libcurl

* npm i

* update npmrc

* fix

* proper fix of package-lock

---------

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2024-08-30 22:57:18 +02:00
Jack Kavanagh
2ffbecf192 only minify in prod (#7879) 2024-08-28 13:27:11 +00:00
yaoweiprc
039a5bee76 import postman data dump at once (#7834) 2024-08-23 11:18:04 +08:00
Jack Kavanagh
fc5699e5f3 inso cli dx improvements (#7776)
* clean up github artifacts flow

* add console output test

* add timeline

* prepare test harness

* fix lint

* move test

* set shell to false
2024-07-30 13:29:45 +02:00
Jack Kavanagh
e2b466a0cd Vitest-2 app package (#7757)
* vitest insomnia-inso

* remove skipped logs

* vitest insomnia config

* remove jest

* mocks?

* remove globalBeforeEach smell

* 110 left

* 38 failing

* 34

* 30

* 26

* 3 to go

* fix tests

* fix type checks

* delete send-request

* fix lint

* test runner hack for now

* remove duplicate snapshots

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-07-26 16:56:56 +02:00
Jack Kavanagh
ecba036fe3 vitest (#7754)
* vitest
- testing package

* remove jest and tidy

* sdk tests pass

* remove tsconfig

* vitest insomnia-inso

* snapshots

* clean up

* remove skipped logs

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-07-25 13:37:15 +01:00
Jack Kavanagh
44642a49e9 remove send-request (#7731)
* remove send-request

* move types

* fix type-checks

* remove pointless const

* handle react in inso unit test

* remove
2024-07-18 15:06:28 +02:00
Jack Kavanagh
8c729ecae7 inso fifth pass (#7601)
* extract lint and export logic

* add test and update doc

* some thoughts

* add test each

* notes

* comments

* add more cases

* improve types, flatten send request

* collection runner poc

* verbose

* flatten

* add bail

* stabilise pathing

* add test

* fix type check

* improve testing experience

* fix tests

* tidy up package.json

* tidy up package and test.yml

* remove old smoke test

---------

Co-authored-by: Filipe Freire <filipe.freire@konghq.com>
2024-07-09 13:06:55 +01:00
Jack Kavanagh
72edb6a0a6 Inso-third-pass (#7588)
* inline utils and clean outputs

* improving the log output

* dx

* fix tests abstract path

* return early

* flatten options and utils

* flatten logger

* add export file and git examples

* flatten cli.ts

* use await api and flatten

* flatten cli

* fix test
2024-06-26 11:52:20 +02:00
Jack Kavanagh
2ff059f7a2 remove oas 2 kong (#7503)
* remove oas 2 kong

* remove old test
2024-06-11 10:38:09 +01:00
Jack Kavanagh
50965a4483 Bump/electron-30 (#7354)
* bump node

* bump electron

* pin node v

* bump libcurl

* fix lock

* use stable

* types

* latest electron
2024-06-05 16:20:56 +02:00
Hexxa
2d9e2da52e chore(pre-req script): move all sdk files to sdk workspace - INS-3379 (#7255)
* feat: move script sdk to one workspace and update importing paths

* test: add jest config for enabling tests

* fix: failed to build package because of missing .node loader
2024-04-12 22:24:14 +08:00
Jack Kavanagh
a15e649602 bump node and electron versions (#7203)
* bump versions

* node 20.9

* remove node-externals and use plugin workaround for ms pkgs

* external send-request

* bump electron latest
2024-04-11 12:49:58 +00:00
Jack Kavanagh
4c82c8ce75 minor bumps (#7243) 2024-04-05 17:42:41 +02:00
Jack Kavanagh
5a2cd8fd9c Bump/minors-and-types (#7234)
* bump minors and types

* lock

* fix types

* windback

* yaml-source-map pins to yaml 1.6.0

* swagger css path

* fix tests

* fix type

* fix o2k tests

* fix markdown

* fix smoke tests
2024-04-04 14:48:56 +02:00
Jack Kavanagh
112a1c8060 feat: append to timelines (#7070)
* working pass

* fix tests

* fix await issue with streams

* fix test

* fix mockbin test

* move to main

* inso cli test
2024-02-07 18:51:10 +01:00
Insomnia
51b9ef76e9 🚀 8.6.1 (#7014)
* Bump app version to 8.6.1

* feat(unit-tests): Unit test reordering (#7020)

* re-orderable test suites

* re-orderable tests

* fix ts

* Use db methods for sorting

* sort suites and unit tests in inso

* fix suite rename

* Fixes https://github.com/Kong/insomnia/issues/7011 (#7012)

* Fixes https://github.com/Kong/insomnia/issues/7009 (#7010)

* chore: edit changelog process [INS-3456] (#7001)

* fix(workspace): Add default name for when creating a workspace (#7046)

* Add default name for when creating a design/collection

* workspace update and creation

* fix filter history keys not being valid selectors (#7040)

* remove invalid wide css prop (#7041)

* feat(environment): update environments icons (#7050)

* update environments icons

* fix workspace name

* fix one line editor being scrollable (#7059)

* change 8.0 to 8 (#7061)

* Cleanup page containers and add hint container in the page (#7060)

* feat(pane-tabs): Consistent styles for tabs (#7062)

* response/request pane tab counts

* tab dropdown colors

* fix updates to db leading to errors in loader fetchers (#7033)

* feat(command-palette): add button to open the command palette (#7064)

* add button for quick search

* update button styles in project

* make it look good with gh stars

* fix ts issue

* changelog

---------

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Jeroen Van den Berghe <vandenberghe.jeroen@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2024-02-06 12:16:54 +00:00
Jack Kavanagh
b5ecd5c261 Remove/changelog-stuff (#7036)
* cleanup

* lock
2024-01-31 13:22:06 +01:00
Jack Kavanagh
4ab203a1e1 Bump/esbuild (#7035)
* esbuild 18

* lock

* esbuild 19

* lockfile

* update esbuild watcher
2024-01-31 12:21:18 +01:00
Jack Kavanagh
e300b61324 bump eslint (#7026) 2024-01-29 13:49:20 +01:00