1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] b1bb488bb3
chore(deps): update dependency eslint to v8.48.0 (#4726)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>eslint/eslint (eslint)</summary>

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.47.0...v8.48.0)

##### Features

-
[`1fbb3b0`](1fbb3b0b47)
feat: correct update direction in `for-direction`
([#&#8203;17483](https://togithub.com/eslint/eslint/issues/17483))
(Francesco Trotta)
-
[`d73fbf2`](d73fbf2228)
feat: rule tester do not create empty valid or invalid test suites
([#&#8203;17475](https://togithub.com/eslint/eslint/issues/17475)) (fnx)
-
[`ee2f718`](ee2f718188)
feat: Allow `void` in rule `no-promise-executor-return`
([#&#8203;17282](https://togithub.com/eslint/eslint/issues/17282))
(nopeless)

##### Bug Fixes

-
[`7234f6a`](7234f6a706)
fix: update RuleTester JSDoc and deprecations
([#&#8203;17496](https://togithub.com/eslint/eslint/issues/17496))
(Jonas Berlin)

##### Documentation

-
[`7a51d77`](7a51d77c0a)
docs: no-param-reassign mention strict mode
([#&#8203;17494](https://togithub.com/eslint/eslint/issues/17494))
(Stephen Hardy)
-
[`9cd7ac2`](9cd7ac2fdb)
docs: add `fetch` script to package.json conventions
([#&#8203;17459](https://togithub.com/eslint/eslint/issues/17459))
(Nitin Kumar)
-
[`cab21e6`](cab21e64a8)
docs: advice for inline disabling of rules
([#&#8203;17458](https://togithub.com/eslint/eslint/issues/17458))
(Ashish Yadav)
-
[`056499d`](056499de31)
docs: fix example of flat config from plugin
([#&#8203;17482](https://togithub.com/eslint/eslint/issues/17482))
(Francesco Trotta)
-
[`9e9edf9`](9e9edf93ec)
docs: update documentation URL in error message
([#&#8203;17465](https://togithub.com/eslint/eslint/issues/17465))
(Nitin Kumar)

##### Chores

-
[`8dd3cec`](8dd3cec90c)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).48.0
([#&#8203;17501](https://togithub.com/eslint/eslint/issues/17501))
(Milos Djermanovic)
-
[`6d0496e`](6d0496e947)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`9d4216d`](9d4216d638)
chore: Refactor and document CodePathSegment
([#&#8203;17474](https://togithub.com/eslint/eslint/issues/17474))
(Nicholas C. Zakas)

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.46.0...v8.47.0)

##### Features

-
[`53d7508`](53d750800b)
feat: update regex for methods with `thisArg`
([#&#8203;17439](https://togithub.com/eslint/eslint/issues/17439))
(Francesco Trotta)

##### Bug Fixes

-
[`631648e`](631648ee0b)
fix: do not report on shadowed constructors in `no-new-wrappers`
([#&#8203;17447](https://togithub.com/eslint/eslint/issues/17447))
(Francesco Trotta)

##### Documentation

-
[`a766a48`](a766a48030)
docs: document lack of config file names
([#&#8203;17442](https://togithub.com/eslint/eslint/issues/17442))
(James)
-
[`a1635d6`](a1635d6198)
docs: Update README (GitHub Actions Bot)
-
[`47a0859`](47a0859796)
docs: update `require-unicode-regexp.md` as following up
[#&#8203;17402](https://togithub.com/eslint/eslint/issues/17402)
([#&#8203;17441](https://togithub.com/eslint/eslint/issues/17441))
(SUZUKI Sosuke)
-
[`fcdc85d`](fcdc85d3a6)
docs: Update README (GitHub Actions Bot)
-
[`2a92b6c`](2a92b6cc95)
docs: update with "Specifying Parser Options"
([#&#8203;17435](https://togithub.com/eslint/eslint/issues/17435))
(Cheol-Won)
-
[`d743ed3`](d743ed3c06)
docs: add metadata for parser/processor
([#&#8203;17438](https://togithub.com/eslint/eslint/issues/17438))
(Huáng Jùnliàng)
-
[`224376c`](224376cd99)
docs: Update README (GitHub Actions Bot)
-
[`a41a8e4`](a41a8e4a7d)
docs: update script names in README
([#&#8203;17432](https://togithub.com/eslint/eslint/issues/17432))
(Nitin Kumar)

##### Chores

-
[`bf69aa6`](bf69aa6408)
chore: Update dependencies
([#&#8203;17456](https://togithub.com/eslint/eslint/issues/17456))
(Nicholas C. Zakas)
-
[`0e45760`](0e4576012a)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`757bfe1`](757bfe1c35)
chore: Remove add-to-triage
([#&#8203;17450](https://togithub.com/eslint/eslint/issues/17450))
(Nicholas C. Zakas)
-
[`b066640`](b066640b70)
chore: standardize npm script names
([#&#8203;17431](https://togithub.com/eslint/eslint/issues/17431))
(Nitin Kumar)
-
[`6b2410f`](6b2410f911)
chore: Update add-to-triage.yml
([#&#8203;17444](https://togithub.com/eslint/eslint/issues/17444))
(Nicholas C. Zakas)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 15:14:37 +00:00
..
cypress feat: Search UI improvements (#4613) 2023-09-06 10:50:20 +02:00
public
scripts
src fix: Variant type number duplicate options (#4719) 2023-09-14 17:02:05 +03:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency eslint to v8.48.0 (#4726) 2023-09-14 15:14:37 +00:00
README.md feat: application usage frontend (#4561) 2023-08-24 13:13:02 +03:00
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): update dependency eslint to v8.48.0 (#4726) 2023-09-14 15:14:37 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

Refer to the Contributing to Unleash guide for instructions. The frontend dev server runs (in port 3000) simultaneously with the backend dev server (in port 4242):

yarn install
yarn dev

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ./frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

For now we only use generated types (src/openapi/models). We will use methods (src/openapi/apis) for new features soon.

yarn gen:api
rm -rf src/openapi/apis

clean up src/openapi/index.ts imports, only keep first line export * from './models';

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory