Hexxa
a79b01e1e6
chore(pre-req): clean up pre-request script sdk objects - INS-3379 ( #7172 )
...
* feat: enable eval() in script
* feat: enable requiring node.js modules
* fix: request auth type is not correctly updated
* test: add tests for unphappy paths
* test: fixed a flaky test
* chore: make console.log outputs more friendly
* feat: enable requiring npm modules and built-in lodash
* fix: add prefix to 'fs' module requiring name as it is for internal usage
* fix: smoke test failure
* fix: use fs module directly to avoid exposing it
* fix: replace atob btoa with node.js modules
* chore: remove unused line
* fix: lint error
* fix: smoke test failed because fs no longer exposed
* fix: use builtin atob, btoa
* fix: disable lint error for builtin lodash
* chore: remove lodash as it's redundant
* chore: temporarily remove external dependencies
* fix: rebase and update smoke tests style
* chore: restore lock
* chore: remove comments
* chore: remove comments
2024-03-22 20:02:56 +08:00
James Gatz
277599e7e6
feat(session): Store session data in the db instead of LocalStorage ( #7192 )
...
* add user model
* update app to use the user model instead of localstorage
* rm top level await
* move env session in async code
* isLoggedIn to user data
* rename to user-session
* migrate from localstorage and cleanup
* fix private key
* add comment for env variable
* rm console log
2024-03-22 11:06:07 +00:00
James Gatz
582665df1c
feat(Command Palette): Introduce global search ( #7191 )
...
* global search
* fix local url
* environments and scratchpad handling
* update test
2024-03-22 11:51:47 +01:00
Hexxa
915513c2d0
fix(pre-req): several fixes to the current hidden window launching process - INS-3319 ( #7174 )
...
* fix: restart the hidden window if it is down
* fix: lint error
* fix: smoke test error because of restarting hidden window
* fix: the hidden window is not started after packaged, so sending request is always timeout
* fix: restart the hidden window when it is stuck
* fix: make createWindow and createHiddenWindow signatures and behaviour aligned
* flatten conditions
---------
Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-22 03:10:53 +00:00
Jack Kavanagh
a1cb6a69e5
support SSE method, request body and auth ( #7182 )
...
* support SSE request body
* fix remote close bug
2024-03-21 11:45:42 +00:00
Hexxa
fab636a669
feat(pre-req): enable manipulation of proxy and certificate through insomnia.request - INS-3379 ( #7171 )
...
* feat: enable manipulation on insomnia.request
* feat: enable manipulate proxy, certificate and auth through insomnia.request
Changes:
- chore: revert changes on test
- fix: allow user to update active request certs and proxy through insomnia.request
- feat: hook settings to insomnia.request and cleanups
- test: add a test for proxy and certificate manipulation
- fix: lint error
- fix: problems after rebasing
- fix: revamp auth transforming functions
- fix: type checking
- test: add a unit test for auth transforming
* chore: move auth manipulation changes to another PR
* fix: missing OAuth2AuthOption and lint error
* fix: add back UT for auth transforming
* fix: incorrect merging
* fix: lint error
* chore: remove no-proposed comparison
* fix: use predefined requests for test instead of reusing one
* fix: remove waiting
* test: refactor smoke tests to use predefined request if possible
2024-03-21 11:35:51 +00:00
Curry Yang
a5f859fbcd
fix: Export popup has small z-index ( #7187 )
2024-03-19 18:08:31 +08:00
Curry Yang
b7a078d744
fix: URL PREVIEW cut off first few lines for very long URL ( #7190 )
...
* fix: URL PREVIEW cut off first few lines for very long URL
* fix: use margin auto keep vertical center
2024-03-19 17:42:31 +08:00
Hexxa
a69a185fb6
chore(pre-req): improve the snippets menu for the pre-request script - INS-3319 ( #7173 )
...
* chore: add more helper snippets
* chore: add more helper snippets for pre-req scripting
* fix: use correct icons
* feat: enable basic auto code completing
* feedback
---------
Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-18 10:30:11 +00:00
Hexxa
85cb6dba3c
feat(pre-req): enable auth manipulation through insomnia.request - INS-3379 ( #7186 )
...
* feat: enable auth manipulation through insomnia.request
* test: add smoke tests for auth transforming
* feedback
* auth type fix
---------
Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-18 11:19:09 +01:00
Hexxa
7bd2441178
feat: enable insomnia.sendRequest in pre-request scripting - INS-3379 ( #7147 )
...
* feat: enable manipulation on insomnia.request
* chore: revert changes on test
* chore: fix and re-org pre-request scripts
* fix: bring back request test in smoke spec
* feat: enable insomnia.sendRequest
* chore: implement req-sender with function, remove unused cancellation
* add types
* feedback
* remove duplicate enums
* fix: pass settings and certificates to the hidden window
---------
Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-15 17:27:49 +08:00
Jack Kavanagh
3530d600fd
harden lint rule about array indexes ( #6758 )
...
* harden rule about array indexes
* simplify error boundary
2024-03-14 09:15:53 +01:00
James Gatz
21ce0baf83
feat(Insomnia Sync): add diff view on conflict resolution and handle cancelation ( #7175 )
...
* add diff view on conflict resolution and handle errors
* fix types
2024-03-13 12:45:11 +01:00
jackkav
dc3a55d972
manual start
2024-03-12 17:34:14 +01:00
James Gatz
fd0a78c7dc
Merge branch 'release/9.0.0-alpha.0' into develop
2024-03-12 16:23:07 +00:00
James Gatz
112ba40c8c
Bump app version to 9.0.0-alpha.0
2024-03-12 15:56:49 +00:00
Jack Kavanagh
c50e6aeb4a
fix changelog ( #7159 )
...
* cool
* seperate changelog
* should be fine
---------
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2024-03-12 16:53:41 +01:00
James Gatz
38f1dcead5
fix redirect after pull ( #7168 )
2024-03-12 15:44:04 +00:00
Jack Kavanagh
30be38b2ed
null url ( #7166 )
2024-03-12 16:25:44 +01:00
Jack Kavanagh
e08976c10e
authtypes ( #7156 )
...
* authtypes
* fix types
* fix types
* fix build
* fix test
* fallback websocket api auth
2024-03-12 12:29:10 +01:00
Insomnia
0b67970fdb
Bump app version to 9.0.0-beta.1 ( #7158 )
...
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2024-03-08 18:00:39 +01:00
James Gatz
83fde5570f
feat(Insomnia-Sync): Add diff view ( #7152 )
...
* diff view
* wip
* fully works
* stage items per workspace
* Add indicators for the type of change
* cleanup code
* clean up ui
* fix type issue
* rm todo
* fix snapshot issue and update tests
2024-03-08 17:15:15 +01:00
Jack Kavanagh
edc86e397e
set sort key on import ( #7148 )
...
* set sort key
* use a snapshot test
* reverse matcher
* fix test snapshots
* remove old outputs
2024-03-08 17:14:08 +01:00
Hexxa
bdd0d420e5
feat: enable manipulation on insomnia.request - INS-3379 ( #7145 )
...
* feat: enable manipulation on insomnia.request
* chore: revert changes on test
* fix: lint errors
* chore: clean up dependencies
* fix: lint error
* fix: smoke test failure
* chore: fix and re-org pre-request scripts
* fix: bring back request test in smoke spec
2024-03-08 16:40:20 +01:00
Insomnia
46432fab51
Bump app version to 9.0.0-beta.0 ( #7155 )
...
Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
2024-03-08 15:08:31 +00:00
James Gatz
506d287314
fix(keyboard shortcuts): Add missing shortcuts and fix the ones that don't work as expected ( #7116 )
...
* keyboard shortcut: show doc/collection settings
* add environment switch keybinding and modals on test and design view
* remove unused request switch
2024-03-08 14:42:18 +00:00
Jack Kavanagh
e622f0eca3
fix: use collection name when importing from postman ( #7142 )
...
* detect postman workspace name
* check import type
2024-03-08 15:04:28 +01:00
Jack Kavanagh
e14ecd1dc4
fix warning ( #7045 )
2024-03-06 11:59:59 +01:00
Hexxa
fcac7ebb92
feat: enable adding snippets menu for pre-request scripting - INS-3319 ( #7146 )
...
* feat: enable adding snippets menu for pre-request scripting
* chore: disable unsupported objects
* fix: incorrect icon
* feedback
* fix dropdown placement
---------
Co-authored-by: jackkav <jackkav@gmail.com>
2024-03-06 11:56:31 +01:00
Jack Kavanagh
24b096bd27
Feat/import-prereq-script ( #7144 )
...
* add import function
* fix some of the tests
* more tests
* fix tests
2024-03-05 13:44:37 +00:00
Jack Kavanagh
03172c5817
add tag ( #7137 )
2024-03-04 09:11:12 +01:00
Jack Kavanagh
6d5b2a6024
feat(prereq): add simple timeout ( #7079 )
...
* add simple timeout
* configurable timeout
* use label for workspace cards
* toggle visible
* add stop
* second timeout
* add test
* fix lint
* exclude from eslint
* fix types
2024-03-01 13:17:21 +01:00
Filipe Freire
b853660300
Revert "chore: temporarily disable pre-request scripting ( #7132 )" ( #7136 )
...
This reverts commit 6567a18175
.
2024-03-01 12:00:50 +00:00
Hexxa
6567a18175
chore: temporarily disable pre-request scripting ( #7132 )
...
* chore: temporarily disable pre-request scripting
* chore: fix comments
* fix: lint error
2024-02-29 23:18:12 +08:00
Jack Kavanagh
4e8fda94bb
remove deprecated nedb option ( #7118 )
...
* remove deprecated option
* Update packages/insomnia/src/main/window-utils.ts
2024-02-29 15:05:41 +01:00
Jack Kavanagh
9314fa56e3
feat: testing a mock endpoint cancellation ( #7093 )
...
* first pass
* update logs
* wait for response
* actually cancel
2024-02-29 15:04:46 +01:00
Hexxa
21505566fd
feat: enable Request and Response in pre-request scripting [INS-3379] ( #7128 )
...
* feat: enable ProxyConfig in pre-request scripting
* feat: enable RequestAuth for pre-request scripting
* feat: enable Cookie in pre-request scripting
* feat: enable Certificate in pre-request script
* feat: enable Request and Response in pre-request scripting
2024-02-29 14:41:29 +01:00
Hexxa
86f6d01ac9
feat: enable Url in pre-request scripting [INS-3379] ( #7123 )
...
* chore: enable Headers in pre-request scripting
* feat: add Variables and VariableList to the collection
* feat(hidden-window): enable url and UrlMatchPattern in pre-request scripting
---------
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-29 14:37:04 +01:00
Hexxa
a15b09af27
feat: enable collection-variable in pre-request scripting [INS-3379] ( #7122 )
...
* chore: enable Headers in pre-request scripting
* feat: add Variables and VariableList to the collection
---------
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-29 14:32:06 +01:00
Hexxa
46a7088f3c
feat: enable headers in pre-request scripting [INS-3379] ( #7121 )
...
* chore: enable Headers in pre-request scripting
* Update packages/insomnia/src/sdk/objects/__tests__/headers.test.ts
---------
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-29 14:29:48 +01:00
Hexxa
2ee1475cea
feat: enable property in pre-request scripting ( #7120 )
2024-02-29 10:51:49 +08:00
James Gatz
826890cc39
feat(Insomnia Cloud Sync): Update filesystem driver for VCS sync ( #7111 )
...
* use fs/promises and uuid instead of math.random
* Update packages/insomnia/src/sync/store/drivers/file-system-driver.ts
* Update packages/insomnia/src/sync/store/drivers/file-system-driver.ts
---------
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
2024-02-27 15:07:29 +00:00
Filipe Freire
ef9cd3c5ee
chore: bump GH actions versions [no-ticket] ( #7117 )
2024-02-27 14:49:14 +00:00
Hexxa
3fe4d89e8c
feat(hidden-window): add globals, iterationData and variables interfaces in pre-request scripting ( #7103 )
2024-02-27 09:37:34 +00:00
Filipe Freire
ff2d14488e
fix: move changelog step to release-publish ( #7114 )
...
* comment out changelog temporarily
* move changelog to release-publish
* fix
2024-02-26 17:02:51 +00:00
Filipe Freire
98c7df6283
fix: release-start changelog step [no-ticket] ( #7113 )
2024-02-26 14:46:25 +00:00
Hexxa
d7a0bc1e58
feat(hidden-window): enable baseEnvironment in the pre-request scripting ( #7102 )
...
* feat(hidden-window): enable baseEnvironment in the pre-request scripting
* fix: input empty selected environment data to avoid incorrect environment manipulation and overriding
* test: add a test for folder environments overriding
* fix: smoke tests failed because of env overriding
2024-02-23 20:00:20 +08:00
James Gatz
62a73fa3ec
add labels for branch names when resolving conflicts ( #7105 )
2024-02-22 13:12:35 +01:00
James Gatz
a7125a2314
Sync improvements ( #7098 )
...
* Conflict modal
* Better error handling for staging modal
* move pull dropdown items to project view
* add unsynced files to command palette
* add scratchpad check
* loading indicator for pulling remote projects on palette
2024-02-21 17:45:39 +01:00
Hexxa
7718df0489
feat(hidden-window): enable the insomnia object with the environment api [INS-3379] ( #7097 )
...
* feat(hidden-window): enable the insomnia object with the environment api
* fix: tests and lint errors
* fix: app building is flaky
* fix: fallback to the original environment instead of an invalid id
* chore: improve comment and remove unused code
2024-02-21 18:02:59 +08:00