1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/frontend/package.json
renovate[bot] c979cf8dce
chore(deps): update dependency vitest to v0.32.2 (#4059)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>vitest-dev/vitest</summary>

###
[`v0.32.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.2)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2)

#####    🐞 Bug Fixes

- **browser**: Don't fail on importing diff-sequences  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va)
[<samp>(00b0e)</samp>](https://togithub.com/vitest-dev/vitest/commit/00b0e6a3)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.1...v0.32.2)

###
[`v0.32.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.1)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1)

#####    🚀 Features

- Export `registerConsoleShortcuts` from `vitest/node`  -  by
[@&#8203;deot](https://togithub.com/deot) in
[https://github.com/vitest-dev/vitest/issues/3563](https://togithub.com/vitest-dev/vitest/issues/3563)
[<samp>(bc49b)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc49bac7)
- **expect**: Support `expect.unreachable`  -  by
[@&#8203;fenghan34](https://togithub.com/fenghan34) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3556](https://togithub.com/vitest-dev/vitest/issues/3556)
[<samp>(8e385)</samp>](https://togithub.com/vitest-dev/vitest/commit/8e385bb0)
- **runner**: `describe`/`test` name support anonymous function  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3562](https://togithub.com/vitest-dev/vitest/issues/3562)
[<samp>(3d436)</samp>](https://togithub.com/vitest-dev/vitest/commit/3d43638c)

#####    🐞 Bug Fixes

- Avoid call stack recursion with large error (fix:
[#&#8203;3060](https://togithub.com/vitest-dev/vitest/issues/3060))  - 
by [@&#8203;nathanmmiller](https://togithub.com/nathanmmiller) and
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3078](https://togithub.com/vitest-dev/vitest/issues/3078)
and
[https://github.com/vitest-dev/vitest/issues/3060](https://togithub.com/vitest-dev/vitest/issues/3060)
[<samp>(02196)</samp>](https://togithub.com/vitest-dev/vitest/commit/02196f9d)
- Automatically remove define related configuration  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3552](https://togithub.com/vitest-dev/vitest/issues/3552)
[<samp>(368b8)</samp>](https://togithub.com/vitest-dev/vitest/commit/368b8259)
- Import `performance` from `perf_hooks`  -  by
[@&#8203;Max10240](https://togithub.com/Max10240) and
**wangbaolong.wbl** in
[https://github.com/vitest-dev/vitest/issues/3578](https://togithub.com/vitest-dev/vitest/issues/3578)
and
[https://github.com/vitest-dev/vitest/issues/3579](https://togithub.com/vitest-dev/vitest/issues/3579)
[<samp>(24ec8)</samp>](https://togithub.com/vitest-dev/vitest/commit/24ec85a8)
- Revert concordance diff, use jest's diff output  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3582](https://togithub.com/vitest-dev/vitest/issues/3582)
[<samp>(9c7ea)</samp>](https://togithub.com/vitest-dev/vitest/commit/9c7ea382)
- Typo in config suggestion  -  by
[@&#8203;Krisell](https://togithub.com/Krisell) in
[https://github.com/vitest-dev/vitest/issues/3583](https://togithub.com/vitest-dev/vitest/issues/3583)
[<samp>(68985)</samp>](https://togithub.com/vitest-dev/vitest/commit/689855bb)
-   **browser**:
- Change optimized deps to use `vitest`  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3580](https://togithub.com/vitest-dev/vitest/issues/3580)
[<samp>(b4ac8)</samp>](https://togithub.com/vitest-dev/vitest/commit/b4ac88e9)
- Access **vi_inject** only if it was injected  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3587](https://togithub.com/vitest-dev/vitest/issues/3587)
[<samp>(d9e14)</samp>](https://togithub.com/vitest-dev/vitest/commit/d9e1419a)
-   **mocker**:
- Respect namespace import when hoisting vi.mock  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3547](https://togithub.com/vitest-dev/vitest/issues/3547)
[<samp>(158c4)</samp>](https://togithub.com/vitest-dev/vitest/commit/158c4bb0)
-   **ui**:
- Navigate to dashboard when re-running tests from coverage page  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3529](https://togithub.com/vitest-dev/vitest/issues/3529)
[<samp>(bc283)</samp>](https://togithub.com/vitest-dev/vitest/commit/bc283ae3)
-   **vite-node**:
- Correctly resolve virtual modules  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3544](https://togithub.com/vitest-dev/vitest/issues/3544)
[<samp>(0cbb0)</samp>](https://togithub.com/vitest-dev/vitest/commit/0cbb07b4)
- Fix errors caused by commonjs export circular references  -  by
[@&#8203;rxliuli](https://togithub.com/rxliuli) in
[https://github.com/vitest-dev/vitest/issues/3570](https://togithub.com/vitest-dev/vitest/issues/3570)
[<samp>(b097c)</samp>](https://togithub.com/vitest-dev/vitest/commit/b097cef8)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.32.0...v0.32.1)

###
[`v0.32.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.32.0)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0)

#####    🚨 Breaking Changes

- Throw an error, if the module cannot be resolved  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3307](https://togithub.com/vitest-dev/vitest/issues/3307)
[<samp>(1ad63)</samp>](https://togithub.com/vitest-dev/vitest/commit/1ad63b0c)
- Vitest used to fall back to the original import when it could not
resolve it to the file path or the virtual module. This leads to
hard-to-find module graph mismatches if you had incorrect alias or
relied on relative imports to be resolved to the project root (which is
usual behavior in TypeScript) because the code accidentally "worked".
With this release, Vitest will now throw an error if it cannot resolve
the module - there are possible edge cases that are not covered yet, so
if you have any problems with this, please open a separate issue with
reproduction.
- Improve globs  -  by
[@&#8203;nickmccurdy](https://togithub.com/nickmccurdy) in
[https://github.com/vitest-dev/vitest/issues/3392](https://togithub.com/vitest-dev/vitest/issues/3392)
[<samp>(19ecc)</samp>](https://togithub.com/vitest-dev/vitest/commit/19ecc6c7)
- Vitest now has glob patterns similar to Jest for better compatibility.
It's possible that some files will be considered test files when
previously they were not. For example, Vitest now considers `test.js` to
be a test file. Also any file in `__tests__` is now considered to be a
test, not just files with `test` or `spec` suffix.
- Add `@vitest/coverage-v8` package  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3339](https://togithub.com/vitest-dev/vitest/issues/3339)
[<samp>(82112)</samp>](https://togithub.com/vitest-dev/vitest/commit/821126f1)
- Vitest now uses v8 code coverage directly for better performance.
`@vitest/coverage-c8` is deprecated as Vitest no longer uses c8 package
for coverage output. It will not be updated anymore, and Vitest will
fail in the next version if the user has `c8` as their coverage
provider. Please, install the new `@vitest/coverage-v8` package if you
previously used `@vitest/coverage-c8`.
- **mocker**: Don't restore mock to the original if the module is
automocked  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3518](https://togithub.com/vitest-dev/vitest/issues/3518)
[<samp>(c1004)</samp>](https://togithub.com/vitest-dev/vitest/commit/c1004e14)
- `spy.mockRestore` on auto-mocked named exports will no longer restore
their implementation to the actual function. This behavior better
matches what Jest does.

#####    🚀 Features

- Support ssr optimizer  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3490](https://togithub.com/vitest-dev/vitest/issues/3490)
[<samp>(89842)</samp>](https://togithub.com/vitest-dev/vitest/commit/898422b0)
- Image type add apng  -  by [@&#8203;btea](https://togithub.com/btea)
in
[https://github.com/vitest-dev/vitest/issues/3498](https://togithub.com/vitest-dev/vitest/issues/3498)
[<samp>(a53c2)</samp>](https://togithub.com/vitest-dev/vitest/commit/a53c2151)
- **expect**: Support `expect.soft`  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3507](https://togithub.com/vitest-dev/vitest/issues/3507)
[<samp>(7c687)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c687ada)
- **runner**: Support using function/class as `describe`/`test` name  - 
by [@&#8203;fenghan34](https://togithub.com/fenghan34) in
[https://github.com/vitest-dev/vitest/issues/3497](https://togithub.com/vitest-dev/vitest/issues/3497)
[<samp>(15253)</samp>](https://togithub.com/vitest-dev/vitest/commit/15253890)

#####    🐞 Bug Fixes

- The cli option is passed to coverage.exclude  -  by
[@&#8203;btea](https://togithub.com/btea) in
[https://github.com/vitest-dev/vitest/issues/3506](https://togithub.com/vitest-dev/vitest/issues/3506)
[<samp>(c37cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/c37cdebe)
- **optimizer**: Always respect optimizeDeps even if include/exclude is
overridden  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3488](https://togithub.com/vitest-dev/vitest/issues/3488)
[<samp>(eb285)</samp>](https://togithub.com/vitest-dev/vitest/commit/eb285ea0)
- **runner**: Ensure Vitest is deduped  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3489](https://togithub.com/vitest-dev/vitest/issues/3489)
[<samp>(2deb7)</samp>](https://togithub.com/vitest-dev/vitest/commit/2deb70ab)
- **ui**: Don't cache coverage assets  -  by
[@&#8203;userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3508](https://togithub.com/vitest-dev/vitest/issues/3508)
[<samp>(952b5)</samp>](https://togithub.com/vitest-dev/vitest/commit/952b5be6)
- **vite-node**: Circular import stuck  -  by
[@&#8203;Dunqing](https://togithub.com/Dunqing) in
[https://github.com/vitest-dev/vitest/issues/3480](https://togithub.com/vitest-dev/vitest/issues/3480)
[<samp>(50f07)</samp>](https://togithub.com/vitest-dev/vitest/commit/50f0700d)
- **watch**: Junit reporter fails to re-generate report  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3496](https://togithub.com/vitest-dev/vitest/issues/3496)
[<samp>(5b73c)</samp>](https://togithub.com/vitest-dev/vitest/commit/5b73cbf8)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.31.4...v0.32.0)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-27 14:09:08 +00:00

167 lines
5.7 KiB
JSON

{
"name": "unleash-frontend-local",
"version": "0.0.0",
"private": true,
"files": [
"index.js",
"build"
],
"engines": {
"node": ">=18"
},
"scripts": {
"build": "vite build",
"dev": "vite",
"start": "vite",
"start:prod": "vite build && vite preview",
"start:sandbox": "UNLEASH_API=https://sandbox.getunleash.io/ospro yarn run start",
"start:demo2": "UNLEASH_API=https://sandbox.getunleash.io/ UNLEASH_BASE_PATH=/demo2/ yarn run start",
"start:enterprise": "UNLEASH_API=https://unleash.herokuapp.com VITE_TEST_REDIRECT=true yarn run start",
"start:demo": "UNLEASH_BASE_PATH=/demo/ UNLEASH_API=https://app.unleash-hosted.com/ yarn run start",
"test": "tsc && NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" vitest run",
"test:snapshot": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" yarn test -u",
"test:watch": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" vitest watch",
"lint": "eslint --fix ./src",
"lint:check": "eslint ./src",
"fmt": "prettier src --write --loglevel warn",
"fmt:check": "prettier src --check",
"ts:check": "tsc",
"e2e": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
"e2e:heroku": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" yarn run cypress open --config baseUrl='https://unleash.herokuapp.com' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
"gen:api": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" orval --config orval.config.js",
"gen:api:demo": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" UNLEASH_OPENAPI_URL=https://app.unleash-hosted.com/demo/docs/openapi.json yarn run gen:api",
"gen:api:sandbox": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" UNLEASH_OPENAPI_URL=https://sandbox.getunleash.io/demo2/docs/openapi.json yarn run gen:api"
},
"devDependencies": {
"@codemirror/lang-json": "6.0.1",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@mui/icons-material": "5.11.9",
"@mui/lab": "5.0.0-alpha.120",
"@mui/material": "5.11.10",
"@testing-library/dom": "8.20.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "7.0.2",
"@testing-library/user-event": "14.4.3",
"@types/debounce": "1.2.1",
"@types/deep-diff": "1.0.2",
"@types/jest": "29.5.2",
"@types/lodash.clonedeep": "4.5.7",
"@types/lodash.omit": "4.5.7",
"@types/node": "17.0.18",
"@types/react": "17.0.62",
"@types/react-dom": "17.0.20",
"@types/react-linkify": "1.0.1",
"@types/react-router-dom": "5.3.3",
"@types/react-table": "7.7.14",
"@types/react-test-renderer": "17.0.2",
"@types/react-timeago": "4.1.3",
"@types/semver": "7.5.0",
"@types/uuid": "^9.0.0",
"@uiw/codemirror-theme-duotone": "4.21.3",
"@uiw/react-codemirror": "4.21.1",
"@vitejs/plugin-react": "3.1.0",
"cartesian": "^1.0.1",
"chart.js": "3.9.1",
"chartjs-adapter-date-fns": "3.0.0",
"classnames": "2.3.2",
"copy-to-clipboard": "3.3.3",
"countries-and-timezones": "^3.4.0",
"cypress": "12.12.0",
"cypress-vite": "^1.4.0",
"date-fns": "2.30.0",
"date-fns-tz": "^2.0.0",
"debounce": "1.2.1",
"deep-diff": "1.0.2",
"dequal": "2.0.3",
"eslint": "8.43.0",
"eslint-config-react-app": "7.0.1",
"fast-json-patch": "3.1.1",
"http-proxy-middleware": "2.0.6",
"immer": "9.0.21",
"jsdom": "21.1.2",
"lodash.clonedeep": "4.5.0",
"lodash.omit": "4.5.0",
"mermaid": "^9.3.0",
"millify": "^5.0.1",
"msw": "0.49.3",
"pkginfo": "0.4.1",
"plausible-tracker": "0.3.8",
"prettier": "2.8.1",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-chartjs-2": "4.3.1",
"react-confetti": "^6.1.0",
"react-dom": "17.0.2",
"react-dropzone": "14.2.3",
"react-error-boundary": "3.1.4",
"react-hooks-global-state": "2.1.0",
"react-joyride": "^2.5.3",
"react-linkify": "^1.0.0-alpha",
"react-markdown": "^8.0.4",
"react-router-dom": "6.11.2",
"react-table": "7.8.0",
"react-test-renderer": "17.0.2",
"react-timeago": "7.1.0",
"sass": "1.63.4",
"semver": "7.5.2",
"swr": "2.1.5",
"tss-react": "4.8.6",
"typescript": "4.8.4",
"vite": "4.3.9",
"vite-plugin-env-compatible": "1.1.1",
"vite-plugin-svgr": "2.4.0",
"vite-tsconfig-paths": "4.2.0",
"vitest": "0.32.2",
"whatwg-fetch": "3.6.2"
},
"optionalDependencies": {
"orval": "^6.10.3"
},
"resolutions": {
"@codemirror/state": "6.2.1",
"@xmldom/xmldom": "^0.8.4",
"json5": "^2.2.2",
"@types/react": "17.0.62",
"@types/react-dom": "17.0.20"
},
"jest": {
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js",
"\\.svg": "<rootDir>/src/__mocks__/svgMock.js",
"\\.(css|scss)$": "identity-obj-proxy"
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false
},
"rules": {
"no-restricted-globals": "off",
"no-useless-computed-key": "off",
"import/no-anonymous-default-export": "off",
"react-hooks/exhaustive-deps": "off"
},
"ignorePatterns": [
"cypress"
]
}
}