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

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vitejs.dev)
([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite)) |
[`5.2.6` -> `5.2.7`](https://renovatebot.com/diffs/npm/vite/5.2.6/5.2.7)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.2.6/5.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.2.6/5.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

###
[`v5.2.7`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small527-2024-03-29-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v5.2.6...v5.2.7)

- chore: deprecate splitVendorChunkPlugin
([#&#8203;16274](https://togithub.com/vitejs/vite/issues/16274))
([45a06da](https://togithub.com/vitejs/vite/commit/45a06da)), closes
[#&#8203;16274](https://togithub.com/vitejs/vite/issues/16274)
- fix: skip injecting `__vite__mapDeps` when it's not used
([#&#8203;16271](https://togithub.com/vitejs/vite/issues/16271))
([890538a](https://togithub.com/vitejs/vite/commit/890538a)), closes
[#&#8203;16271](https://togithub.com/vitejs/vite/issues/16271)
- fix(deps): update all non-major dependencies
([#&#8203;16258](https://togithub.com/vitejs/vite/issues/16258))
([7caef42](https://togithub.com/vitejs/vite/commit/7caef42)), closes
[#&#8203;16258](https://togithub.com/vitejs/vite/issues/16258)
- fix(hmr): don't mutate module graph when collecting modules
([#&#8203;16302](https://togithub.com/vitejs/vite/issues/16302))
([dfffea1](https://togithub.com/vitejs/vite/commit/dfffea1)), closes
[#&#8203;16302](https://togithub.com/vitejs/vite/issues/16302)
- fix(hmr): trigger hmr for missing file import errored module after
file creation
([#&#8203;16303](https://togithub.com/vitejs/vite/issues/16303))
([ffedc06](https://togithub.com/vitejs/vite/commit/ffedc06)), closes
[#&#8203;16303](https://togithub.com/vitejs/vite/issues/16303)
- fix(sourcemap): don't warn even if the sourcesContent is an empty
string ([#&#8203;16273](https://togithub.com/vitejs/vite/issues/16273))
([24e376a](https://togithub.com/vitejs/vite/commit/24e376a)), closes
[#&#8203;16273](https://togithub.com/vitejs/vite/issues/16273)
- feat(hmr): reload when HTML file is created/deleted
([#&#8203;16288](https://togithub.com/vitejs/vite/issues/16288))
([1f53796](https://togithub.com/vitejs/vite/commit/1f53796)), closes
[#&#8203;16288](https://togithub.com/vitejs/vite/issues/16288)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 06:53:18 +00:00
..
cypress
public
scripts
src feat: feature lifecycle usage behind a flag (#6786) 2024-04-05 13:42:03 +02:00
.editorconfig
.gitignore
.nvmrc
check-imports.rc
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency vite to v5.2.7 (#6792) 2024-04-08 06:53:18 +00:00
README.md
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.mts
yarn.lock chore(deps): update dependency vite to v5.2.7 (#6792) 2024-04-08 06:53:18 +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