Commit Graph

58 Commits

Author SHA1 Message Date
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
Hexxa
7a235c9ba7
fix: lost <disabled> in header transforming and blank req body (#7738) 2024-07-25 16:25:28 +08:00
James Gatz
962ef9b659 Bump app version to 9.3.3-beta.2 2024-07-18 14:32:53 +00:00
Curry Yang
f7a6436c07 Bump app version to 9.3.3-beta.1 2024-07-16 10:23:23 +00:00
Hexxa
be2426ae82
fix: clean up sdk types (#7721) 2024-07-16 10:50:36 +02:00
Jack Kavanagh
570c1c0055
verbatim syntax (#7718) 2024-07-15 11:44:21 +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
Jack Kavanagh
03581544cf
split test job into app and cli (#7685)
* split

* add build sr

* adjust timeouts

* fix test

* fix timeout

* typo
2024-07-10 10:18:12 +02:00
Novsochetra
91b6297d51
chore: duplicate / for import insomnia-sdk/src/objects/(interfaces.ts,request.ts) (#7686) 2024-07-10 10:40:27 +08: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
Hexxa
f5886d3908
fix: generating curl command returns <getTime> error (#7648)
* fix: generating curl command returns <getTime> error

* fix: improve transforming

* test: clean up sdk cookie and add transforming tests

* chore: add comments
2024-07-04 03:28:34 +00:00
James Gatz
dd54fba4d7 Bump app version to 9.3.2-beta.0 2024-07-03 15:53:59 +00:00
James Gatz
950d0d3f04 Bump app version to 9.3.1 2024-06-28 16:38:09 +02:00
James Gatz
3ab6165f52
fix(Cookie expires): Invalid date on cookie expires (#7614)
* Fix always running after-response script

* Fix invalid date in cookies
2024-06-28 16:06:05 +02:00
Hexxa
cb4ec74a2a
fix: help to handle @ when it is not encoded in url (#7609)
* fix: help to handle @ when it is not escaped in url

* test: add tests and comments
2024-06-28 21:02:59 +08:00
James Gatz
8d027a73be Bump app version to 9.3.0 2024-06-27 13:15:37 +02:00
James Gatz
c345277d72 Bump app version to 9.3.0-beta.7 2024-06-26 09:58:57 +00:00
Hexxa
e410998552
refactor: enable active global environment and map it to the sdk (#7533)
* feat: refactor the environment mapping between inso and script sdk

* feat: enable global environment in the sdk

* fix: disable global cases

* refactor: pass select global env to script execution and persist it after execution

* fix: lint error

* fix: some minor fixes

* fix: undefined is persisted as globals

* chore: add some comments about the mapping rule

* refactor: enable menu items for global environment manipulation (#7589)
2024-06-26 08:41:02 +00:00
Jack Kavanagh
43f0cafcf6 Bump app version to 9.3.0-beta.6 2024-06-20 10:43:20 +00:00
Hexxa
9dd5bdc71a
fix: add missing methods depending on the interpolator (#7560) 2024-06-20 09:50:08 +02: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
eac1e63f00
feat: Import/folder-auth (#7505)
* console logs

* import auth from folders

* just in case

* restore inheritance behaviour

* add auth node to snapshot
2024-06-06 12:11:11 +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
ff17ff826c Bump app version to 9.3.0-alpha.5 2024-06-05 11:14:22 +00:00
Hexxa
57e9898bf0
chore: rename variable properties to improve readability (#7480)
* chore: rename variable properties to improve readability

* fix: type check issue
2024-06-05 09:18:12 +00:00
Hexxa
c9b0f3cf8b
fix: add jsonSchema assertion chain (#7481) 2024-06-05 09:02:34 +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
Hexxa
42cd078b87
fix: add a missing assertion chain for the response entity (#7474) 2024-06-03 09:08:26 +00:00
pimothyxd
109258db41
fix: minor typo in interpolator (#7473) 2024-06-03 10:10:22 +08:00
Hexxa
5d08381be5
fix: support generating values with faker.js in scripting (#7454)
* fix: support generating values with faker.js in scripting

* fix: relax timeout for one case and remove a duplicated case

* fix: test is flaky because of timeout

* fix: incorrect test selector

* fix: waiting before checking

* fix: replace clicking with assertion

* fix: relax the external timeout a bit
2024-05-28 15:28:49 +08: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
6eb2c953dc Bump app version to 9.2.0 2024-05-15 13:43:57 +00:00
James Gatz
3057e7c5ee Bump app version to 9.2.0-beta.0 2024-05-14 14:27:42 +00:00
Jack Kavanagh
0e49f08850 Bump app version to 9.1.1 2024-05-07 11:20:21 +00:00
Jack Kavanagh
b4642d9b73 Bump app version to 9.1.0 2024-04-30 14:06:20 +00:00
Hexxa
69fb149274
fix(sdk): some of external modules are missing (#7315)
* fix: some external modules are missing

* chore: update @types/tv4

* chore: use map instead of switch-case statement

* test(scripting): check using external libs in the critical test suite
2024-04-26 19:44:01 +08:00
James Gatz
f1a26dd5f2 Bump app version to 9.0.0 2024-04-24 10:07:39 +00:00
Insomnia
dde3fc2c0b
Bump app version to 9.0.0-beta.5 (#7304)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2024-04-24 11:21:07 +02:00