1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
dependabot[bot] 06c85b16b7
chore(deps): bump graphql from 16.6.0 to 16.8.1 in /frontend (#4810)
Bumps [graphql](https://github.com/graphql/graphql-js) from 16.6.0 to
16.8.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/graphql/graphql-js/releases">graphql's
releases</a>.</em></p>
<blockquote>
<h2>v16.8.1 (2023-09-19)</h2>
<h4>Bug Fix 🐞</h4>
<ul>
<li><a
href="https://redirect.github.com/graphql/graphql-js/pull/3967">#3967</a>
OverlappingFieldsCanBeMergedRule: Fix performance degradation (<a
href="https://github.com/AaronMoat"><code>@​AaronMoat</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Aaron Moat(<a
href="https://github.com/AaronMoat"><code>@​AaronMoat</code></a>)</li>
</ul>
<h2>v16.8.0 (2023-08-14)</h2>
<h4>New Feature 🚀</h4>
<ul>
<li><a
href="https://redirect.github.com/graphql/graphql-js/pull/3950">#3950</a>
Support fourfold nested lists (<a
href="https://github.com/gschulze"><code>@​gschulze</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Gunnar Schulze(<a
href="https://github.com/gschulze"><code>@​gschulze</code></a>)</li>
</ul>
<h2>v16.7.1 (2023-06-22)</h2>
<p>📢 Big shout out to <a
href="https://github.com/phryneas"><code>@​phryneas</code></a>, who
managed to reproduce this issue and come up with this fix.</p>
<h4>Bug Fix 🐞</h4>
<ul>
<li><a
href="https://redirect.github.com/graphql/graphql-js/pull/3923">#3923</a>
instanceOf: workaround bundler issue with <code>process.env</code> (<a
href="https://github.com/IvanGoncharov"><code>@​IvanGoncharov</code></a>)</li>
</ul>
<h4>Committers: 1</h4>
<ul>
<li>Ivan Goncharov(<a
href="https://github.com/IvanGoncharov"><code>@​IvanGoncharov</code></a>)</li>
</ul>
<h2>v16.7.0 (2023-06-21)</h2>
<h4>New Feature 🚀</h4>
<ul>
<li><a
href="https://redirect.github.com/graphql/graphql-js/pull/3887">#3887</a>
check &quot;globalThis.process&quot; before accessing it (<a
href="https://github.com/kettanaito"><code>@​kettanaito</code></a>)</li>
</ul>
<h4>Bug Fix 🐞</h4>
<ul>
<li><a
href="https://redirect.github.com/graphql/graphql-js/pull/3707">#3707</a>
Fix crash in node when mixing sync/async resolvers (backport of <a
href="https://redirect.github.com/graphql/graphql-js/issues/3706">#3706</a>)
(<a
href="https://github.com/chrskrchr"><code>@​chrskrchr</code></a>)</li>
<li><a
href="https://redirect.github.com/graphql/graphql-js/pull/3838">#3838</a>
Fix/invalid error propagation custom scalars (backport for 16.x.x) (<a
href="https://github.com/stenreijers"><code>@​stenreijers</code></a>)</li>
</ul>
<h4>Committers: 3</h4>
<ul>
<li>Artem Zakharchenko(<a
href="https://github.com/kettanaito"><code>@​kettanaito</code></a>)</li>
<li>Chris Karcher(<a
href="https://github.com/chrskrchr"><code>@​chrskrchr</code></a>)</li>
<li>Sten Reijers(<a
href="https://github.com/stenreijers"><code>@​stenreijers</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="8a95335f54"><code>8a95335</code></a>
16.8.1</li>
<li><a
href="8f4c64eb6a"><code>8f4c64e</code></a>
OverlappingFieldsCanBeMergedRule: Fix performance degradation (<a
href="https://redirect.github.com/graphql/graphql-js/issues/3967">#3967</a>)</li>
<li><a
href="e4f759dba1"><code>e4f759d</code></a>
16.8.0</li>
<li><a
href="bec1b497fd"><code>bec1b49</code></a>
Support fourfold nested lists (<a
href="https://redirect.github.com/graphql/graphql-js/issues/3950">#3950</a>)</li>
<li><a
href="bf6a9f0e1c"><code>bf6a9f0</code></a>
16.7.1</li>
<li><a
href="a08aaeea58"><code>a08aaee</code></a>
instanceOf: workaround bundler issue with <code>process.env</code> (<a
href="https://redirect.github.com/graphql/graphql-js/issues/3923">#3923</a>)</li>
<li><a
href="1519fda273"><code>1519fda</code></a>
16.7.0</li>
<li><a
href="84bb146e64"><code>84bb146</code></a>
check &quot;globalThis.process&quot; before accessing it (<a
href="https://redirect.github.com/graphql/graphql-js/issues/3887">#3887</a>)</li>
<li><a
href="076972e9c1"><code>076972e</code></a>
Fix/invalid error propagation custom scalars (backport for 16.x.x) (<a
href="https://redirect.github.com/graphql/graphql-js/issues/3838">#3838</a>)</li>
<li><a
href="4a82557ae6"><code>4a82557</code></a>
Fix crash in node when mixing sync/async resolvers (backport of <a
href="https://redirect.github.com/graphql/graphql-js/issues/3706">#3706</a>)
(<a
href="https://redirect.github.com/graphql/graphql-js/issues/3707">#3707</a>)</li>
<li>See full diff in <a
href="https://github.com/graphql/graphql-js/compare/v16.6.0...v16.8.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=graphql&package-manager=npm_and_yarn&previous-version=16.6.0&new-version=16.8.1)](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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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-10-17 21:08:55 +02:00
..
cypress fix: make cypress list length checks more relaxed (#4933) 2023-10-05 14:50:46 +03:00
public
scripts feat: Generate new OAS types, tags component upgrade (#3269) 2023-03-15 11:35:24 +02:00
src feat: warn about sdk update with feature dependencies (#5065) 2023-10-17 13:43:49 +02:00
.editorconfig
.gitignore
.nvmrc
cypress.config.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
cypress.d.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
index.html feat: dynamic icons by adding material symbols font (#5008) 2023-10-12 11:22:23 +01:00
index.js feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
orval.config.js
package.json chore(deps): update dependency vite to v4.4.11 (#5037) 2023-10-16 01:39:47 +00:00
README.md
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts feat: biome lint frontend (#4903) 2023-10-02 13:25:46 +01:00
yarn.lock chore(deps): bump graphql from 16.6.0 to 16.8.1 in /frontend (#4810) 2023-10-17 21:08:55 +02: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