1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/frontend
renovate[bot] e5c72ee753
chore(deps): update dependency sass to v1.56.1 (#2376)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sass](https://togithub.com/sass/dart-sass) | [`1.55.0` ->
`1.56.1`](https://renovatebot.com/diffs/npm/sass/1.55.0/1.56.1) |
[![age](https://badges.renovateapi.com/packages/npm/sass/1.56.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/sass/1.56.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/sass/1.56.1/compatibility-slim/1.55.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/sass/1.56.1/confidence-slim/1.55.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>sass/dart-sass</summary>

###
[`v1.56.1`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#&#8203;1561)

[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.56.0...1.56.1)

##### Embedded Sass

- Importer results now validate that `contents` is actually a string and
whether
    `sourceMapUrl` is an absolute URL.

###
[`v1.56.0`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#&#8203;1560)

[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.55.0...1.56.0)

- **Potentially breaking change:** To match the CSS spec, SassScript
expressions
beginning with `not` or `(` are no longer supported at the beginning of
    parenthesized sections of media queries. For example,

    ```scss
    @&#8203;media (width >= 500px) and (not (grid))
    ```

    will now be emitted unchanged, instead of producing

    ```scss
    @&#8203;media (width >= 500px) and (false)
    ```

See [the Sass website](https://sass-lang.com/d/media-logic) for details.

- **Potentially breaking bug fix:** Angle units like `rad` or `turn` are
now
    properly converted to equivalent `deg` values for `hsl()`, `hsla()`,
    `adjust-hue()`, `color.adjust()`, and `color.change()`.

See [the Sass website](https://sass-lang.com/d/function-units#hue) for
    details.

- Fix indentation for selectors that span multiple lines in a `@media`
query.

- Emit a deprecation warning when passing `$alpha` values with units to
`color.adjust()` or `color.change()`. This will be an error in Dart Sass
    2.0.0.

See [the Sass website](https://sass-lang.com/d/function-units#alpha) for
    details.

- Emit a deprecation warning when passing a `$weight` value with no
units or
with units other than `%` to `color.mix()`. This will be an error in
Dart Sass
    2.0.0.

See [the Sass website](https://sass-lang.com/d/function-units#weight)
for
    details.

- Emit a deprecation warning when passing `$n` values with units to
`list.nth()`
    or `list.set-nth()`. This will be an error in Dart Sass 2.0.0.

See [the Sass website](https://sass-lang.com/d/function-units#index) for
    details.

- Improve existing deprecation warnings to wrap `/`-as-division
suggestions in
    `calc()` expressions.

- Properly mark the warning for passing numbers with units to `random()`
as a
    deprecation warning.

- Fix a bug where `@extend` could behave unpredicatably when used along
with
`meta.load-css()` and shared modules that contained no CSS themselves
but
    loaded CSS from other modules.

##### Dart API

-   Emit a deprecation warning when passing a `sassIndex` with units to
`Value.sassIndexToListIndex()`. This will be an error in Dart Sass
2.0.0.

##### JS API

- Importer results now validate whether `contents` is actually a string
type.

-   Importer result argument errors are now rendered correctly.

</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:eyJjcmVhdGVkSW5WZXIiOiIzNC4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzQuMTkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-10 16:01:53 +01:00
..
cypress Merge e2e tests into matrix (#2007) 2022-08-30 13:23:09 +00:00
public refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
scripts feat: generate an OpenAPI client (2) (#875) 2022-04-26 10:53:46 +02:00
src Feat/change request permissions (#2382) 2022-11-10 11:08:58 +01:00
.editorconfig
.gitignore Feat/grouping fixes (#1146) 2022-07-25 10:14:02 +00:00
.nvmrc chore(deps): update node.js to v14.21.1 (#2385) 2022-11-10 15:58:42 +01:00
.prettierignore feat: generate an OpenAPI client (2) (#875) 2022-04-26 10:53:46 +02:00
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.json chore: update cypress (#1170) 2022-08-01 11:50:59 +02:00
index.html refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
index.js
package.json chore(deps): update dependency sass to v1.56.1 (#2376) 2022-11-10 16:01:53 +01:00
README.md docs: Remove/update references to Heroku (#2099) 2022-10-19 12:02:00 +00:00
tsconfig.json fix: limit total of PATs a user can have (#2301) 2022-11-02 08:11:35 +00:00
tsconfig.node.json refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
vercel.json refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
vite.config.ts Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
yarn fix: auto add stratgy when enabling empty env. (#2137) 2022-10-05 23:33:36 +02:00
yarn.lock chore(deps): update dependency sass to v1.56.1 (#2376) 2022-11-10 16:01:53 +01: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.