1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] 886774d89f
chore(deps): update dependency date-fns-tz to v2 (#3177)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [date-fns-tz](https://togithub.com/marnusw/date-fns-tz) | [`^1.3.7` ->
`^2.0.0`](https://renovatebot.com/diffs/npm/date-fns-tz/1.3.7/2.0.0) |
[![age](https://badges.renovateapi.com/packages/npm/date-fns-tz/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/date-fns-tz/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/date-fns-tz/2.0.0/compatibility-slim/1.3.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/date-fns-tz/2.0.0/confidence-slim/1.3.7)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>marnusw/date-fns-tz</summary>

###
[`v2.0.0`](https://togithub.com/marnusw/date-fns-tz/blob/HEAD/CHANGELOG.md#v200-30-January-2023)

[Compare
Source](https://togithub.com/marnusw/date-fns-tz/compare/v1.3.8...v2.0.0)

- \[BREAKING CHANGE] Optimize configuration for ESM exports (entry
points for cjs / esm / typescript)
([#&#8203;212](https://togithub.com/marnusw/date-fns-tz/issues/212))

**Upgrade guide:** Both CJS and ESM imports now use the default import
paths. CJS will continue working unchanged;
to fix ESM imports:

Before:

```js
import { format } from 'date-fns-tz/esm'
import utcToZonedTime from 'date-fns-tz/esm/utcToZonedTime'
```

After:

```js
import { format } from 'date-fns-tz'
import utcToZonedTime from 'date-fns-tz/utcToZonedTime'
```

###
[`v1.3.8`](https://togithub.com/marnusw/date-fns-tz/blob/HEAD/CHANGELOG.md#v138-30-January-2023)

[Compare
Source](https://togithub.com/marnusw/date-fns-tz/compare/v1.3.7...v1.3.8)

- \[TESTS] Tests documenting `zonedTimeToUtc` daylight saving jumps
([#&#8203;220](https://togithub.com/marnusw/date-fns-tz/issues/220))
- \[TYPES] Update `format` types to match date-fns
([#&#8203;199](https://togithub.com/marnusw/date-fns-tz/issues/199))
- \[BUGFIX] Fixed `undefined` timezone error
([#&#8203;214](https://togithub.com/marnusw/date-fns-tz/issues/214))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDguMCIsInVwZGF0ZWRJblZlciI6IjM0LjE0OC4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 15:07:34 +01:00
..
cypress refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
public
src feat: add url/query sort/search to sign on log table (#3215) 2023-02-28 13:51:38 +00:00
.editorconfig add editorconfig 2016-12-05 23:08:32 +01:00
.gitignore Feat/grouping fixes (#1146) 2022-07-25 10:14:02 +00:00
.nvmrc
.prettierignore Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.json
index.html ui flags replaced in index.html (#2617) 2022-12-07 14:31:27 +02:00
index.js
orval.config.js Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
package.json chore(deps): update dependency date-fns-tz to v2 (#3177) 2023-02-28 15:07:34 +01:00
README.md Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
tsconfig.json Add multiple tags (#3032) 2023-02-03 12:28:06 +02:00
tsconfig.node.json Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
vercel.json fix: update vercel proxy paths (#2623) 2022-12-07 13:00:51 +01:00
vite.config.ts fix: preload error (#2980) 2023-01-24 20:40:03 +01:00
yarn.lock chore(deps): update dependency date-fns-tz to v2 (#3177) 2023-02-28 15:07:34 +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.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory