1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] 7932c3efff
chore(deps): update dependency vite to v4.4.6 (#4358)
[![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://togithub.com/vitejs/vite/tree/main/#readme)
([source](https://togithub.com/vitejs/vite)) | [`4.4.4` ->
`4.4.6`](https://renovatebot.com/diffs/npm/vite/4.4.4/4.4.6) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/4.4.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/4.4.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/4.4.4/4.4.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/4.4.4/4.4.6?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v4.4.6`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small446-2023-07-21-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v4.4.5...v4.4.6)

- fix: constrain inject helpers for iife
([#&#8203;13909](https://togithub.com/vitejs/vite/issues/13909))
([c89f677](https://togithub.com/vitejs/vite/commit/c89f677)), closes
[#&#8203;13909](https://togithub.com/vitejs/vite/issues/13909)
- fix: display manualChunks warning only when a function is not used
([#&#8203;13797](https://togithub.com/vitejs/vite/issues/13797))
([#&#8203;13798](https://togithub.com/vitejs/vite/issues/13798))
([51c271f](https://togithub.com/vitejs/vite/commit/51c271f)), closes
[#&#8203;13797](https://togithub.com/vitejs/vite/issues/13797)
[#&#8203;13798](https://togithub.com/vitejs/vite/issues/13798)
- fix: do not append `browserHash` on optimized deps during build
([#&#8203;13906](https://togithub.com/vitejs/vite/issues/13906))
([0fb2340](https://togithub.com/vitejs/vite/commit/0fb2340)), closes
[#&#8203;13906](https://togithub.com/vitejs/vite/issues/13906)
- fix: use Bun's implementation of `ws` instead of the bundled one
([#&#8203;13901](https://togithub.com/vitejs/vite/issues/13901))
([049404c](https://togithub.com/vitejs/vite/commit/049404c)), closes
[#&#8203;13901](https://togithub.com/vitejs/vite/issues/13901)
- feat(client): add guide to press Esc for closing the overlay
([#&#8203;13896](https://togithub.com/vitejs/vite/issues/13896))
([da389cc](https://togithub.com/vitejs/vite/commit/da389cc)), closes
[#&#8203;13896](https://togithub.com/vitejs/vite/issues/13896)

###
[`v4.4.5`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small445-2023-07-20-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v4.4.4...v4.4.5)

- fix: "EISDIR: illegal operation on a directory, realpath" error on RA…
([#&#8203;13655](https://togithub.com/vitejs/vite/issues/13655))
([6bd5434](https://togithub.com/vitejs/vite/commit/6bd5434)), closes
[#&#8203;13655](https://togithub.com/vitejs/vite/issues/13655)
- fix: transform error message add file info
([#&#8203;13687](https://togithub.com/vitejs/vite/issues/13687))
([6dca41c](https://togithub.com/vitejs/vite/commit/6dca41c)), closes
[#&#8203;13687](https://togithub.com/vitejs/vite/issues/13687)
- fix: warn when publicDir and outDir are nested
([#&#8203;13742](https://togithub.com/vitejs/vite/issues/13742))
([4eb3154](https://togithub.com/vitejs/vite/commit/4eb3154)), closes
[#&#8203;13742](https://togithub.com/vitejs/vite/issues/13742)
- fix(build): remove warning about ineffective dynamic import from
node_modules
([#&#8203;13884](https://togithub.com/vitejs/vite/issues/13884))
([33002dd](https://togithub.com/vitejs/vite/commit/33002dd)), closes
[#&#8203;13884](https://togithub.com/vitejs/vite/issues/13884)
- fix(build): style insert order for UMD builds (fix
[#&#8203;13668](https://togithub.com/vitejs/vite/issues/13668))
([#&#8203;13669](https://togithub.com/vitejs/vite/issues/13669))
([49a1b99](https://togithub.com/vitejs/vite/commit/49a1b99)), closes
[#&#8203;13668](https://togithub.com/vitejs/vite/issues/13668)
[#&#8203;13669](https://togithub.com/vitejs/vite/issues/13669)
- fix(deps): update all non-major dependencies
([#&#8203;13872](https://togithub.com/vitejs/vite/issues/13872))
([975a631](https://togithub.com/vitejs/vite/commit/975a631)), closes
[#&#8203;13872](https://togithub.com/vitejs/vite/issues/13872)
- fix(types): narrow down the return type of `defineConfig`
([#&#8203;13792](https://togithub.com/vitejs/vite/issues/13792))
([c971f26](https://togithub.com/vitejs/vite/commit/c971f26)), closes
[#&#8203;13792](https://togithub.com/vitejs/vite/issues/13792)
- chore: fix typos
([#&#8203;13862](https://togithub.com/vitejs/vite/issues/13862))
([f54e8da](https://togithub.com/vitejs/vite/commit/f54e8da)), closes
[#&#8203;13862](https://togithub.com/vitejs/vite/issues/13862)
- chore: replace `any` with `string`
([#&#8203;13850](https://togithub.com/vitejs/vite/issues/13850))
([4606fd8](https://togithub.com/vitejs/vite/commit/4606fd8)), closes
[#&#8203;13850](https://togithub.com/vitejs/vite/issues/13850)
- chore(deps): update dependency prettier to v3
([#&#8203;13759](https://togithub.com/vitejs/vite/issues/13759))
([5a56941](https://togithub.com/vitejs/vite/commit/5a56941)), closes
[#&#8203;13759](https://togithub.com/vitejs/vite/issues/13759)
- docs: fix build.cssMinify link
([#&#8203;13840](https://togithub.com/vitejs/vite/issues/13840))
([8a2a3e1](https://togithub.com/vitejs/vite/commit/8a2a3e1)), closes
[#&#8203;13840](https://togithub.com/vitejs/vite/issues/13840)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-28 13:29:31 +00:00
..
cypress chore: remove strategyImprovements flag (#4043) 2023-06-28 11:38:21 +03:00
public
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src fix: stable bulk updates (#4352) 2023-07-28 08:44:29 +02:00
.editorconfig
.gitignore Test npm publish (#3554) 2023-04-18 15:44:19 +02:00
.nvmrc chore: update to node 18 (#3527) 2023-04-18 10:35:32 +02:00
.prettierignore Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
.prettierrc
cypress.config.ts test: add interactive demo guide e2e test (#3656) 2023-05-08 09:16:18 +01:00
cypress.d.ts chore: refactor Cypress tests (#3445) 2023-04-04 11:46:28 +03:00
index.html
index.js
orval.config.js don't add version header to generated api schema 2023-03-15 13:29:18 +01:00
package.json chore(deps): update dependency vite to v4.4.6 (#4358) 2023-07-28 13:29:31 +00:00
README.md chore: simplify package scripts (#3736) 2023-05-12 11:23:22 +01:00
tsconfig.json chore: refactor Cypress tests (#3445) 2023-04-04 11:46:28 +03:00
tsconfig.node.json Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
vercel.json
vite.config.ts fix: preload error (#2980) 2023-01-24 20:40:03 +01:00
yarn.lock chore(deps): update dependency vite to v4.4.6 (#4358) 2023-07-28 13:29:31 +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:

./scripts/generate-openapi.sh

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