1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Commit Graph

852 Commits

Author SHA1 Message Date
renovate[bot]
0649262c70
chore(deps): update dependency eslint to v8.27.0 (#2374)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [eslint](https://eslint.org)
([source](https://togithub.com/eslint/eslint)) | [`8.26.0` ->
`8.27.0`](https://renovatebot.com/diffs/npm/eslint/8.26.0/8.27.0) |
[![age](https://badges.renovateapi.com/packages/npm/eslint/8.27.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/eslint/8.27.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/eslint/8.27.0/compatibility-slim/8.26.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/eslint/8.27.0/confidence-slim/8.26.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>eslint/eslint</summary>

### [`v8.27.0`](https://togithub.com/eslint/eslint/releases/tag/v8.27.0)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.26.0...v8.27.0)

#### Features

-
[`f14587c`](f14587c42b)
feat: new `no-new-native-nonconstructor` rule
([#&#8203;16368](https://togithub.com/eslint/eslint/issues/16368))
(Sosuke Suzuki)
-
[`978799b`](978799bd5c)
feat: add new rule `no-empty-static-block`
([#&#8203;16325](https://togithub.com/eslint/eslint/issues/16325))
(Sosuke Suzuki)
-
[`69216ee`](69216ee69c)
feat: no-empty suggest to add comment in empty BlockStatement
([#&#8203;16470](https://togithub.com/eslint/eslint/issues/16470))
(Nitin Kumar)
-
[`319f0a5`](319f0a5491)
feat: use `context.languageOptions.ecmaVersion` in core rules
([#&#8203;16458](https://togithub.com/eslint/eslint/issues/16458))
(Milos Djermanovic)

#### Bug Fixes

-
[`c3ce521`](c3ce5212f6)
fix: Ensure unmatched glob patterns throw an error
([#&#8203;16462](https://togithub.com/eslint/eslint/issues/16462))
(Nicholas C. Zakas)
-
[`886a038`](886a038689)
fix: handle files with unspecified path in `getRulesMetaForResults`
([#&#8203;16437](https://togithub.com/eslint/eslint/issues/16437))
(Francesco Trotta)

#### Documentation

-
[`ce93b42`](ce93b429bf)
docs: Stylelint property-no-unknown
([#&#8203;16497](https://togithub.com/eslint/eslint/issues/16497)) (Nick
Schonning)
-
[`d2cecb4`](d2cecb4ad2)
docs: Stylelint declaration-block-no-shorthand-property-overrides
([#&#8203;16498](https://togithub.com/eslint/eslint/issues/16498)) (Nick
Schonning)
-
[`0a92805`](0a92805d77)
docs: stylelint color-hex-case
([#&#8203;16496](https://togithub.com/eslint/eslint/issues/16496)) (Nick
Schonning)
-
[`74a5af4`](74a5af487a)
docs: fix stylelint error
([#&#8203;16491](https://togithub.com/eslint/eslint/issues/16491))
(Milos Djermanovic)
-
[`324db1a`](324db1a11e)
docs: explicit stylelint color related rules
([#&#8203;16465](https://togithub.com/eslint/eslint/issues/16465)) (Nick
Schonning)
-
[`94dc4f1`](94dc4f19ba)
docs: use Stylelint for HTML files
([#&#8203;16468](https://togithub.com/eslint/eslint/issues/16468)) (Nick
Schonning)
-
[`cc6128d`](cc6128db4f)
docs: enable stylelint declaration-block-no-duplicate-properties
([#&#8203;16466](https://togithub.com/eslint/eslint/issues/16466)) (Nick
Schonning)
-
[`d03a8bf`](d03a8bf897)
docs: Add heading to justification explanation
([#&#8203;16430](https://togithub.com/eslint/eslint/issues/16430))
(Maritaria)
-
[`8a15968`](8a159686f9)
docs: add Stylelint configuration and cleanup
([#&#8203;16379](https://togithub.com/eslint/eslint/issues/16379)) (Nick
Schonning)
-
[`9b0a469`](9b0a469d1e)
docs: note commit messages don't support scope
([#&#8203;16435](https://togithub.com/eslint/eslint/issues/16435)) (Andy
Edwards)
-
[`1581405`](15814057fd)
docs: improve context.getScope() docs
([#&#8203;16417](https://togithub.com/eslint/eslint/issues/16417)) (Ben
Perlmutter)
-
[`b797149`](b7971496e9)
docs: update formatters template
([#&#8203;16454](https://togithub.com/eslint/eslint/issues/16454))
(Milos Djermanovic)
-
[`5ac4de9`](5ac4de911f)
docs: fix link to formatters on the Core Concepts page
([#&#8203;16455](https://togithub.com/eslint/eslint/issues/16455))
(Vladislav)
-
[`33313ef`](33313ef562)
docs: core-concepts: fix link to semi rule
([#&#8203;16453](https://togithub.com/eslint/eslint/issues/16453))
(coderaiser)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-10 08:21:34 +01:00
Ivar Conradi Østhus
1312579bf6
fix: upgrade @types/node to v16.18.3 (#2365)
This pr upgrade @types/node to v16.18.3.
This also detected some inconsitent retrun types that I decided to fix.
2022-11-10 08:20:15 +01:00
renovate[bot]
038bf4fa6c
chore(deps): update jest monorepo (#2366)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`29.2.0` ->
`29.2.2`](https://renovatebot.com/diffs/npm/@types%2fjest/29.2.0/29.2.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.2/compatibility-slim/29.2.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.2/confidence-slim/29.2.0)](https://docs.renovatebot.com/merge-confidence/)
|
| [jest](https://jestjs.io/)
([source](https://togithub.com/facebook/jest)) | [`29.2.2` ->
`29.3.1`](https://renovatebot.com/diffs/npm/jest/29.2.2/29.3.1) |
[![age](https://badges.renovateapi.com/packages/npm/jest/29.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/jest/29.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/jest/29.3.1/compatibility-slim/29.2.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/jest/29.3.1/confidence-slim/29.2.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>facebook/jest</summary>

###
[`v29.3.1`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#&#8203;2931)

[Compare
Source](https://togithub.com/facebook/jest/compare/v29.3.0...v29.3.1)

##### Fixes

- `[jest-config]` Do not warn about `preset` in `ProjectConfig`
[#&#8203;13583](https://togithub.com/facebook/jest/pull/13583)

##### Performance

- `[jest-transform]` Defer creation of cache directory
[#&#8203;13420](https://togithub.com/facebook/jest/pull/13420)

###
[`v29.3.0`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#&#8203;2930)

[Compare
Source](https://togithub.com/facebook/jest/compare/v29.2.2...v29.3.0)

##### Features

- `[jest-runtime]` Support WebAssembly (Wasm) imports in ESM modules
([#&#8203;13505](https://togithub.com/facebook/jest/pull/13505))

##### Fixes

- `[jest-config]` Add config validation for `projects` option
([#&#8203;13565](https://togithub.com/facebook/jest/pull/13565))
- `[jest-mock]` Treat cjs modules as objects so they can be mocked
([#&#8203;13513](https://togithub.com/facebook/jest/pull/13513))
- `[jest-worker]` Throw an error instead of hanging when jest workers
terminate unexpectedly
([#&#8203;13566](https://togithub.com/facebook/jest/pull/13566))

##### Chore & Maintenance

- `[@jest/transform]` Update `convert-source-map`
([#&#8203;13509](https://togithub.com/facebook/jest/pull/13509))
- `[docs]` Mention `toStrictEqual` in UsingMatchers docs.
([#&#8203;13560](https://togithub.com/facebook/jest/pull/13560))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 23:58:58 +01:00
renovate[bot]
794ed681ea
fix(deps): update dependency helmet to v6 (#2295)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [helmet](https://helmetjs.github.io/)
([source](https://togithub.com/helmetjs/helmet)) | [`^5.0.0` ->
`^6.0.0`](https://renovatebot.com/diffs/npm/helmet/5.0.0/6.0.0) |
[![age](https://badges.renovateapi.com/packages/npm/helmet/6.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/helmet/6.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/helmet/6.0.0/compatibility-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/helmet/6.0.0/confidence-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>helmetjs/helmet</summary>

###
[`v6.0.0`](https://togithub.com/helmetjs/helmet/blob/HEAD/CHANGELOG.md#&#8203;600---2022-08-26)

[Compare
Source](https://togithub.com/helmetjs/helmet/compare/v5.1.1...v6.0.0)

##### Changed

- **Breaking:** `helmet.contentSecurityPolicy` no longer sets
`block-all-mixed-content` directive by default
- **Breaking:** `helmet.expectCt` is no longer set by default. It can,
however, be explicitly enabled. It will be removed in Helmet 7. See
[#&#8203;310](https://togithub.com/helmetjs/helmet/issues/310)
- **Breaking:** Increase TypeScript strictness around some arguments.
Only affects TypeScript users, and may not require any code changes. See
[#&#8203;369](https://togithub.com/helmetjs/helmet/issues/369)
- `helmet.frameguard` no longer offers a specific error when trying to
use `ALLOW-FROM`; it just says that it is unsupported. Only the error
message has changed

##### Removed

- **Breaking:** Dropped support for Node 12 and 13. Node 14+ is now
required

###
[`v5.1.1`](https://togithub.com/helmetjs/helmet/blob/HEAD/CHANGELOG.md#&#8203;511---2022-07-23)

[Compare
Source](https://togithub.com/helmetjs/helmet/compare/v5.1.0...v5.1.1)

##### Changed

- Fix TypeScript bug with some TypeScript configurations. See
[#&#8203;375](https://togithub.com/helmetjs/helmet/pull/375) and
[#&#8203;359](https://togithub.com/helmetjs/helmet/issues/359)

###
[`v5.1.0`](https://togithub.com/helmetjs/helmet/blob/HEAD/CHANGELOG.md#&#8203;510---2022-05-17)

[Compare
Source](https://togithub.com/helmetjs/helmet/compare/v5.0.2...v5.1.0)

##### Added

- `Cross-Origin-Embedder-Policy`: support `credentialless` policy. See
[#&#8203;365](https://togithub.com/helmetjs/helmet/pull/365)
- Documented how to set both `Content-Security-Policy` and
`Content-Security-Policy-Report-Only`

##### Changed

-   Cleaned up some documentation around `Origin-Agent-Cluster`

###
[`v5.0.2`](https://togithub.com/helmetjs/helmet/blob/HEAD/CHANGELOG.md#&#8203;502---2022-01-22)

[Compare
Source](https://togithub.com/helmetjs/helmet/compare/v5.0.1...v5.0.2)

##### Changed

- Improve imports for CommonJS and ECMAScript modules. See
[#&#8203;345](https://togithub.com/helmetjs/helmet/pull/345)
-   Fixed some documentation

###
[`v5.0.1`](https://togithub.com/helmetjs/helmet/blob/HEAD/CHANGELOG.md#&#8203;501---2022-01-03)

[Compare
Source](https://togithub.com/helmetjs/helmet/compare/v5.0.0...v5.0.1)

##### Changed

-   Fixed some documentation

##### Removed

-   Removed some unused internal code

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC42LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNC45LjEifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 23:07:20 +01:00
renovate[bot]
8999d852bf
fix(deps): update dependency make-fetch-happen to v11 (#2296)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [make-fetch-happen](https://togithub.com/npm/make-fetch-happen) |
[`^10.1.2` ->
`^11.0.0`](https://renovatebot.com/diffs/npm/make-fetch-happen/10.1.2/11.0.1)
|
[![age](https://badges.renovateapi.com/packages/npm/make-fetch-happen/11.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/make-fetch-happen/11.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/make-fetch-happen/11.0.1/compatibility-slim/10.1.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/make-fetch-happen/11.0.1/confidence-slim/10.1.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>npm/make-fetch-happen</summary>

###
[`v11.0.1`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1101-httpsgithubcomnpmmake-fetch-happencomparev1100v1101-2022-10-17)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v11.0.0...v11.0.1)

##### Dependencies

-
[`ebd86b2`](ebd86b2781)
[#&#8203;186](https://togithub.com/npm/make-fetch-happen/pull/186) bump
minipass-fetch from 2.1.2 to 3.0.0
-
[`9c16d84`](9c16d84c10)
[#&#8203;187](https://togithub.com/npm/make-fetch-happen/pull/187) bump
ssri from 9.0.1 to 10.0.0

###
[`v11.0.0`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1100-httpsgithubcomnpmmake-fetch-happencomparev1021v1100-2022-10-13)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.2.1...v11.0.0)

##### ⚠️ BREAKING CHANGES

- this module no longer attempts to change file ownership automatically
- `make-fetch-happen` is now compatible with the following semver range
for node: `^14.17.0 || ^16.13.0 || >=18.0.0`

##### Features

-
[`c293053`](c2930534bc)
[#&#8203;177](https://togithub.com/npm/make-fetch-happen/pull/177)
postinstall for dependabot template-oss PR
([@&#8203;lukekarrys](https://togithub.com/lukekarrys))

##### Documentation

-
[`d63de44`](d63de4427e)
[#&#8203;173](https://togithub.com/npm/make-fetch-happen/pull/173)
document cause argument to onRetry
([#&#8203;173](https://togithub.com/npm/make-fetch-happen/issues/173))
([@&#8203;jmpage](https://togithub.com/jmpage))

##### Dependencies

-
[`33d972a`](33d972a815)
[#&#8203;184](https://togithub.com/npm/make-fetch-happen/pull/184) bump
cacache from 16.1.3 to 17.0.0
([#&#8203;184](https://togithub.com/npm/make-fetch-happen/issues/184))

###
[`v10.2.1`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1021-httpsgithubcomnpmmake-fetch-happencomparev1020v1021-2022-08-15)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.2.0...v10.2.1)

##### Bug Fixes

- linting
([#&#8203;166](https://togithub.com/npm/make-fetch-happen/issues/166))
([e9a2a51](e9a2a51e6d))

###
[`v10.2.0`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1020-httpsgithubcomnpmmake-fetch-happencomparev1018v1020-2022-07-19)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.8...v10.2.0)

##### Features

- store link header
([#&#8203;164](https://togithub.com/npm/make-fetch-happen/issues/164))
([dae6384](dae6384a7f))

###
[`v10.1.8`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1018-httpsgithubcomnpmmake-fetch-happencomparev1017v1018-2022-06-20)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.7...v10.1.8)

##### Bug Fixes

- TypeError: SocksProxyAgent is not a constructor
([#&#8203;161](https://togithub.com/npm/make-fetch-happen/issues/161))
([4ae4864](4ae48640b0))

#####
[10.1.7](https://togithub.com/npm/make-fetch-happen/compare/v10.1.6...v10.1.7)
(2022-06-01)

##### Bug Fixes

- use hostname for socks agent
([#&#8203;159](https://togithub.com/npm/make-fetch-happen/issues/159))
([331f9cb](331f9cb273))

##### Dependencies

- bump socks-proxy-agent from 6.2.1 to 7.0.0
([#&#8203;158](https://togithub.com/npm/make-fetch-happen/issues/158))
([63ed403](63ed40395e))

#####
[10.1.6](https://togithub.com/npm/make-fetch-happen/compare/v10.1.5...v10.1.6)
(2022-05-27)

##### Bug Fixes

- respect given algorithms instead of always using sha512
([#&#8203;156](https://togithub.com/npm/make-fetch-happen/issues/156))
([9baa806](9baa8065f3))

#####
[10.1.5](https://togithub.com/npm/make-fetch-happen/compare/v10.1.4...v10.1.5)
(2022-05-19)

##### Bug Fixes

- cache integrity and size events so late listeners still get them
([#&#8203;154](https://togithub.com/npm/make-fetch-happen/issues/154))
([8c78584](8c7858490a))

#####
[10.1.4](https://togithub.com/npm/make-fetch-happen/compare/v10.1.3...v10.1.4)
(2022-05-18)

##### Bug Fixes

- **docs:** remove reference to unsupported feature
([#&#8203;153](https://togithub.com/npm/make-fetch-happen/issues/153))
([1d454f1](1d454f1187)),
closes
[#&#8203;147](https://togithub.com/npm/make-fetch-happen/issues/147)
- pass expected integrity to cacache
([a88213e](a88213e6a5))
- pass integrityEmitter to cacache to avoid a redundant integrity stream
([ae62c21](ae62c21c70))
- remove in-memory buffering in favor of full time streaming
([ec2db21](ec2db214e4))

#####
[10.1.3](https://togithub.com/npm/make-fetch-happen/compare/v10.1.2...v10.1.3)
(2022-05-09)

##### Bug Fixes

- make `defaults` chaining actually work
([#&#8203;144](https://togithub.com/npm/make-fetch-happen/issues/144))
([aa71e81](aa71e817c7))

#####
[10.1.2](https://togithub.com/npm/make-fetch-happen/compare/v10.1.1...v10.1.2)
(2022-04-05)

##### Dependencies

- bump ssri from 8.0.1 to 9.0.0
([#&#8203;139](https://togithub.com/npm/make-fetch-happen/issues/139))
([f91a1cc](f91a1ccd0e))

#####
[10.1.1](https://togithub.com/npm/make-fetch-happen/compare/v10.1.0...v10.1.1)
(2022-03-29)

##### Bug Fixes

- default verbatim to undefined
([#&#8203;135](https://togithub.com/npm/make-fetch-happen/issues/135))
([be0cf6a](be0cf6a159))

##### Documentation

- remove mention of custom cache provider
([#&#8203;136](https://togithub.com/npm/make-fetch-happen/issues/136))
([a7f1b55](a7f1b554bc))

###
[`v10.1.7`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1017-httpsgithubcomnpmmake-fetch-happencomparev1016v1017-2022-06-01)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.6...v10.1.7)

###
[`v10.1.6`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1016-httpsgithubcomnpmmake-fetch-happencomparev1015v1016-2022-05-27)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.5...v10.1.6)

###
[`v10.1.5`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1015-httpsgithubcomnpmmake-fetch-happencomparev1014v1015-2022-05-19)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.4...v10.1.5)

###
[`v10.1.4`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1014-httpsgithubcomnpmmake-fetch-happencomparev1013v1014-2022-05-18)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.3...v10.1.4)

###
[`v10.1.3`](https://togithub.com/npm/make-fetch-happen/blob/HEAD/CHANGELOG.md#&#8203;1013-httpsgithubcomnpmmake-fetch-happencomparev1012v1013-2022-05-09)

[Compare
Source](https://togithub.com/npm/make-fetch-happen/compare/v10.1.2...v10.1.3)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC42LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNC45LjEifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 23:06:29 +01:00
renovate[bot]
0c2a67f1dc
chore(deps): update dependency openapi-enforcer to v1.22.1 (#2362)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [openapi-enforcer](https://openapi-enforcer.com)
([source](https://togithub.com/byu-oit/openapi-enforcer)) | [`1.22.0` ->
`1.22.1`](https://renovatebot.com/diffs/npm/openapi-enforcer/1.22.0/1.22.1)
|
[![age](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.1/compatibility-slim/1.22.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.1/confidence-slim/1.22.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>byu-oit/openapi-enforcer</summary>

###
[`v1.22.1`](https://togithub.com/byu-oit/openapi-enforcer/blob/HEAD/CHANGELOG.md#&#8203;1221)

[Compare
Source](fc78fe42b4...11e77301c5)

##### Fixed

-   **Exception Skip Codes Bug Fix**

The exception skip codes that were defined via the options were not
being carried through to child components. This
fix allows those settings to be carried. Exception skip codes defined by
an instance (see change 1.22.0) are still
    limited to just the component.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 22:43:37 +01:00
renovate[bot]
907cce9c88
chore(deps): update dependency husky to v8.0.2 (#2354)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [husky](https://typicode.github.io/husky)
([source](https://togithub.com/typicode/husky)) | [`8.0.1` ->
`8.0.2`](https://renovatebot.com/diffs/npm/husky/8.0.1/8.0.2) |
[![age](https://badges.renovateapi.com/packages/npm/husky/8.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/husky/8.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/husky/8.0.2/compatibility-slim/8.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/husky/8.0.2/confidence-slim/8.0.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>typicode/husky</summary>

### [`v8.0.2`](https://togithub.com/typicode/husky/releases/tag/v8.0.2)

[Compare
Source](https://togithub.com/typicode/husky/compare/v8.0.1...v8.0.2)

-   docs: remove deprecated npm set-script

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 05:53:57 +00:00
renovate[bot]
aed48c0ee0
chore(deps): update dependency @swc/core to v1.3.14 (#2352)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc/core](https://swc.rs)
([source](https://togithub.com/swc-project/swc)) | [`1.3.11` ->
`1.3.14`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.3.11/1.3.14) |
[![age](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.14/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.14/compatibility-slim/1.3.11)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.14/confidence-slim/1.3.11)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc</summary>

###
[`v1.3.14`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#&#8203;1314---2022-11-03)

[Compare
Source](241f9f05cb...v1.3.14)

##### Bug Fixes

- **(common)** Remove `&mut` from `build_source_map_from`
([#&#8203;6276](https://togithub.com/swc-project/swc/issues/6276))
([47d7fca](47d7fcaaed))

- **(css/parser)** Fix parsing of colors
([#&#8203;6260](https://togithub.com/swc-project/swc/issues/6260))
([c3944ba](c3944ba239))

- **(css/parser)** Fix various issues
([#&#8203;6281](https://togithub.com/swc-project/swc/issues/6281))
([2813acc](2813acccc2))

- **(es/codegen)** Preserve more parens
([#&#8203;6268](https://togithub.com/swc-project/swc/issues/6268))
([c318446](c3184463f1))

- **(es/compat)** Fix `new.target` in a nested scope
([#&#8203;6296](https://togithub.com/swc-project/swc/issues/6296))
([aa18612](aa18612e62))

- **(es/compat)** Fix destructuring of an empty array
([#&#8203;6314](https://togithub.com/swc-project/swc/issues/6314))
([3bea6f7](3bea6f7248))

- **(es/helpers)** Fix `toArray`
([#&#8203;6318](https://togithub.com/swc-project/swc/issues/6318))
([e34c25e](e34c25e40d))

- **(es/lints)** Fix `const-assign` in function expressions
([#&#8203;6294](https://togithub.com/swc-project/swc/issues/6294))
([a27392a](a27392a251))

- **(es/minifier)** Don't ignore nullish coalescing
([#&#8203;6272](https://togithub.com/swc-project/swc/issues/6272))
([8c1ac68](8c1ac686cb))

- **(es/minifier)** Don't inline regex for IIFEs
([#&#8203;6283](https://togithub.com/swc-project/swc/issues/6283))
([4eab2ed](4eab2ed2fc))

- **(es/minifier)** Fix infinite loop
([#&#8203;6300](https://togithub.com/swc-project/swc/issues/6300))
([655f674](655f6744c5))

- **(es/minifier)** Don't drop an inlined parameter as a duplicate
([#&#8203;6293](https://togithub.com/swc-project/swc/issues/6293))
([dd797f7](dd797f7f15))

- **(es/resolver)** Change order for switch cases
([#&#8203;6317](https://togithub.com/swc-project/swc/issues/6317))
([2737aea](2737aea312))

- **(es/typescript)** Fix stack overflow
([#&#8203;6250](https://togithub.com/swc-project/swc/issues/6250))
([28ec6e8](28ec6e8fc7))

- **(html/minifier)** Merge style blocks
([#&#8203;6264](https://togithub.com/swc-project/swc/issues/6264))
([028951c](028951c36c))

##### Features

- **(css/parser)** Improve error reporting
([#&#8203;6274](https://togithub.com/swc-project/swc/issues/6274))
([956d574](956d574683))

- **(es)** Support trailing commas in `.swcrc`
([#&#8203;6289](https://togithub.com/swc-project/swc/issues/6289))
([244b0af](244b0af30d))

- **(es/minfiier)** Compute more with sequential inliner
([#&#8203;6169](https://togithub.com/swc-project/swc/issues/6169))
([743a1aa](743a1aab4f))

- **(es/minifier)** Implement trivial optimizations
([#&#8203;6256](https://togithub.com/swc-project/swc/issues/6256))
([5d52ae9](5d52ae971e))

- **(html/minifier)** Handle `crossorigin`
([#&#8203;6261](https://togithub.com/swc-project/swc/issues/6261))
([782da5c](782da5c83a))

- **(html/minifier)** Merge `script` tags
([#&#8203;6273](https://togithub.com/swc-project/swc/issues/6273))
([02f8d31](02f8d31ef3))

##### Miscellaneous Tasks

- **(ci)** Enforce clippy for all targets
([#&#8203;6299](https://togithub.com/swc-project/swc/issues/6299))
([0967e8f](0967e8f06d))

- **(ci)** Fix publish action
([2737143](27371431a9))

- **(ci)** Fix publish action
([13b4d31](13b4d317a5))

- **(common)** Switch to `new_debug_unreachable`
([#&#8203;6265](https://togithub.com/swc-project/swc/issues/6265))
([2f61332](2f61332177))

##### Performance

- **(html/parser)** Refactor
([#&#8203;6313](https://togithub.com/swc-project/swc/issues/6313))
([3a90657](3a9065799d))

##### Refactor

- **(css/parser)** Refactor more
([#&#8203;6251](https://togithub.com/swc-project/swc/issues/6251))
([a0e4684](a0e4684476))

- **(css/parser)** Refactor even more
([#&#8203;6288](https://togithub.com/swc-project/swc/issues/6288))
([6cafeb2](6cafeb2bcc))

- **(es)** Accept custom instance of `Comments`
([#&#8203;6290](https://togithub.com/swc-project/swc/issues/6290))
([1024a55](1024a552cf))

- **(html/parser)** Refactor
([#&#8203;6267](https://togithub.com/swc-project/swc/issues/6267))
([c255cfd](c255cfd716))

##### Testing

- **(css/minifier)** Fix fixture tester
([#&#8203;6222](https://togithub.com/swc-project/swc/issues/6222))
([cd1319d](cd1319d9be))

- **(css/parser)** Add tests for refactoring
([#&#8203;6262](https://togithub.com/swc-project/swc/issues/6262))
([4c293f9](4c293f965b))

- **(es)** Enable tests for fixed issues
([#&#8203;6311](https://togithub.com/swc-project/swc/issues/6311))
([5b02e24](5b02e2450d))

- **(es/compat)** Add execution tests
([#&#8203;6312](https://togithub.com/swc-project/swc/issues/6312))
([0f9d930](0f9d930f73))

- **(es/minifier)** Add a test for `??` operator
([#&#8203;6282](https://togithub.com/swc-project/swc/issues/6282))
([0376da7](0376da73c6))

###
[`v1.3.13`](https://togithub.com/swc-project/swc/compare/v1.3.11...241f9f05cbb67fc531e8f9c8e4a142521754b9a8)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.3.11...241f9f05cbb67fc531e8f9c8e4a142521754b9a8)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 02:43:42 +00:00
Ivar Conradi Østhus
ae0006b839
fix: require minimatch 3.0.5 or higher 2022-11-03 14:43:36 +01:00
renovate[bot]
c4b18a2e45
chore(deps): update typescript-eslint monorepo to v5.41.0 (#2283)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 00:20:06 +00:00
renovate[bot]
26994cedc6
chore(deps): update dependency supertest to v6.3.1 (#2268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-28 03:10:06 +00:00
renovate[bot]
5f59333ef9
chore(deps): update dependency superagent to v8.0.3 (#2263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-27 15:26:41 +00:00
renovate[bot]
09bf93f9dd
chore(deps): update dependency @types/semver to v7.3.13 (#2267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-27 06:44:24 +00:00
renovate[bot]
e73e5cf76d
chore(deps): update dependency @swc/core to v1.3.11 (#2265)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-27 00:09:25 +00:00
renovate[bot]
7a39407a97
chore(deps): update dependency jest to v29.2.2 (#2262)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-26 17:03:43 +00:00
Gastón Fournier
3c412eddcf
chore: Use last version of @unleash/express-openapi (#2260)
* Use the last version

https://www.npmjs.com/package/@unleash/express-openapi?activeTab=versions no changes from v0.2.1-beta.0
2022-10-26 14:19:56 +02:00
renovate[bot]
d8df7e5815
fix(deps): update dependency unleash-client to v3.16.0 (#2235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-10-26 10:23:33 +02:00
Ivar Conradi Østhus
cf4fc2303b
Feat/stats service (#2211)
Introduces an instance stats service exposing usage metrics of the Unleash installation.
2022-10-25 13:10:27 +02:00
renovate[bot]
549d317db7
chore(deps): update typescript-eslint monorepo to v5.40.1 (#2229)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-22 13:18:52 +00:00
renovate[bot]
ca4c030178
chore(deps): update jest monorepo (#2227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-22 05:24:11 +00:00
renovate[bot]
fc32c0b4d4
chore(deps): update dependency eslint to v8.26.0 (#2226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-22 02:48:59 +00:00
renovate[bot]
6181597014
chore(deps): update dependency @swc/core to v1.3.10 (#2223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-21 16:24:24 +00:00
renovate[bot]
de43064f19
chore(deps): update dependency fast-check to v3.3.0 (#2220)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-21 13:26:18 +00:00
renovate[bot]
a1dc8339aa
chore(deps): update dependency @babel/core to v7.19.6 (#2216)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-21 04:41:39 +00:00
renovate[bot]
7524dad7e8
chore(deps): update dependency @swc/core to v1.3.9 (#2196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-17 18:20:19 +00:00
renovate[bot]
62eac864f3
chore(deps): update dependency supertest to v6.3.0 (#2184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-12 19:08:01 +00:00
renovate[bot]
8f02b4ddd7
chore(deps): update dependency @swc/core to v1.3.7 (#2181)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-12 09:23:43 +00:00
renovate[bot]
34f7fb9c5b
chore(deps): update dependency openapi-enforcer to v1.22.0 (#2179)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-12 03:17:23 +00:00
renovate[bot]
9adc55757c
chore(deps): update dependency fast-check to v3.2.0 (#2177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-11 21:31:33 +00:00
renovate[bot]
815d2fbf28
chore(deps): update dependency eslint to v8.25.0 (#2174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-11 18:57:35 +00:00
renovate[bot]
bb8b70e3f0
chore(deps): update dependency @swc/core to v1.3.6 (#2161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-10 19:44:16 +00:00
renovate[bot]
5535a1769d
chore(deps): update dependency @babel/core to v7.19.3 (#2160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-10 08:13:08 +00:00
renovate[bot]
9477babb3f
chore(deps): update dependency typescript to v4.8.4 (#2154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-07 17:54:29 +00:00
renovate[bot]
996f7ebd80
chore(deps): update dependency fast-check to v3.1.4 (#2149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-07 08:29:36 +00:00
renovate[bot]
b0a3229f0e
chore(deps): update dependency @types/nodemailer to v6.4.6 (#2143)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-06 20:59:44 +00:00
renovate[bot]
48ba2135c2
chore(deps): update dependency @types/express to v4.17.14 (#2142)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-06 06:39:54 +00:00
renovate[bot]
b7b8e14e4e
chore(deps): update dependency @swc/jest to v0.2.23 (#2141)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-06 03:58:52 +00:00
sjaanus
1426d5be33
Added login endpoint rate limit (#2074)
* Added login rate limit

* Make more pretty

* Make more pretty

* Fix

* Remove double after all
2022-09-26 10:58:58 +03:00
Thomas Heartman
97c2b3c089
openapi: improve validation testing (#2058)
## What

This PR adds an extra layer of OpenAPI validation testing to what we already have. It also fixes any issues that make the new tests fail.

## Why

While the current OpenAPI validation takes care of _some_ things, there's also things it misses, as shown by #2055. By adding the OpenAPI Enforcer package, we should hopefully be able to catch more of these errors in the future. The enforcer _does_ flag the issue in #2055 as an error.

## How

By adding the OpenAPI Enforcer package and making whatever changes it picks up on.

By adding location headers to all our 201 endpoints. I also had to change some signatures on `create` store methods so that they actually return something (a lot of them just returned `void`).

## Discussion points

### Code changes

Some of the code changes may not be necessary or we may want to change more code to align with what changes have been done. It may be worth standardizing on a pattern for `*store.create` methods, so that they always return an identifier or the stored object, for instance.

### On relative URIs

The 201 location headers use relative URIs to point to the created resources. This seemed to be the easiest way to me, as we don't need to worry about figuring out what the absolute URL of the instance is (though we could probably just concat it to the request URI?). The algorithm for determining relative URIs is described in [RFC 3986 section 5](https://www.rfc-editor.org/rfc/rfc3986#section-5).

There's also some places where I'm not sure we _can_ provide accurate location url. I think they're supposed to point _directly at_ whatever the resource is, but for some resources (such as api tokens), you can only get it as part of a collection. From [RFC 9110 on the location field](https://httpwg.org/specs/rfc9110.html#field.location) (emphasis mine):

> the Location header field in a [201 (Created)](https://httpwg.org/specs/rfc9110.html#status.201) response is supposed to provide a URI that is **specific** to the created resource.

A link to a collection is not specific. I'm not sure what best to do about this.

### Inline comments

I've added a number of inline PR comments that I'd love to get some feedback on too. Have a look and let me know what you think!

### Unfinished business

I've added some juicy comments to some of the files here. They contain non-blocking issues that I'm tracking (via github issues). We should resolve them in the future, but right now they can stay as they are. 

## Commits

* Feat: add openapi-enforcer + tests; fix _some_ issues

* Test: allow non-standard string formats

* validation: fix _some_ 201 created location header endpoints

* #1391: fix remaining 201 location headers missing

* Refactor: use the ajv options object instead of add* methods

* #1391: flag validation errors and warnings as test failures

* #1391: modify patch schema to specify either object or array

We don't provide many patch endpoints, so we _could_ create separate
patch operation objects for each one. I think that makes sense to do
as part of the larger cleanup. For now, I think it's worth to simply
turn it into one of these. While it's not entirely accurate, it's
better than what we had before.

* Refactor: make tests easier to read

* #1391: use enum for valid token types

This was previously only a description. This may seem like a breaking
change because OpenAPI would previously accept any string. However,
Joi also performs validation on this, so invalid values wouldn't work
previously either.

* #1391: Comment out default parameter values for now

This isn't the _right_ way, but it's the pragmatic solution. It's not
a big deal and this works as a stopgap solution.

* #1391:  add todo note for api token schema fixes

* #1391: update snapshot

* Revert "#1391: modify patch schema to specify either object or array"

This reverts commit 0dd5d0faa1.

Turns out we need to allow much more than just objects and arrays.
I'll leave this as is for now.

* Chore(#1391): update comment explaining api token schema TODO

* #1391: modify some test code and add comment

* #1391: update tests and spec to allow 'any' type in schema

* Chore: remove comment

* #1391: add tests for context field stores

* #1391: add location header for public signup links

* #1391: fix query parameter description.

There was indeed a bug in the package, and this has been addressed
now, so we can go back to describing the params properly.
2022-09-23 15:02:09 +02:00
Fredrik Strand Oseberg
54633500fd
Feat/use collaborate data (#2067)
* feat: initial architecture

* feat: add generic types

* fix: refactor

* feat: style notification

* feat: remove useFeatureImmutable

* fix: remove casting

* fix: ensure data is present

* fix: revive useFeatureImmutable

* Update frontend/src/component/common/StaleDataNotification/StaleDataNotification.tsx

Co-authored-by: Nuno Góis <github@nunogois.com>

* Update frontend/src/component/common/StaleDataNotification/StaleDataNotification.tsx

Co-authored-by: Nuno Góis <github@nunogois.com>

* Update frontend/src/component/common/StaleDataNotification/StaleDataNotification.tsx

Co-authored-by: Nuno Góis <github@nunogois.com>

* Update frontend/src/component/common/StaleDataNotification/StaleDataNotification.tsx

Co-authored-by: Nuno Góis <github@nunogois.com>

* Update frontend/src/component/common/StaleDataNotification/StaleDataNotification.tsx

Co-authored-by: Nuno Góis <github@nunogois.com>

* fix: pr comments

* fix: change order

Co-authored-by: Nuno Góis <github@nunogois.com>
2022-09-16 15:23:08 +02:00
Christopher Kolstad
8648649047
task: use swc instead of ts-jest (#2042) 2022-09-06 13:22:41 +02:00
renovate[bot]
0db2c08382
chore(deps): update typescript-eslint monorepo to v5.36.1 (#2034)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-01 11:28:50 +00:00
renovate[bot]
6e33942193
chore(deps): update dependency eslint to v8.23.0 (#2006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-31 19:27:55 +00:00
renovate[bot]
c62ca2020a
chore(deps): update dependency fast-check to v3.1.2 (#1996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-30 08:44:39 +02:00
Gastón Fournier
47532dee7f
chore: upgrade @unleash/express-openapi (#1976) 2022-08-29 12:23:06 +02:00
olav
0510990503
refactor: remove old frontend dep (#1986) 2022-08-29 09:35:42 +02:00
Ivar Conradi Østhus
42ee35a2b8
fix: upgrade unleash-frontend to v4.14.8 2022-08-26 10:21:37 +02:00
renovate[bot]
b3949dc9f5
chore(deps): update dependency typescript to v4.8.2 (#1967)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-26 03:45:26 +00:00
renovate[bot]
b2663878f9
chore(deps): update typescript-eslint monorepo to v5.35.1 (#1963)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-25 21:12:36 +00:00
renovate[bot]
20d1d25934
chore(deps): update typescript-eslint monorepo to v5.34.0 (#1955)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-23 05:19:10 +00:00
renovate[bot]
976226d27e
chore(deps): update dependency @babel/core to v7.18.13 (#1954)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-23 01:56:01 +00:00
renovate[bot]
72d83ba45b
chore(deps): pin dependency @types/cors to 2.8.12 (#1943)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-20 07:30:25 +02:00
Gastón Fournier
1625d6193a
fix: https://github.com/Unleash/unleash/security/dependabot/18 (#1933) 2022-08-20 07:29:46 +02:00
olav
e927012f9f
chore: update unleash-frontend (#1944) 2022-08-19 10:26:54 +02:00
olav
0d293929f5
feat: add CORS support to the proxy endpoints (#1936)
* feat: add CORS support to the proxy endpoints

* refactor: remove unused development mode CORS support
2022-08-19 08:09:44 +02:00
renovate[bot]
3ed72e382a
chore(deps): update typescript-eslint monorepo to v5.33.1 (#1923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-15 21:20:13 +00:00
renovate[bot]
aebecf5f3a
chore(deps): update dependency eslint to v8.22.0 (#1920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-14 04:39:45 +00:00
renovate[bot]
a7d575061e
chore(deps): update dependency @types/semver to v7.3.12 (#1914)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-12 00:55:04 +00:00
renovate[bot]
0c8ebd4dcc
chore(deps): update dependency @types/semver to v7.3.11 (#1909)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-10 21:54:23 +00:00
olav
c7174e0a2e
chore: update unleash-frontend (#1903) 2022-08-09 16:40:08 +02:00
renovate[bot]
eb2de89b3c
chore(deps): update typescript-eslint monorepo to v5.33.0 (#1786)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-09 15:17:29 +02:00
renovate[bot]
daad75ef9a
chore(deps): update dependency @types/nodemailer to v6.4.5 (#1892)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-05 17:39:04 +00:00
renovate[bot]
2f011f3cc3
chore(deps): pin dependency unleash-client to 3.15.0 (#1887)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-05 13:57:41 +02:00
renovate[bot]
1278216247
chore(deps): update dependency @types/mime to v3.0.1 (#1891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-05 01:36:54 +00:00
renovate[bot]
601765ef9d
fix(deps): update dependency unleash-frontend to v4.14.3 (#1888)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-04 17:54:31 +00:00
Thomas Heartman
e55ad1a21e
feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839)
* Feat: return reasons why a feature evaluated to true or false

Note: this is very rough and just straight ripped from the nodejs
client. It will need a lot of work, but is a good place to start

* Feat: add suggested shape for new payload

* Chore: minor cleanup

* Wip: make server compile again

* Remove unused schema ref

* Export new schemas

* Chore: fix some tests to use sub property

* Fix: fix some tests

* Refactor: rename some variables, uncomment some stuff

* Add segments type to bootstrap options

* Add segments capability to offline feature evaluator

* Fix function calls after turning params into an option abject

* Feat: test strategy order, etc

* Feat: add test to check that all strats are returned correctly

* Feat: allow you to include strategy ids in clients

* Wip: hook up segments in the offline client.

Note: compared to regular clients, they still fail

* Feat: add segments validation

* Fix: fix test case invariant.

* Chore: revert to returning only `boolean` from strategies.

This _should_ make it work with custom strategies too 🤞

* Feat: make more properties of the returned feature required

* Wip: add some comments and unfinished tests for edge cases

* Feat: add `isEnabledInCurrentEnvironment` prop

* Feat: consider more strategy failure cases

* Feat: test that isenabledinenvironment matches expectations

* Feat: add unknown strategies

* Fix: fix property access typo

* Feat: add unknown strategy for fallback purposes

* Feat: test edge case: all unknown strategies

* Feat: add custom strategy to arbitrary

* Feat: test that features can be true, even if not enabled in env

* Chore: add some comments

* Wip: fix sdk tests

* Remove comments, improve test logging

* Feat: add descriptions and examples to playground feature schema

* Switch `examples` for `example`

* Update schemas with descriptions and examples

* Fix: update snapshot

* Fix: openapi example

* Fix: merge issues

* Fix: fix issue where feature evaluation state was wrong

* Chore: update openapi spec

* Fix: fix broken offline client tests

* Refactor: move schemas into separate files

* Refactor: remove "reason" for incomplete evaluation.

The only instances where evaluation is incomplete is when we don't
know what the strategy is.

* Refactor: move unleash node client into test and dev dependencies

* Wip: further removal of stuff

* Chore: remove a bunch of code that we don't use

* Chore: remove comment

* Chore: remove unused code

* Fix: fix some prettier errors

* Type parameters in strategies to avoid `any`

* Fix: remove commented out code

* Feat: make `id` required on playground strategies

* Chore: remove redundant type

* Fix: remove redundant if and fix fallback evaluation

* Refactor: reduce nesting and remove duplication

* Fix: remove unused helper function

* Refactor: type `parameters` as `unknown`

* Chore: remove redundant comment

* Refactor: move constraint code into a separate file

* Refactor: rename `unleash` -> `feature-evaluator`

* Rename class `Unleash` -> `FeatureEvaluator`

* Refactor: remove this.ready and sync logic from feature evaluator

* Refactor: remove unused code, rename config type

* Refactor: remove event emission from the Unleash client

* Remove unlistened-for events in feature evaluator

* Refactor: make offline client synchronous; remove code

* Fix: update openapi snapshot after adding required strategy ids

* Feat: change `strategies` format.

This commit changes the format of a playground feature's `strategies`
properties from a list of strategies to an object with properties
`result` and `data`. It looks a bit like this:

```ts
type Strategies = {
  result: boolean | "unknown",
  data: Strategy[]
}
```

The reason is that this allows us to avoid the breaking change that
was previously suggested in the PR:

`feature.isEnabled` used to be a straight boolean. Then, when we found
out we couldn't necessarily evaluate all strategies (custom strats are
hard!) we changed it to `boolean | 'unevaluated'`. However, this is
confusing on a few levels as the playground results are no longer the
same as the SDK would be, nor are they strictly boolean anymore.

This change reverts the `isEnabled` functionality to what it was
before (so it's always a mirror of what the SDK would show).
The equivalent of `feature.isEnabled === 'unevaluated'` now becomes
`feature.isEnabled && strategy.result === 'unknown'`.

* Fix: Fold long string descriptions over multiple lines.

* Fix: update snapshot after adding line breaks to descriptions
2022-08-04 15:41:52 +02:00
renovate[bot]
bc08eec633
chore(deps): update dependency es5-ext to v0.10.62 (#1881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-03 01:33:59 +00:00
renovate[bot]
d922ea1225
chore(deps): update dependency @babel/core to v7.18.10 (#1872)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-02 00:25:58 +00:00
renovate[bot]
595fd52d44
chore(deps): pin dependency @apidevtools/swagger-parser to 10.1.0 (#1864)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 12:42:02 +02:00
renovate[bot]
01df475809
chore(deps): update dependency @types/mime to v3 (#1869)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 11:41:49 +02:00
renovate[bot]
b818968357
chore(deps): update dependency eslint to v8.21.0 (#1870)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 08:50:40 +02:00
Christopher Kolstad
2bdc1031d6
task: bump unleash-frontend to 4.14.1 2022-07-28 15:39:57 +02:00
renovate[bot]
ab2b2b147d
fix(deps): update dependency json-schema-to-ts to v2.5.5 (#1865)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-28 12:33:00 +00:00
renovate[bot]
fb2c95f4cc
chore(deps): update dependency del-cli to v5 (#1838)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-28 08:46:13 +00:00
Christopher Kolstad
482754e9f5
fix: Remove unneeded ts-expect-error now that types in knex are in sync (#1866)
* fix: Remove unneeded ts-expect-error now that types in knex are in sync
2022-07-28 10:34:19 +02:00
renovate[bot]
0a93056923
chore(deps): update dependency supertest to v6.2.4 (#1787)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-28 10:05:34 +02:00
renovate[bot]
9d0b0bddaf
chore(deps): update dependency @types/make-fetch-happen to v10 (#1823)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-28 09:20:51 +02:00
Thomas Heartman
6afc0a6954
fix: fix broken OpenAPI spec (#1846)
* Wip: fix openapi spec

* Feat: add openapi enforcer for enforcing the generated schema

* Chore: Allow the example keyword in params

* Feat: add validator tests and fix some errors

* Use @apidevtools/swagger-parser for schema validation

* Wip: refactor tests for updated schema name

* Feat: update request params creation method

* Feat: add query params to state

* Refactor: move mapping test into separate function

* Refactor: rename request-parameters -> query-parameters

* Refactor: expose only finished query parameters

* Wip: fixup param types

* Refactor: remove unused types

* Chore: rename and cleanup

* Chore: cleanup

* Fix: Update snapshot

* Fix: use ?? Instead of paramToBool to get defaults

* Wip: generate query param object type from openapi params list

* Wip: use generated types for export query params

* Revert "Fix: use ?? Instead of paramToBool to get defaults"

This reverts commit 842567500b.

Because we accept bools, strings, and numbers, this is the only way to
do it.

* Chore: update and pin json-schema-to-ts

* Fix: use `&` to merge types

* Update snapshot

* Chore: rename export-parameters-schema -> export-query-parameters

When it ends in `schema`, the tests expect it to be included in the
openapi index file.
2022-07-28 09:19:58 +02:00
renovate[bot]
c3a84f37f8
chore(deps): update dependency es5-ext to v0.10.61 (#1862)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-26 16:45:45 +00:00
renovate[bot]
66a478374d
chore(deps): update dependency fast-check to v3.1.1 (#1859)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-26 15:04:22 +00:00
sjaanus
4f4b6c535b
Release (#1860) 2022-07-26 13:06:11 +00:00
Tymoteusz Czech
cc3636c59e
fix: force resolution of es5-ext (#1853) 2022-07-26 14:25:19 +02:00
sighphyre
cd83ba3184
Release/4.14.0 beta.3 (#1857)
* chore: bump unleash-front end version to 4.14.0-beta.5
2022-07-25 14:16:27 +02:00
renovate[bot]
a6ecaec48f
chore(deps): update dependency fast-check to v3.1.0 (#1849)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-22 13:30:24 +00:00
sighphyre
30bf81158d
chore: update frontend dependency to 4.14.0-beta.4 (#1848) 2022-07-22 10:10:00 +00:00
renovate[bot]
f88fe3b80b
fix(deps): update dependency unleash-frontend to v4.14.0-beta.3 (#1844)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-21 19:04:32 +00:00
renovate[bot]
7a7b86d440
chore(deps): update dependency nock to v13.2.9 (#1837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-19 21:32:00 +00:00
renovate[bot]
572f1cb7b6
chore(deps): pin dependency fast-check to 3.0.1 (#1809)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 12:16:58 +00:00
renovate[bot]
87cf6e58a2
chore(deps): update dependency @babel/core to v7.18.9 (#1830)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 12:11:16 +00:00
renovate[bot]
d89d8c0d0e
chore(deps): update dependency eslint to v8.20.0 (#1827)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-17 00:12:12 +00:00
renovate[bot]
d52ccef4d1 fix(deps): update dependency unleash-frontend to v4.14.0-beta.1 2022-07-14 22:31:25 +00:00
renovate[bot]
df8ecc1a26 chore(deps): update dependency ts-node to v10.9.1 2022-07-14 17:09:01 +00:00
renovate[bot]
7418e39fec chore(deps): update dependency ts-node to v10.9.0 2022-07-14 02:27:09 +00:00
Thomas Heartman
847119f964
feat: add playground API post endpoint (#1791)
* Chore: add unleash-client dependency

* Feat: add openapi specs for basic sdk contexts and playground reqs

* Feat: add openapi spec for response

* Feat: add openAPI entry for playground endpoint

* Fix: remove required 'projects' property that doesn't exist

* Refactor: add test placeholders for playground api

* Chore: improve openAPI description for playground request

* Refactor: align example project names

* Fix: update openapi snapshot

* Fix: summary -> description; example -> examples

* Feat: add fast-check and stub out one test.

The test doesn't work yet.

* Feat: add test and generator for sdk context schema

* Feat: add generators and tests for all new schemas

* Feat: test that the same input is returned exactly

* Feat: add more tests and more schemas

* Refactor: clean up tests some

* Refactor: simplify url friendliness check

* Refactor: fix types for playground request schema generator

* Feat: add bad request test

* Fix: make parameters the correct shape in generator

* Feat: scaffold out tests for service and endpoint

Liberal use of @ts-expect-error

* Fix: update snapshot with new model

* Add missing appName

* wip: stub out some extra tests

* Feat: model strategies for testing

* Feat: model variant payloads better

* Refactor: input params for function

* Refactor: use email address for user id generation

* Chore: update comment

* Wip: start stubbing out e2e tests

* Refactor: move tests requiring db to e2e file

* Fix: make e2e tests run as expected

* Fix: make toggle generator test work as expected

* Fix: increase timeout for long-running e2e test

* Wip: map toggles test

* Wip: test movement and cleanup

* Refactor: remove `AllowedStrings` in favor of typeof X[number]

* Wip: add e2e tests for the service

* Wip: tests in progress

* Feat: return fuller variant value

* Wip: delete redundant test.

Both those tests were testing versions of the same thing, so let's
delete one of them

* Feat: update openAPI snapshot

* Feat: hook up the playground service

* Feat: fix test cases for e2e api

* Refactor: get rid of _one_ 'as unknown as x' cast

* Fix: wait for the client to be ready before we pass it back

* Fix: weights go to 1000!

* Fix: fix some test assertions, add one more test to be sure

* Wip: add some test parameters to hopefully avoid timeouts

* Fix: don't init the client if there are no toggles

If you don't provide it with any toggles to bootstrap, then the client
will never be ready. This avoids that.

This adds two ways around it because we'll probably get away with a
bit less computation if we don't even try to initialize it. However,
we also don't want anyone else to make this mistake.

* Chore: modify test params

* Feat: use the type system to avoid empty lists for initialization

* Refactor: make tests simpler

* Feat: test basic context values

* Feat: test dynamic context values

* Fix: make custom context field test more reliable

* Feat: use unique arrays for toggles

* Feat: make `appName` required in context

* Fix: sdk context schema arbitrary: make appName at least 1 char long

* Fix: add a minimum length on appName in the context schema

* Fix: fix tests that fail due to new requirements

* Fix: update a test: remove variant mapping testing

* Fix: fix remaining tests

* Feat: rename response.toggles -> response.features

* Refactor: avoid single-letter predicate variables

* Refactor: extract offlineclient into its own file

* Refactor: move arbitraries into separate file

* Refactor: move playground requests into util function

* Fix: remove duplicate declaration of urlFriendlyString

* Chore: update comment

* Refactor: align on arbitrary generator naming

* Feat: Export single strategy arbitrary
2022-07-12 13:01:10 +02:00
renovate[bot]
c991541e6c chore(deps): update dependency eslint to v8.19.0 2022-07-11 19:42:22 +00:00
renovate[bot]
b684c9c05e chore(deps): update dependency ts-node to v10.8.2 2022-07-11 16:32:47 +00:00
renovate[bot]
b77490b583 chore(deps): update dependency @types/express-session to v1.17.5 2022-07-11 13:44:48 +00:00
renovate[bot]
16dc677340 chore(deps): update dependency eslint-plugin-prettier to v4.2.1 2022-07-01 02:48:58 +00:00
renovate[bot]
c7847dd191 chore(deps): update dependency nock to v13.2.8 2022-06-30 23:59:28 +00:00
Christopher Kolstad
e9896a86f6
chore: bump unleash-frontend to 4.14.0-beta.0 2022-06-28 14:35:24 +02:00