David Marby
34b8c17260
publish npm packages lib@2.3.0-beta.2
lib@2.3.0-beta.2
core@2021.4.0-beta.0
2021-05-19 14:50:58 +02:00
David Marby
59498ce28b
Add back --force-publish
2021-05-19 14:50:17 +02:00
David Marby
65a53f45fd
Fix .npmignore
2021-05-19 14:37:56 +02:00
Dimitri Mitropoulos
860565f3a6
fixes react controlled input error ( #3391 )
...
* fix ts-expect-error
* removes useless await
see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md
We're not quite ready to have this rule on everywhere, but in this case I can see that it's correct to follow.
* add comment about magic number
and moves the assignment to the one place it's used
I opted not to make a ticket because we are recently running out of tickets and this seems to be a relatively small thing @reynolek please confirm this is the correct course of action.
* initialize ref to reflect reality (and include actual type)
* fixes root cause of error, inlines one-liners
the error with the type of `_handleInputColorChange` was due to `onChange` being the wrong prop to use (where `onChange` is the one we want).
* use onChange instead of onInput to access correct types
ultimately, since react's behavior diverged from the DOM behavior to match onInput, this should have no effect on any functionality since react assigns this event to `onChange` anyway. see https://github.com/facebook/react/blob/master/fixtures/attribute-behavior/src/attributes.js#L2089
* clears remaining ts-expect-errors in file
* updates fallback call per review feedback
2021-05-19 08:24:01 -04:00
Opender Singh
5fa8f0069d
Enable ESLint & TS for smoke tests ( #3397 )
...
* remove babel and add configs
* add ts-node
* lint scripts
* eslint override
* remove type module
* add expect errors
* update js files to ts
* fix electron import
* remove errors
* update readme
* add build step
* typesync
* add eslintignore
2021-05-19 07:49:48 -04:00
Opender Singh
a3a6c0fdfd
fail if non zero exit code during build ( #3399 )
2021-05-19 23:41:50 +12:00
Opender Singh
b93d963712
publish npm packages lib@2.3.0-beta.1
lib@2.3.0-beta.1
2021-05-19 18:51:57 +12:00
Opender Singh
0855462a92
fix insomnia-importers
2021-05-19 18:49:45 +12:00
Roger Guasch
3972bb50ab
Theme preview tile for OS themes ( #3387 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-05-19 18:14:11 +12:00
cobwebsonsale
212ca5d764
Allow switching sub-environment inside Manage Environment modal ( #2891 )
...
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com >
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-05-19 17:46:18 +12:00
Opender Singh
ce9637e6e2
Update lerna version message ( #3393 )
2021-05-19 11:27:09 +12:00
Opender Singh
d713d27578
add missing await in release script
2021-05-19 10:22:03 +12:00
Opender Singh
b2040dacd2
publish npm packages lib@2.3.0-beta.0
lib@2.3.0-beta.0
2021-05-19 09:21:52 +12:00
Opender Singh
2c6f8d9198
add --no-verify-access flag
2021-05-19 09:19:37 +12:00
Opender Singh
e8035146dc
add --yes to publish
2021-05-19 08:50:06 +12:00
Dimitri Mitropoulos
6e073c8a38
use same array-type rule, project-wide ( #3395 )
2021-05-19 08:32:18 +12:00
Opender Singh
50d72b8991
bump version
2021-05-18 15:56:38 +12:00
Opender Singh
a200e5da3c
don't force publish everything
2021-05-18 15:56:30 +12:00
Dimitri Mitropoulos
06d099f9d3
fixes redux-devtools-specific error, "sync" is not available ( #3390 )
...
until https://github.com/reduxjs/redux-devtools/pull/711 is available to us, our best course of action is to remove it for now
2021-05-17 19:26:52 -05:00
Dimitri Mitropoulos
e161f45b06
ResponseTimer callstack exceeded ( #3386 )
...
* no default export (prepping for hooks)
* makes logic match other implementation
note that above in `componentDidUpdate` it uses `<= 0`, whereas here it uses `> 0` but then only checks for false.
Also, logically, there's no way to ever get `aria-hidden="true"` since it returns early so that entire attribute can just be removed.
* removes fake private class member syntax
this is moving to hooks anyway, but in the meantime...
* undoes calling identical code twice in a row...
* condenses class methods to prepare for hooks
* hooks refactor
fairly faithful to the original, this attempts to just refactor to hooks. this exposes, again, the fact that we're setting state within useEffect.
* removes 200 ms offset for response time
so that, now, you know, the time reported is the actual time.
* adds logging for response timer lage
* removes timer logging and `responseTime` prop after PR discussion
it's definitely fruitful, but the fix for the callstack exceeded is what needs to be the focus.
* removes shadowed variable per PR feedback
* reinstates and documents 200ms compensation
* add delay endpoint to example server
* Update packages/insomnia-app/app/ui/components/response-timer.tsx
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-05-17 18:58:05 -05:00
Dimitri Mitropoulos
2dc4299e39
fix node-libcurl imports ( #3384 )
...
* fix node-libcurl imports
* removes unnecessary function wrapper
and anyway, `number` is not the correct type (which is what motivated this change in the first place), `CurlFeature` is.
* updates type for setOpt
see https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgOIBs4GcvIN4BQyxyWwAXhAFzIDkWAtnOurcgD50MQAmwArgzadamKAHMItANwEAvgQKhIsRCgDCAe00BrYCkIlkYAJ4AHanSz9xcKMLoIAFpoSbMkdU+BmZ8xQD0AcjK0PBIyJoAbtDomnA8WErgYWrIAIIIYMCaIPhEJBBwYACMABSaZtm5NLQAssDoOrQANMjimDg0GNhYAJQ0UZrAPLJGRaUVVTkgtVq6+lityG4LlvN6EAPIQyOyCgRuIFhgyIjVsxlZM8gAvPnjxeWVF208xXB9+MhByGZQmgARugIAwaKYLCFcCBNKdQDBoFBeGcQDxkABJZBOOAxZAw5AAdzgJmMmmM5hQwFOsKc0AJwCwEAKRmIRyw7ggADo4uIyrRzjNORMSss8JFprk3h9kHI+syZf5DrkTshhQB1KBwMwWKA0TIXADatGFtAAundkFNXsh3mBPncAHzfX7-IEgsHkyEMvGwkIgBFQJFouCojFYnEofFEklgMkQynUsC0qD0xnytkc7maXnGp6i8XW21wGV9MaFJ4arU6q0zKV20uKgi-JHifhiZAwfgga65SIxKBxBJJTvdi6q4oAJhrNToDSayw6vW6nX6g2GowII57eQmU5eMzm2k2Szaq02NA2+m2uw3W7Hu+nIDr9rFLoBwNB4IpUJ9cP9iOREM0UxbFcSjYlSU9BNIiTOkGRQMpvQAAxDEwkOMWlIhAdASX3XIAH5iHSZAuxuBkQFoU43EDCAslVKlk05OUjAzEEsxzFs2zsDsu23fM8KfG1pVlRU2VOXdK21aAvwsTQYHHMAJwtR9ny+W4nVfYJXQ-D14x-GE-wDIMUWA8MwLJaNIL0qkYOTVMmRY5VMx5Pld2QSSdVoBtHkUlShPrfZAmCWDGUJTQoB0NpsFVAAPCwsl4KgmyCFLUrS9KMsyrKUoIAVciFJ4+TnZo2jFMhKFqRhmFYEtZHVTUpKgIrGhK75yssegmBYNhZTqydmvnUrSAoDqqu62qCAkhrq3qFr83ayqupq3rFDykACsmWhLwgE9vnjWpnFcdxiggLwfB6uV6qraA+W23axX2xwXDcDxTu8XwS0m-qtqPRZ80e2hDpek6zo+kSpuupqfrWe6oIO57js8d6LqCjCdpQAAqHgyQMjGwoiqLcAgOLaMgHgkuyymqepoJkuQAABMAsAAWmJ+KwFZwNwuQQEEg7YAoBVOxW24cBcu3DbymhzZ-opeGjte0GUd+RmWbZ0nOYBKAeb5mABaFiRBAgMWrsa27fqkIaAaBxG3vOz6VaZ1mSayTXud5tE9cF05haNk3vu22WLHl4GkftkTHbVl2OcRd3df1n3DdFsAvsUjybul-Qg46m3FeRz66dV532bd7WPdIWjcmDJPjZTtbJfNmHs5D23meccO5Uj4uNdjsu+cZI5q5F2vU5KdOobu5unoVk62-ziPgiL9XXd7nW0QHquzhr-3fMznap8BhHXrnjvC6d5eY65vv18r0NfeT1OJ3HxvjwP3PZ-bsG5SAA
to see why `any` is required, for now (at least)
* updates the getBodyBuffer parse calls now that the types are working
* return to prior approach, this time with a warning
2021-05-17 09:59:43 -04:00
Opender Singh
1271f5a925
Publish NPM packages through CI ( #3311 )
...
* chore: update CI to publish npm packages during a release
* chore: test on all OSs prior to publishing npm packages and running a release
* auth with npm before publish
2021-05-15 09:09:11 +12:00
Opender Singh
5525e6c87f
Allow inso generate config to specify tags ( #3381 )
...
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com >
2021-05-14 11:30:44 +12:00
Dimitri Mitropoulos
5a1f793547
adds mocha polyfill to clear it.each errors ( #3383 )
2021-05-13 16:45:17 -05:00
Opender Singh
1d0f6faf42
check the length of react children correctly ( #3380 )
2021-05-13 09:01:06 -04:00
Opender Singh
1ff28abb11
chore: add repository, bug urls, and license to plugins missing it ( #3379 )
2021-05-13 07:31:33 -04:00
Dimitri Mitropoulos
5fe277ee02
remove duplication of all jest configs ( #3375 )
...
* use jest-preset for all but app
* separate properties that are the same as the preset
for some reason, it doesn't work. you get:
```
Preset ../../jest-preset.js not found.
```
This needs to be investigated.
* removes unused/unneeded npm script in `app`, `test:jest`
2021-05-13 07:29:02 -04:00
Roger Guasch
3b757251c9
Improve spec preview code font color ( #3369 )
2021-05-13 18:05:27 +12:00
Dimitri Mitropoulos
5dad243ad9
Fix CI Intermittent failures ( #3376 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-05-13 15:30:15 +12:00
Opender Singh
162ca5aec0
Fix vercel deployments ( #3378 )
2021-05-13 10:49:58 +12:00
Dimitri Mitropoulos
9faf0b3fbb
sanitize all electron.shell.openExternal calls ( #3336 )
...
* sanitize all electron.shell.openExternal calls
* adds lint rule to disallow future usage of `openExternal`
* updates to use URL constructor per review feedback
2021-05-12 16:20:52 -04:00
Dimitri Mitropoulos
78c4a18f0b
makes all package.json author fields consistent ( #3338 )
...
* makes all package.json author fields consistent
* adds Preston Alvarado as a contributor per review feedback.
2021-05-12 08:31:07 -04:00
Dimitri Mitropoulos
d9677611f5
enables react-redux devtools ( #3373 )
...
* add react and redux devtools
* convert to try-catch
* updates package-lock.json
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-05-12 08:22:40 -04:00
Josh Soref
d0d3f27e90
Consistently use infinity ( #3345 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2021-05-12 08:12:58 -04:00
dependabot[bot]
c442f58f4e
chore(deps): bump handlebars from 4.7.6 to 4.7.7 ( #3361 )
...
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com >
2021-05-12 08:04:54 -04:00
dependabot[bot]
f99cd9f16e
chore(deps): bump lodash from 4.17.19 to 4.17.21 ( #3362 )
...
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 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 08:00:42 -04:00
dependabot[bot]
f1a78d0650
chore(deps): bump lodash in /packages/insomnia-importers ( #3363 )
...
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 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 08:00:20 -04:00
Opender Singh
26a94a695a
keep the previous svgr assets dir in gitignore ( #3372 )
2021-05-12 07:58:22 -04:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 ( #3370 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com >
lib@2.2.36-beta
2021-05-12 18:35:00 +12:00
Opender Singh
bdb4b4e661
Merge branch 'release/2021.3-stable' into develop
2021-04-29 09:27:27 +12:00
Opender Singh
14ebadd8f9
publish npm packages lib@2.2.35
lib@2.2.35
core@2021.3.0
2021-04-29 08:50:33 +12:00
Opender Singh
da155e16ab
chore: update script
2021-04-29 08:50:08 +12:00
Opender Singh
663198c548
chore: bump version to 2021.3 stable
2021-04-29 08:47:18 +12:00
Opender Singh
dbdfaaa7a3
chore: bootstrap
2021-04-29 08:45:12 +12:00
Opender Singh
2da4fe8471
chore: update o2k docs ( #3332 )
...
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl >
2021-04-29 08:33:44 +12:00
Opender Singh
69d7514095
Tags for all of the plugins! ( #3328 )
...
* feat: add tags to regular plugins
* feat: plugin support for request validator plugins
* feat: add tags to security plugins
* feat: security plugins detecting the expected property
* chore: don't force publish and bump version
* publish npm packages lib@2.2.35-beta.4
2021-04-28 08:14:49 +12:00
mikaello
05b5c3d041
Add metadata fields to openapi-2-kong package.json ( #2802 )
...
* add metadata fields to openapi-2-kong package.json
* fix issue url in openapi-2-kong package.json
Format according to npm docs: https://docs.npmjs.com/cli/v6/configuring-npm/package-json#bugs
* improve repo-field in openapi-2-kong package.json
See structure in NPM docs: https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository
* Update packages/openapi-2-kong/package.json
Co-authored-by: Opender Singh <opender.singh@konghq.com >
Co-authored-by: Opender Singh <opender94@gmail.com >
2021-04-27 19:08:42 +12:00
Thijs Schreijer
28db994bb7
[o2k] fix parameter default styles ( #3327 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-04-27 13:18:04 +12:00
Thijs Schreijer
a5f67bbb35
[o2k] fix name generation ( #3318 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com >
2021-04-27 13:00:08 +12:00
Thijs Schreijer
84e47da5f2
[o2k] fix targets not getting tags ( #3320 )
2021-04-27 11:57:09 +12:00