Commit Graph

309 Commits

Author SHA1 Message Date
George He
02027fe5e1 chore(runner): cleaning up runner-pr1 and resolve conflicts (#7878)
* feat: log request testing results and return them to the main renderer

* fix: lint error

* fix: install chai with unified version across packages

* chore: restore package-lock

* chore: restore package-lock

* feat(GUI): enable test results pane (#7737)

* feat: enable the test result pane

* test: bring back tests and cleanups

* chore: replace tabitem with tabpanel

* chore: useMemo for test result counts

* refactor: abstract RequestTestResultRows as a component

* chore: cleanup package lock

* chore: restore package lock

* feat: enable collection runner

* fix: cli test failed

* fix: lint error

* fix: race condition in canceling runner

* fix: runner is not canceled when there's an exception

* fix: lint error

* 1.fix after response iteration and eventname issue

* chore: disable the flaky test

---------

Co-authored-by: Kent Wang <kent.wang@konghq.com>
2024-08-28 19:07:14 +08:00
Jack Kavanagh
02f5bf4d4d inso cli scripting first pass (#7790)
* poc

* add header test

* fix lint

* fix types

* make require work

* low cost abstraction

* test insomnia.sendRequest

* remove execa

* split tests and improve docs

* dynamic import to fix build
2024-08-27 09:36:17 +00:00
yaoweiprc
039a5bee76 import postman data dump at once (#7834) 2024-08-23 11:18:04 +08:00
Filipe Freire
d845102630 chore: bump electron to 30.4 [INS-4316] (#7852) 2024-08-22 14:33:06 +00:00
Curry Yang
e740253835 Bump app version to 9.3.4-beta.1 2024-08-14 08:23:56 +00:00
Curry Yang
c1bfa5cb73 Bump app version to 9.3.4-beta.0 2024-08-09 09:22:53 +00:00
Jack Kavanagh
9f24405b79 Remove styled-components (#7809)
* boolean seetting 1/33

* placeholder 2/33

* dropdown 3/33

* git repo clone 4/33

* git repo settings 5/33

* git repo setting form

* password viewer 6/33

* menu item 7/33

* menu section

* gitlab repo settings form

* empty state

* ws req pane

* event view

* disconnect button

* response headers

* most of item content

* menu

* action bar

* unstyled toast

* unstyled theme panel

* unstyled request-url-bar

* fix debug

* unstyled realtime-response-pane

* unstyled grpc-request-pane

* svg-icon unstyled

* trail-lines unstyled

* dropdown hint

* mock url bar

* theme button 1

* some of project empty state

* some of tabs

* most of import modal

* more of import modal

* a bit more import

* method dropdown

* item content

* proto file list

* docs

* project empty pane

* oops

* import modal

* eliminate dropdown button

* tabs without pseudo elements

* fix types

* remove styled-components

* themed button

* fix project empty state and clone test

* tailwind tabs

* fix mock send button

* fix tab border

* more tailwind fixes

* more tailwind

* fix type

* fix height github and gitlab modal

* send button

* history dropdown

* cookie-modal tabs

* mock-response-pane tabs

* mock-route tabs

* git-repo tabs

* repo-settings-modal tabs

* settings-modal tabs

* grpc-request-pane tabs

* grpc-response-pane tabs

* remove old tabs component

* fix e2e

---------

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2024-08-07 14:28:26 +02:00
Jack Kavanagh
977191c24e fix cves and add CI check (#7806)
* fix cve

* npm audit fix

* fix xmldom cve

* add audit step to ci
2024-08-05 15:46:32 +00:00
Jack Kavanagh
54aed01b04 fixes lodash.set cve (#7801) 2024-08-05 16:19:30 +02:00
Curry Yang
c034edaee4 bump: react-router (#7795) 2024-08-02 09:45:03 +02:00
James Gatz
53227805ae Bump app version to 9.3.3 2024-07-31 13:35:10 +00:00
James Gatz
44e8e0df57 Bump app version to 9.3.3-beta.5 2024-07-30 14:15:54 +00:00
Curry Yang
8e1c8af219 Bump app version to 9.3.3-beta.4 2024-07-29 10:54:54 +00: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
James Gatz
6ce0fb243b Bump app version to 9.3.3-beta.3 2024-07-26 12:39:51 +00: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
James Gatz
962ef9b659 Bump app version to 9.3.3-beta.2 2024-07-18 14:32:53 +00: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
Curry Yang
f7a6436c07 Bump app version to 9.3.3-beta.1 2024-07-16 10:23:23 +00:00
Filipe Freire
c026e51271 chore: bump electron 30.0 to 30.2 (#7714) 2024-07-16 09:12:17 +00:00
Jack Kavanagh
e711bffda7 refactor: flatten and reduce tsconfigs (#7716)
* add

* use es2020

* improve verify

* minify jest conf

* organise tsconfig

* tweaks

* remove tsconfig.build.json

* add inso structure notes

* fix lint

* remove tsc step

* add notes
2024-07-15 11:31:12 +02:00
Jack Kavanagh
3349fe56ea Clean up outdate jest and tsconfigs (#7712)
* inso

* insomnia

* testing

* sdk

* remove base and eslint configs

* fix lock
2024-07-12 13:55:22 +02:00
Curry Yang
d7743395a8 Bump app version to 9.3.3-beta.0 2024-07-08 08:21:13 +00:00
James Gatz
30a4e7075f Bump app version to 9.3.2 2024-07-04 13:12:37 +00:00
Curry Yang
b6c9bb9d46 bump: @sentry/electron (#7561)
* bump: @sentry/electron

* bump: @sentry/electron

* sentry config user

* resolve conflict
2024-07-04 03:08:55 +00:00
James Gatz
dd54fba4d7 Bump app version to 9.3.2-beta.0 2024-07-03 15:53:59 +00:00
Jack Kavanagh
191acf0298 bump ws and grpc (#7618) 2024-07-03 08:48:48 +02:00
James Gatz
950d0d3f04 Bump app version to 9.3.1 2024-06-28 16:38:09 +02:00
James Gatz
8d027a73be Bump app version to 9.3.0 2024-06-27 13:15:37 +02:00
Jack Kavanagh
c21698decf upgrade inso pkgs (#7592)
* upgrade cosmiconfig

* remove one layer of indirection

* more indirection

* upgrade commander

* fix tests

* remove unusedExitoverride

* flatten

* inline

* flatten config

* fix test

* docs

* flatten logging

* dont default to script

* fix test docs and config search

* refactor exportSpec

* fixed test
2024-06-27 12:53:35 +02:00
James Gatz
c345277d72 Bump app version to 9.3.0-beta.7 2024-06-26 09:58:57 +00:00
Jack Kavanagh
43f0cafcf6 Bump app version to 9.3.0-beta.6 2024-06-20 10:43:20 +00:00
Hexxa
55e7bb1a1e Bump app version to 9.3.0-beta.5 2024-06-14 10:37:51 +00:00
James Gatz
94ed3c1782 Bump app version to 9.3.0-beta.4 2024-06-11 16:57:57 +00:00
Filipe Freire
1c66fccfa1 Bump app version to 9.3.0-beta.3 2024-06-11 11:41:27 +00:00
Jack Kavanagh
e13c169dcd Bump app version to 9.3.0-alpha.11 2024-06-11 10:47:17 +00:00
Jack Kavanagh
e0b62caf87 Bump app version to 9.3.0-beta.2 2024-06-07 13:13:51 +00:00
Jack Kavanagh
adf2e20ba4 Bump app version to 9.3.0-alpha.9 2024-06-07 11:29:36 +00:00
Jack Kavanagh
fab8397a15 Bump app version to 9.3.0-beta.1 2024-06-07 10:39:58 +00:00
Jack Kavanagh
9bad611d5f Bump app version to 9.3.0-alpha.8 2024-06-05 16:34:35 +00:00
Jack Kavanagh
2e81c5a331 Bump app version to 9.3.0-alpha.7 2024-06-05 15:09:53 +00: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
Jack Kavanagh
ff17ff826c Bump app version to 9.3.0-alpha.5 2024-06-05 11:14:22 +00:00
Jack Kavanagh
7923f8e70d Bump app version to 9.3.0-alpha.4 2024-06-05 05:29:02 +00:00
Jack Kavanagh
a92ae53208 Bump app version to 9.3.0-alpha.3 2024-06-04 16:15:07 +00:00
Jack Kavanagh
e369528db4 Bump app version to 9.3.0-alpha.2 2024-06-04 15:03:04 +00:00
Curry Yang
437460a4c3 Bump app version to 9.3.0-beta.0 2024-05-23 08:11:42 +00:00
Hexxa
46b6ea811e feat: enable major features of the after-response script (#7411)
* feat: update data model and request-pane to support post-req-script

* fix: unit test failed

* feat: integrate post-request script to the engine - INS-3785,INS-3786 (#7329)

* feat: integrate post-request script to the engine

* refactor: some minor improvements

* fix: lint error

* chore: clean up typings

* refactor: separate transforming into sync and async parts

* use named args

* fix: renaming pre-req vars, functions and 2 minor fixes

* fix: the error message is updated

* feat: add snippets for post-request scripting (#7395)

* feat: enable extended assertion chains on `insomnia.response` (#7396)

* feat: add snippets for post-request scripting

* feat(sdk): support response.to.have assertion for verifying response

* chore: fix lint error

---------

Co-authored-by: jackkav <jackkav@gmail.com>

* test: add tests for post-request scripts and post-request scripts - INS-3786 (#7331)

* test: add some tests for post-req script and script engine

* fix: incorrect script type

* chore: refresh package-lock after merging

* chore: clean up package-lock.json

* fix: failed tests after rebasing

* feat: support importing post-req script from Postman (#7423)

* feat: support importing post-req script from Postman

* fix: introduce post-req script property for merged changes

* test: add a test case for importing scripts

* fix: add missing fixture

* chore: remove row after merging

* chore: rename to after-response-script

* fix test

* refresh lock

* update snapshot

* extract pre request logic to function

* refresh lock again

* throw on base env

* fix: revert the logic which rejects the case of unselected environment

---------

Co-authored-by: jackkav <jackkav@gmail.com>
2024-05-23 15:25:35 +08:00
Jack Kavanagh
2d872ab881 bump (#7443) 2024-05-22 16:59:43 +02:00
Jack Kavanagh
6eb2c953dc Bump app version to 9.2.0 2024-05-15 13:43:57 +00:00