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

1058 Commits

Author SHA1 Message Date
Simon Hornby
4fc0f61753
docs: update postgres ssl docs to accurately use ca over key (#4271) 2023-07-18 14:11:25 +02:00
Thomas Heartman
35fbd8f271
docs: update playground docs to mention advanced features (#4266)
This change updates the playground reference docs with some new images
and an explanation of how the results work now.

I have not removed any of the old images because I think they still
illustrate well how the playground works. And because they're not
direct screenshots anyway, that sounds like a fair trade-off to me.
2023-07-18 12:59:19 +02:00
sebastian-bury
3e98e1743f update to add Edge to overview 2023-07-13 17:34:30 +02:00
David Leek
eb1df78383
docs: add description of how to install jira cloud plugin (#4197) 2023-07-13 09:36:38 +02:00
Gastón Fournier
dfca41c5a0
docs: highlight unleash edge (#4229)
Highlight edge in the first paragraph.

Not sure if we should suggest that it should be the preferred choice,
but at least this helps to realize there's an alternative already in the
first paragraph.
2023-07-13 09:24:27 +02:00
Gastón Fournier
96bc5ccd94
docs: suggest to use strategy constraints instead of custom strategies (#4215)
## About the changes
Custom activation strategies are still the recommended way to go in our
documentation, but now most of the use cases for custom activation
strategies can be covered by strategy constraints (released with Unleash
4.16)

With this change, we try to drive people to use strategy constraints.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-07-11 11:35:58 +02:00
Christopher Kolstad
4007ebfffb
docs: Update proxy hosting to point to Frontend API (#4191)
### What
We had a customer wonder why `/api/proxy/development` wasn't configured
for them. After some digging it was found that they'd followed our
documentation and assumed that the proxy was configured for them.
However, since we no longer host proxies, this was not the case. This PR
updates the documentation to point out that "Unleash hosts everything"
now means that our clients should use Frontend API keys and the
`/api/frontend` endpoint to get what they used to get from embedded
proxies.

## Missing
We should make a new illustration in the same vein as the other
illustrations on this page to demonstrate what the Frontend API really
is. This PR removes the reference to the picture of the topology of
having Unleash hosting proxies.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-07-11 10:55:54 +02:00
Christopher Kolstad
ff1af03f0e
docs: add impression events as supported in the java sdk (#4213)
## What
A very small change flagging impression events as supported in the Java
SDK
2023-07-11 10:54:49 +02:00
Ivar Conradi Østhus
ec1bc9bb4e
fix: do not include rio server-side 2023-07-07 14:08:50 +02:00
Ivar Conradi Østhus
9e204efbd0
fix: only load if document present 2023-07-07 13:33:24 +02:00
Ivar Conradi Østhus
f995a0ed6c
chore: add reo to docs 2023-07-07 12:52:46 +02:00
Mateusz Kwasniewski
3ebf3c05f8
docs: project overview (#4176) 2023-07-07 11:50:54 +02:00
Mateusz Kwasniewski
79b34121a4
feat: openapi schema for user admin (#4146) 2023-07-06 08:24:46 +02:00
renovate[bot]
321265e0ed
chore(deps): update dependency got to v13 (#3952)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [got](https://togithub.com/sindresorhus/got) | [`^11.8.5` ->
`^13.0.0`](https://renovatebot.com/diffs/npm/got/11.8.6/13.0.0) |
[![age](https://badges.renovateapi.com/packages/npm/got/13.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/got/13.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/got/13.0.0/compatibility-slim/11.8.6)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/got/13.0.0/confidence-slim/11.8.6)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>sindresorhus/got</summary>

###
[`v13.0.0`](https://togithub.com/sindresorhus/got/releases/tag/v13.0.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.6.1...v13.0.0)

As a reminder, Got continues to require ESM. For TypeScript users, this
includes having [`"module": "node16", "moduleResolution": "node16"` in
your
tsconfig](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm).

##### Breaking

- Require Node.js 16
[`52a1063`](https://togithub.com/sindresorhus/got/commit/52a1063)
- Change the
[`enableUnixSockets`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets)
option to be `false` by default
[`852c312`](https://togithub.com/sindresorhus/got/commit/852c312)
    -   Most users don't need it.

##### Improvements

- Allow specifying `undefined` for options
([#&#8203;2258](https://togithub.com/sindresorhus/got/issues/2258))
[`1cefe8b`](https://togithub.com/sindresorhus/got/commit/1cefe8b)

###
[`v12.6.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.6.1)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.6.0...v12.6.1)

- Fix `get-stream` import statement
([#&#8203;2266](https://togithub.com/sindresorhus/got/issues/2266))
[`67d5039`](https://togithub.com/sindresorhus/got/commit/67d5039)

###
[`v12.6.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.6.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.5.3...v12.6.0)

- Update dependencies
[`88c88fb`](https://togithub.com/sindresorhus/got/commit/88c88fb)
[`979272e`](https://togithub.com/sindresorhus/got/commit/979272e)
- Loosen URL validation strictness
([#&#8203;2200](https://togithub.com/sindresorhus/got/issues/2200))
[`0ca0b7f`](https://togithub.com/sindresorhus/got/commit/0ca0b7f)

###
[`v12.5.3`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.3)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.5.2...v12.5.3)

- Fix abort event listeners not always being cleaned up
([#&#8203;2162](https://togithub.com/sindresorhus/got/issues/2162))
[`3cc40b5`](https://togithub.com/sindresorhus/got/commit/3cc40b5)

###
[`v12.5.2`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.2)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.5.1...v12.5.2)

- Improve TypeScript 4.9 compatibility
([#&#8203;2163](https://togithub.com/sindresorhus/got/issues/2163))
[`39f83b6`](https://togithub.com/sindresorhus/got/commit/39f83b6)

###
[`v12.5.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.1)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.5.0...v12.5.1)

- Fix compatibility with TypeScript and ESM
[`3b3ea67`](https://togithub.com/sindresorhus/got/commit/3b3ea67)
- Fix request body not being properly cached
([#&#8203;2150](https://togithub.com/sindresorhus/got/issues/2150))
[`3e9d3af`](https://togithub.com/sindresorhus/got/commit/3e9d3af)

###
[`v12.5.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.5.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.4.1...v12.5.0)

- Disable method rewriting on 307 and 308 status codes
([#&#8203;2145](https://togithub.com/sindresorhus/got/issues/2145))
[`e049e94`](https://togithub.com/sindresorhus/got/commit/e049e94)
- Upgrade dependencies
[`8630815`](https://togithub.com/sindresorhus/got/commit/8630815)
[`f0ac0b3`](https://togithub.com/sindresorhus/got/commit/f0ac0b3)
[`4c3762a`](https://togithub.com/sindresorhus/got/commit/4c3762a)

###
[`v12.4.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.4.1)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.4.0...v12.4.1)

##### Fixes

- Fix `options.context` being not extensible
[`b671480`](b671480715)
- Don't emit `uploadProgress` after promise cancelation
[`693de21`](693de217b0)

###
[`v12.4.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.4.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.3.1...v12.4.0)

##### Improvements

- Support FormData without known length
([#&#8203;2120](https://togithub.com/sindresorhus/got/issues/2120))
[`850773c`](https://togithub.com/sindresorhus/got/commit/850773c)

##### Fixes

- Don't call `beforeError` hooks with `HTTPError` if the
`throwHttpErrors` option is `false`
([#&#8203;2104](https://togithub.com/sindresorhus/got/issues/2104))
[`3927348`](https://togithub.com/sindresorhus/got/commit/3927348)

###
[`v12.3.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.3.1)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.3.0...v12.3.1)

- Don't freeze signal when freezing Options
([#&#8203;2100](https://togithub.com/sindresorhus/got/issues/2100))
[`43b1467`](https://togithub.com/sindresorhus/got/commit/43b1467)

###
[`v12.3.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.3.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.2.0...v12.3.0)

- Add `.off()` method for events
([#&#8203;2092](https://togithub.com/sindresorhus/got/issues/2092))
[`88056be`](https://togithub.com/sindresorhus/got/commit/88056be)

###
[`v12.2.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.2.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.1.0...v12.2.0)

- [Support
`AbortController`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#signal)
([#&#8203;2020](https://togithub.com/sindresorhus/got/issues/2020))
[`6a6d2a9`](https://togithub.com/sindresorhus/got/commit/6a6d2a9)
- Add
[`enableUnixSockets`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#enableunixsockets)
option
([#&#8203;2062](https://togithub.com/sindresorhus/got/issues/2062))
[`461b3d4`](https://togithub.com/sindresorhus/got/commit/461b3d4)

###
[`v12.1.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.1.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.0.4...v12.1.0)

##### Improvements

- Add `response.ok`
([#&#8203;2043](https://togithub.com/sindresorhus/got/issues/2043))
[`22d58fb`](https://togithub.com/sindresorhus/got/commit/22d58fb)
- This is only useful if you have [`{throwHttpErrors:
false}`](https://togithub.com/sindresorhus/got/blob/main/documentation/2-options.md#throwhttperrors)

##### Fixes

- Do not redirect to UNIX sockets
([#&#8203;2047](https://togithub.com/sindresorhus/got/issues/2047))
[`861ccd9`](https://togithub.com/sindresorhus/got/commit/861ccd9)
- [CVE-2022-33987](https://nvd.nist.gov/vuln/detail/CVE-2022-33987)
- [Also back ported to
v11](https://togithub.com/sindresorhus/got/releases/tag/v11.8.5)

###
[`v12.0.4`](https://togithub.com/sindresorhus/got/releases/tag/v12.0.4)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.0.3...v12.0.4)

- Remove stream lock - unreliable since Node 17.3.0
[`bb8eca9`](bb8eca924c)

###
[`v12.0.3`](https://togithub.com/sindresorhus/got/releases/tag/v12.0.3)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.0.2...v12.0.3)

- Allow more types in the `json` option
([#&#8203;2015](https://togithub.com/sindresorhus/got/issues/2015))
[`eb045bf`](https://togithub.com/sindresorhus/got/commit/eb045bf)

###
[`v12.0.2`](https://togithub.com/sindresorhus/got/releases/tag/v12.0.2)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.0.1...v12.0.2)

- Fix `encoding` option with `{responseType: 'json'}`
([#&#8203;1996](https://togithub.com/sindresorhus/got/issues/1996))
[`0703318`](https://togithub.com/sindresorhus/got/commit/0703318)

###
[`v12.0.1`](https://togithub.com/sindresorhus/got/releases/tag/v12.0.1)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v12.0.0...v12.0.1)

- Fix `nock` compatibility
([#&#8203;1959](https://togithub.com/sindresorhus/got/issues/1959))
[`bf39d2c`](https://togithub.com/sindresorhus/got/commit/bf39d2c)
- Fix missing export of `Request` TypeScript type
([#&#8203;1940](https://togithub.com/sindresorhus/got/issues/1940))
[`0f9f2b8`](https://togithub.com/sindresorhus/got/commit/0f9f2b8)

###
[`v12.0.0`](https://togithub.com/sindresorhus/got/releases/tag/v12.0.0)

[Compare
Source](https://togithub.com/sindresorhus/got/compare/v11.8.6...v12.0.0)

##### Introducing Got v12.0.0 🎉

Long time no see! The latest Got version (v11.8.2) was released just in
February ❄️
We have been working hard on squashing bugs and improving overall
experience.

If you find Got useful, you might want to [sponsor the Got
maintainers](https://togithub.com/sindresorhus/got?sponsor=1).

##### This package is now pure ESM

**Please [read
this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).**
Also see
[https://github.com/sindresorhus/got/issues/1789](https://togithub.com/sindresorhus/got/issues/1789).

- **Please don't open issues about `[ERR_REQUIRE_ESM]` and `Must use
import to load ES Module` errors.** This is a problem with your setup,
not Got.
- Please don't open issues about using Got with Jest. Jest does not
fully support ESM.
- Pretty much any problem with loading this package is a problem with
your bundler, test framework, etc, not Got.
- If you use TypeScript, you will want to stay on Got v11 until
TypeScript 4.6 is out.
[Why.](https://togithub.com/microsoft/TypeScript/issues/46452)
- If you use a bundler, make sure it supports ESM and that you have
correctly configured it for ESM.
- The Got issue tracker is not a support channel for your favorite
build/bundler tool.

##### Required Node.js >=14

While working with streams, we encountered more Node.js bugs that needed
workarounds.
In order to keep our code clean, we had to drop Node.js v12 as the code
would get more messy.
We strongly recommend that you update Node.js to **v14 LTS**.

##### HTTP/2 support

Every Node.js release, the native `http2` module gets more stable.
Unfortunately there are still some issues on the Node.js side, so we
decided to keep HTTP/2 disabled for now.
We may enable it by default in Got v13. It is still possible to turn it
on via the `http2` option.

To run HTTP/2 requests, it is required to use Node.js **v15.10** or
above.

##### Bug fixes

Woah, we possibly couldn't make a release if we didn't fix some bugs!

- Do not throw on custom stack traces
([#&#8203;1491](https://togithub.com/sindresorhus/got/issues/1491))
[`49c16ee`](49c16ee54f)
- Remove automatic `content-length` on ReadStream
([#&#8203;1510](https://togithub.com/sindresorhus/got/issues/1510))
[`472b8ef`](472b8ef9d9)
- Fix promise shortcuts in case of error status code
([#&#8203;1543](https://togithub.com/sindresorhus/got/issues/1543))
[`ff918fb`](ff918fb6de)
[`1107cc6`](1107cc625e)
- Invert the `methodRewriting` option
[`51d88a0`](51d88a0efe)
- Fix `url` not being reused on retry in rare case
([#&#8203;1487](https://togithub.com/sindresorhus/got/issues/1487))
[`462bc63`](462bc63001)
- Fix hanging promise on HTTP/2 timeout
([#&#8203;1492](https://togithub.com/sindresorhus/got/issues/1492))
[`a59fac4`](a59fac415a)
- Prevent uncaught ParseErrors on initial successful response
([#&#8203;1527](https://togithub.com/sindresorhus/got/issues/1527))
[`77df9c3`](77df9c33db)
- Throw an error when retrying with consumed body
([#&#8203;1507](https://togithub.com/sindresorhus/got/issues/1507))
[`62305d7`](62305d77d3)
- Fix a Node.js 16 bug that hangs Got streams
[`06a2d3d`](06a2d3d7d8)
- Fix default pagination handling for empty Link header
([#&#8203;1768](https://togithub.com/sindresorhus/got/issues/1768))
[`1e1e506`](1e1e50647e)
- Fix incorrect `response.complete` when using cache
[`9e15d88`](9e15d887da)
- Fix `Cannot call end` error when `request` returns a `Writable`
[`226cc39`](226cc3995f)
- Fix Request options not being reused on retry
[`3c23eea`](3c23eea5a0)
- Fix types being not compatible with CommonJS
[`3c23eea`](3c23eea5a0)
- Fix `got.paginate does not call init hooks`
([#&#8203;1574](https://togithub.com/sindresorhus/got/issues/1574))
[`3c23eea`](3c23eea5a0)
- Generate a new object when passing options to the native `https`
module
([#&#8203;1567](https://togithub.com/sindresorhus/got/issues/1567))
[`3c23eea`](3c23eea5a0)
- Remove stream reuse check
([#&#8203;1803](https://togithub.com/sindresorhus/got/issues/1803))
[`9ecc5ee`](9ecc5ee76f)
- Fix merging `searchParams`
([#&#8203;1814](https://togithub.com/sindresorhus/got/issues/1814))
[`1018c20`](1018c2029e)
[`732e9bd`](732e9bd940)
- Fix unhandled exception when lookup returns invalid IP early
([#&#8203;1737](https://togithub.com/sindresorhus/got/issues/1737))
[`2453e5e`](2453e5e421)
- Fix relative URLs when paginating
[`439fb82`](439fb82d2a)
- Require url to be an instance of URL when paginating
([#&#8203;1818](https://togithub.com/sindresorhus/got/issues/1818))
[`eda69ff`](eda69ff924)
- Fix `username` and `password` encoding in URL
([#&#8203;1169](https://togithub.com/sindresorhus/got/issues/1169)
[#&#8203;1317](https://togithub.com/sindresorhus/got/issues/1317))
[`d65d0ca`](d65d0caf62)
- Clone raw options
[`1c4cefc`](1c4cefc9b4)
- Fix invalid `afterResponse` return check
[`cbc8902`](https://togithub.com/sindresorhus/got/commit/cbc8902)
- Fix `https.alpnProtocols` not having an effect
[`e1099fb`](https://togithub.com/sindresorhus/got/commit/e1099fb)

##### Improvements

- Make the `context` option mergeable
([#&#8203;1459](https://togithub.com/sindresorhus/got/issues/1459))
[`2b8ed1f`](2b8ed1f5a1)
- Add generic argument to AfterResponseHook TypeScript type
([#&#8203;1589](https://togithub.com/sindresorhus/got/issues/1589))
[`6fc04a9`](6fc04a9b92)
- Add read timeout
([#&#8203;1518](https://togithub.com/sindresorhus/got/issues/1518))
[`e943672`](e9436720fc)
*(blocked by
[https://github.com/nodejs/node/issues/35923](https://togithub.com/nodejs/node/issues/35923))*
- Improve the pagination API
([#&#8203;1644](https://togithub.com/sindresorhus/got/issues/1644))
[`2675046`](2675046a83)
- Change the stackAllItems option to be false by default
([#&#8203;1645](https://togithub.com/sindresorhus/got/issues/1645))
[`1120370`](1120370e05)
- Throw when afterResponse hook returns an invalid value
[`4f21eb3`](4f21eb3db7)
- Add `retry.backoffLimit` option
[`41c4136`](41c4136632)
- Add `noise` retry option
[`e830077`](e830077046)
- Enable more HTTPS options
[`83575d5`](83575d590a)
[`fe723a0`](fe723a0477)
(thanks [@&#8203;Giotino](https://togithub.com/Giotino))
- Define `error.code`
[`f27e8d3`](f27e8d3316)
- Set `options.url` even if some options are invalid
[`8d6a680`](8d6a680788)
- Improve memory usage when merging options
[`2db5ec5`](2db5ec5d36)
- Support async generators as body
[`854430f`](854430f013)
[`3df52f3`](3df52f38ed)
- Add missing `once` types for Stream API
[`3c23eea`](3c23eea5a0)
- New error type: `RetryError` which always triggers a new retry when
thrown
[`3c23eea`](3c23eea5a0)
- `error.options` is now enumerable
[`3c23eea`](3c23eea5a0)
- `defaults.handlers` don't need a default handler now
[`3c23eea`](3c23eea5a0)
- Add a parser for the `Link` header
[`3c23eea`](3c23eea5a0)
- General code improvements
[`a5dd9aa`](a5dd9aa37e)

##### Breaking changes

##### Improved option normalization

- Got exports an `Option` class that is specifically designed to parse
and validate Got options.
It is made of setters and getters that provide fast normalization and
more consistent behavior.

When passing an option does not exist, Got will throw an error. In order
to retrieve the options before the error, use `error.options`.

```js
import got from 'got';

try {
    await got('https://httpbin.org/anything', {
        thisOptionDoesNotExist: true
    });
} catch (error) {
    console.error(error);
    console.error(error.options.url.href);
    // Unexpected option: thisOptionDoesNotExist
    // https://httpbin.org/anything
}
```

- The `init` hook now accepts a second argument: `self`, which points to
an `Options` instance.

In order to define your own options, you have to move them to
`options.context` in an [`init`
hook](https://togithub.com/sindresorhus/got/blob/main/documentation/lets-make-a-plugin.md#authorization)
or store them in `options.context` directly.

- The `init` hooks are ran only when passing an options object
explicitly.

```diff
- await got('https://example.com'); // this will *not* trigger the init hooks
+ await got('https://example.com', {}); // this *will** trigger init hooks
```

- [`options.merge()`](2-options.md) replaced `got.mergeOptions` and
`Request.normalizeArguments`

```diff
- got.defaults.options = got.mergeOptions(got.defaults.options, {…});
+ got.defaults.options.merge(…);
```

This fixes issues like
[#&#8203;1450](https://togithub.com/sindresorhus/got/issues/1450)

- Legacy `Url` instances are not supported anymore. You need to use
WHATWG URL instead.

```diff
- await got(string, {port: 8443});
+ const url = new URL(string);
+ url.port = 8443;
+ await got(url);
```

-   No implicit timeout declaration.

```diff
- await got('https://example.com', {timeout: 5000})
+ await got('https://example.com', {timeout: {request: 5000})
```

-   No implicit retry declaration.

```diff
- await got('https://example.com', {retry: 5})
+ await got('https://example.com', {retry: {limit: 5})
```

-   `dnsLookupIpVersion` is now a number (4 or 6) or undefined

```diff
- await got('https://example.com', {dnsLookupIpVersion: 'ipv4'})
+ await got('https://example.com', {dnsLookupIpVersion: 4})
```

-   `redirectUrls` and `requestUrl` now give URL instances

```diff
- request.requestUrl
+ request.requestUrl.origin
+ request.requestUrl.href
+ request.requestUrl.toString()
```

```diff
- request.redirectUrls[0]
+ request.redirectUrls[0].origin
+ request.redirectUrls[0].href
+ request.redirectUrls[0].toString()
```

-   Renamed `request.aborted` to `request.isAborted`

```diff
- request.aborted
+ request.isAborted
```

Reason: consistency with `options.isStream`.

-   Renamed the `lookup` option to `dnsLookup`

```diff
- await got('https://example.com', {lookup: cacheable.lookup})
+ await got('https://example.com', {dnsLookup: cacheable.lookup})
```

- The `beforeRetry` hook now accepts only two arguments: `error` and
`retryCount`

```diff
await got('https://example.com', {
    hooks: {
        beforeRetry: [
-            (options, error, retryCount) => {
-                console.log(options, error, retryCount);
-            }
+            (error, retryCount) => {
+                console.log(error.options, error, retryCount);
+            }
        ]
    }
})
```

The `options` argument has been removed, however it's still accessible
via `error.options`. All modifications on `error.options` will be
reflected in the next requests (no behavior change, same as with Got
11).

- The `beforeRedirect` hook's first argument (options) is now a cloned
instance of the Request options.

This was done to make retrieving the original options possible:
`plainResponse.request.options`.

```diff
await got('http://szmarczak.com', {
    hooks: {
        beforeRedirect: [
            (options, response) => {
-                console.log(options === response.request.options); //=> true [invalid! our original options were overriden]
+                console.log(options === response.request.options); //=> false [we can access the original options now]
            }
        ]
    }
})
```

- The `redirect` event now takes two arguments in this order:
`updatedOptions` and `plainResponse`.

```diff
- stream.on('redirect', (response, options) => …)
+ stream.on('redirect', (options, response) => …)
```

Reason: consistency with the `beforeRedirect` hook.

- The `socketPath` option has been removed. Use the `unix:` protocol
instead.

```diff
- got('/containers/json', {socketPath: '/var/run/docker.sock'})
+ got('unix:/var/run/docker.sock:/containers/json')
+ got('http://unix:/var/run/docker.sock:/containers/json')
```

- The `retryWithMergedOptions` function in an `afterResponse` hook no
longer returns a `Promise`.

It now throws `RetryError`, so this should this should be the last
function being executed.
This was done to allow `beforeRetry` hooks getting called.

-   You can no longer set `options.agent` to `false`.
To do so, you need to define all the `options.agent` properties: `http`,
`https` and `http2`.

```diff
await got('https://example.com', {
-    agent: false
+    agent: {
+        http: false,
+        https: false,
+        http2: false
+    }
})
```

- When passing a `url` option when paginating, it now needs to be an
absolute URL - the `prefixUrl` option is always reset from now on. The
same when retrying in an `afterResponse` hook.

```diff
- return {url: '/location'};
+ return {url: new URL('/location', response.request.options.url)};
```

There was confusion around the `prefixUrl` option. It was
counterintuitive if used with the Pagination API. For example, it worked
fine if the server replied with a relative URL, but if it was an
absolute URL then the `prefixUrl` would end up duplicated. In order to
fix this, Got now requires an absolute URL - no `prefixUrl` will be
applied.

- `got.extend(…)` will throw when passing some options that don't accept
undefined - undefined no longer retains the old value, as setting
undefined explicitly may reset the option

##### Documentation

We have redesigned the documentation so it's easier to navigate and find
exactly what you are looking for. We hope you like it ❤️

</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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-05 13:25:45 +02:00
Ivar Conradi Østhus
71be28c1df
semver: pin at ^7.5.3 2023-07-04 16:55:40 +02:00
Thomas Heartman
9c7eadded0
docs: switch order of api doc sidebar items; put legacy docs under legacy header (#4135)
Also adds a caution admonition to the legacy doc index page
2023-07-04 14:19:34 +02:00
Gastón Fournier
13def9a3a3
docs: Documentation around metrics API (#4134)
## About the changes
Mark some legacy endpoints as deprecated (they are long deprecated but
documentation was out of date) and fix some of the URLs
2023-07-04 11:16:05 +02:00
Mateusz Kwasniewski
d3b3652984
docs: not on latest unleash with openapi enabeld (#4024) 2023-07-03 13:48:46 +02:00
John Farrar
65995b238a
Update index.md, 2 grammar updates (#4086)
Included a library from the ColdBox Open Source team.

More detail here if needed.
https://forgebox.io/view/unleashsdk

I cheated on the grammar. Grammarly helps me out there.
2023-06-29 10:02:27 +00:00
renovate[bot]
9c3c40b801
chore(deps): update dependency @storybook/testing-library to v0.2.0 (#4103)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@storybook/testing-library](https://togithub.com/storybookjs/testing-library)
| [`0.1.0` ->
`0.2.0`](https://renovatebot.com/diffs/npm/@storybook%2ftesting-library/0.1.0/0.2.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@storybook%2ftesting-library/0.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2ftesting-library/0.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@storybook%2ftesting-library/0.2.0/compatibility-slim/0.1.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2ftesting-library/0.2.0/confidence-slim/0.1.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>storybookjs/testing-library
(@&#8203;storybook/testing-library)</summary>

###
[`v0.2.0`](https://togithub.com/storybookjs/testing-library/releases/tag/v0.2.0)

[Compare
Source](https://togithub.com/storybookjs/testing-library/compare/v0.1.0...v0.2.0)

🎉 This release contains work from a new contributor! 🎉

Thank you, Vanessa Yuen
([@&#8203;vanessayuenn](https://togithub.com/vanessayuenn)), for all
your work!

##### Release Notes

##### Upgrade user-event to v14 and testing-library to v9
([#&#8203;43](https://togithub.com/storybookjs/testing-library/pull/43))

`@storybook/testing-library` now uses `@testing-library/dom` **version
9** and `@testing-library/user-event` **version 14**! 🎉

To refer to new features and bugfixes and you can check them in the
[user-event release
page](https://togithub.com/testing-library/user-event/releases/tag/v14.0.0)
and [testing-library dom release
page](https://togithub.com/testing-library/dom-testing-library/releases/tag/v9.0.0).

***

##### 🚀 Enhancement

- Release 0.2.0
[#&#8203;46](https://togithub.com/storybookjs/testing-library/pull/46)
([@&#8203;yannbf](https://togithub.com/yannbf)
[@&#8203;ndelangen](https://togithub.com/ndelangen)
[@&#8203;vanessayuenn](https://togithub.com/vanessayuenn))
- Upgrade user-event to v14 and testing-library to v9
[#&#8203;43](https://togithub.com/storybookjs/testing-library/pull/43)
([@&#8203;yannbf](https://togithub.com/yannbf))
- migrate to tsup (again)
[#&#8203;38](https://togithub.com/storybookjs/testing-library/pull/38)
([@&#8203;ndelangen](https://togithub.com/ndelangen))

##### 🐛 Bug Fix

- Lower testing library dependency range
[#&#8203;47](https://togithub.com/storybookjs/testing-library/pull/47)
([@&#8203;yannbf](https://togithub.com/yannbf))
- Change Storybook dependencies from `future` npm tag to `next`
[#&#8203;44](https://togithub.com/storybookjs/testing-library/pull/44)
([@&#8203;yannbf](https://togithub.com/yannbf))
- Revert "migrate to tsup"
[#&#8203;37](https://togithub.com/storybookjs/testing-library/pull/37)
([@&#8203;ndelangen](https://togithub.com/ndelangen))
- migrate to tsup
[#&#8203;36](https://togithub.com/storybookjs/testing-library/pull/36)
([@&#8203;ndelangen](https://togithub.com/ndelangen))

##### Authors: 3

- Norbert de Langen
([@&#8203;ndelangen](https://togithub.com/ndelangen))
- Vanessa Yuen
([@&#8203;vanessayuenn](https://togithub.com/vanessayuenn))
-   Yann Braga ([@&#8203;yannbf](https://togithub.com/yannbf))

</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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDEuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-28 00:30:22 +00:00
renovate[bot]
c69e5d03af
chore(deps): update react-router monorepo to v6.13.0 (#4066)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://togithub.com/remix-run/react-router) |
[`6.11.2` ->
`6.13.0`](https://renovatebot.com/diffs/npm/react-router/6.11.2/6.13.0)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router/6.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router/6.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router/6.13.0/compatibility-slim/6.11.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router/6.13.0/confidence-slim/6.11.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.11.2` ->
`6.13.0`](https://renovatebot.com/diffs/npm/react-router-dom/6.11.2/6.13.0)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router-dom/6.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router-dom/6.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router-dom/6.13.0/compatibility-slim/6.11.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router-dom/6.13.0/confidence-slim/6.11.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v6.13.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;6130)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.12.1...react-router@6.13.0)

##### Minor Changes

- Move
[`React.startTransition`](https://react.dev/reference/react/startTransition)
usage behind a [future
flag](https://reactrouter.com/en/main/guides/api-development-strategy)
to avoid issues with existing incompatible `Suspense` usages. We
recommend folks adopting this flag to be better compatible with React
concurrent mode, but if you run into issues you can continue without the
use of `startTransition` until v7. Issues usually boils down to creating
net-new promises during the render cycle, so if you run into issues you
should either lift your promise creation out of the render cycle or put
it behind a `useMemo`.
([#&#8203;10596](https://togithub.com/remix-run/react-router/pull/10596))

    Existing behavior will no longer include `React.startTransition`:

    ```jsx
    <BrowserRouter>
      <Routes>{/*...*/}</Routes>
    </BrowserRouter>

    <RouterProvider router={router} />
    ```

If you wish to enable `React.startTransition`, pass the future flag to
your component:

    ```jsx
    <BrowserRouter future={{ v7_startTransition: true }}>
      <Routes>{/*...*/}</Routes>
    </BrowserRouter>

<RouterProvider router={router} future={{ v7_startTransition: true }}/>
    ```

##### Patch Changes

- Work around webpack/terser `React.startTransition` minification bug in
production mode
([#&#8203;10588](https://togithub.com/remix-run/react-router/pull/10588))

###
[`v6.12.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;6121)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.12.0...react-router@6.12.1)

> **Warning**
> Please use version `6.13.0` or later instead of `6.12.1`. This version
suffers from a `webpack`/`terser` minification issue resulting in
invalid minified code in your resulting production bundles which can
cause issues in your application. See
[#&#8203;10579](https://togithub.com/remix-run/react-router/issues/10579)
for more details.

##### Patch Changes

- Adjust feature detection of `React.startTransition` to fix webpack +
react 17 compilation error
([#&#8203;10569](https://togithub.com/remix-run/react-router/pull/10569))

###
[`v6.12.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;6120)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.11.2...react-router@6.12.0)

##### Minor Changes

- Wrap internal router state updates with `React.startTransition` if it
exists
([#&#8203;10438](https://togithub.com/remix-run/react-router/pull/10438))

##### Patch Changes

-   Updated dependencies:
    -   `@remix-run/router@1.6.3`

</details>

<details>
<summary>remix-run/react-router (react-router-dom)</summary>

###
[`v6.13.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;6130)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.12.1...react-router-dom@6.13.0)

##### Minor Changes

- Move
[`React.startTransition`](https://react.dev/reference/react/startTransition)
usage behind a [future
flag](https://reactrouter.com/en/main/guides/api-development-strategy)
to avoid issues with existing incompatible `Suspense` usages. We
recommend folks adopting this flag to be better compatible with React
concurrent mode, but if you run into issues you can continue without the
use of `startTransition` until v7. Issues usually boils down to creating
net-new promises during the render cycle, so if you run into issues you
should either lift your promise creation out of the render cycle or put
it behind a `useMemo`.
([#&#8203;10596](https://togithub.com/remix-run/react-router/pull/10596))

    Existing behavior will no longer include `React.startTransition`:

    ```jsx
    <BrowserRouter>
      <Routes>{/*...*/}</Routes>
    </BrowserRouter>

    <RouterProvider router={router} />
    ```

If you wish to enable `React.startTransition`, pass the future flag to
your component:

    ```jsx
    <BrowserRouter future={{ v7_startTransition: true }}>
      <Routes>{/*...*/}</Routes>
    </BrowserRouter>

<RouterProvider router={router} future={{ v7_startTransition: true }}/>
    ```

##### Patch Changes

- Work around webpack/terser `React.startTransition` minification bug in
production mode
([#&#8203;10588](https://togithub.com/remix-run/react-router/pull/10588))
-   Updated dependencies:
    -   `react-router@6.13.0`

###
[`v6.12.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;6121)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.12.0...react-router-dom@6.12.1)

> **Warning**
> Please use version `6.13.0` or later instead of `6.12.1`. This version
suffers from a `webpack`/`terser` minification issue resulting in
invalid minified code in your resulting production bundles which can
cause issues in your application. See
[#&#8203;10579](https://togithub.com/remix-run/react-router/issues/10579)
for more details.

##### Patch Changes

- Adjust feature detection of `React.startTransition` to fix webpack +
react 17 compilation error
([#&#8203;10569](https://togithub.com/remix-run/react-router/pull/10569))
-   Updated dependencies:
    -   `react-router@6.12.1`

###
[`v6.12.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;6120)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.11.2...react-router-dom@6.12.0)

##### Minor Changes

- Wrap internal router state updates with `React.startTransition` if it
exists
([#&#8203;10438](https://togithub.com/remix-run/react-router/pull/10438))

##### Patch Changes

- Re-throw `DOMException` (`DataCloneError`) when attempting to perform
a `PUSH` navigation with non-serializable state.
([#&#8203;10427](https://togithub.com/remix-run/react-router/pull/10427))
-   Updated dependencies:
    -   `@remix-run/router@1.6.3`
    -   `react-router@6.12.0`

</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 these
updates 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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-27 21:44:19 +00:00
Even Brenden
be1e63508a
docs: Add reference to Haskell SDK (#3752)
Hi! Adding a link to a some-batteries-included Haskell Unleash SDK. It
uses a "core" library underneath that adheres to your [Client
Specifications](https://github.com/Unleash/client-specification). Could
add a link to that too, but from what I can tell, it's overlapped by
your Yggdrasil project. We have been using the SDK for a handful of
months now and we're happy with how it works. Hope you'll have it :)

Co-authored-by: Even Brenden <evenbrenden@users.noreply.github.com>
2023-06-27 08:08:04 +01:00
Ivar Conradi Østhus
72657a60a0
feat: expose kapi as part of docs (#3996)
Small poc to add ask kapi.ai to our docs. UI not great yet. 


![image](https://github.com/Unleash/unleash/assets/158948/68a5b60f-0262-4fe3-89d8-3fcf30d23029)

And this is the widget in action:

![image](https://github.com/Unleash/unleash/assets/158948/63b0bcdd-b164-46dc-89ea-7f7f80aa364a)

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-06-23 13:55:59 +02:00
andreas-unleash
7a5c77376a
chore: Document default strategy (#4010)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Documenting Default Strategy 
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #
[1-1023](https://linear.app/unleash/issue/1-1023/document-strategy-improvements)

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-06-22 15:42:07 +00:00
renovate[bot]
f01b94c846
chore(deps): update dependency enhanced-resolve to v5.15.0 (#4054)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [enhanced-resolve](https://togithub.com/webpack/enhanced-resolve) |
[`5.14.1` ->
`5.15.0`](https://renovatebot.com/diffs/npm/enhanced-resolve/5.14.1/5.15.0)
|
[![age](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.15.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.15.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.15.0/compatibility-slim/5.14.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.15.0/confidence-slim/5.14.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>webpack/enhanced-resolve</summary>

###
[`v5.15.0`](https://togithub.com/webpack/enhanced-resolve/releases/tag/v5.15.0)

[Compare
Source](https://togithub.com/webpack/enhanced-resolve/compare/v5.14.1...v5.15.0)

#### New Features

- Ignore `false`/`null`/`undefined` plugins by
[@&#8203;alexander-akait](https://togithub.com/alexander-akait) in
[https://github.com/webpack/enhanced-resolve/pull/389](https://togithub.com/webpack/enhanced-resolve/pull/389)

#### Dependencies & Maintenance

- GitHub Workflows security hardening by
[@&#8203;sashashura](https://togithub.com/sashashura) in
[https://github.com/webpack/enhanced-resolve/pull/370](https://togithub.com/webpack/enhanced-resolve/pull/370)
- Add cSpell commit hook by
[@&#8203;nschonni](https://togithub.com/nschonni) in
[https://github.com/webpack/enhanced-resolve/pull/327](https://togithub.com/webpack/enhanced-resolve/pull/327)

#### New Contributors

- [@&#8203;sashashura](https://togithub.com/sashashura) made their first
contribution in
[https://github.com/webpack/enhanced-resolve/pull/370](https://togithub.com/webpack/enhanced-resolve/pull/370)

**Full Changelog**:
https://github.com/webpack/enhanced-resolve/compare/v5.14.1...v5.15.0

</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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-22 15:27:09 +00:00
Simon Hornby
8443eb2649
docs: add note about how to handle more than 150 groups in Azure SSO (#4044) 2023-06-22 09:18:19 +02:00
renovate[bot]
d47939de61
chore(deps): update dependency browserslist to v4.21.8 (#4049)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>browserslist/browserslist</summary>

###
[`v4.21.8`](https://togithub.com/browserslist/browserslist/blob/HEAD/CHANGELOG.md#&#8203;4218)

[Compare
Source](https://togithub.com/browserslist/browserslist/compare/4.21.7...4.21.8)

-   Fixed `supports` query and `mobileToDesktop` (by Steve Repsher).

</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 these
updates 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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-21 23:19:20 +00:00
Simon Hornby
8a8116d13b
docs: document how and why we collect data when using Unleash (#4020) 2023-06-21 09:17:35 +02:00
Christopher Kolstad
fa081e9014
task: Make keepalive configurable via an environment variable (#4015)
As requested in
[Linear](https://linear.app/unleash/issue/2-1147/unleash-cloud-make-keepalive-configurable)
this PR makes the serverKeepAliveTimeout configurable via the
SERVER_KEEPALIVE_TIMEOUT environment variable. This was already
configurable when starting Unleash programmatically, but it's nice to
have as an env variable as well
2023-06-20 12:10:05 +02:00
renovate[bot]
211d445c4d
chore(deps): update dependency @babel/core to v7.22.5 (#4013)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/core](https://babel.dev/docs/en/next/babel-core)
([source](https://togithub.com/babel/babel)) | [`7.22.1` ->
`7.22.5`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.22.1/7.22.5)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.5/compatibility-slim/7.22.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.5/confidence-slim/7.22.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel</summary>

###
[`v7.22.5`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7225-2023-06-08)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.22.1...v7.22.5)

##### 🐛 Bug Fix

-   `babel-preset-env`, `babel-standalone`
- [#&#8203;15675](https://togithub.com/babel/babel/pull/15675) Fix using
`syntax-unicode-sets-regex` in standalone
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 💅 Polish

-   `babel-core`
- [#&#8203;15683](https://togithub.com/babel/babel/pull/15683) Suggest
`-transform-` when resolving missing plugins
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

</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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-19 22:30:36 +00:00
Mateusz Kwasniewski
2356b5774b
docs: encourage feedback for sync (#4003) 2023-06-19 14:32:57 +02:00
yuri-karelics
331f0f27fa
docs: angular unleash proxy client (#3897)
List of community unleash proxy clients extended with new Angular
library

## About the changes
Relates to
[discussion](https://github.com/orgs/Unleash/discussions/3621)
2023-06-16 17:54:37 +00:00
Mateusz Kwasniewski
dec32810c1
docs: how to synchronize unleash instances (#3977) 2023-06-14 10:05:54 +02:00
Jaanus Sellin
41370be591
feat: update predefined strategies tooltip (#3964) 2023-06-14 08:46:15 +03:00
andreas-unleash
8daab71219
Docs: update stickiness docs (#3928)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-06-13 11:26:12 +03:00
renovate[bot]
6cb4f60e47
chore(deps): update dependency @babel/core to v7.22.1 (#3935)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/core](https://babel.dev/docs/en/next/babel-core)
([source](https://togithub.com/babel/babel)) | [`7.21.8` ->
`7.22.1`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.21.8/7.22.1)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.1/compatibility-slim/7.21.8)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.22.1/confidence-slim/7.21.8)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel</summary>

###
[`v7.22.1`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7221-2023-05-26)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.22.0...v7.22.1)

##### 🐛 Bug Fix

-   `babel-preset-env`
- [#&#8203;15658](https://togithub.com/babel/babel/pull/15658)
Workaround for broken babel-preset-react-app
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

###
[`v7.22.0`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7220-2023-05-26)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.21.8...v7.22.0)

##### 🚀 New Feature

-   `babel-parser`, `babel-plugin-transform-typescript`
- [#&#8203;15497](https://togithub.com/babel/babel/pull/15497) \[ts]
Support `import ... =` and `export =` in scripts
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-compat-data`, `babel-core`,
`babel-plugin-proposal-unicode-sets-regex`,
`babel-plugin-transform-unicode-sets-regex`, `babel-preset-env`,
`babel-standalone`
- [#&#8203;15636](https://togithub.com/babel/babel/pull/15636) Add
`unicode-sets-regex` transform to `preset-env`
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`,
`babel-plugin-transform-runtime`, `babel-runtime-corejs2`,
`babel-runtime-corejs3`, `babel-runtime`, `babel-standalone`
- [#&#8203;15633](https://togithub.com/babel/babel/pull/15633) Implement
transform support for `using` declarations
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-plugin-proposal-import-attributes-to-assertions`
- [#&#8203;15620](https://togithub.com/babel/babel/pull/15620) Create
`@babel/plugin-proposal-import-attributes-to-assertions`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-core`, `babel-generator`, `babel-parser`,
`babel-plugin-syntax-import-attributes`, `babel-preset-env`,
`babel-standalone`, `babel-types`
- [#&#8203;15536](https://togithub.com/babel/babel/pull/15536) Add
support for the updated import attributes proposal
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-generator`, `babel-parser`, `babel-traverse`, `babel-types`
- [#&#8203;15520](https://togithub.com/babel/babel/pull/15520) Parse
`await using` declarations
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-core`, `babel-helper-create-regexp-features-plugin`,
`babel-parser`
- [#&#8203;15638](https://togithub.com/babel/babel/pull/15638) Enable
regexp unicode sets parsing by default
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helpers`, `babel-plugin-proposal-decorators`,
`babel-plugin-syntax-decorators`, `babel-runtime-corejs2`,
`babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;15570](https://togithub.com/babel/babel/pull/15570) Add
decorators version `2023-05`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 💅 Polish

- `babel-plugin-transform-react-constant-elements`,
`babel-plugin-transform-react-jsx`, `babel-traverse`, `babel-types`
- [#&#8203;15549](https://togithub.com/babel/babel/pull/15549) Improve
type definitions for validators
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### 🏠 Internal

-   `babel-parser`
- [#&#8203;15630](https://togithub.com/babel/babel/pull/15630) Unify
parsing of import/export modifiers (type/typeof/module)
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-compat-data`, `babel-helper-transform-fixture-test-runner`,
`babel-node`, `babel-plugin-proposal-decorators`,
`babel-plugin-proposal-duplicate-named-capturing-groups-regex`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-named-capturing-groups-regex`,
`babel-plugin-transform-runtime`, `babel-preset-env`,
`babel-runtime-corejs3`
- [#&#8203;15531](https://togithub.com/babel/babel/pull/15531) Allow
polyfill providers to specify custom `@babel/runtime` pkg
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-core`, `babel-plugin-proposal-async-generator-functions`,
`babel-plugin-proposal-class-properties`,
`babel-plugin-proposal-class-static-block`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-dynamic-import`,
`babel-plugin-proposal-export-namespace-from`,
`babel-plugin-proposal-function-sent`,
`babel-plugin-proposal-json-strings`,
`babel-plugin-proposal-logical-assignment-operators`,
`babel-plugin-proposal-nullish-coalescing-operator`,
`babel-plugin-proposal-numeric-separator`,
`babel-plugin-proposal-object-rest-spread`,
`babel-plugin-proposal-optional-catch-binding`,
`babel-plugin-proposal-optional-chaining`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-proposal-private-methods`,
`babel-plugin-proposal-private-property-in-object`,
`babel-plugin-proposal-unicode-property-regex`, `babel-preset-env`,
`babel-standalone`
- [#&#8203;15614](https://togithub.com/babel/babel/pull/15614) Rename
`-proposal-`s that became standard to `-transform-`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-09 09:18:24 +00:00
renovate[bot]
1209103e53
chore(deps): update dependency enhanced-resolve to v5.14.1 (#3930)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [enhanced-resolve](https://togithub.com/webpack/enhanced-resolve) |
[`5.14.0` ->
`5.14.1`](https://renovatebot.com/diffs/npm/enhanced-resolve/5.14.0/5.14.1)
|
[![age](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.1/compatibility-slim/5.14.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.1/confidence-slim/5.14.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>webpack/enhanced-resolve</summary>

###
[`v5.14.1`](https://togithub.com/webpack/enhanced-resolve/releases/tag/v5.14.1)

[Compare
Source](https://togithub.com/webpack/enhanced-resolve/compare/v5.14.0...v5.14.1)

#### Bugfixes

- TypeScript `strict` mode is now enabled for `enhanced-resolve` by
[@&#8203;alexander-akait](https://togithub.com/alexander-akait) in
[https://github.com/webpack/enhanced-resolve/pull/381](https://togithub.com/webpack/enhanced-resolve/pull/381)

#### Dependencies & Maintenance

- Migrate to Jest by [@&#8203;snitin315](https://togithub.com/snitin315)
in
[https://github.com/webpack/enhanced-resolve/pull/379](https://togithub.com/webpack/enhanced-resolve/pull/379)
- Bump minimatch from 3.0.4 to 3.1.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/webpack/enhanced-resolve/pull/383](https://togithub.com/webpack/enhanced-resolve/pull/383)
- Add Badges in README by
[@&#8203;snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/enhanced-resolve/pull/386](https://togithub.com/webpack/enhanced-resolve/pull/386)

**Full Changelog**:
https://github.com/webpack/enhanced-resolve/compare/v5.14.0...v5.14.1

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-08 23:05:27 +00:00
renovate[bot]
ccdd7469fb
chore(deps): update dependency browserslist to v4.21.7 (#3927)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>browserslist/browserslist</summary>

###
[`v4.21.7`](https://togithub.com/browserslist/browserslist/blob/HEAD/CHANGELOG.md#&#8203;4217)

[Compare
Source](https://togithub.com/browserslist/browserslist/compare/4.21.6...4.21.7)

-   Fixed last queries for Android (by Steve Repsher).

###
[`v4.21.6`](https://togithub.com/browserslist/browserslist/blob/HEAD/CHANGELOG.md#&#8203;4216)

[Compare
Source](https://togithub.com/browserslist/browserslist/compare/4.21.5...4.21.6)

-   Fixed time queries with `mobileToDesktop` (by Steve Repsher).
- Fixed docs (by Tatsunori Uchino, Will Stone, and Dominik
Pschenitschni).

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-08 18:19:04 +00:00
Nuno Góis
6b4efb9a9d
docs: ADR: Separation of Request and Response schemas (#3869)
https://linear.app/unleash/issue/2-943/adr-separate-request-and-response-types-in-apis

During the updating of our OpenAPI documentation, we've seen several
times that our schemas are either way too wide for a response or way to
strict for a request. This is usually due to us reusing the same schema
for both request and response. We should write an ADR where we reason
about the usefulness of code duplication and keeping separate response
and request schemas.

Based on our needs, this PR adds my suggested ADR.

---------

Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2023-06-05 11:41:34 +01:00
renovate[bot]
5878f9dda5
fix(deps): update dependency unleash-proxy-client to v2.5.0 (#3889)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[unleash-proxy-client](https://togithub.com/unleash/unleash-proxy-client-js)
| [`2.4.3` ->
`2.5.0`](https://renovatebot.com/diffs/npm/unleash-proxy-client/2.4.3/2.5.0)
|
[![age](https://badges.renovateapi.com/packages/npm/unleash-proxy-client/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/unleash-proxy-client/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/unleash-proxy-client/2.5.0/compatibility-slim/2.4.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/unleash-proxy-client/2.5.0/confidence-slim/2.4.3)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>unleash/unleash-proxy-client-js</summary>

###
[`v2.5.0`](https://togithub.com/Unleash/unleash-proxy-client-js/releases/tag/v2.5.0)

[Compare
Source](https://togithub.com/unleash/unleash-proxy-client-js/compare/v2.4.3...v2.5.0)

-
[`857363a`](857363abbc)
- docs: clarify `environment`
([#&#8203;144](https://togithub.com/unleash/unleash-proxy-client-js/issues/144))
-
[`f86d918`](f86d91878f)
- fix: Update tests
([#&#8203;147](https://togithub.com/unleash/unleash-proxy-client-js/issues/147))
-
[`e0fd9f3`](e0fd9f3b22)
- chore(deps): bump json5 from 2.2.0 to 2.2.3
([#&#8203;132](https://togithub.com/unleash/unleash-proxy-client-js/issues/132))
-
[`d697ae7`](d697ae7796)
- fix: use custom headers for metrics requests too
([#&#8203;148](https://togithub.com/unleash/unleash-proxy-client-js/issues/148))
-
[`5a75ec4`](5a75ec4fd1)
- Bump version to 2.4.4-beta.0
([#&#8203;149](https://togithub.com/unleash/unleash-proxy-client-js/issues/149))
-
[`1c34d61`](1c34d61bc2)
- feat: report metrics for variants
([#&#8203;150](https://togithub.com/unleash/unleash-proxy-client-js/issues/150))
-
[`fe58003`](fe58003fea)
- 2.4.4-beta.1
([#&#8203;151](https://togithub.com/unleash/unleash-proxy-client-js/issues/151))
-
[`3dc15e3`](3dc15e31ea)
- 2.5.0

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNS4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-28 22:16:31 +00:00
renovate[bot]
16209dabf4
chore(deps): update react-router monorepo to v6.11.2 (#3862)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://togithub.com/remix-run/react-router) |
[`6.11.1` ->
`6.11.2`](https://renovatebot.com/diffs/npm/react-router/6.11.1/6.11.2)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router/6.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router/6.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router/6.11.2/compatibility-slim/6.11.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router/6.11.2/confidence-slim/6.11.1)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.11.1` ->
`6.11.2`](https://renovatebot.com/diffs/npm/react-router-dom/6.11.1/6.11.2)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.2/compatibility-slim/6.11.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.2/confidence-slim/6.11.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v6.11.2`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;6112)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.11.1...react-router@6.11.2)

##### Patch Changes

- Fix `basename` duplication in descendant `<Routes>` inside a
`<RouterProvider>`
([#&#8203;10492](https://togithub.com/remix-run/react-router/pull/10492))
-   Updated dependencies:
    -   `@remix-run/router@1.6.2`

</details>

<details>
<summary>remix-run/react-router (react-router-dom)</summary>

###
[`v6.11.2`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;6112)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.11.1...react-router-dom@6.11.2)

##### Patch Changes

- Export `SetURLSearchParams` type
([#&#8203;10444](https://togithub.com/remix-run/react-router/pull/10444))
-   Updated dependencies:
    -   `react-router@6.11.2`
    -   `@remix-run/router@1.6.2`

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC40IiwidXBkYXRlZEluVmVyIjoiMzUuOTguNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-25 15:25:49 +02:00
Thomas Heartman
6951f6b877
docs: remove "docs under restructuring note" (#3864)
They've been thoroughly restructured now. It's time to let this
admonition go 🕊️
2023-05-25 10:12:38 +02:00
Sebastian Bury
282de2477f
docs: azure sso guide (#3431)
## About the changes
Added Azure SSO SAML 2.0 instructions based off of testing/user
feedback.

<!-- Does it close an issue? Multiple? -->
Not on GH, internally yes

### Important files
website>docs>how-to>how-to-add-sso-azure-saml.md
website>docs>static>img (added images for docs)

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: sighphyre <liquidwicked64@gmail.com>
2023-05-25 08:37:39 +02:00
Mateusz Kwasniewski
78715e3374
docs: maintanance mode impact (#3858) 2023-05-25 08:28:05 +02:00
renovate[bot]
3423b35219
chore(deps): update dependency qs to v6.11.2 (#3832)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [qs](https://togithub.com/ljharb/qs) | [`6.11.1` ->
`6.11.2`](https://renovatebot.com/diffs/npm/qs/6.11.1/6.11.2) |
[![age](https://badges.renovateapi.com/packages/npm/qs/6.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/qs/6.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/qs/6.11.2/compatibility-slim/6.11.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/qs/6.11.2/confidence-slim/6.11.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ljharb/qs</summary>

###
[`v6.11.2`](https://togithub.com/ljharb/qs/blob/HEAD/CHANGELOG.md#&#8203;6112)

[Compare
Source](https://togithub.com/ljharb/qs/compare/v6.11.1...v6.11.2)

- \[Fix] `parse`: Fix parsing when the global Object prototype is frozen
([#&#8203;473](https://togithub.com/ljharb/qs/issues/473))
- \[Tests] add passing test cases with empty keys
([#&#8203;473](https://togithub.com/ljharb/qs/issues/473))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC4wIiwidXBkYXRlZEluVmVyIjoiMzUuOTguMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-23 03:33:54 +00:00
renovate[bot]
4345585288
chore(deps): update dependency enhanced-resolve to v5.14.0 (#3819)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [enhanced-resolve](https://togithub.com/webpack/enhanced-resolve) |
[`5.13.0` ->
`5.14.0`](https://renovatebot.com/diffs/npm/enhanced-resolve/5.13.0/5.14.0)
|
[![age](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.0/compatibility-slim/5.13.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/enhanced-resolve/5.14.0/confidence-slim/5.13.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>webpack/enhanced-resolve</summary>

###
[`v5.14.0`](https://togithub.com/webpack/enhanced-resolve/releases/tag/v5.14.0)

[Compare
Source](https://togithub.com/webpack/enhanced-resolve/compare/v5.13.0...v5.14.0)

#### Features

- Replace deprecated String.prototype.substr() by
[@&#8203;CommanderRoot](https://togithub.com/CommanderRoot) in
[https://github.com/webpack/enhanced-resolve/pull/336](https://togithub.com/webpack/enhanced-resolve/pull/336)

#### Bugfixes

- Significantly improve type coverage & definitions for `resolve` by
[@&#8203;43081j](https://togithub.com/43081j) in
[https://github.com/webpack/enhanced-resolve/pull/357](https://togithub.com/webpack/enhanced-resolve/pull/357)
- Fix bug where `aliasFields` was not being applied to package `exports`
field by [@&#8203;alexander-akait](https://togithub.com/alexander-akait)
in
[https://github.com/webpack/enhanced-resolve/pull/380](https://togithub.com/webpack/enhanced-resolve/pull/380)

#### Dependencies & Maintenance

- Update `checkout`, `setup-node`, and `codecov` github actions by
[@&#8203;snitin315](https://togithub.com/snitin315) in
[https://github.com/webpack/enhanced-resolve/pull/378](https://togithub.com/webpack/enhanced-resolve/pull/378)

#### New Contributors

- [@&#8203;CommanderRoot](https://togithub.com/CommanderRoot) made their
first contribution in
[https://github.com/webpack/enhanced-resolve/pull/336](https://togithub.com/webpack/enhanced-resolve/pull/336)

**Full Changelog**:
https://github.com/webpack/enhanced-resolve/compare/v5.13.0...v5.14.0

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS45Ni4zIiwidXBkYXRlZEluVmVyIjoiMzUuOTYuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-20 17:26:30 +00:00
Simon Hornby
6067888534
docs: extend group documentation to include information on setting root roles (#3696)
This adds documentation to the RBAC section on how to use root roles on
groups and updates a few screenshots for the group pages.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-05-17 08:59:35 +02:00
renovate[bot]
fda010e940
fix(deps): update dependency docusaurus-plugin-openapi-docs to v2.0.0-beta.3 (#3765)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[docusaurus-plugin-openapi-docs](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs)
| [`2.0.0-beta.2` ->
`2.0.0-beta.3`](https://renovatebot.com/diffs/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.2/2.0.0-beta.3)
|
[![age](https://badges.renovateapi.com/packages/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/compatibility-slim/2.0.0-beta.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/confidence-slim/2.0.0-beta.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>PaloAltoNetworks/docusaurus-openapi-docs</summary>

###
[`v2.0.0-beta.3`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/releases/tag/v2.0.0-beta.3)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.0-beta.2...v2.0.0-beta.3)

#### What's Changed

- \[Bug] Narrow SASS loader rules to avoid conflicts with
docusaurus-plugin-sass by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/519](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/519)
- \[Bug] Patch webpack sass loader by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/521](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/521)
- \[Cleanup] Optimize theme typescript build by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/524](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/524)
- Update bash/curl logo and refactor how logo width/height are defined
by [@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/525](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/525)
- \[UI Enhancement] Move authorization card to ApiItem by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/531](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/531)
- \[UI Enhancement] Move CodeTabs above Request by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/533](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/533)
- \[UI Enhancement] Restyle schema property labels by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/534](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/534)
- \[UI Enhancement] Add expand button to CodeBlock by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/537](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/537)
- \[UI Enhancement] Restyle details markers with caret by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/540](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/540)
- \[UI Enhancement] Response Examples: Updated styling and support for
multiple language variants by
[@&#8203;blindaa121](https://togithub.com/blindaa121) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/542](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/542)
- \[UI Enhancement] Request form validation and updated styling by
[@&#8203;blindaa121](https://togithub.com/blindaa121) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/530](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/530)
- \[UI Enhancement] Enable Expand button for Response by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/553](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/553)
- Upgrade demo to 2.4.0 and update supported range in plugin and theme
by [@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/554](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/554)
- \[Bug] Improve support for additional properties, cleanup nested
`<li>`, support SchemaItem children by
[@&#8203;sserrata](https://togithub.com/sserrata) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/563](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/563)
- \[UI Enhancement] Updated left doc panel styling by
[@&#8203;blindaa121](https://togithub.com/blindaa121) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/557](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/557)
- \[UI Enhancement] ApiDemoPanel: Expand modal cleanup by
[@&#8203;blindaa121](https://togithub.com/blindaa121) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/566](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/566)
- Prepare release v2.0.0-beta.3 by
[@&#8203;blindaa121](https://togithub.com/blindaa121) in
[https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/570](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/570)

**Full Changelog**:
https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.0-beta.2...v2.0.0-beta.3

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS43OS4xIiwidXBkYXRlZEluVmVyIjoiMzUuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-13 13:57:42 +00:00
Nuno Góis
a9c24e4262
chore: simplify package scripts (#3736)
# Simplify package scripts

This PR's purpose is to raise a discussion surrounding our current
package scripts.

It includes some suggestions that aim to simplify the scripts and
hopefully bring a much more straightforward approach to developing and
contributing to Unleash.

Building (prod) should only happen **explicitly** and when needed.

## Before PR (current behavior)

- Clone the project;
- Open 2 terminals: One for `unleash` and another for
`unleash/frontend`;
- On `unleash`: 
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start:dev` to start backend in dev mode (`tsc-watch`);
- On `unleash/frontend`:
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start` to start frontend in dev mode (`vite`);

So it seems to me like we build unnecessarily every time we install
dependencies. Neither dev scripts need to build the project, as backend
uses `tsc-watch` and frontend uses `vite`. I'm unsure why this is the
case, as building can take a very long time.


![image](https://github.com/Unleash/unleash/assets/14320932/5ecb7df1-e5b4-4d70-ba7e-97119f5d1116)

There's also some complexity in the way we need to split the terminal to
`cd` into `frontend` and treat it as a different project. The fact that
we have different script names is also confusing (`yarn start`, `yarn
start:dev`, etc).

## After PR

- Clone the project;
- Run `yarn` to install all dependencies;
- Run `yarn dev` to get started developing Unleash;

Running `yarn` should take care of everything needed to start
developing. This includes installing dependencies for frontend as well.
It should not build projects if we are not being explicit about it,
especially since we don't need to build them at this stage.


![image](https://github.com/Unleash/unleash/assets/14320932/614e42fc-3467-432f-91fc-624b1b35c7c1)

Running `yarn dev` should start the project in dev mode. This means
running both projects in `dev` mode, which for `backend` means running
`tsc-watch` and for `frontend` means running `vite`.

Here this PR attempts to provide a better DX by using
[concurrently](https://www.npmjs.com/package/concurrently) and
[wait-on](https://www.npmjs.com/package/wait-on) - This means both tasks
are ran simultaneously, stdout is labeled accordingly, and are stopped
together. It also means that `frontend` waits for `backend` to be
serving at `4242` before starting, since `frontend` starts pretty much
immediately with `vite` and `backend` takes a bit longer. Of course,
when the `backend` is hot-reloading you may still find some
`ECONNREFUSED`s on `frontend` stdout while it recompiles.


![image](https://github.com/Unleash/unleash/assets/14320932/8bde8ee2-3cad-4e3f-a0db-9eed60cfb04d)

No more splitting your terminal and treating `frontend` as a separate
project.

## Discussion points

Maybe there's a better alternative to `tsc-watch`? I briefly explored
some alternatives and while they had a much faster starting speed,
hot-reload was sometimes slower. IMO we should aspire to run
`src/server-dev.ts` directly and only compile when needed.

Running `dev:backend` still serves a version of the frontend (at 4242).
**Why? Can we remove that behavior?**
I can't imagine a scenario in dev where we wouldn't want to run the
latest version of the frontend with `vite`.

~~**Note:** This PR removes all other out-of-scope scripts to focus on
this revamp. If we decide to merge it, we should evaluate what other
existing scripts we still want to include. May be a good opportunity to
clean up unused ones and only include the ones we really use. This
includes scripts that our GH actions rely on.~~

**Update:** In an effort to minimize impact surface of this PR and make
it a bit more ready for merging:
- It updates some docs in
2a4ff805e8
and
1bbc488251
to reflect our new simplified flow;
- It includes the old package scripts for now in
039bc04699;
- It updates some of our GH actions to reflect the new scripts in
7782cb9b12;

Given its current status I'll promote the PR to "ready for review". 

I still think we should have a second look at our existing scripts and
GH actions to see what we really need and/or should adapt, but it should
be a team effort so we have a broader context. Maybe on a follow-up PR.

Does this require any changes to related projects (e.g. Enterprise)?

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-12 11:23:22 +01:00
renovate[bot]
f333c59d6a
chore(deps): update react-router monorepo to v6.11.1 (#3743)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://togithub.com/remix-run/react-router) |
[`6.11.0` ->
`6.11.1`](https://renovatebot.com/diffs/npm/react-router/6.11.0/6.11.1)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router/6.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router/6.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router/6.11.1/compatibility-slim/6.11.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router/6.11.1/confidence-slim/6.11.0)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.11.0` ->
`6.11.1`](https://renovatebot.com/diffs/npm/react-router-dom/6.11.0/6.11.1)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.1/compatibility-slim/6.11.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router-dom/6.11.1/confidence-slim/6.11.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v6.11.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#&#8203;6111)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.11.0...react-router@6.11.1)

##### Patch Changes

- Fix usage of `Component` API within descendant `<Routes>`
([#&#8203;10434](https://togithub.com/remix-run/react-router/pull/10434))
- Fix bug when calling `useNavigate` from `<Routes>` inside a
`<RouterProvider>`
([#&#8203;10432](https://togithub.com/remix-run/react-router/pull/10432))
- Fix usage of `<Navigate>` in strict mode when using a data router
([#&#8203;10435](https://togithub.com/remix-run/react-router/pull/10435))
-   Updated dependencies:
    -   `@remix-run/router@1.6.1`

</details>

<details>
<summary>remix-run/react-router (react-router-dom)</summary>

###
[`v6.11.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#&#8203;6111)

[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.11.0...react-router-dom@6.11.1)

##### Patch Changes

-   Updated dependencies:
    -   `react-router@6.11.1`
    -   `@remix-run/router@1.6.1`

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNS43NS4wIiwidXBkYXRlZEluVmVyIjoiMzUuNzUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-11 20:59:34 +00:00