1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] 564b04d865
chore(deps): update dependency vite to v4.1.4 (#3217)
[![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.1.1` ->
`4.1.4`](https://renovatebot.com/diffs/npm/vite/4.1.1/4.1.4) |
[![age](https://badges.renovateapi.com/packages/npm/vite/4.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vite/4.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vite/4.1.4/compatibility-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vite/4.1.4/confidence-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite</summary>

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

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

- fix(define): should not stringify vite internal env
([#&#8203;12120](https://togithub.com/vitejs/vite/issues/12120))
([73c3999](https://togithub.com/vitejs/vite/commit/73c3999)), closes
[#&#8203;12120](https://togithub.com/vitejs/vite/issues/12120)
- docs: update rollup docs links
([#&#8203;12130](https://togithub.com/vitejs/vite/issues/12130))
([439a73f](https://togithub.com/vitejs/vite/commit/439a73f)), closes
[#&#8203;12130](https://togithub.com/vitejs/vite/issues/12130)

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

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

- fix: catch and handle websocket error
([#&#8203;11991](https://togithub.com/vitejs/vite/issues/11991))
([#&#8203;12007](https://togithub.com/vitejs/vite/issues/12007))
([4b5cc9f](https://togithub.com/vitejs/vite/commit/4b5cc9f)), closes
[#&#8203;11991](https://togithub.com/vitejs/vite/issues/11991)
[#&#8203;12007](https://togithub.com/vitejs/vite/issues/12007)
- fix: do not append version query param when scanning for dependencies
([#&#8203;11961](https://togithub.com/vitejs/vite/issues/11961))
([575bcf6](https://togithub.com/vitejs/vite/commit/575bcf6)), closes
[#&#8203;11961](https://togithub.com/vitejs/vite/issues/11961)
- fix(css): handle pure css chunk heuristic with special queries
([#&#8203;12091](https://togithub.com/vitejs/vite/issues/12091))
([a873af5](https://togithub.com/vitejs/vite/commit/a873af5)), closes
[#&#8203;12091](https://togithub.com/vitejs/vite/issues/12091)
- fix(esbuild): umd helper insert into wrong position in lib mode
([#&#8203;11988](https://togithub.com/vitejs/vite/issues/11988))
([86bc243](https://togithub.com/vitejs/vite/commit/86bc243)), closes
[#&#8203;11988](https://togithub.com/vitejs/vite/issues/11988)
- fix(html): respect disable modulepreload
([#&#8203;12111](https://togithub.com/vitejs/vite/issues/12111))
([6c50119](https://togithub.com/vitejs/vite/commit/6c50119)), closes
[#&#8203;12111](https://togithub.com/vitejs/vite/issues/12111)
- fix(html): rewrite assets url in `<noscript>`
([#&#8203;11764](https://togithub.com/vitejs/vite/issues/11764))
([1dba285](https://togithub.com/vitejs/vite/commit/1dba285)), closes
[#&#8203;11764](https://togithub.com/vitejs/vite/issues/11764)
- feat(preview): improve error when build output missing
([#&#8203;12096](https://togithub.com/vitejs/vite/issues/12096))
([a0702a1](https://togithub.com/vitejs/vite/commit/a0702a1)), closes
[#&#8203;12096](https://togithub.com/vitejs/vite/issues/12096)
- feat(ssr): add importer path to error msg when invalid url import
occur ([#&#8203;11606](https://togithub.com/vitejs/vite/issues/11606))
([70729c0](https://togithub.com/vitejs/vite/commit/70729c0)), closes
[#&#8203;11606](https://togithub.com/vitejs/vite/issues/11606)

###
[`v4.1.2`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small412-2023-02-17-small)

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

- fix: correct access to `crossOrigin` attribute
([#&#8203;12023](https://togithub.com/vitejs/vite/issues/12023))
([6a0d356](https://togithub.com/vitejs/vite/commit/6a0d356)), closes
[#&#8203;12023](https://togithub.com/vitejs/vite/issues/12023)
- fix: narrow defineConfig return type
([#&#8203;12021](https://togithub.com/vitejs/vite/issues/12021))
([18fa8f0](https://togithub.com/vitejs/vite/commit/18fa8f0)), closes
[#&#8203;12021](https://togithub.com/vitejs/vite/issues/12021)
- fix(define): inconsistent env values in build mode
([#&#8203;12058](https://togithub.com/vitejs/vite/issues/12058))
([0a50c59](https://togithub.com/vitejs/vite/commit/0a50c59)), closes
[#&#8203;12058](https://togithub.com/vitejs/vite/issues/12058)
- fix(env): compatible with env variables ended with unescaped $
([#&#8203;12031](https://togithub.com/vitejs/vite/issues/12031))
([05b3df0](https://togithub.com/vitejs/vite/commit/05b3df0)), closes
[#&#8203;12031](https://togithub.com/vitejs/vite/issues/12031)
- fix(ssr): print file url in `ssrTransform` parse error
([#&#8203;12060](https://togithub.com/vitejs/vite/issues/12060))
([19f39f7](https://togithub.com/vitejs/vite/commit/19f39f7)), closes
[#&#8203;12060](https://togithub.com/vitejs/vite/issues/12060)
- revert: narrow defineConfig return type
([#&#8203;12077](https://togithub.com/vitejs/vite/issues/12077))
([54d511e](https://togithub.com/vitejs/vite/commit/54d511e)), closes
[#&#8203;12077](https://togithub.com/vitejs/vite/issues/12077)
- feat: support `import.meta.hot?.accept`
([#&#8203;12053](https://togithub.com/vitejs/vite/issues/12053))
([081c27f](https://togithub.com/vitejs/vite/commit/081c27f)), closes
[#&#8203;12053](https://togithub.com/vitejs/vite/issues/12053)
- chore: add jsdoc default value
([#&#8203;11746](https://togithub.com/vitejs/vite/issues/11746))
([8c87af7](https://togithub.com/vitejs/vite/commit/8c87af7)), closes
[#&#8203;11746](https://togithub.com/vitejs/vite/issues/11746)
- chore: fix typos
([#&#8203;12032](https://togithub.com/vitejs/vite/issues/12032))
([ee1a686](https://togithub.com/vitejs/vite/commit/ee1a686)), closes
[#&#8203;12032](https://togithub.com/vitejs/vite/issues/12032)
- chore(deps): update dependency strip-literal to v1
([#&#8203;12044](https://togithub.com/vitejs/vite/issues/12044))
([5bd6c0a](https://togithub.com/vitejs/vite/commit/5bd6c0a)), closes
[#&#8203;12044](https://togithub.com/vitejs/vite/issues/12044)
- chore(pluginContainer): simplify error position judge condition
([#&#8203;12003](https://togithub.com/vitejs/vite/issues/12003))
([e3ef9f4](https://togithub.com/vitejs/vite/commit/e3ef9f4)), closes
[#&#8203;12003](https://togithub.com/vitejs/vite/issues/12003)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-01 05:42:30 +00:00
..
cypress
public
src feat: smarter auth type labels on sign-on log table (#3220) 2023-02-28 17:58:29 +01:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.json
index.html
index.js
orval.config.js
package.json chore(deps): update dependency vite to v4.1.4 (#3217) 2023-03-01 05:42:30 +00:00
README.md
tsconfig.json
tsconfig.node.json
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.1.4 (#3217) 2023-03-01 05:42:30 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

First, start the unleash-api backend on port 4242. Then, start the frontend dev server:

cd ~/frontend
yarn install
yarn run start

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