1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/frontend
renovate[bot] a229d6951e
chore(deps): update dependency vite to v4.4.4 (#4313)
[![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.3.9` ->
`4.4.4`](https://renovatebot.com/diffs/npm/vite/4.3.9/4.4.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/4.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/4.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/4.3.9/4.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/4.3.9/4.4.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

- chore: warning about ssr cjs format removal
([#&#8203;13827](https://togithub.com/vitejs/vite/issues/13827))
([4646e9f](https://togithub.com/vitejs/vite/commit/4646e9f)), closes
[#&#8203;13827](https://togithub.com/vitejs/vite/issues/13827)
- fix(esbuild): enable experimentalDecorators by default
([#&#8203;13805](https://togithub.com/vitejs/vite/issues/13805))
([e8880f0](https://togithub.com/vitejs/vite/commit/e8880f0)), closes
[#&#8203;13805](https://togithub.com/vitejs/vite/issues/13805)
- fix(scan): skip tsconfigRaw fallback if tsconfig is set
([#&#8203;13823](https://togithub.com/vitejs/vite/issues/13823))
([b6155a1](https://togithub.com/vitejs/vite/commit/b6155a1)), closes
[#&#8203;13823](https://togithub.com/vitejs/vite/issues/13823)
- feat(client): close `vite-error-overlay` with Escape key
([#&#8203;13795](https://togithub.com/vitejs/vite/issues/13795))
([85bdcda](https://togithub.com/vitejs/vite/commit/85bdcda)), closes
[#&#8203;13795](https://togithub.com/vitejs/vite/issues/13795)

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

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

- fix: avoid early error when server is closed in ssr
([#&#8203;13787](https://togithub.com/vitejs/vite/issues/13787))
([89d01eb](https://togithub.com/vitejs/vite/commit/89d01eb)), closes
[#&#8203;13787](https://togithub.com/vitejs/vite/issues/13787)
- fix(deps): update all non-major dependencies
([#&#8203;13758](https://togithub.com/vitejs/vite/issues/13758))
([8ead116](https://togithub.com/vitejs/vite/commit/8ead116)), closes
[#&#8203;13758](https://togithub.com/vitejs/vite/issues/13758)
- fix(server): remove restart guard on restart
([#&#8203;13789](https://togithub.com/vitejs/vite/issues/13789))
([2a38ef7](https://togithub.com/vitejs/vite/commit/2a38ef7)), closes
[#&#8203;13789](https://togithub.com/vitejs/vite/issues/13789)

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

[Compare
Source](487bdcde33...v4.4.2)

- fix(css): use single postcss instance
([#&#8203;13738](https://togithub.com/vitejs/vite/issues/13738))
([c02fac4](https://togithub.com/vitejs/vite/commit/c02fac4)), closes
[#&#8203;13738](https://togithub.com/vitejs/vite/issues/13738)

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

[Compare
Source](3b47e34af8...487bdcde3399463ac68eb5ab5bc19e5096b4623b)

- fix: revert
[#&#8203;13073](https://togithub.com/vitejs/vite/issues/13073), use
consistent virtual module ID in module graph
([#&#8203;13734](https://togithub.com/vitejs/vite/issues/13734))
([f589ac0](https://togithub.com/vitejs/vite/commit/f589ac0)), closes
[#&#8203;13073](https://togithub.com/vitejs/vite/issues/13073)
[#&#8203;13734](https://togithub.com/vitejs/vite/issues/13734)
- fix: revert import config module as data
([#&#8203;13731](https://togithub.com/vitejs/vite/issues/13731))
([b0bfa01](https://togithub.com/vitejs/vite/commit/b0bfa01)), closes
[#&#8203;13731](https://togithub.com/vitejs/vite/issues/13731)
- chore: changelog notes and clean for 4.4
([#&#8203;13728](https://togithub.com/vitejs/vite/issues/13728))
([3f4e36e](https://togithub.com/vitejs/vite/commit/3f4e36e)), closes
[#&#8203;13728](https://togithub.com/vitejs/vite/issues/13728)

###
[`v4.4.0`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#440-2023-07-06)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v4.3.9...3b47e34af89b8220c0aeb119f813e8315e98668e)

##### Experimental support for Lightning CSS

Starting from Vite 4.4, there is experimental support for [Lightning
CSS](https://lightningcss.dev/). You can opt into it by adding
[`css.transformer:
'lightningcss'`](https://main.vitejs.dev/config/shared-options.html#css-transformer)
to your config file and install the optional
[`lightningcss`](https://www.npmjs.com/package/lightningcss) dev
dependency. If enabled, CSS files will be processed by Lightning CSS
instead of PostCSS.

Lightning CSS can also be used as the CSS minifier with
[`build.cssMinify:
'lightningcss'`](https://main.vitejs.dev/config/build-options.html#build-cssminify).

See beta docs at the [Lighting CSS
guide](https://main.vitejs.dev/guide/features.html#lightning-css).

##### esbuild 0.18 update

[esbuild
0.18](https://togithub.com/evanw/esbuild/blob/main/CHANGELOG.md#0180)
contains backwards-incompatible changes to esbuild's handling of
`tsconfig.json` files. We think they shouldn't affect Vite users, you
can review
[#&#8203;13525](https://togithub.com/vitejs/vite/issues/13525) for more
information.

##### Templates for Solid and Qwik in create-vite

New starter templates have been added to
[create-vite](https://vitejs.dev/guide/#scaffolding-your-first-vite-project)
for [Solid](https://www.solidjs.com/) and
[Qwik](https://qwik.builder.io/). Try them online at
[vite.new/solid-ts](https://vite.new/solid-ts) and
[vite.new/qwik-ts](https://vite.new/qwik-ts).

##### Korean Translation

Vite's docs are now translated to Korean, available at
[ko.vitejs.dev](https://ko.vitejs.dev).

##### Features

- feat: preview mode add keyboard shortcuts
([#&#8203;12968](https://togithub.com/vitejs/vite/issues/12968))
([126e93e](https://togithub.com/vitejs/vite/commit/126e93e)), closes
[#&#8203;12968](https://togithub.com/vitejs/vite/issues/12968)
- feat: asset type add apng
([#&#8203;13294](https://togithub.com/vitejs/vite/issues/13294))
([a11b6f6](https://togithub.com/vitejs/vite/commit/a11b6f6)), closes
[#&#8203;13294](https://togithub.com/vitejs/vite/issues/13294)
- feat: emit event to handle chunk load errors
([#&#8203;12084](https://togithub.com/vitejs/vite/issues/12084))
([2eca54e](https://togithub.com/vitejs/vite/commit/2eca54e)), closes
[#&#8203;12084](https://togithub.com/vitejs/vite/issues/12084)
- feat: import public non-asset URL
([#&#8203;13422](https://togithub.com/vitejs/vite/issues/13422))
([3a98558](https://togithub.com/vitejs/vite/commit/3a98558)), closes
[#&#8203;13422](https://togithub.com/vitejs/vite/issues/13422)
- feat: support files for `fs.allow`
([#&#8203;12863](https://togithub.com/vitejs/vite/issues/12863))
([4a06e66](https://togithub.com/vitejs/vite/commit/4a06e66)), closes
[#&#8203;12863](https://togithub.com/vitejs/vite/issues/12863)
- feat(build): warn dynamic import module with a static import alongside
([#&#8203;12850](https://togithub.com/vitejs/vite/issues/12850))
([127c334](https://togithub.com/vitejs/vite/commit/127c334)), closes
[#&#8203;12850](https://togithub.com/vitejs/vite/issues/12850)
- feat(client): add debounce on page reload
([#&#8203;13545](https://togithub.com/vitejs/vite/issues/13545))
([d080b51](https://togithub.com/vitejs/vite/commit/d080b51)), closes
[#&#8203;13545](https://togithub.com/vitejs/vite/issues/13545)
- feat(client): add WebSocket connections events
([#&#8203;13334](https://togithub.com/vitejs/vite/issues/13334))
([eb75103](https://togithub.com/vitejs/vite/commit/eb75103)), closes
[#&#8203;13334](https://togithub.com/vitejs/vite/issues/13334)
- feat(config): friendly ESM file require error
([#&#8203;13283](https://togithub.com/vitejs/vite/issues/13283))
([b9a6ba0](https://togithub.com/vitejs/vite/commit/b9a6ba0)), closes
[#&#8203;13283](https://togithub.com/vitejs/vite/issues/13283)
- feat(css): add support for Lightning CSS
([#&#8203;12807](https://togithub.com/vitejs/vite/issues/12807))
([c6c5d49](https://togithub.com/vitejs/vite/commit/c6c5d49)), closes
[#&#8203;12807](https://togithub.com/vitejs/vite/issues/12807)
- feat(css): support at import preprocessed styles
([#&#8203;8400](https://togithub.com/vitejs/vite/issues/8400))
([2bd6077](https://togithub.com/vitejs/vite/commit/2bd6077)), closes
[#&#8203;8400](https://togithub.com/vitejs/vite/issues/8400)
- feat(html): support image set in inline style
([#&#8203;13473](https://togithub.com/vitejs/vite/issues/13473))
([2c0faba](https://togithub.com/vitejs/vite/commit/2c0faba)), closes
[#&#8203;13473](https://togithub.com/vitejs/vite/issues/13473)
- feat(importMetaGlob): support sub imports pattern
([#&#8203;12467](https://togithub.com/vitejs/vite/issues/12467))
([e355c9c](https://togithub.com/vitejs/vite/commit/e355c9c)), closes
[#&#8203;12467](https://togithub.com/vitejs/vite/issues/12467)
- feat(optimizer): support glob includes
([#&#8203;12414](https://togithub.com/vitejs/vite/issues/12414))
([7792515](https://togithub.com/vitejs/vite/commit/7792515)), closes
[#&#8203;12414](https://togithub.com/vitejs/vite/issues/12414)
- feat!: update esbuild to 0.18.2
([#&#8203;13525](https://togithub.com/vitejs/vite/issues/13525))
([ab967c0](https://togithub.com/vitejs/vite/commit/ab967c0)), closes
[#&#8203;13525](https://togithub.com/vitejs/vite/issues/13525)

##### Bug Fixes

- fix: check document before detect script rel
([#&#8203;13559](https://togithub.com/vitejs/vite/issues/13559))
([be4b0c0](https://togithub.com/vitejs/vite/commit/be4b0c0)), closes
[#&#8203;13559](https://togithub.com/vitejs/vite/issues/13559)
- fix(define): stringify object parse error in build mode
([#&#8203;13600](https://togithub.com/vitejs/vite/issues/13600))
([71516db](https://togithub.com/vitejs/vite/commit/71516db)), closes
[#&#8203;13600](https://togithub.com/vitejs/vite/issues/13600)
- fix(deps): update all non-major dependencies
([#&#8203;13701](https://togithub.com/vitejs/vite/issues/13701))
([02c6bc3](https://togithub.com/vitejs/vite/commit/02c6bc3)), closes
[#&#8203;13701](https://togithub.com/vitejs/vite/issues/13701)
- fix(esbuild): use `useDefineForClassFields: false` when no
`compilerOptions.target` is declared
([#&#8203;13](https://togithub.com/vitejs/vite/issues/13)
([7ef2472](https://togithub.com/vitejs/vite/commit/7ef2472)), closes
[#&#8203;13708](https://togithub.com/vitejs/vite/issues/13708)
- fix(pluginContainer): drop previous sourcesContent
([#&#8203;13722](https://togithub.com/vitejs/vite/issues/13722))
([9310b3a](https://togithub.com/vitejs/vite/commit/9310b3a)), closes
[#&#8203;13722](https://togithub.com/vitejs/vite/issues/13722)
- fix: lightningCSS should load external URL in CSS file
([#&#8203;13692](https://togithub.com/vitejs/vite/issues/13692))
([8517645](https://togithub.com/vitejs/vite/commit/8517645)), closes
[#&#8203;13692](https://togithub.com/vitejs/vite/issues/13692)
- fix: shortcut open browser when set host
([#&#8203;13677](https://togithub.com/vitejs/vite/issues/13677))
([6f1c55e](https://togithub.com/vitejs/vite/commit/6f1c55e)), closes
[#&#8203;13677](https://togithub.com/vitejs/vite/issues/13677)
- fix(cli): convert the sourcemap option to boolean (fix
[#&#8203;13638](https://togithub.com/vitejs/vite/issues/13638))
([#&#8203;13663](https://togithub.com/vitejs/vite/issues/13663))
([d444bfe](https://togithub.com/vitejs/vite/commit/d444bfe)), closes
[#&#8203;13638](https://togithub.com/vitejs/vite/issues/13638)
[#&#8203;13663](https://togithub.com/vitejs/vite/issues/13663)
- fix(css): use esbuild legalComments config when minifying CSS
([#&#8203;13661](https://togithub.com/vitejs/vite/issues/13661))
([2d9008e](https://togithub.com/vitejs/vite/commit/2d9008e)), closes
[#&#8203;13661](https://togithub.com/vitejs/vite/issues/13661)
- fix(sourcemap): preserve original sourcesContent
([#&#8203;13662](https://togithub.com/vitejs/vite/issues/13662))
([f6362b6](https://togithub.com/vitejs/vite/commit/f6362b6)), closes
[#&#8203;13662](https://togithub.com/vitejs/vite/issues/13662)
- fix(ssr): transform superclass identifier
([#&#8203;13635](https://togithub.com/vitejs/vite/issues/13635))
([c5b2c8f](https://togithub.com/vitejs/vite/commit/c5b2c8f)), closes
[#&#8203;13635](https://togithub.com/vitejs/vite/issues/13635)
- fix: show error position
([#&#8203;13623](https://togithub.com/vitejs/vite/issues/13623))
([90271a6](https://togithub.com/vitejs/vite/commit/90271a6)), closes
[#&#8203;13623](https://togithub.com/vitejs/vite/issues/13623)
- fix(hmr): only invalidate `lastHMRTimestamp` of importers if the
invalidated module is not a HMR bou
([1143e0b](https://togithub.com/vitejs/vite/commit/1143e0b)), closes
[#&#8203;13024](https://togithub.com/vitejs/vite/issues/13024)
- fix(indexHtml): decode html URI
([#&#8203;13581](https://togithub.com/vitejs/vite/issues/13581))
([f8868af](https://togithub.com/vitejs/vite/commit/f8868af)), closes
[#&#8203;13581](https://togithub.com/vitejs/vite/issues/13581)
- fix: avoid binding ClassExpression
([#&#8203;13572](https://togithub.com/vitejs/vite/issues/13572))
([1a0c806](https://togithub.com/vitejs/vite/commit/1a0c806)), closes
[#&#8203;13572](https://togithub.com/vitejs/vite/issues/13572)
- fix: the shortcut fails to open browser when set the host
([#&#8203;13579](https://togithub.com/vitejs/vite/issues/13579))
([e0a48c5](https://togithub.com/vitejs/vite/commit/e0a48c5)), closes
[#&#8203;13579](https://togithub.com/vitejs/vite/issues/13579)
- fix(proxy): forward SSE close event
([#&#8203;13578](https://togithub.com/vitejs/vite/issues/13578))
([4afbccb](https://togithub.com/vitejs/vite/commit/4afbccb)), closes
[#&#8203;13578](https://togithub.com/vitejs/vite/issues/13578)
- fix: allow using vite as a proxy for another vite server
([#&#8203;13218](https://togithub.com/vitejs/vite/issues/13218))
([711dd80](https://togithub.com/vitejs/vite/commit/711dd80)), closes
[#&#8203;13218](https://togithub.com/vitejs/vite/issues/13218)
- fix: await requests to before server restart
([#&#8203;13262](https://togithub.com/vitejs/vite/issues/13262))
([0464398](https://togithub.com/vitejs/vite/commit/0464398)), closes
[#&#8203;13262](https://togithub.com/vitejs/vite/issues/13262)
- fix: esm detection with `export const { A, B }` pattern
([#&#8203;13483](https://togithub.com/vitejs/vite/issues/13483))
([ea1bcc9](https://togithub.com/vitejs/vite/commit/ea1bcc9)), closes
[#&#8203;13483](https://togithub.com/vitejs/vite/issues/13483)
- fix: keep track of ssr version of imported modules separately
([#&#8203;11973](https://togithub.com/vitejs/vite/issues/11973))
([8fe6952](https://togithub.com/vitejs/vite/commit/8fe6952)), closes
[#&#8203;11973](https://togithub.com/vitejs/vite/issues/11973)
- fix: make optimize error available to meta-framework
([#&#8203;13495](https://togithub.com/vitejs/vite/issues/13495))
([b70e783](https://togithub.com/vitejs/vite/commit/b70e783)), closes
[#&#8203;13495](https://togithub.com/vitejs/vite/issues/13495)
- fix: only show the listened IP when host is specified
([#&#8203;13412](https://togithub.com/vitejs/vite/issues/13412))
([20b0cae](https://togithub.com/vitejs/vite/commit/20b0cae)), closes
[#&#8203;13412](https://togithub.com/vitejs/vite/issues/13412)
- fix: race condition creation module in graph in transformRequest
([#&#8203;13085](https://togithub.com/vitejs/vite/issues/13085))
([43cbbcf](https://togithub.com/vitejs/vite/commit/43cbbcf)), closes
[#&#8203;13085](https://togithub.com/vitejs/vite/issues/13085)
- fix: remove deprecated config.server.base
([#&#8203;13482](https://togithub.com/vitejs/vite/issues/13482))
([dc597bd](https://togithub.com/vitejs/vite/commit/dc597bd)), closes
[#&#8203;13482](https://togithub.com/vitejs/vite/issues/13482)
- fix: remove extra path shorten when resolving from a dir
([#&#8203;13381](https://togithub.com/vitejs/vite/issues/13381))
([5503198](https://togithub.com/vitejs/vite/commit/5503198)), closes
[#&#8203;13381](https://togithub.com/vitejs/vite/issues/13381)
- fix: show network URLs when `--host 0.0.0.0`
([#&#8203;13438](https://togithub.com/vitejs/vite/issues/13438))
([00ee8c1](https://togithub.com/vitejs/vite/commit/00ee8c1)), closes
[#&#8203;13438](https://togithub.com/vitejs/vite/issues/13438)
- fix: timestamp config dynamicImport
([#&#8203;13502](https://togithub.com/vitejs/vite/issues/13502))
([6a87c65](https://togithub.com/vitejs/vite/commit/6a87c65)), closes
[#&#8203;13502](https://togithub.com/vitejs/vite/issues/13502)
- fix: unexpected config temporary file
([#&#8203;13269](https://togithub.com/vitejs/vite/issues/13269))
([ff3ce31](https://togithub.com/vitejs/vite/commit/ff3ce31)), closes
[#&#8203;13269](https://togithub.com/vitejs/vite/issues/13269)
- fix: use consistent virtual module ID in module graph
([#&#8203;13073](https://togithub.com/vitejs/vite/issues/13073))
([aa1776f](https://togithub.com/vitejs/vite/commit/aa1776f)), closes
[#&#8203;13073](https://togithub.com/vitejs/vite/issues/13073)
- fix(build): make output warning message clearer
([#&#8203;12924](https://togithub.com/vitejs/vite/issues/12924))
([54ab3c8](https://togithub.com/vitejs/vite/commit/54ab3c8)), closes
[#&#8203;12924](https://togithub.com/vitejs/vite/issues/12924)
- fix(debug): import performance from perf_hooks
([#&#8203;13464](https://togithub.com/vitejs/vite/issues/13464))
([d458ccd](https://togithub.com/vitejs/vite/commit/d458ccd)), closes
[#&#8203;13464](https://togithub.com/vitejs/vite/issues/13464)
- fix(deps): update all non-major dependencies
([#&#8203;13059](https://togithub.com/vitejs/vite/issues/13059))
([123ef4c](https://togithub.com/vitejs/vite/commit/123ef4c)), closes
[#&#8203;13059](https://togithub.com/vitejs/vite/issues/13059)
- fix(deps): update all non-major dependencies
([#&#8203;13488](https://togithub.com/vitejs/vite/issues/13488))
([bd09248](https://togithub.com/vitejs/vite/commit/bd09248)), closes
[#&#8203;13488](https://togithub.com/vitejs/vite/issues/13488)
- fix(deps): update sirv to 2.0.3
([#&#8203;13057](https://togithub.com/vitejs/vite/issues/13057))
([d814d6c](https://togithub.com/vitejs/vite/commit/d814d6c)), closes
[#&#8203;13057](https://togithub.com/vitejs/vite/issues/13057)
- fix(mergeConfig): don't accept callback config
([#&#8203;13135](https://togithub.com/vitejs/vite/issues/13135))
([998512b](https://togithub.com/vitejs/vite/commit/998512b)), closes
[#&#8203;13135](https://togithub.com/vitejs/vite/issues/13135)
- fix(optimizer): include exports for css modules
([#&#8203;13519](https://togithub.com/vitejs/vite/issues/13519))
([1fd9919](https://togithub.com/vitejs/vite/commit/1fd9919)), closes
[#&#8203;13519](https://togithub.com/vitejs/vite/issues/13519)
- fix(resolve): always use `module` condition
([#&#8203;13370](https://togithub.com/vitejs/vite/issues/13370))
([367920b](https://togithub.com/vitejs/vite/commit/367920b)), closes
[#&#8203;13370](https://togithub.com/vitejs/vite/issues/13370)
- fix(ssr): fix crash when a pnpm/Yarn workspace depends on a CJS
package ([#&#8203;9763](https://togithub.com/vitejs/vite/issues/9763))
([9e1086b](https://togithub.com/vitejs/vite/commit/9e1086b)), closes
[#&#8203;9763](https://togithub.com/vitejs/vite/issues/9763)

##### Previous Changelogs

#####
[4.4.0-beta.4](https://togithub.com/vitejs/vite/compare/v4.4.0-beta.3....v4.4.0-beta.4)
(2023-07-03)

See [4.4.0-beta.4
changelog](https://togithub.com/vitejs/vite/blob/v4.4.0-beta.4/packages/vite/CHANGELOG.md)

#####
[4.4.0-beta.3](https://togithub.com/vitejs/vite/compare/v4.4.0-beta.2....v4.4.0-beta.3)
(2023-06-25)

See [4.4.0-beta.3
changelog](https://togithub.com/vitejs/vite/blob/v4.4.0-beta.3/packages/vite/CHANGELOG.md)

#####
[4.4.0-beta.2](https://togithub.com/vitejs/vite/compare/v4.4.0-beta.1....v4.4.0-beta.2)
(2023-06-22)

See [4.4.0-beta.2
changelog](https://togithub.com/vitejs/vite/blob/v4.4.0-beta.2/packages/vite/CHANGELOG.md)

#####
[4.4.0-beta.1](https://togithub.com/vitejs/vite/compare/v4.4.0-beta.0....v4.4.0-beta.1)
(2023-06-21)

See [4.4.0-beta.1
changelog](https://togithub.com/vitejs/vite/blob/v4.4.0-beta.1/packages/vite/CHANGELOG.md)

#####
[4.4.0-beta.0](https://togithub.com/vitejs/vite/compare/v4.3.9....v4.4.0-beta.0)
(2023-06-20)

See [4.4.0-beta.0
changelog](https://togithub.com/vitejs/vite/blob/v4.4.0-beta.0/packages/vite/CHANGELOG.md)

</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-21 14:37:54 +00:00
..
cypress chore: remove strategyImprovements flag (#4043) 2023-06-28 11:38:21 +03:00
public
scripts
src feat: Feature type lifetime API integration (#4295) 2023-07-21 09:51:09 +00: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 vite to v4.4.4 (#4313) 2023-07-21 14:37:54 +00:00
README.md chore: simplify package scripts (#3736) 2023-05-12 11:23:22 +01:00
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): update dependency vite to v4.4.4 (#4313) 2023-07-21 14:37:54 +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