Commit Graph

2431 Commits

Author SHA1 Message Date
Opender Singh
2dc1c145fc lib@2.2.14 2020-07-02 12:00:27 +12:00
Opender Singh
24630e1873 Fix github workflow 2020-07-02 11:52:49 +12:00
Opender Singh
1b5315fe55 lib@2.2.13 2020-07-02 11:39:48 +12:00
Opender Singh
e1d8f4d0e0 Mark insomnia-send-request as not private 2020-07-02 11:39:06 +12:00
Opender Singh
8459c85780 bump app version for alpha 3 2020-07-02 11:31:22 +12:00
Opender Singh
9af2054ccf lib@2.2.12 2020-07-02 11:29:00 +12:00
Opender Singh
b99228d080 Rename insomnia-cli to insomnia-inso 2020-07-02 11:28:05 +12:00
Opender Singh
d91e6735a7 lib@2.2.11 2020-07-02 11:19:48 +12:00
Gregory Schier
eae0d8d433
Unit test improvements (#2337)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* Unit test UI tweaks

* More PR comment addresses

* Change test name
2020-07-01 15:57:42 -07:00
Gregory Schier
3883dc6feb
POC for Unit Test UI (#2315)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* More PR comment addresses
2020-07-01 14:17:14 -07:00
Gregory Schier
48348e04c1
Swap out switch for new activity toggle component (#2335)
* Swap out switch for new activity toggle component

* Extra check

* Remove some more theme stuff

* Some PR feedback
2020-06-30 16:54:56 -07:00
Gregory Schier
984d6051ab
Rename emptyValue to blankValue (#2336) 2020-06-30 16:52:56 -07:00
Gregory Schier
bab945a6a1
Alternate send request callback for app to use (#2334) 2020-06-30 15:40:15 -07:00
Gregory Schier
9440bfe098
Add support for snippets in autocomplete (#2333)
* Add support for snippets in autocomplete

* Add snippet styling

* Use correct font color
2020-06-30 15:37:06 -07:00
Gregory Schier
f2060da23e Fix for when request is null 2020-06-30 15:32:58 -07:00
Gregory Schier
b0d0dd9359 Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-06-30 14:01:45 -07:00
Gregory Schier
05b2e7d345 Fix devtools hotkey 2020-06-30 14:00:58 -07:00
Gregory Schier
487047f843
Add test:pre-release script that excludes CLI tests (#2332)
* Add test:pre-release script that excludes CLI tests

* Less repetition
2020-06-30 13:54:38 -07:00
Jody Heavener
9f68e36eb4
Default to rendered request URL when name is not present (#2230)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-07-01 08:53:01 +12:00
Gregory Schier
45861b6393
POC to get Insomnia networking available outside of app (#2329)
* Hacked insomnia lib package to get Insomnia's networking in tests

* Some small tweaks

* Got it mostly working

* Tweak

* Fix

* Fix pkg

* Fix some things

* Add comment

* Comment out log

* Some tweaks after doing a self code review

* Fix test

* Update app name for `insomnia-send-request`

* Update package-lock

* Update package-locks

* Fix tests

* Add gitignore

* Fix tests hopefully

* Fix accidental dep deletions

* Fix tests again

* Mock for all tests

* Update tests again

* Don't compile for Electron for tests

* Update release scripts to disable tests
2020-06-30 12:36:15 -07:00
Opender Singh
7fb2b06942
Prompt for API Spec and support NeDB database (#2330) 2020-06-30 18:27:21 +12:00
Opender Singh
7d3660c8f0
CLI linting + exit codes (#2318) 2020-06-30 12:00:33 +12:00
Opender Singh
85860ce031
Add unit testing to CLI, configurable Mocha reporter (#2311) 2020-06-30 09:54:12 +12:00
Nicholas Raphael
d4c475fa57
Feature: Show Dev Tools with hotkeys (#2309)
* add key combinations for dev tools hotkey

* add Dev Tools accelerator to View menu remove from Develop menu

* remove changes from hotkey.js

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-29 11:48:53 -07:00
Gregory Schier
55be1de2bd lib@2.2.10 2020-06-29 10:51:46 -07:00
Gregory Schier
aadcf7b49d Fix lerna version 2020-06-29 10:47:55 -07:00
Gregory Schier
c0931d94b7
Update test fixtures and support sendRequest() callback (#2325)
* Update test fixtures and allow sendRequest() callback for testing

* Change runTests() to take in test src instead of a file

* Fix looping

* Fix tests and write temp test files into folder

* Fix Flow type for mocha
2020-06-29 10:40:15 -07:00
Gregory Schier
dc2ca9ac88
Add multi-switch component, refactor radio group, and add success icon (#2324)
* Add multi-switch component, refactor radio group, and add succeess icon

* Fix dark theme for storybook

Co-authored-by: Mike Ellan <52717970+sonicyeti@users.noreply.github.com>
2020-06-26 10:45:11 -04:00
Opender Singh
e359da5afd
CLI: input and output flags should respect workingDir (#2307) 2020-06-26 12:32:15 +12:00
Gregory Schier
1b8c24fbee Update plugins package.json as well 2020-06-25 15:52:26 -07:00
Gregory Schier
85f4bf31be Update packages from lib@2.2.9 publish 2020-06-25 15:50:39 -07:00
Opender Singh
1d10a42851
Upgrade husky and eslint (#2306)
* hopefully

* Update

* Update

* Fix

* Update
2020-06-19 05:48:09 +12:00
Gregory Schier
5220d34a3a
Unit Test Generation and Running PoC (#2232)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-06-18 12:21:52 +12:00
Opender Singh
df2bbda240
Support CLI operations against the .insomnia git data directory (#2294) 2020-06-18 10:58:31 +12:00
Opender Singh
2586ee5ad7
Bundling improvements for insomnia-components (#2297)
* Bundling improvements for insomnia-components

* Update

* Update
2020-06-17 07:46:13 +12:00
Sergey
f399c9e95f
Sort enviroment variables in the dropdown on edit (#2295) 2020-06-16 10:29:29 -07:00
Mike Ellan
a200e31e61
Adding copy support for preview input fields (#2296) 2020-06-15 16:21:44 -04:00
Opender Singh
65105da797
The One With Hooks (#2286)
* Add

* Update

* Remove extra peer dep

* Remove extra peer dep undo

* Undo stuff

* Convert two components (validation)

* Undo packed dep change

* Fix for react-dom alias to @hot-loader/react-dom (#2292)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-06-13 16:56:15 +12:00
Gregory Schier
471fa1d7d8
Prevent insomnia-components from bundling entire crypto module (#2291)
* Fix insomnia-components from bundling entire crypto module

* Include package-lock.json
2020-06-12 20:31:37 -07:00
Sergey
723b31c731
Fix contrast ratio of lists and header3 (#2287) 2020-06-12 13:47:15 -07:00
Sebastian Jonasson
71e1c748db
[insomnia-importers]: Update programmatic usage example in README (#2288) 2020-06-12 11:40:09 -07:00
Opender Singh
0b005bf376 Make insomnia-cli package private (for now) 2020-06-12 11:46:11 +12:00
Opender Singh
f38bf20e13
Headless CLI POC (#2258) 2020-06-12 11:44:12 +12:00
Augusto Roman
208aec6ec8
Add "When Expired" setting for request resend trigger condition. (#2284)
This adds a new trigger condition for re-sending a request for the
`response` plugin called "When Expired". This condition allows
specifying a maximum age of a response to use. This is very useful when
configuring a hierarchy of environment variables that ultimately depend
on an auth token that needs to be refreshed periodically.

Previous workarounds are:
1. Use "always refresh". This fails in cases where you must use the same
   auth token since it is refreshed for every request.
2. Use "no history" or "never" and manually refresh the token. This is
   inconvenient and requires pinning the token.

Alternative solutions are:
1. Add more sophisticated logic to determine when the token needs to be
   refreshed (e.g. refresh if the current request returns a `401` status
   code)
2. Write a custom response plugin to time out the token. I believe this
   functionality is small enough and general enough to be contributed
   back generally.

Fixes #1972
2020-06-11 13:00:46 -07:00
Gregory Schier
6b4f009a67
Add fallback status messages for HTTP/2 (Closes #2273) (#2275) 2020-06-10 11:16:09 -07:00
Gregory Schier
53c21fba37
Add ability to specify HTTP version (#2276)
* Add ability to specify HTTP version (Closes #2245)

* Fix default HTTP version

* Format w/ Prettier
2020-06-10 11:15:56 -07:00
Gregory Schier
ec81568d43
Add Snapcraft release to Core and Designer (#2268)
* Try building snap package

* Custom snap workflow

* Fix names

* Put back node install

* Try moving env

* Add fontconfig lib

* Fix libfontconfig-dev

* Fix git tag priority

* Fix env

* Fix git ref

* Wow, fix ref again

* Remove Node 10 requirement

* Wow I'm silly

* Back to Node 10

* Ditch electron-builder Docker container

* Try apt-get witihout sudo

* Try snapcraft action

* Install snapcraft

* Log into snapcraft

* Install correct version of snapcraft

* Install snapcraft via snap

* Change Designer executable name

* Publish snap to stable

* Try snap store publish overrides

* Fix buildContext reference

* Delete debug release-snap workflow

* Remove electron-builder container

* Remove unnecessary env

* Add back node 10 version check

* Revert non-working snap channel override
2020-06-09 17:32:01 -07:00
Gregory Schier
418be4c495
Add back fsevents (#2270) 2020-06-09 17:31:41 -07:00
Gregory Schier
7f4a5529e9
Fix usable of nested objects in environments (#2249) 2020-06-09 14:14:05 -07:00
Opender Singh
96defb1ec2 Bump versions to 2020.2.2 2020-06-09 13:28:45 +12:00