Commit Graph

2141 Commits

Author SHA1 Message Date
Jack Kavanagh
c85205cef5
prevent focus loss (#4925) 2022-07-04 11:35:16 +00:00
Filipe Freire
0e0591262b
Chore: bump playwright to version 1.23.0 (#4914) 2022-07-01 16:44:42 +00:00
Maksim Rotmann
044a3b0a7d
Remove wrong backticks from json path help window (#4892)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-07-01 16:14:13 +00:00
David Marby
946b5627bc Bump app version to 2022.5.0-beta.2 and lerna package versions 2022-06-30 08:10:31 +00:00
Dimitri Mitropoulos
9bea9e06f1
fixes ContentTypeDropdown and AuthDropdown (#4918) 2022-06-29 17:34:28 -04:00
Dimitri Mitropoulos
f00dc50da0
fixes tsconfigs for preload files (#4915) 2022-06-29 13:41:26 +00:00
Jack Kavanagh
ba04d2c47d
Chore/some-fc (#4904)
* editable

* wrapper debug

* method dropdown

* request actions dropdown

* response history dropdown

* wrapper home

* copy button

* auth dropdown

* env dropdown

* content type dropdown

* fix types

* second pass

* response csv viewer

* useCallback pass

* more useCallbacks

* wrapper unit test

* simplify pagelayout

* fix editable bug in unit test

* wrapper unit test useCallbacks

* some gentle tidying

* useCallback usage for async func

* switch to useInterval

* updates types for Editable, Highlight, et al.

* moves usage after declaration

* extracts FC for AuthDropdown items

* removes some prop drilling and extracts component

* adds mandaotry useCallback, rm unused props, types

* use named exports from react npm like rest of project

eventually, we will remove usages of `React` default export since it's a hack from half a decade ago that's no longer necessary now that jsx-transform is a thing.

* removes unnecessary useImperativeHandle (we learn somethin' every day)

* adds necessary useCallback, removes unnecessary useImparativeHandle, TS

* fixes types for useRef (turns out you don't need null in the generic)

* removes unused props

* fixes types from ref helpers

* fixes return from useCallback

* updates useCallback usages

* fixes bind

* fixes lint

for some reason, kept getting:

```
insomnia: /home/dimitri/src/github.com/Kong/insomnia/packages/insomnia/src/preload.js
insomnia:   0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
insomnia: The file does not match your project config: packages/insomnia/src/preload.js.
insomnia: The file must be included in at least one of the projects provided
```

* revert incomplete type change

* remove unnecessary useEffect

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-29 12:17:13 +00:00
Vincenzo De Petris
3057da42a9
fix: disable font ligatures (#4813) (#4891)
apply font-ligatures-variant style to all elements

Co-authored-by: Vincenzo De Petris <vincenzodepetris@gmail.it>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-29 12:41:49 +01:00
Mark Kim
cd3a079554
refactor: disable URI input for github & gitlab (#4913)
* add disabling logic

* add type

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-29 11:47:21 +01:00
Mark Kim
3a4ddfc935
add icon for git providers (#4912)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-29 11:47:04 +01:00
Dimitri Mitropoulos
1eb74c363e
undoes prop drilling for creating request groups (#4910) 2022-06-29 10:06:05 +00:00
David Marby
df9a48e010
Upload sourcemaps to Sentry on publish (#4909) 2022-06-28 11:29:28 +02:00
Dimitri Mitropoulos
ed3aad6046
tsconfig cleanup (#4908) 2022-06-27 12:57:50 -04:00
Jack Kavanagh
bbceb6097c
Typed preload (#4886)
* convert preload to typescript

* preload types second pass

* improve types

* fix import

* simplify types

* remove migration map

* preload alongside main

* naming improvements

* fix global typing by adding vite import types

* fix test

* isolate main only network code

* fix mapping mistake

* clarify timeline logic
2022-06-26 13:36:30 +00:00
Mark Kim
4f5ef73f7e
fix: adding a fix to the openapi2kong circular deps issue (#4872)
* commit progress

* save changes

* add components and $schema

* add components and $schema

* adding a doc

* add typings

* fix unit tests

* fix unit tests

* add fix and verified with kong cli

* fix unit tests

* Improve types and parameter/body resolution

Co-authored-by: Mark Kim <marckong@users.noreply.github.com>

* fix circular "components" issue

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
2022-06-24 19:48:45 +00:00
Filipe Freire
8300652981
Chore: All dependabot PRs 23 june 2022 (#4893)
* Bump shell-quote from 1.7.2 to 1.7.3 in /packages/insomnia-importers

Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump got from 11.8.3 to 11.8.5 in /packages/insomnia-smoke-test

Bumps [got](https://github.com/sindresorhus/got) from 11.8.3 to 11.8.5.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.8.3...v11.8.5)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix indentation for package-lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-24 09:54:51 +01:00
Wils Dawson
b400eb1160 Bump app version to 2022.5.0-beta.1 and lerna package versions 2022-06-23 14:10:00 +00:00
tangweikun
1aca90a810
Fix timeout setting in milliseconds (#4881)
* feat: make NumberSetting support step

* fix: correct request timeout help message

* make default step 1 for NumberInput

* Provide similar experience for other inputs with ms

Co-authored-by: tangweikun <tangweikun@corp.netease.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-06-23 15:12:59 +02:00
Filipe Freire
00a383690e Merge branch 'release/2022.4.2' into develop 2022-06-22 18:23:44 +01:00
Filipe Freire
dd79b934bf
Add graphQL to smoke tests (INS-1592). (#4867)
* Add graphQL to smoke tests (INS-1592).

* Remove waitForNavigation

* Tidy up code, improve assertions and selectors

* Fix typo

* add gandalf

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-06-22 15:29:27 +00:00
Filipe Freire
f44da26ff3 Bump app version to 2022.4.2 and lerna package versions 2022-06-22 14:24:12 +00:00
James Gatz
38a53e603b Redirect to the project view if no active workspace (#4882) 2022-06-22 15:10:57 +01:00
Jack Kavanagh
07706d093a remove last workspace check (#4880) 2022-06-22 15:10:43 +01:00
James Gatz
8d7b9d8b7a
Redirect to the project view if no active workspace (#4882) 2022-06-21 16:50:43 +00:00
Jack Kavanagh
a05db00c98
remove last workspace check (#4880) 2022-06-21 18:29:02 +02:00
Jack Kavanagh
97e3e0c2d8
bump hawk (#4863)
* bump hawk

* package locks
2022-06-18 09:50:06 +00:00
John Chadwick
5622393f24
Enable strict TypeScript in insomnia. (#4869)
* Enable strict TypeScript in insomnia.

* Remove implied tsconfig settings.
2022-06-16 22:13:54 +00:00
John Chadwick
f52bafc21b
Properly handle 204 from notifications endpoint (#4873)
In some cases, the notifications endpoint can return a 204 response with
no body. This commit fixes a regression where this causes a warning.

Note that there is no user facing impact.
2022-06-16 19:13:50 +00:00
Jack Kavanagh
6707e5889d Bump app version to 2022.5.0-beta.0 and lerna package versions 2022-06-16 09:58:24 +00:00
Mark Kim
3edef836c6
fix: adding a simple fix for entering to send a request (#4868)
* add hack

* adding the empty string check else where

* limiting the event scope

This merge will close the following draft PR for its spike work as well.
2022-06-15 18:41:57 +00:00
David Marby
b24d30a21d Merge branch 'release/2022.4.1' into develop 2022-06-15 19:26:05 +02:00
Filipe Freire
07c5b0cc66 Bump app version to 2022.4.1 and lerna package versions 2022-06-15 09:56:45 +00:00
Jack Kavanagh
720dcad6b2 use public class function (#4859) 2022-06-15 10:51:26 +01:00
John Chadwick
3234c05c6e
Enable noImplicitAny. (#4864)
* Enable noImplicitAny.

* extracts PreviewMode

* Update packages/insomnia/src/network/certificate-url-parse.ts

* Add missing type.

* un-any-ifies some of the modal onDone callbacks

easy enough.

* few more onDone, but the async ones this time

* Get rid of jsonlint any.

* adds noImplicitAny support for insomnia-smoke-test

* fixes playwright type error

* avoid full @ts-ignore in playwright

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-14 23:41:19 -04:00
Dimitri Mitropoulos
d1f4063e7d
Adds dropdown items for New Folder (and requisite work to accomplish this) (#4862)
Co-authored-by: Dimitri Mitropoulos <dimitropoulos@users.noreply.github.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-06-14 10:00:12 -04:00
John Chadwick
4e85928998
Follow-up: rename shadowing variable r. (#4860) 2022-06-13 12:57:30 -04:00
John Chadwick
fc36be710f
Make ButtonProps.onClick more type-able. (#4853)
* Make Button onClick prop more typeable

Swaps the order of the arguments so that the optional arg is second.

* Review fixes.

* removes some implicit any's

* NoticeTable to FC

might as well, at this point.  we're trying to do these as we can as they present themselves

* fixes margin for collapse icon (broken before this PR)

and removes an unnecessary type parameter

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-13 15:20:05 +00:00
Jack Kavanagh
dcdc429b9b
use public class function (#4859) 2022-06-13 16:53:02 +02:00
John Chadwick
5158abb108
Improve typing in some API code and components. (#4852)
* Add @types/jshint.

* Add type defs for hkdf, objectpath and srp-js

* Improve type safety of API code.

* Misc type fixes/improvements.
2022-06-10 12:10:53 -04:00
Gabriel Amorim
7b7a8c83ae
fix: check if bubble is a child of Tooltip container before removing it (#4821)
Co-authored-by: Gabriel Rosa <gabriel.rosa@dadosfera.ai>
Co-authored-by: Mark Kim <103070941+marckong@users.noreply.github.com>
2022-06-09 17:09:28 -04:00
Filipe Freire
e98bf5d427 Merge branch 'release/2022.4.0' into develop 2022-06-09 14:15:03 +00:00
Jack Kavanagh
28acc69435
bump node and electron 19 (#4847)
* bump electron, node and node-libcurl

* package locks
2022-06-09 09:17:28 +01:00
Filipe Freire
2d6d9ec37f Bump app version to 2022.4.0 and lerna package versions 2022-06-09 08:05:54 +00:00
Dimitri Mitropoulos
c6a17d8a3e
chore: single letter variables (#4848) 2022-06-08 12:27:21 -04:00
John Chadwick
325abe1d00
Improve typing in various UI components. (#4842) 2022-06-08 15:17:02 +00:00
Filipe Freire
10faac4232 Bump app version to 2022.4.0-beta.4 and lerna package versions 2022-06-08 09:21:49 +00:00
Filipe Freire
fc857cb726
chore: Fix package-locks after spectral upgrade (#4840) 2022-06-08 09:11:49 +00:00
Mark Kim
1519fa79cd
add text label change (#4843) 2022-06-07 18:56:25 +00:00
Mark Kim
c2a0abca62
refactor: add segment tracking for git sync (#4841)
* add segment tracking for git sync

* add suggestion

* fix lint

* add other cases for tracking

* add type fix
2022-06-07 18:10:47 +00:00
Take Weiland
5b1ab1b69d
Correctly handle per-operation scopes when importing from OpenAPI 3 (#4756)
* Fix OpenAPI 3 importer ignoring per request scopes

* Fix OpenAPI 3 tests

* Add more tests for OpenAPI 3 endpoint scopes

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-06-06 14:13:14 +00:00
James Gatz
34aa27a5fd
add react-router and split on activity paths (#4767) 2022-06-06 13:32:34 +02:00
Jack Kavanagh
70f8e7fbf9
only build sr when used (#4772) 2022-06-06 10:50:09 +00:00
Jack Kavanagh
29f530e19c
graphql empty url error (#4835)
* return early if theres no url

* remove fetching... message

* refactor: early return
2022-06-03 12:42:07 +00:00
dependabot[bot]
09ee423cb6
Bump protobufjs from 6.11.2 to 6.11.3 in /packages/insomnia-smoke-test (#4833)
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 6.11.2 to 6.11.3.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/v6.11.3/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/v6.11.2...v6.11.3)

---
updated-dependencies:
- dependency-name: protobufjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-03 13:00:50 +01:00
Filipe Freire
0517a0c103
chore: Upgrade Spectral (new clean attempt) (#4834)
* Upgrade Spectral Dep (clean attempt)

* Add smoke test for OpenAPI import (INS-1425)

* Remove immer and unnecessary await
2022-06-03 11:44:54 +01:00
Jack Kavanagh
9c269f40cc
class to pure the second pass (#4831)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-02 14:28:15 -04:00
Mark Kim
723011021b Merge branch 'release/2022.4.0-beta.3' into develop 2022-06-02 17:41:01 +00:00
John Chadwick
ccdc84daba
INS-1501: Sentry integration. (#4817)
* Install Sentry.

* Improve fetch typings.

* INS-1501: Sentry integration

* Split Sentry logic between UI and main.

* TSDoc

* Move sentry DSN into config.json.

* Fix doc comments.

(Doc'ing code like it's 1997.)

* Make long comments hilariously unreadable.

* Remove unused segment event.

* Re-export app environment.

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-06-02 16:41:06 +00:00
Mark Kim
35f5094048 Bump app version to 2022.4.0-beta.3 and lerna package versions 2022-06-02 13:20:00 +00:00
Jack Kavanagh
c49111b63a
Feature/ins-1518-improve-create-request-dropdownmodal (#4812)
* can make grpc request

* can create GraphQL request

* remove hotkey logic

* remove new request modal

* match new hotkey to old quick request

* add request shortcuts to folder context menu

* merge both old hotkeys to new one

* added requestType to segment

* fix feedback

* fix requestType is event

* default to HTTP request
2022-06-02 08:31:04 +01:00
James Gatz
4dd89b14d2
add gitlab oauth provider and ui (#4727)
* add gitlab oauth provider and ui

* add gitlab remaining

* add graphql field in query

* add gitlab oauth provider and ui

* add gitlab remaining

* add graphql field in query

* add some changes for testing

* add gitlab oauth provider and ui

* add gitlab remaining

* add graphql field in query

* add some changes for testing

* add some changes

* modify test

* try to refresh the token on git auth failure

* use localStorage to retrieve the session token

* simplify e2e tests for gitlab

* read the gitlab config from the api

* refresh the token if unauthorised

* use the rest api to fetch the user's data

* add loading state for config and handle 4xx errors in the ui

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

* improve config fetching

* fix(e2e): add mock route for config

* Fix fetching gitlab config from the API

* add src as dep to avatar component hook

Co-authored-by: Mark Kim <yowmark613@gmail.com>
Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-06-01 10:39:31 +02:00
Dimitri Mitropoulos
cc9f11be30
chore(build): move insomnia-inso to esbuild (#4806) 2022-05-25 09:58:28 -04:00
Nhoem Chenda
5d1cc79bb5
Fix Issue https://github.com/Kong/insomnia/issues/4773 (#4815) 2022-05-25 10:21:24 +01:00
David Marby
deee30ad75
Remove unused end trial modal (#4804) 2022-05-20 16:02:16 +02:00
Jack Kavanagh
47af218532
add mimeType to analytics (#4802)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-05-20 12:46:50 +01:00
Dimitri Mitropoulos
8bc653388c
chore(deps) @jest/globals for insomnia (#4798) 2022-05-20 07:05:25 -04:00
Dimitri Mitropoulos
fe20729c64 Merge branch 'release/2022.4.0-beta.2' into develop 2022-05-19 14:52:57 +00:00
Mark Kim
b2d90df572
refactor: rename the git sync submission label (#4781)
* rename the git sync submission label

* add test fix

* change the button to use name

* add requested changes

* removeing :light selector
2022-05-19 10:17:02 -04:00
Dimitri Mitropoulos
0dd6090f1b Bump app version to 2022.4.0-beta.2 and lerna package versions 2022-05-19 14:12:37 +00:00
Dimitri Mitropoulos
6e5476de70
chore(deps) updates (all but insomnia) to use @jest/globals (#4793) 2022-05-18 17:27:31 -04:00
Dimitri Mitropoulos
fa02c76afa
removes delinquent flowtype leftovers (#4792) 2022-05-18 14:07:17 -04:00
Dimitri Mitropoulos
52393eccc0
chore(deps): upgrades jest to 28 (#4783) 2022-05-17 08:18:06 -04:00
Filipe Freire
c18a729fe7 Bump app version to 2022.4.0-beta.1 and lerna package versions 2022-05-12 13:27:17 +00:00
Sergiy
dd501ee498
postman import auth (from headers and/or auth object) (#4375)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-05-12 07:52:41 -04:00
Jack Kavanagh
bddf13a6e5
chore: simplify ca cert handling for app and inso (#4738)
* move file write to main

* fix tests

* fix path import

* generate root certs at app start

* remove unused scripts

* consistently use os.tmpdir for cacerts

* clean up gitignore

* setup ca cert once

* use cainfo_blob

* fix lint

* fix curl mock

* fix formatting
2022-05-11 15:59:59 +00:00
Dimitri Mitropoulos
4e47da16b6
always show debug oauth2 request timeline button (#4768)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-05-11 08:38:57 +00:00
Jack Kavanagh
1edaa4aa83
fix set-cookie header parsing (#4769) 2022-05-11 09:20:06 +01:00
Mark Kim
37be1436ec
chore: add metrics tracking for design preview button (#4761)
* add metrics button

* add requested changes

* add requested changes

* add requested changes

* add requested changes

* add some clean up

* add requested changes

* update comments

* add reflection of discussion

* Update packages/insomnia/src/common/analytics.ts

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>

* Update packages/insomnia/src/common/analytics.ts

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>

Co-authored-by: Mark Kim <yowmark613@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-05-10 18:10:39 -04:00
Akiva Gordon
53c4c10be4
strengthens types of key command usage in keyboard-keys (#4520) 2022-05-10 09:59:34 -04:00
Filipe Freire
e34e80e569
Publish Inso CLI docker images (INS-1238) (#4722)
* Add inso docker on build & publish workflows

* Pin alpine image to 3.15.4

* Rename kongcloud/insomnia-inso to kong/inso
2022-05-09 12:37:33 +01:00
David Marby
116f011b22
Start the grpc smoke-test server alongside the http server (#4760) 2022-05-05 17:49:14 +02:00
David Marby
debe68b3f1 Merge branch 'release/2022.4.0-beta.0' into develop 2022-05-05 15:06:09 +02:00
David Marby
e023b74341 Fix missing dependencies in package-lock.json for electron-builder-squirrel-windows 2022-05-05 13:53:36 +02:00
Jack Kavanagh
6285ab8b0f
add grpc server (#4758) 2022-05-05 13:30:13 +02:00
David Marby
e2d2c3093d Bump app version to 2022.4.0-beta.0 and lerna package versions 2022-05-05 10:22:35 +00:00
Jack Kavanagh
ef03a0feb9
fix inso output contained webpack warnings (#4751)
* cleanup unused code

* decouple unit testing feature and inso

* tigthen up key value pairs array to reducer
2022-05-03 11:50:30 +00:00
Wazbat
a8407b626d
Added error handling for github auth urls (#4749)
* 🥅 Added error handling for github auth urls

* 💬 Added error display to github auth form

* 💬 Updated Invalid URL error text

* 💬 Updated Incomplete URL error text

Changed conditional to follow guard pattern

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-05-02 20:55:51 +00:00
Jack Kavanagh
a10328ec29
fix autocomplete snippet evaluation for unit test (#4750)
* fix autocomplete snippet evaluation for unit test

* fix types
2022-05-02 16:43:11 +00:00
Jack Kavanagh
d16eaa553f
add grpc test (#4746) 2022-05-02 16:00:19 +02:00
David Marby
a037a3b844
Fix incrementing npm package versions for pre-release revisions (#4741) 2022-05-02 12:06:52 +02:00
Jack Kavanagh
0aeaa085e5
multipart is now called from main (#4733) 2022-04-28 16:01:18 +00:00
James Gatz
7a3740b03d
remove pdfjs-dist in favor of native chromium pdf viewer (#4720)
Co-authored-by: David Marby <david@dmarby.se>
2022-04-28 13:48:37 +00:00
David Marby
1ee7c198f1 Merge branch 'release/2022.3.0' into develop 2022-04-28 15:05:00 +02:00
Jack Kavanagh
4a56db0560
remove unused deps (#4730)
* restore packages used in scripts

* package lock
2022-04-28 12:36:05 +00:00
Dimitri Mitropoulos
cced992115
Upgrades electron to 18.1.0 (#4643)
Co-authored-by: David Marby <david@dmarby.se>
2022-04-27 15:40:05 +00:00
David Marby
04bbde88b4
Update highlight.js and only include common languages (#4721)
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-04-26 13:47:17 +00:00
David Marby
e836799505
Fix post requests with empty body (#4728) 2022-04-26 15:45:07 +02:00
David Marby
ec85cd664b
Fix PDF previews (#4723) 2022-04-25 13:38:52 +02:00
David Marby
e7730587ef Bump app version to 2022.3.0 and lerna package versions 2022-04-22 11:53:32 +00:00
David Marby
75636ff40d Build insomnia-inso for production before publishing to npm 2022-04-22 13:48:38 +02:00
David Marby
b8c0c7fd41 Sync package-lock.json versions 2022-04-21 22:07:05 +02:00
Daniel Stone
874d4945b6
Add missing characters to URL regex (#4710)
*Added the unreserved character ~ and the reserved characters '(), to the URL matching regex since these can appear without being URL encoded.

*Added test for tilde in URL
2022-04-21 18:21:23 +00:00
David Marby
5f6f0edd39 Merge branch 'release/2022.3.0-beta.4' into develop 2022-04-21 19:50:06 +02:00
David Marby
e5084c9335 Fix showing responses when "Filter responses by environment" is enabled, and a collection has no user created environments 2022-04-21 16:53:15 +02:00
gatzjames
d0eaffec42
fix spacing in plugins settings 2022-04-21 13:42:41 +02:00
Jack Kavanagh
40af38c3b9
decouple curl options from renderer (#4687)
* move some operations to main

* move more options to main

* move cookies and multipart

* remove cert legacy migration

* move auth and aws helper

* move certs options to main

* remove libcurl usage from renderer and tidy

* extract oauth2 flow back to renderer

* add parse headers tests

* minimally type req

* organise libcurl-promise by req properties

* minimally type used settings

* tidy up debug timeline

* fix cookie bug

* tasty little parsing function refactor

* doh! trim

* tidy up set cookie method/self review

* extracted functions from set-cookie logic

* refactoring with tests

* formatting after rebase

* clarification of duplicate header support

* tighten up parse headers

* simplify aws signing

* fix app version imports
2022-04-20 22:02:32 +01:00
John Chadwick
776a5148a5
Fix for CVE-2021-3777 (rebased) (#4716)
* Add .whitesource configuration file

* Added GitHub Sync action to repository.

* Fixed CVE

nodejs-tmpl is vulnerable to Inefficient Regular Expression Complexity

Updated from 1.0.4 to 1.0.5.

Publish Date: 2021-09-15

URL: https://vuln.whitesourcesoftware.com/vulnerability/CVE-2021-3777

* Delete ibm_fork_sync.yml

* Delete .whitesource

Co-authored-by: whitesource-bolt-for-github[bot] <42819689+whitesource-bolt-for-github[bot]@users.noreply.github.com>
Co-authored-by: Ivan Pedrero <pedrero.ivan@hotmail.com>
2022-04-20 19:37:14 +00:00
Dimitri Mitropoulos
a54335c0ea
hotfix: invalid or unused lockfiles (#4714) 2022-04-20 18:49:10 +00:00
Dimitri Mitropoulos
213e1dd1c8
rename insomnia-app/app to insomnia/src (#4491) 2022-04-20 17:42:19 +00:00
David Marby
0d46d18847 Bump app version to 2022.3.0-beta.4 and lerna package versions 2022-04-20 15:19:38 +00:00
Jack Kavanagh
6e3e6ac102
remove packedDependencies and custom package script (#4704)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-04-20 13:49:07 +00:00
James Gatz
fec3e4d551
fix(styled-components): add specificity selector (#4711) 2022-04-20 12:16:02 +00:00
Matt
9a2049fd9f
Bumped electron to 17.3.1 (#4708) 2022-04-20 11:03:02 +00:00
Dimitri Mitropoulos
a5a1be23d6
catches JSON.parse possible error in oauth2 identity token field (#4709) 2022-04-20 10:32:35 +00:00
Filipe Freire
7e209fa20a
Fix FTI-3278, missing null type for kong request-validator plugin on nullable true. (#4675) 2022-04-19 20:53:20 +00:00
Filipe Freire
d039038f80
Workaround for oauth2 postman v2.1 import, fixes #4437. (#4440)
* spike: workaround for oauth2 postman v2.1 import, fixes #4437.

* Add tests and fixtures.

* Fix eslint

* Fix postman importer tests. WSDL importer failing.

* Rm throw Error line

* updates comment

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-04-19 20:27:54 +00:00
Dimitri Mitropoulos
305df5109b
removes duplicated "config.longName" (#4706) 2022-04-19 16:03:52 -04:00
James Gatz
058aeebb86
expose react and react-dom in plugin private context (#4689)
* expose react and react-dom in plugin private context

* updates lockfile

* un-async the action

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-04-19 18:34:14 +00:00
Filipe Freire
cc63a1ccec
Chore: Update extensions/v1beta1 to networking.k8s.io/v1 on OpenAPI-2-Kong (#4667)
* Update extensions/v1beta1 to  networking.k8s.io/v1

This is follow the deprecation guide of past k8s version 1.22

https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingress-v122

* Fix other deprecated k8s ingress interfaces.

* Fix typo in url.
2022-04-19 18:00:23 +00:00
dependabot[bot]
dafed833e6
Bump urijs from 1.19.10 to 1.19.11 in /packages/insomnia-send-request (#4693)
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.10...v1.19.11)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-04-19 17:11:44 +00:00
dependabot[bot]
74fff0c973
Bump urijs from 1.19.10 to 1.19.11 in /packages/insomnia-inso (#4692)
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.10 to 1.19.11.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.10...v1.19.11)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-19 17:35:24 +01:00
James Gatz
eb21506d40
️vite/esbuild (#4329)
* ️ vite

* replace webpack with esbuild in build script

* move build sr to esbuild

* esbuild send-request shim

* remove main externals

* fix lint

* remove webpack from insomnia-testing

* removes more webpack stuff

TODO after this PR: make debugging work again

* pin swagger-ui-react to version before esm change

* restore prepare script to build in bootstrap

* use default tsconfig for eslint and apply fixes

* bundle insomnia-components as cjs/esm

* makes ca_certs.ts pass linting

* builds types for insomnia-components

* improve build script for production

* skip typechecking insomnia-components

* separate package from build

* add electron to externals

* add preload bundling and fix build output

* exclude grpc/proto-loader from the bundle

* move node packages to commonjs

* don't bundle grpc since it's a node module

* fix content security error

* use vite lib mode for insomnia-components

* tidy up vite config and tsconfig options

* update package-locks

* use process.env. for static build time variables

* fix vscode debugging

Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-04-18 17:27:39 +02:00
Mark Kim
bdab0957d5
fix: environments modal key issue (#4702) 2022-04-15 16:50:20 -04:00
Dimitri Mitropoulos
4e52148de4
removes TOGGLE_MAIN_MENU shortcut since there (essentially) isn't a main menu anymore (#4698) 2022-04-15 16:16:43 -04:00
Jack Kavanagh
e250139f77
flatten array (#4695) 2022-04-14 13:15:57 +02:00
Dimitri Mitropoulos
727c1f3366
chore: bracket lint rules (#4694) 2022-04-13 17:04:29 -04:00
Jack Kavanagh
b306d7fdd4
Chore/network dejanking (#4621)
* extract db out of _actuallySend setup

* extract transform response headers

* extract send body

* simplify set cookie function

* remove respond and error helpers

* decouple body options from renderer

* fix tests

* fix cancel

* remove unused envid from _actuallysend

* remove unused body settings

* simplify aws error logic

* remove validate override/code review

* add envid back in for posterity

* fix test

* split body parsers

* extract set headers

* decouple multipart and headers

* raise unused props

* body compression must be overriden to null

* remove extra return/code review
2022-04-11 19:33:54 +01:00
Dimitri Mitropoulos
7d8c303318
chore(deps): styled-components (#4669)
* upgrades styled-components

* lockfiles

* map styled-components to the insomnia-app node_modules to fix React version mismatch

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-04-08 15:47:39 +01:00
Filipe Freire
1972347cca
Chore: bump playwright version to 1.20.2 (#4681) 2022-04-08 14:18:41 +01:00
Filipe Freire
03fdd2eb7d Bump app version to 2022.3.0-beta.3 and lerna package versions 2022-04-07 16:59:54 +00:00
David Marby
21a3c13f4c
Fix wsdl imports (#4677)
* Re-enable all insomnia-importers fixture tests

* Fix WSDL importer
2022-04-07 16:28:24 +00:00
David Marby
7f2bdda6e7
Use showError for all sync error cases (#4672) 2022-04-07 11:14:11 +02:00
Dimitri Mitropoulos
9700e7bde8
Remove flow (and webpack) from portal plugin, replace with TS and ESBuild (#4650) 2022-04-04 12:17:01 +00:00
Dimitri Mitropoulos
11e2bf35ae
some tiny fixes in misc.ts (#4640) 2022-04-01 22:59:38 +00:00
Filipe Freire
4a7faa4237
All dependabot PRs 2022 03 28 (#4648)
* Bump ansi-regex from 5.0.0 to 5.0.1 in /packages/insomnia-config

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ansi-regex from 5.0.0 to 5.0.1 in /packages/insomnia-common

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump node-forge from 1.0.0 to 1.3.0 in /packages/insomnia-send-request

Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.0.0 to 1.3.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.0.0...v1.3.0)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run bootstrap.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-01 12:31:20 +00:00
Filipe Freire
273b26b0b4 Bump app version to 2022.3.0-beta.2 and lerna package versions 2022-03-31 14:28:34 +00:00
John Chadwick
8841a60d58
Update node-libcurl to 2.3.5-0. (#4659) 2022-03-30 19:38:00 +00:00
Dimitri Mitropoulos
42b5d8b899
upgrades to electron 17.3 (#4658) 2022-03-30 14:48:31 -04:00
Filipe Freire
e8c19f44e5
Reproduce and Fix #4432 (#4657)
* Add failing fixtures that repro #4432

* Add test for generateSlug

* Fix #4432. Pin slugify to 1.6.5.
2022-03-30 13:31:15 +00:00
James Gatz
65203b89b0
update swagger-parser and support oas 3.0.3 (#4654)
Co-authored-by: Dimitri Mitropoulos <dimitropoulos@users.noreply.github.com>
2022-03-29 18:13:28 +02:00
David Marby
49b97aa873
Disable dialogs for the response web view (#4642) 2022-03-29 13:21:24 +00:00
Dane Mortimer
17f0a43f62
Concating x-kong-security-openid-connect config with security schemas… (#4607)
* Concating x-kong-security-openid-connect config with security schemas config

* Removing enabled as it is enabled by default

* Small improvement + add tests


Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-03-29 12:44:25 +00:00
Dimitri Mitropoulos
0b8258dc5f
chore(deps): fuzzysort (#4616)
* updates fuzzysort

* lockfiles

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-03-29 13:05:10 +01:00
Filipe Freire
298f394e3b Bump app version to 2022.3.0-beta.1 and lerna package versions 2022-03-28 15:17:18 +00:00
Dimitri Mitropoulos
a8d1f8e559
react 17 event propagation issue (#4639)
https://reactjs.org/blog/2020/08/10/react-v17-rc.html#fixing-potential-issues

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-03-28 16:01:58 +01:00
David Marby
dbbf55aa0f
Update electron-builder (#4641) 2022-03-28 14:44:47 +02:00
Filipe Freire
eb9fa48e14
All dependabot PRS 2022 03 24 (#4636)
* Bump minimist from 1.2.5 to 1.2.6 in /packages/insomnia-config

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimist from 1.2.5 to 1.2.6 in /packages/insomnia-testing

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimist from 1.2.5 to 1.2.6 in /packages/insomnia-smoke-test

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimist from 1.2.5 to 1.2.6 in /packages/openapi-2-kong

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimist from 1.2.5 to 1.2.6 in /packages/insomnia-send-request

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimist from 1.2.5 to 1.2.6 in /packages/insomnia-inso

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* (temp) run bootstrap

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:19:20 +00:00
David Marby
2877b3dfe9 Merge branch 'release/2022.3.0-beta.0' into develop 2022-03-24 18:05:21 +01:00
Dimitri Mitropoulos
a96978a105
chore(deps): replace moment.js with date-fns (#4611) 2022-03-24 14:03:19 +00:00
David Marby
f96d151371 Bump app version to 2022.3.0-beta.0 and lerna package versions 2022-03-24 12:33:04 +00:00
Jack Kavanagh
36644c5a8b
decouple git sync modal and forms (#4613)
* decouple modal and form

* separate the github settings forms

* switch the tab order in the repo settings modal

* change the github uri field to be required

* update types for the git repo form

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-03-24 09:29:00 +00:00
Dimitri Mitropoulos
ca8c52241f
chore(deps): multiparty (#4618) 2022-03-23 13:03:07 +00:00
Filipe Freire
a4369bea1e Merge branch 'release/2022.2.1' into develop 2022-03-23 09:53:07 +00:00
Dimitri Mitropoulos
e337bc6157
chore(deps): updates redux-thunk (#4615) 2022-03-22 19:47:15 +00:00
Dimitri Mitropoulos
58ab0c636d
chore(deps): reselect (#4620) 2022-03-22 15:21:32 -04:00
Filipe Freire
ef855863e2 Bump app version to 2022.2.1 and lerna package versions 2022-03-21 15:13:28 +00:00
Jack Kavanagh
76c95e6a37 hotfix: incorrect ipc method (#4609) 2022-03-21 15:05:42 +00:00
Dimitri Mitropoulos
f1ac0f5f02
chore(deps): removes whatwg-fetch (not needed since 5 years ago) (#4614) 2022-03-21 10:53:27 -04:00
Dimitri Mitropoulos
fd3c934898
removes @types/events (#4610) 2022-03-21 01:21:17 +00:00
Dimitri Mitropoulos
f8e5263bec
chore(deps): mime-types update (and bug fix) (#4582) 2022-03-20 15:30:13 +00:00
Dimitri Mitropoulos
abea565f83
updates cross-env to latest (from prior: August 2016 version) (#4551) 2022-03-18 15:41:46 +00:00
Dimitri Mitropoulos
f1d6e25a91
chore(deps): upgrade to react 17 (#4521) 2022-03-18 11:16:15 -04:00
Dimitri Mitropoulos
4bffb87b12
remove zprint-clj and EDN beautifying (#4603) 2022-03-18 12:51:02 +00:00
Jack Kavanagh
f9508a3155
hotfix: incorrect ipc method (#4609) 2022-03-18 11:12:35 +00:00
James Gatz
47d2a71279
Add GitHub OAuth for git repos (#4429)
* add sign in with github

* fix authentication url not being reset

* Add error handling for graphql query results

* move desctructuring to function arguments

* remove unused input prop

* Respect INSOMNIA_DATA_PATH for electron data regardless of environment

* fix lint error and update uuid usage

Co-authored-by: David Marby <david@dmarby.se>
2022-03-18 10:57:12 +01:00
David Marby
1b7951bdc6
Use the segment development write key for smoketests (#4605) 2022-03-17 20:51:06 +00:00
CommanderRoot
600e0af1fd
Replace deprecated String.prototype.substr() (#4578)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-03-17 16:48:05 +00:00
David Marby
ba785e6731 Merge branch 'release/2022.2.0' into develop 2022-03-17 17:09:19 +01:00
Dimitri Mitropoulos
91eb275491
chore(deps): iconv-lite (#4601) 2022-03-17 13:19:08 +00:00
Dimitri Mitropoulos
d6bd357573
chore(deps): update uuid (#4600) 2022-03-17 12:56:11 +00:00
Dimitri Mitropoulos
1fc1f0809f
chore(deps): updates xpath (#4602) 2022-03-17 12:31:54 +00:00
Dimitri Mitropoulos
fdfa25b876
chore(dep): update aws4 (#4580) 2022-03-17 11:47:02 +00:00
Jack Kavanagh
e0b91b5aed fix post data size (#4604)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-03-17 12:05:22 +01:00
Jack Kavanagh
0f1030f64f
fix post data size (#4604)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-03-17 12:03:56 +01:00
Dimitri Mitropoulos
1a11c295ec
updates graphql dependency (#4577) 2022-03-16 16:54:34 +00:00
Jack Kavanagh
f3a956f17d inso: shim more of the window (#4596) 2022-03-16 17:23:36 +01:00
Jack Kavanagh
7baefaf94c
use browser nunjucks (#4561)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-03-16 14:57:51 +00:00
Dimitri Mitropoulos
28c1a66e9c
dependabot PRs as of 2022 03 16 (#4598)
* Bump lodash from 4.17.19 to 4.17.21 in /packages/insomnia-smoke-test

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump urijs from 1.19.7 to 1.19.10 in /packages/insomnia-send-request

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.7 to 1.19.10.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.7...v1.19.10)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump urijs from 1.19.6 to 1.19.10 in /packages/insomnia-inso

Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.6 to 1.19.10.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.6...v1.19.10)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* runs bootstrap

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-16 14:05:14 +00:00
Jack Kavanagh
b41b13a99d
inso: shim more of the window (#4596) 2022-03-16 12:05:12 +00:00
Jack Kavanagh
4c657d4e5b
remove :smoke (#4597) 2022-03-16 09:36:41 +00:00
Giuseppe B
28f6c2bdf4
Bye bye circular refs (#4015)
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-03-15 16:25:46 +00:00
David Marby
d1e940c189
Rename release date to build date (#4595) 2022-03-15 16:03:05 +00:00
Akiva Gordon
d385ffa5d7
Fix request switcher selection cycling (#4519)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-03-15 15:18:59 +00:00
David Marby
954a08e1af
Remove package-lock for insomnia-url (#4585) 2022-03-15 13:13:54 +00:00
David Marby
1cd225a9f5 Bump app version to 2022.2.0 and lerna package versions 2022-03-15 11:18:53 +00:00
David Marby
69a3095cd2
Fix response error colour (#4586)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-03-10 17:59:00 -05:00
Dimitri Mitropoulos
e4d388ad33
markdown generation now sanitizes with dompurify (#4579) 2022-03-10 20:14:54 +00:00
David Marby
9d6caafd7a
Remove gitHead from package.json files (#4584) 2022-03-10 19:49:17 +00:00
David Marby
d3b4322bf2
Fix lerna version bumps and don't run release recurring for release PRs (#4576) 2022-03-10 16:58:42 +01:00
Dimitri Mitropoulos
a8858ee6db
removes unused md5 npm dependency (#4570) 2022-03-10 14:45:13 +00:00
Dimitri Mitropoulos
539f2b4c59
removes lodash types (#4571)
in https://github.com/Kong/insomnia/pull/4550 we removed lodash.  this PR is a follow-up to that that removes the (now, also unused) types.
2022-03-10 14:57:08 +01:00
David Marby
6f81d98125 Bump app version to 2022.2.0-alpha.0 and lerna package versions 2022-03-10 12:00:04 +00:00
Filipe Freire
1ebfb4dee2 version packages lib@2.6.0-beta.0 2022-03-09 17:17:03 +00:00
Filipe Freire
aab8eb59b2 Bump app config version to 2022.2.0-beta.0 2022-03-09 17:17:02 +00:00
Filipe Freire
b3aa6b9cec
Easier Alpha/Beta/Stable releases (INS-1435) (#4516)
Co-authored-by: David Marby <david@dmarby.se>
2022-03-09 16:06:53 +01:00
David Marby
0d86e8e0e7 Merge branch 'release/2022.1.1' into develop 2022-03-09 15:12:25 +01:00
Dimitri Mitropoulos
a1fac1f060
Adds generic for Notice in NoticeTable (#4416)
* Revert "removes generic for Notice"

This reverts commit feade91126.

* use inference for the onChange handler argument type

* removes duplicated properties

* naming is hard

also, the elvis operator is here now so we can just use him

Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-03-09 13:17:14 +00:00
David Marby
53816f1eb9 version packages lib@2.5.2 2022-03-09 13:21:56 +01:00
David Marby
753a222dbe Bump app version to 2022.1.1 2022-03-09 13:02:23 +01:00
Dimitri Mitropoulos
6c7628d15c hotfix: invalid OpenAPI spec versions causing the app to crash (#4559) 2022-03-09 13:02:11 +01:00
Dimitri Mitropoulos
086736588a
hotfix: invalid OpenAPI spec versions causing the app to crash (#4559) 2022-03-09 10:41:25 +00:00
Dimitri Mitropoulos
4c16305257
fixes colorblind theme name and adds tests to prevent it happening again (#4525) 2022-03-09 10:00:14 +00:00
Dimitri Mitropoulos
f86ee53ea2
updates type-fest to latest (#4552) 2022-03-08 18:05:21 -05:00
Jack Kavanagh
378a6d8689
remove png (#4557) 2022-03-08 22:04:26 +00:00
Jack Kavanagh
aa548d0ada
remove hot loader (#4553) 2022-03-08 21:15:55 +00:00
Dimitri Mitropoulos
6250705eef
fixes styled-components wrong peer dependency (#4558) 2022-03-08 19:37:42 +00:00
Dimitri Mitropoulos
608f80ab25
fix filter help modal jsonpath (#4545) 2022-03-08 15:43:55 +00:00
Dimitri Mitropoulos
29479b8bcf
removes lodash (#4550) 2022-03-08 14:28:37 +00:00
Dimitri Mitropoulos
f4bc702401
fixes it.each malformed usage (#4544) 2022-03-07 19:57:20 +00:00
Dimitri Mitropoulos
85d8290450
updates usages of jest timers to prepare for jest 27 (#4539) 2022-03-07 14:19:08 -05:00
Jack Kavanagh
1f05683fad
Chore/upgrade-electron-17 (#4529)
* bump node, electron, libcurl

* bump electron-builder

* stub performance, because inso imports react

* bump @types/node

* match up builder versions

* Disable consent prompts for oidc server

* bump electron and libcurl to latest

* waitForCookies for oauth tests

* Bump NodeJS to 16.13.0

* removes node 14 hack for BufferEncoding

* Replace oidc-provider html interaction pages with a simple html form

* make document cookie wait explicit

Co-authored-by: David Marby <david@dmarby.se>
2022-03-07 13:10:35 +00:00
Jack Kavanagh
8585eea9e6
electron v15 pre-upgrade refactoring (#4524)
* now with 100% fat free cancellation

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

* unblock electron 15

* fix cookielist and temp fix curl types

* fix types

* fix inso

* default to verbose inso test

* implement readdata function

* fix test

* revert test changes

* isomorphic cancel

* reduce typing issues

* curl types

* turns out the tests were wrong

* handle errors

* remove unused inso mock

* remove request delay

* fix lint and add logs

* Revert "remove request delay"

This reverts commit f07d8c90a7a7279ca10f8a8de1ea0c82caa06390.

* simplify and add cancel fallback

* skip cancel test

* playwright is fast and insomnia is slow

* trailing spaces are serious yo

* cancel is flake town

* hmm

* unblock nunjucks and storeTimeline

* fix nunjucks tests

* preload writeFile

* oops forgot to remove the reload

* debugging CI takes all day, log stuff and pray

* also warn if nunjucks is being lame

* Stop using environment variables

* revert debugging logs

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-03-03 13:42:04 +00:00
David Marby
6bd1173c7a Merge branch 'release/2022.1.0' into develop 2022-03-01 18:45:22 +01:00
David Marby
2b802ceb0d version packages lib@2.5.1 2022-03-01 18:21:42 +01:00
David Marby
2dd8ef20bb version packages lib@2.5.1-beta.2 2022-03-01 18:05:04 +01:00
David Marby
a9fc51fbe5 version packages lib@2.5.1-beta.1 2022-03-01 17:44:30 +01:00
David Marby
6fcfe04249 Mark more packages as public 2022-03-01 17:35:24 +01:00
David Marby
a19466fc97 version packages lib@2.5.1-beta.0 2022-03-01 17:15:38 +01:00
David Marby
66ea00edd8 version packages lib@2.5.0 2022-03-01 15:24:59 +01:00
Filipe Freire
03cb0c550b Bump config.json 2022-03-01 15:18:47 +01:00
Filipe Freire
d985f5f3be Recurring releases of insomnia app (INS-1429) (#4474)
* Update default electron-builder targetgs

* Allow setting a build ref

Changes the default version to `0.0.1-dev+unknown`, so that build/packaging can be easily ran locally without setting any environment variables.

* Adds recurring release workflow

New workflow that'll pre-bake artifacts when there's changes on PRs or on develop.

Artifacts can be used for all platforms to test out a PR or latest develop without the need to build locally.

Co-Authored-By: David Marby <david@dmarby.se>

* Make recurring flow independent from Test flow

Co-Authored-By: David Marby <david@dmarby.se>

* Use setup-node@v2

Co-Authored-By: David Marby <david@dmarby.se>

* Update .github/workflows/release-recurring.yml

Co-authored-by: David Marby <david@dmarby.se>

* It's always the single quotes 🙏 😚

* Use bash shell

* Disable fail-fast

* Add cancel-in-progress setting to recurring releases

If someone pushes a new commit, triggering a new recurring job on a PR or develop, we cancel ongoing workflow.

Co-Authored-By: David Marby <david@dmarby.se>

* Change concurrency setting to workflow level

Co-Authored-By: David Marby <david@dmarby.se>

Co-authored-by: David Marby <david@dmarby.se>
2022-03-01 15:18:47 +01:00
David Marby
1092940947
Remove storybook (#4535) 2022-03-01 13:52:10 +01:00
Jack Kavanagh
9dc0c804de
remove flakey tests (#4534) 2022-03-01 09:55:52 +01:00
David Marby
5af79c7486
Create smoketests for oauth flows (#4511)
* Move basic auth routes to a separate file

* Stop slowing requests down artificially

* Add initial oauth routes

* Mount oidc routes under /oidc

* Enable all forms of oauth that Insomnia supports

* Add oauth request collection fixture

* Update playwright config

* Use 127.0.0.1 instead of localhost

* simple oauth2 test

* Make the playwright extension work

* Move oauth tests to a separate file

* Test all oauth flows

* Mark test as slow

* Wait for load state for new pages

* Use locators consistently

* Add playwright to recommended extensions

* Add instructions for how to use the playwright extension

* update selectors and use fill

* Fix markdown lint

Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-02-28 16:28:02 +01:00
Dimitri Mitropoulos
6721b8de25
fixes active unit test suite selector (#4526) 2022-02-28 08:49:31 -05:00
Dimitri Mitropoulos
a8deb41f23
(Partial) removal of WrapperProps (part 3) (#4515) 2022-02-25 13:21:35 +00:00
Paul Johnson
41a2fd6379
Update response-timeline-viewer to show response body. (#4346)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-02-24 09:38:38 -05:00
David Marby
8198992b68
Update plus upsell (#4518) 2022-02-24 11:44:03 +00:00
James Gatz
ae45cfd041
upgrade to playwright v1.19 (#4517) 2022-02-24 11:11:46 +01:00
Dimitri Mitropoulos
4581fc1332
menu presets for window sizes and zooms (#4507)
* new presets for window sizes

* implements setting specific zoom levels

* adds developer-only menu item for screenshots
2022-02-24 01:32:16 +00:00
Gareth Oakley
3a944d9dec
Fix importer test fixtures to comply with OpenAPI specs (#4095) (#4151) 2022-02-22 20:45:52 +01:00
Dimitri Mitropoulos
2401788509
(Partial) removal of WrapperProps (part 2) (#4510) 2022-02-22 08:19:04 -05:00
Filipe Freire
432cf436f8
Remove deprecated Insomnia Designer Hotkeys (INS-1411) (#4508)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-02-18 15:29:13 +00:00
Jack Kavanagh
e768e05bfa
improve smoke test docs (#4421) 2022-02-18 12:47:41 +00:00
Filipe Freire
e31307c61e
chore: Improvements to playwright smoke checks (#4480)
* Enable playwright parallelism

Plus, move the cancel request test into its own separate test to reduce flakiness.

* Change num of playwright workers on GH actions back to 1

* Change 200 OK assertion

+ Add assertions to PDF canvas

+ Add assertion to Raw Data preview.

* Add assertions to response body elements

* Undo parallel suite for app.test.ts

* Remove parallelism workers from playwright.config.ts

* Code review improvements

Co-Authored-By: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-Authored-By: James Gatz <jamesgatzos@gmail.com>

* Code review improvements

Co-Authored-By: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-Authored-By: James Gatz <jamesgatzos@gmail.com>

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-02-17 17:27:29 +00:00
Dimitri Mitropoulos
47db0e3557
adds "Made with ❤️ by Kong" to footer of dashboard (#4498) 2022-02-17 08:35:15 -05:00
Jack Kavanagh
3947bdc4aa
chore: move electron out of the renderer (#4406)
* fix lint

* fix types

* remove flush db.change event send

* guard against tests running electron functions

* copy preload to build output

* fix webview context menu

* fix context menu and plugin install

* move installPlugin to main context
2022-02-16 18:28:23 +00:00
David Marby
837342ddab
Allow overriding the API url using an environment variable (#4502) 2022-02-16 15:19:19 +01:00
Dimitri Mitropoulos
0b7a61fdee Merge branch 'release/2022.1.0-beta.0' into develop 2022-02-15 09:13:42 -05:00
Dimitri Mitropoulos
e621006db0
dependabot PRs as of 2022 02 14 (#4492) 2022-02-14 22:18:53 +00:00
Filipe Freire
1160b4a09c
Recurring releases of insomnia app (INS-1429) (#4474)
* Update default electron-builder targetgs

* Allow setting a build ref

Changes the default version to `0.0.1-dev+unknown`, so that build/packaging can be easily ran locally without setting any environment variables.

* Adds recurring release workflow

New workflow that'll pre-bake artifacts when there's changes on PRs or on develop.

Artifacts can be used for all platforms to test out a PR or latest develop without the need to build locally.

Co-Authored-By: David Marby <david@dmarby.se>

* Make recurring flow independent from Test flow

Co-Authored-By: David Marby <david@dmarby.se>

* Use setup-node@v2

Co-Authored-By: David Marby <david@dmarby.se>

* Update .github/workflows/release-recurring.yml

Co-authored-by: David Marby <david@dmarby.se>

* It's always the single quotes 🙏 😚

* Use bash shell

* Disable fail-fast

* Add cancel-in-progress setting to recurring releases

If someone pushes a new commit, triggering a new recurring job on a PR or develop, we cancel ongoing workflow.

Co-Authored-By: David Marby <david@dmarby.se>

* Change concurrency setting to workflow level

Co-Authored-By: David Marby <david@dmarby.se>

Co-authored-by: David Marby <david@dmarby.se>
2022-02-10 15:32:33 +00:00
James Gatz
e1b4bb2def
Adds tracing with Playwright (#4439)
* base tracing with playwright

* use github reporter on CI

* Use the config to capture traces

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-02-10 14:48:32 +01:00
Dimitri Mitropoulos
6d4ee8f998
all dependabot PRs as of 20220802 (#4468)
* Bump hosted-git-info from 2.8.8 to 2.8.9 in /packages/openapi-2-kong

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ws from 7.4.3 to 7.5.7 in /packages/openapi-2-kong

Bumps [ws](https://github.com/websockets/ws) from 7.4.3 to 7.5.7.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.3...7.5.7)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump lodash from 4.17.15 to 4.17.21 in /packages/openapi-2-kong

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-09 10:50:57 +00:00
Filipe Freire
d8137126cb
all dependabot PRs as of 2022 02 08 (#4462)
* Bump path-parse from 1.0.6 to 1.0.7 in /packages/openapi-2-kong

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ansi-regex from 5.0.0 to 5.0.1 in /packages/openapi-2-kong

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump tmpl from 1.0.4 to 1.0.5 in /packages/openapi-2-kong

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-08 16:15:02 -05:00
John Chadwick
15cc3d2099
Update TypeScript version. (#4463)
* Update TypeScript version.

This makes the TypeScript version match across other codebases, to
facilitate better code sharing.

* Fix TS errors after update.

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-02-08 20:19:22 +00:00
Dimitri Mitropoulos
8490bad55c version packages lib@2.5.0-beta.1 2022-02-08 11:39:25 -05:00
Dimitri Mitropoulos
081fb995a6 version packages lib@2.5.0-beta.0 2022-02-08 11:37:36 -05:00
Dimitri Mitropoulos
7a138cce8a bumps config.json to 2022.1.0-beta.0 2022-02-08 11:32:40 -05:00
Dimitri Mitropoulos
04436fca56
updates redux dependencies (#4456) 2022-02-08 11:16:46 -05:00
Dimitri Mitropoulos
c73d2c1c1d
Fixes ApiSpec content syncing (#4443)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2022-02-07 14:00:31 -05:00