1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
dependabot[bot] 5ac6398c44
chore(deps): bump vm2 from 3.9.13 to 3.9.15 in /frontend (#3481)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.13 to 3.9.15.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/patriksimek/vm2/releases">vm2's
releases</a>.</em></p>
<blockquote>
<h2>3.9.15</h2>
<p><strong>Fixes</strong></p>
<p><a
href="d534e5785f</a>:
Ensure no host objects are passed through to
<code>Error.prepareStackTrace</code>. (Thanky to Seongil Wi from KAIST
<a href="https://wsp-lab.github.io/">WSP Lab</a>)</p>
<h2>3.9.14</h2>
<p><strong>Fixes</strong></p>
<p><a
href="fe3ab68832</a>:
Support conditional export resolution with custom resolver (thanks to
nick-klaviyo).</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md">vm2's
changelog</a>.</em></p>
<blockquote>
<h2>v3.9.15 (2023-04-06)</h2>
<p>[fix] Security fix (see <a
href="https://redirect.github.com/patriksimek/vm2/issues/515">patriksimek/vm2#515</a>).</p>
<h2>v3.9.14 (2023-02-05)</h2>
<p>[new] Support conditional export resolution with custom resolver.
(nick-klaviyo)</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="115d1644b7"><code>115d164</code></a>
Release 3.9.15</li>
<li><a
href="d534e5785f"><code>d534e57</code></a>
Wrap host objects passes through prepareStackTrace</li>
<li><a
href="e541782b7f"><code>e541782</code></a>
Merge pull request <a
href="https://redirect.github.com/patriksimek/vm2/issues/506">#506</a>
from XmiliaH/release-3.9.14</li>
<li><a
href="066afd1e62"><code>066afd1</code></a>
Release 3.9.14</li>
<li><a
href="fe3ab68832"><code>fe3ab68</code></a>
Merge pull request <a
href="https://redirect.github.com/patriksimek/vm2/issues/505">#505</a>
from NapkinHQ/fix-conditional-export-resolve</li>
<li><a
href="eefe3f1eb1"><code>eefe3f1</code></a>
update .eslintignore;update index.d.ts resolve return type</li>
<li><a
href="c70d945fc8"><code>c70d945</code></a>
add 'type':'module' in es module package.json</li>
<li><a
href="4659ce006e"><code>4659ce0</code></a>
add additional return type for resolve signature</li>
<li><a
href="1da44154ee"><code>1da4415</code></a>
add missing semicolon</li>
<li><a
href="5a86675641"><code>5a86675</code></a>
Support conditional export resolution with custom resolver</li>
<li>Additional commits viewable in <a
href="https://github.com/patriksimek/vm2/compare/3.9.13...3.9.15">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vm2&package-manager=npm_and_yarn&previous-version=3.9.13&new-version=3.9.15)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/Unleash/unleash/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 16:51:32 +02:00
..
cypress chore: Backport 4.22.3 (#3508) 2023-04-12 16:22:13 +03:00
public
scripts
src chore: Backport 4.22.3 (#3508) 2023-04-12 16:22:13 +03:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.d.ts chore: refactor Cypress tests (#3445) 2023-04-04 11:46:28 +03:00
cypress.json
index.html
index.js
orval.config.js
package.json chore(deps): update dependency @types/react to v17.0.56 (#3492) 2023-04-11 03:20:20 +00:00
README.md
tsconfig.json chore: refactor Cypress tests (#3445) 2023-04-04 11:46:28 +03:00
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): bump vm2 from 3.9.13 to 3.9.15 in /frontend (#3481) 2023-04-12 16:51:32 +02: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