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

1089 Commits

Author SHA1 Message Date
Nuno Góis
1ae700a027
feat: add request logger env variable (#4614)
Adds a new env variable for request logger.

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-09-05 15:32:20 +01:00
Gastón Fournier
ea00ea9d56
docs: troubleshooting guides (#4592)
## About the changes
Adds troubleshooting guides for some common problems under the how-to
area (following the [diataxis framework](https://diataxis.fr/)).

This is part of Unleash 2023 offsite challenge

---------

Co-authored-by: Drew Gorton <drew.gorton@getunleash.io>
Co-authored-by: Diego Susa <diego@getunleash.io>
Co-authored-by: Michael Vittiglio <michael.vittiglio@getunleash.io>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-09-01 15:39:23 +02:00
Mateusz Kwasniewski
3ebeea4d64
docs: strategy variants ruby and dotnet sdk versions (#4570) 2023-08-25 08:28:47 +02:00
Tymoteusz Czech
573518e48d
Integrations - frontend adjustments (#4527)
## About the changes
  - [x] Create a feature flag
  - [x] Rename page title
  - [x] Rename menu item
  - [x] Update frontend URL (add redirect from old one)


https://linear.app/unleash/issue/1-1263/integrations-frontend-adjustments
2023-08-22 14:40:38 +02:00
renovate[bot]
26e7267c5e
chore(deps): update react-router monorepo to v6.15.0 (#4532)
[![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.14.2` ->
`6.15.0`](https://renovatebot.com/diffs/npm/react-router/6.14.2/6.15.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router/6.14.2/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router/6.14.2/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.14.2` ->
`6.15.0`](https://renovatebot.com/diffs/npm/react-router-dom/6.14.2/6.15.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router-dom/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router-dom/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router-dom/6.14.2/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router-dom/6.14.2/6.15.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v6.15.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#6150)

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

##### Minor Changes

- Add's a new `redirectDocument()` function which allows users to
specify that a redirect from a `loader`/`action` should trigger a
document reload (via `window.location`) instead of attempting to
navigate to the redirected location via React Router
([#&#8203;10705](https://togithub.com/remix-run/react-router/pull/10705))

##### Patch Changes

- Ensure `useRevalidator` is referentially stable across re-renders if
revalidations are not actively occurring
([#&#8203;10707](https://togithub.com/remix-run/react-router/pull/10707))
-   Updated dependencies:
    -   `@remix-run/router@1.8.0`

</details>

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

###
[`v6.15.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#6150)

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

##### Minor Changes

- Add's a new `redirectDocument()` function which allows users to
specify that a redirect from a `loader`/`action` should trigger a
document reload (via `window.location`) instead of attempting to
navigate to the redirected location via React Router
([#&#8203;10705](https://togithub.com/remix-run/react-router/pull/10705))

##### Patch Changes

- Fixes an edge-case affecting web extensions in Firefox that use
`URLSearchParams` and the `useSearchParams` hook.
([#&#8203;10620](https://togithub.com/remix-run/react-router/pull/10620))
- Do not include hash in `useFormAction()` for unspecified actions since
it cannot be determined on the server and causes hydration issues
([#&#8203;10758](https://togithub.com/remix-run/react-router/pull/10758))
- Reorder effects in `unstable_usePrompt` to avoid throwing an exception
if the prompt is unblocked and a navigation is performed synchronously
([#&#8203;10687](https://togithub.com/remix-run/react-router/pull/10687),
[#&#8203;10718](https://togithub.com/remix-run/react-router/pull/10718))
-   Updated dependencies:
    -   `@remix-run/router@1.8.0`
    -   `react-router@6.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 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:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-17 18:52:04 +00:00
Drew Gorton
ebf35790fe
Update docs README.md to include yarn generate (#4519)
Add missing `yarn generate` command to docs
2023-08-17 10:32:57 -05:00
Drew Gorton
da7829daca
Update quickstart.md (#4474)
Introduce 'Feature Flag' language and replace most instances of 'Feature
Toggle'

<!-- 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
Introduce 'Feature Flag' language and replace most instances of 'toggle'
with 'flag' on Quickstart

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-08-16 15:57:02 +02:00
Mateusz Kwasniewski
a2bd7d42a1
feat: change request reject docs and step update (#4493) 2023-08-16 09:46:05 +02:00
renovate[bot]
057ed49cf3
chore(deps): update dependency browserslist to v4.21.10 (#4501)
[![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.9` ->
`4.21.10`](https://renovatebot.com/diffs/npm/browserslist/4.21.9/4.21.10)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/browserslist/4.21.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/browserslist/4.21.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/browserslist/4.21.9/4.21.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/browserslist/4.21.9/4.21.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>browserslist/browserslist (browserslist)</summary>

###
[`v4.21.10`](https://togithub.com/browserslist/browserslist/blob/HEAD/CHANGELOG.md#42110)

[Compare
Source](https://togithub.com/browserslist/browserslist/compare/4.21.9...4.21.10)

-   Updated Firefox ESR.

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-16 09:08:29 +02:00
renovate[bot]
d77ed0664e
fix(deps): update dependency @svgr/webpack to v8 (#4407)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@svgr/webpack](https://react-svgr.com)
([source](https://togithub.com/gregberge/svgr)) | [`6.5.1` ->
`8.1.0`](https://renovatebot.com/diffs/npm/@svgr%2fwebpack/6.5.1/8.1.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@svgr%2fwebpack/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@svgr%2fwebpack/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@svgr%2fwebpack/6.5.1/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@svgr%2fwebpack/6.5.1/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>gregberge/svgr (@&#8203;svgr/webpack)</summary>

###
[`v8.1.0`](https://togithub.com/gregberge/svgr/blob/HEAD/CHANGELOG.md#810-2023-08-15)

[Compare
Source](https://togithub.com/gregberge/svgr/compare/v8.0.1...v8.1.0)

##### Bug Fixes

- **cli:** fix default dimensions, prettier & svgo
([571d5c8](571d5c8bd1))
- **config:** prefer cli config over rc config
([#&#8203;845](https://togithub.com/gregberge/svgr/issues/845))
([8b97248](8b97248426))
- **react-native:** fix duplicate import
([#&#8203;894](https://togithub.com/gregberge/svgr/issues/894))
([e612b6a](e612b6a1a4))

##### Features

- **esm:** add support for svgo.config.cjs
([#&#8203;879](https://togithub.com/gregberge/svgr/issues/879))
([ae91e2e](ae91e2eacb))

####
[8.0.1](https://togithub.com/gregberge/svgr/compare/v8.0.0...v8.0.1)
(2023-05-09)

##### Bug Fixes

- fix peer dependencies
([2e05255](2e0525546e))

###
[`v8.0.1`](https://togithub.com/gregberge/svgr/blob/HEAD/CHANGELOG.md#801-2023-05-09)

[Compare
Source](https://togithub.com/gregberge/svgr/compare/v8.0.0...v8.0.1)

##### Bug Fixes

- fix peer dependencies
([2e05255](2e0525546e))

###
[`v8.0.0`](https://togithub.com/gregberge/svgr/blob/HEAD/CHANGELOG.md#800-2023-05-09)

[Compare
Source](https://togithub.com/gregberge/svgr/compare/v7.0.0...v8.0.0)

##### Bug Fixes

- parseObject error causes website broken
([05f2946](05f2946d90))

##### Features

- add snake_case filename option
([#&#8203;857](https://togithub.com/gregberge/svgr/issues/857))
([428b0c7](428b0c7f4c))
- make index template more flexible
([#&#8203;861](https://togithub.com/gregberge/svgr/issues/861))
([003009c](003009c7b2))
- **types:** change `SVGProps` from import to import type
([#&#8203;853](https://togithub.com/gregberge/svgr/issues/853))
([095f021](095f021628))

##### BREAKING CHANGES

- index template now receives an array of objects containing both the
created
    component path (`path`) and the original SVG path (`originalPath`)

###
[`v7.0.0`](https://togithub.com/gregberge/svgr/blob/HEAD/CHANGELOG.md#700-2023-03-24)

[Compare
Source](https://togithub.com/gregberge/svgr/compare/v6.5.1...v7.0.0)

##### Features

- allow specifying `jsxRuntimeImport` in config
([86bb86f](86bb86f477)),
closes [#&#8203;801](https://togithub.com/gregberge/svgr/issues/801)
[#&#8203;801](https://togithub.com/gregberge/svgr/issues/801)
- remove [@&#8203;svgr/plugin-jsx](https://togithub.com/svgr/plugin-jsx)
from core
([a0f078d](a0f078db13))
- upgrade to svgo v3
([#&#8203;798](https://togithub.com/gregberge/svgr/issues/798))
([21b6209](21b6209ef3))

##### BREAKING CHANGES

-   plugin-jsx is no longer included by default in core
-   svgr now requires Node.js v14+

####
[6.5.1](https://togithub.com/gregberge/svgr/compare/v6.5.0...v6.5.1)
(2022-10-27)

##### Reverts

- Revert "feat(a11y): add attribute role="img" to the svg element
([#&#8203;750](https://togithub.com/gregberge/svgr/issues/750))"
([1382232](138223284a)),
closes [#&#8203;750](https://togithub.com/gregberge/svgr/issues/750)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-16 08:31:27 +02:00
renovate[bot]
6edab6cbbc
chore(deps): update dependency @babel/core to v7.22.10 (#4498)
[![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.9` ->
`7.22.10`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.22.9/7.22.10)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.22.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.22.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.22.9/7.22.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.22.9/7.22.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/core)</summary>

###
[`v7.22.10`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v72210-2023-08-07)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.22.9...v7.22.10)

##### 🐛 Bug Fix

-   `babel-plugin-transform-typescript`
- [#&#8203;15799](https://togithub.com/babel/babel/pull/15799) \[ts]
Strip type-only namespaces
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- [#&#8203;15798](https://togithub.com/babel/babel/pull/15798) \[ts] Fix
compiling extended exported nested namespace
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-destructuring-private`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-class-static-block`,
`babel-plugin-transform-new-target`,
`babel-plugin-transform-private-methods`, `babel-preset-env`
- [#&#8203;15701](https://togithub.com/babel/babel/pull/15701) Memoize
class binding when compiling private methods and static elements
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 💅 Polish

-   `babel-cli`
- [#&#8203;15824](https://togithub.com/babel/babel/pull/15824) Add
`meta` object to `@babel/eslint-plugin`
([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-traverse`, `babel-types`
- [#&#8203;15661](https://togithub.com/babel/babel/pull/15661) Improve
the type definition of `path.isX`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-generator`, `babel-types`
- [#&#8203;15776](https://togithub.com/babel/babel/pull/15776) improve
SourceLocation typing ([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 🏠 Internal

-   Other
- [#&#8203;15818](https://togithub.com/babel/babel/pull/15818) build:
generate flow typings in prepublish job
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;15777](https://togithub.com/babel/babel/pull/15777) chore:
bump dev dependencies and remove .eslintignore
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-cli`, `babel-core`, `babel-generator`,
`babel-helper-builder-react-jsx`, `babel-preset-env`, `babel-standalone`
- [#&#8203;15794](https://togithub.com/babel/babel/pull/15794) Enable
`@typescript-eslint/no-redundant-type-constituents` rule
([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-helper-compilation-targets`
- [#&#8203;15811](https://togithub.com/babel/babel/pull/15811) Remove
`@babel/core` peerDep from `helper-compilation-targets`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-parser`
- [#&#8203;15793](https://togithub.com/babel/babel/pull/15793) Use const
enum in babel-parser ([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-plugin-transform-runtime`, `babel-traverse`, `babel-types`
- [#&#8203;15716](https://togithub.com/babel/babel/pull/15716) chore:
Use `typescript-eslint@v6` with reworked configs
([@&#8203;JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg))

##### 🔬 Output optimization

- `babel-plugin-transform-block-scoping`,
`babel-plugin-transform-parameters`,
`babel-plugin-transform-regenerator`
- [#&#8203;15746](https://togithub.com/babel/babel/pull/15746) Reduce
`transform-block-scoping` loops output size
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-15 19:19:23 +00:00
Mateusz Kwasniewski
90f5af6b61
docs: change requests for segments (#4476) 2023-08-11 09:48:37 +02:00
Nuno Góis
95f4f641b5
docs: custom root roles (#4451)
https://linear.app/unleash/issue/2-1136/custom-root-roles-documentation

- [Adds documentation referencing custom root
roles](https://unleash-docs-git-docs-custom-root-roles-unleash-team.vercel.app/reference/rbac);
- [Adds a "How to create and assign custom root roles" how-to
guide](https://unleash-docs-git-docs-custom-root-roles-unleash-team.vercel.app/how-to/how-to-create-and-assign-custom-root-roles);
 - Standardizes "global" roles to "root" roles;
- Standardizes "standard" roles to "predefined" roles to better reflect
their behavior and what is shown in our UI;
 - Updates predefined role descriptions and makes them consistent;
 - Updates the side panel description of the user form;
- Includes some boy scouting with some tiny fixes of things identified
along the way (e.g. the role form was persisting old data when closed
and re-opened);
 
 Questions:

- Is it worth expanding the "Assigning custom root roles" section in the
"How to create and assign custom root roles" guide to include the steps
for assigning a root role for each entity (user, service account,
group)?
- Should this PR include an update to the existing "How to create and
assign custom project roles" guide? We've since updated the UI;

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-08-10 08:21:58 +01:00
Mateusz Kwasniewski
c549280e31
fix: Performance improvements for demo and docs update (#4454) 2023-08-09 12:58:03 +02:00
Mateusz Kwasniewski
f889eba6e9
docs: update strategy variants sdks and add sidebar link (#4436) 2023-08-07 14:53:13 +02:00
renovate[bot]
5f516c91e7
chore(deps): update dependency replace-in-file to v7 (#4329) 2023-08-03 13:12:33 +02:00
Mark Fulton
187ed8a39a
docs: Edge updates for docs/proxy-hosting (#4275)
docs: document edge/proxy hosting options and strategies
2023-08-02 14:32:12 +02:00
Mateusz Kwasniewski
20b1559329
docs: strategy variants in 5.4 (#4372) 2023-08-02 12:27:24 +02:00
Thomas Heartman
b8ab43543f
remove trailing periods (#4378)
remove trailing periods in markdown.
2023-08-01 15:20:10 +02:00
renovate[bot]
2269fc30e7
chore(deps): update dependency babel-loader to v9.1.3 (#4293) 2023-07-31 07:19:46 +00:00
renovate[bot]
0e8ae729a5
chore(deps): update react-router monorepo to v6.14.2 (#4360)
[![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.14.1` ->
`6.14.2`](https://renovatebot.com/diffs/npm/react-router/6.14.1/6.14.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router/6.14.1/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router/6.14.1/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.14.1` ->
`6.14.2`](https://renovatebot.com/diffs/npm/react-router-dom/6.14.1/6.14.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router-dom/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router-dom/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router-dom/6.14.1/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router-dom/6.14.1/6.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v6.14.2`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#6142)

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

##### Patch Changes

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

</details>

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

###
[`v6.14.2`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#6142)

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

##### Patch Changes

- Properly decode element id when emulating hash scrolling via
`<ScrollRestoration>`
([#&#8203;10682](https://togithub.com/remix-run/react-router/pull/10682))
- Add missing `<Form state>` prop to populate `history.state` on
submission navigations
([#&#8203;10630](https://togithub.com/remix-run/react-router/pull/10630))
- Support proper hydration of `Error` subclasses such as
`ReferenceError`/`TypeError`
([#&#8203;10633](https://togithub.com/remix-run/react-router/pull/10633))
-   Updated dependencies:
    -   `@remix-run/router@1.7.2`
    -   `react-router@6.14.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://developer.mend.io/github/Unleash/unleash).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-28 13:31:23 +00:00
renovate[bot]
26fd0e3bf6
chore(deps): update dependency trim-newlines to v5 (#4330) 2023-07-28 10:32:02 +00:00
Mateusz Kwasniewski
55148eb549
docs: strategy variants (#4289) 2023-07-25 15:35:29 +02:00
renovate[bot]
ae6a6868ed
chore(deps): update react-router monorepo to v6.14.1 (#4320)
[![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.13.0` ->
`6.14.1`](https://renovatebot.com/diffs/npm/react-router/6.13.0/6.14.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router/6.13.0/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router/6.13.0/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.13.0` ->
`6.14.1`](https://renovatebot.com/diffs/npm/react-router-dom/6.13.0/6.14.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-router-dom/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-router-dom/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-router-dom/6.13.0/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-router-dom/6.13.0/6.14.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v6.14.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#6141)

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

##### Patch Changes

- Fix loop in `unstable_useBlocker` when used with an unstable blocker
function
([#&#8203;10652](https://togithub.com/remix-run/react-router/pull/10652))
- Fix issues with reused blockers on subsequent navigations
([#&#8203;10656](https://togithub.com/remix-run/react-router/pull/10656))
-   Updated dependencies:
    -   `@remix-run/router@1.7.1`

###
[`v6.14.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#6140)

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

##### Patch Changes

- Strip `basename` from locations provided to `unstable_useBlocker`
functions to match `useLocation`
([#&#8203;10573](https://togithub.com/remix-run/react-router/pull/10573))
- Fix `generatePath` when passed a numeric `0` value parameter
([#&#8203;10612](https://togithub.com/remix-run/react-router/pull/10612))
- Fix `unstable_useBlocker` key issues in `StrictMode`
([#&#8203;10573](https://togithub.com/remix-run/react-router/pull/10573))
- Fix `tsc --skipLibCheck:false` issues on React 17
([#&#8203;10622](https://togithub.com/remix-run/react-router/pull/10622))
- Upgrade `typescript` to 5.1
([#&#8203;10581](https://togithub.com/remix-run/react-router/pull/10581))
-   Updated dependencies:
    -   `@remix-run/router@1.7.0`

</details>

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

###
[`v6.14.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#6141)

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

##### Patch Changes

-   Updated dependencies:
    -   `react-router@6.14.1`
    -   `@remix-run/router@1.7.1`

###
[`v6.14.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#6140)

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

##### Minor Changes

- Add support for `application/json` and `text/plain` encodings for
`useSubmit`/`fetcher.submit`. To reflect these additional types,
`useNavigation`/`useFetcher` now also contain
`navigation.json`/`navigation.text` and `fetcher.json`/`fetcher.text`
which include the json/text submission if applicable
([#&#8203;10413](https://togithub.com/remix-run/react-router/pull/10413))

    ```jsx
    // The default behavior will still serialize as FormData
    function Component() {
      let navigation = useNavigation();
      let submit = useSubmit();
      submit({ key: "value" }, { method: "post" });
      // navigation.formEncType => "application/x-www-form-urlencoded"
      // navigation.formData    => FormData instance
    }

    async function action({ request }) {
// request.headers.get("Content-Type") =>
"application/x-www-form-urlencoded"
      // await request.formData()            => FormData instance
    }
    ```

    ```js
    // Opt-into JSON encoding with `encType: "application/json"`
    function Component() {
      let navigation = useNavigation();
      let submit = useSubmit();
submit({ key: "value" }, { method: "post", encType: "application/json"
});
      // navigation.formEncType => "application/json"
      // navigation.json        => { key: "value" }
    }

    async function action({ request }) {
      // request.headers.get("Content-Type") => "application/json"
      // await request.json()                => { key: "value" }
    }
    ```

    ```js
    // Opt-into text encoding with `encType: "text/plain"`
    function Component() {
      let navigation = useNavigation();
      let submit = useSubmit();
submit("Text submission", { method: "post", encType: "text/plain" });
      // navigation.formEncType => "text/plain"
      // navigation.text        => "Text submission"
    }

    async function action({ request }) {
      // request.headers.get("Content-Type") => "text/plain"
      // await request.text()                => "Text submission"
    }
    ```

##### Patch Changes

- When submitting a form from a `submitter` element, prefer the built-in
`new FormData(form, submitter)` instead of the previous manual approach
in modern browsers (those that support the new `submitter` parameter)
([#&#8203;9865](https://togithub.com/remix-run/react-router/pull/9865),
[#&#8203;10627](https://togithub.com/remix-run/react-router/pull/10627))
- For browsers that don't support it, we continue to just append the
submit button's entry to the end, and we also add rudimentary support
for `type="image"` buttons
- If developers want full spec-compliant support for legacy browsers,
they can use the `formdata-submitter-polyfill`
- Call `window.history.pushState/replaceState` before updating React
Router state (instead of after) so that `window.location` matches
`useLocation` during synchronous React 17 rendering
([#&#8203;10448](https://togithub.com/remix-run/react-router/pull/10448))
- ⚠️ However, generally apps should not be relying on `window.location`
and should always reference `useLocation` when possible, as
`window.location` will not be in sync 100% of the time (due to
`popstate` events, concurrent mode, etc.)
- Fix `tsc --skipLibCheck:false` issues on React 17
([#&#8203;10622](https://togithub.com/remix-run/react-router/pull/10622))
- Upgrade `typescript` to 5.1
([#&#8203;10581](https://togithub.com/remix-run/react-router/pull/10581))
-   Updated dependencies:
    -   `react-router@6.14.0`
    -   `@remix-run/router@1.7.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:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 19:11:33 +00:00
renovate[bot]
39162dd8d2
chore(deps): update dependency semver to v7.5.4 (#4296)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [semver](https://togithub.com/npm/node-semver) | [`7.5.3` ->
`7.5.4`](https://renovatebot.com/diffs/npm/semver/7.5.3/7.5.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/semver/7.5.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/semver/7.5.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/semver/7.5.3/7.5.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/semver/7.5.3/7.5.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>npm/node-semver (semver)</summary>

###
[`v7.5.4`](https://togithub.com/npm/node-semver/blob/HEAD/CHANGELOG.md#754-2023-07-07)

[Compare
Source](https://togithub.com/npm/node-semver/compare/v7.5.3...v7.5.4)

##### Bug Fixes

-
[`cc6fde2`](cc6fde2d34)
[#&#8203;588](https://togithub.com/npm/node-semver/pull/588) trim each
range set before parsing
([@&#8203;lukekarrys](https://togithub.com/lukekarrys))
-
[`99d8287`](99d8287516)
[#&#8203;583](https://togithub.com/npm/node-semver/pull/583) correctly
parse long build ids as valid
([#&#8203;583](https://togithub.com/npm/node-semver/issues/583))
([@&#8203;lukekarrys](https://togithub.com/lukekarrys))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 19:00:36 +00:00
renovate[bot]
9f2ce86712
chore(deps): update dependency @babel/core to v7.22.9 (#4288)
[![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.5` ->
`7.22.9`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.22.5/7.22.9)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.22.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.22.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.22.5/7.22.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.22.5/7.22.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/core)</summary>

###
[`v7.22.9`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7229-2023-07-12)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.22.8...v7.22.9)

##### 🐛 Bug Fix

-   `babel-plugin-transform-typescript`
- [#&#8203;15774](https://togithub.com/babel/babel/pull/15774) fix:
`Infinity` in enums
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### 💅 Polish

-   `babel-generator`
- [#&#8203;15757](https://togithub.com/babel/babel/pull/15757)
`recordAndTupleSyntaxType` defaults to `"hash"`
([@&#8203;coderaiser](https://togithub.com/coderaiser))

##### 🏠 Internal

- [#&#8203;15748](https://togithub.com/babel/babel/pull/15748) Migrate
to `eslint.config.js` ([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;15758](https://togithub.com/babel/babel/pull/15758) Use
Prettier 3 stable
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

###
[`v7.22.8`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7228-2023-07-06)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.22.7...v7.22.8)

##### ↩️ Revert

-   `babel-core`, `babel-traverse`
- [#&#8203;15754](https://togithub.com/babel/babel/pull/15754) Revert
"Use `NodePath#hub` as part of the paths cache key"
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

###
[`v7.22.7`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7227-2023-07-06)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.22.6...v7.22.7)

##### 🐛 Bug Fix

-   `babel-generator`
- [#&#8203;15719](https://togithub.com/babel/babel/pull/15719) fix:
Avoid internally generating negative source maps columns
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-core`, `babel-traverse`
- [#&#8203;15725](https://togithub.com/babel/babel/pull/15725) Use
`NodePath#hub` as part of the paths cache key
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   Other
- [#&#8203;15747](https://togithub.com/babel/babel/pull/15747) fix:
export `meta` from `eslint-parser/experimental-worker`
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 🏠 Internal

-   `babel-core`, `babel-traverse`
- [#&#8203;15702](https://togithub.com/babel/babel/pull/15702) Refactor
visitors merging
([@&#8203;nullableVoidPtr](https://togithub.com/nullableVoidPtr))

###
[`v7.22.6`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7226-2023-07-04)

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

##### 🐛 Bug Fix

- `babel-compat-data`, `babel-helper-compilation-targets`,
`babel-preset-env`
- [#&#8203;15727](https://togithub.com/babel/babel/pull/15727) Add opera
mobile compat data ([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-plugin-transform-optional-chaining`
- [#&#8203;15739](https://togithub.com/babel/babel/pull/15739) Fix
transform of `delete a?.b` in function params
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-split-export-declaration`,
`babel-plugin-transform-modules-commonjs`
- [#&#8203;15736](https://togithub.com/babel/babel/pull/15736) fix:
Default export for duplicate names
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-compat-data`, `babel-preset-env`
- [#&#8203;15726](https://togithub.com/babel/babel/pull/15726) update
compat-data sources ([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`,
`babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;15705](https://togithub.com/babel/babel/pull/15705) Fix
handling of sync error in `@@&#8203;asyncDispose`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-standalone`
- [#&#8203;15707](https://togithub.com/babel/babel/pull/15707) fix:
Support transforming Explicit Resource Management in `stage-2`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-core`
- [#&#8203;15626](https://togithub.com/babel/babel/pull/15626) fix:
Works correctly with `--frozen-intrinsics`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### 🏠 Internal

- `babel-helper-create-class-features-plugin`,
`babel-plugin-transform-classes`
- [#&#8203;15700](https://togithub.com/babel/babel/pull/15700) Minor
class transform cleanups
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 🔬 Output optimization

- `babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-optional-chaining`,
`babel-plugin-transform-typescript`
- [#&#8203;15740](https://togithub.com/babel/babel/pull/15740) Compress
output for optional chain with multiple `?.`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-plugin-proposal-destructuring-private`,
`babel-plugin-proposal-do-expressions`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-nullish-coalescing-operator`,
`babel-plugin-transform-optional-chaining`,
`babel-plugin-transform-private-property-in-object`, `babel-traverse`
- [#&#8203;15741](https://togithub.com/babel/babel/pull/15741) Inject
tmp vars in the params list of IIFEs when possible
([@&#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:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 14:05:18 +00:00
renovate[bot]
7a40da5a50
chore(deps): update dependency @tsconfig/docusaurus to v2 (#4107)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@tsconfig/docusaurus](https://togithub.com/tsconfig/bases) | [`1.0.7`
->
`2.0.0`](https://renovatebot.com/diffs/npm/@tsconfig%2fdocusaurus/1.0.7/2.0.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@tsconfig%2fdocusaurus/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@tsconfig%2fdocusaurus/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@tsconfig%2fdocusaurus/1.0.7/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@tsconfig%2fdocusaurus/1.0.7/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>tsconfig/bases (@&#8203;tsconfig/docusaurus)</summary>

###
[`v2.0.0`](5063f71ee6...821d9aa0b2)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 13:47:45 +00:00
dependabot[bot]
051cd8b3e5
chore(deps): bump word-wrap from 1.2.3 to 1.2.4 in /website (#4285)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3
to 1.2.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jonschlinkert/word-wrap/releases">word-wrap's
releases</a>.</em></p>
<blockquote>
<h2>1.2.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Remove default indent by <a
href="https://github.com/mohd-akram"><code>@​mohd-akram</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/24">jonschlinkert/word-wrap#24</a></li>
<li>🔒fix: CVE 2023 26115 (2) by <a
href="https://github.com/OlafConijn"><code>@​OlafConijn</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/41">jonschlinkert/word-wrap#41</a></li>
<li>🔒 fix: CVE-2023-26115 by <a
href="https://github.com/aashutoshrathi"><code>@​aashutoshrathi</code></a>
in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/33">jonschlinkert/word-wrap#33</a></li>
<li>chore: publish workflow by <a
href="https://github.com/OlafConijn"><code>@​OlafConijn</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/42">jonschlinkert/word-wrap#42</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/mohd-akram"><code>@​mohd-akram</code></a> made
their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/24">jonschlinkert/word-wrap#24</a></li>
<li><a
href="https://github.com/OlafConijn"><code>@​OlafConijn</code></a> made
their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/41">jonschlinkert/word-wrap#41</a></li>
<li><a
href="https://github.com/aashutoshrathi"><code>@​aashutoshrathi</code></a>
made their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/33">jonschlinkert/word-wrap#33</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4">https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="f64b188c72"><code>f64b188</code></a>
run verb to generate README</li>
<li><a
href="03ea08256b"><code>03ea082</code></a>
Merge pull request <a
href="https://redirect.github.com/jonschlinkert/word-wrap/issues/42">#42</a>
from jonschlinkert/chore/publish-workflow</li>
<li><a
href="420dce9a24"><code>420dce9</code></a>
Merge pull request <a
href="https://redirect.github.com/jonschlinkert/word-wrap/issues/41">#41</a>
from jonschlinkert/fix/CVE-2023-26115-2</li>
<li><a
href="bfa694edf5"><code>bfa694e</code></a>
Update .github/workflows/publish.yml</li>
<li><a
href="ace0b3c78f"><code>ace0b3c</code></a>
chore: bump version to 1.2.4</li>
<li><a
href="6fd7275946"><code>6fd7275</code></a>
chore: add publish workflow</li>
<li><a
href="30d6daf60f"><code>30d6daf</code></a>
chore: fix test</li>
<li><a
href="655929cabe"><code>655929c</code></a>
chore: remove package-lock</li>
<li><a
href="49e08bbc32"><code>49e08bb</code></a>
chore: added an additional testcase</li>
<li><a
href="9f626935f3"><code>9f62693</code></a>
fix: cve 2023-26115</li>
<li>Additional commits viewable in <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=word-wrap&package-manager=npm_and_yarn&previous-version=1.2.3&new-version=1.2.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
Dependabot will merge this PR once it's up-to-date and CI passes on it,
as requested by @gastonfournier.

[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/Unleash/unleash/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 13:07:01 +00:00
Thomas Heartman
60b9431b67
docs: document feature potentially stale on events (#4278)
Document new "feature-potentially-stale-on" events.

Relates to #4205
2023-07-19 15:20:01 +02:00
Thomas Heartman
6ac430ff2d
docs(#4205): update feature toggle types doc to add lifetime info (#4273)
This change updates the existing feature toggle types document to add
a new `expected lifetime` section. This section explains better what
lifetimes are, where they come from, and that admins can (soon) change
the expected lifetimes for feature toggles.
2023-07-19 11:27:02 +02:00
Thomas Heartman
ea5b26c7a3
Chore: move event types into a separate reference doc. (#4268)
Remove the list from the events API page and instead point to the new
doc.

The new page is listed as "event types" under "unleash concepts"
2023-07-19 11:25:27 +02:00
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