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

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>anymaniax/orval (orval)</summary>

###
[`v6.20.0`](https://togithub.com/anymaniax/orval/releases/tag/v6.20.0):
Release 6.20.0

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.19.1...v6.20.0)

##### Bug Fixes

- **core:** added undefined check for pascal util
([#&#8203;1025](https://togithub.com/anymaniax/orval/issues/1025))
([e7dc399](e7dc399168))
- **core:** inconsistent kebab casing comparison
([#&#8203;937](https://togithub.com/anymaniax/orval/issues/937))
([88dd4ff](88dd4ffac0))
- **core:** remove unnecessary empty item in case of null-only enum or
empty enum
([#&#8203;1022](https://togithub.com/anymaniax/orval/issues/1022))
([#&#8203;1023](https://togithub.com/anymaniax/orval/issues/1023))
([f6f2d42](f6f2d42362))
- strict mode nullable enum typing
([#&#8203;1010](https://togithub.com/anymaniax/orval/issues/1010))
([13d3249](13d3249439))
- yarn warnings
([#&#8203;1012](https://togithub.com/anymaniax/orval/issues/1012))
([610901a](610901a7fe))

##### Features

- changed cuids in MSW to dynamic faker strings to prevent file c…
([#&#8203;980](https://togithub.com/anymaniax/orval/issues/980))
([c1949f4](c1949f4d17))
- disable minification
([#&#8203;1004](https://togithub.com/anymaniax/orval/issues/1004))
([f2ea420](f2ea4201c9))
- **faker:** update deprecated faker methods
([#&#8203;978](https://togithub.com/anymaniax/orval/issues/978))
([e74377e](e74377ecbc))
- **faker:** update deprecated methods
([#&#8203;1000](https://togithub.com/anymaniax/orval/issues/1000))
([c357c13](c357c13afb))
- initial CONTRIBUTING.md draft
([#&#8203;958](https://togithub.com/anymaniax/orval/issues/958))
([0c07089](0c07089fce))
- **msw:** support using OpenAPI example/examples fields as MSW values
([#&#8203;963](https://togithub.com/anymaniax/orval/issues/963))
([c19e35c](c19e35cbbc))
- **query:** add prefetch functions
([#&#8203;956](https://togithub.com/anymaniax/orval/issues/956))
([313c8b0](313c8b0f52))
- **security:** upgrade dependencies for security CVE's
([#&#8203;1003](https://togithub.com/anymaniax/orval/issues/1003))
([8b508a3](8b508a3a3e))
- support params serializer
([#&#8203;999](https://togithub.com/anymaniax/orval/issues/999))
([219d97b](219d97b39c))
- upgraded msw to 2.0
([#&#8203;1007](https://togithub.com/anymaniax/orval/issues/1007))
([cc3e72a](cc3e72ad53))

###
[`v6.19.1`](https://togithub.com/anymaniax/orval/releases/tag/v6.19.1):
Release 6.19.1

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.19.0...v6.19.1)

##### Bug Fixes

- **query:** queryKey optional
([#&#8203;975](https://togithub.com/anymaniax/orval/issues/975))
([1bc1d0c](1bc1d0cae0))

###
[`v6.19.0`](https://togithub.com/anymaniax/orval/releases/tag/v6.19.0):
Release 6.19.0

[Compare
Source](https://togithub.com/anymaniax/orval/compare/v6.18.1...v6.19.0)

##### Bug Fixes

- **core:** fix ref import file
([#&#8203;955](https://togithub.com/anymaniax/orval/issues/955))
([69280a3](69280a3f7b))
- make order of imports and object properties deterministic
([#&#8203;965](https://togithub.com/anymaniax/orval/issues/965))
([a4cca88](a4cca88803))
- **useNamedParameters:** use operationName instead of operationId
([#&#8203;953](https://togithub.com/anymaniax/orval/issues/953))
([8a458ca](8a458ca5b5))

##### Features

- **msw:** allow regex for entire paths instead of only property names
([#&#8203;957](https://togithub.com/anymaniax/orval/issues/957))
([9a4ce8f](9a4ce8f7a8))
- **orval:** allow custom baseUrl for each OpenAPI specification
([#&#8203;968](https://togithub.com/anymaniax/orval/issues/968))
([8a12c3d](8a12c3de68))
- **react-query:** add option to generate suspense query
([83e567b](83e567bb40))

##### Performance Improvements

- **utils:** caches `pascal` function generated strings
([#&#8203;962](https://togithub.com/anymaniax/orval/issues/962))
([1899009](189900977c))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 15:16:23 +00:00
..
cypress
public refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src
.editorconfig add editorconfig 2016-12-05 23:08:32 +01:00
.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
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json
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 orval to v6.20.0 (#5501) 2023-11-29 15:16:23 +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