2016-11-10 14:26:24 +01:00
|
|
|
{
|
2022-08-26 09:25:31 +02:00
|
|
|
"name": "unleash-frontend-local",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"private": true,
|
2016-12-23 10:58:33 +01:00
|
|
|
"files": [
|
|
|
|
"index.js",
|
2021-04-07 09:04:48 +02:00
|
|
|
"build/"
|
2016-12-23 10:58:33 +01:00
|
|
|
],
|
2016-11-10 14:26:24 +01:00
|
|
|
"engines": {
|
2021-05-05 22:18:35 +02:00
|
|
|
"node": ">=14"
|
2016-11-10 14:26:24 +01:00
|
|
|
},
|
|
|
|
"scripts": {
|
2022-08-30 10:52:30 +02:00
|
|
|
"build": "vite build",
|
2022-10-03 12:20:47 +02:00
|
|
|
"lint": "yarn fmt:check",
|
2022-05-05 17:15:22 +02:00
|
|
|
"start": "vite",
|
2022-10-19 14:02:00 +02:00
|
|
|
"start:sandbox": "UNLEASH_API=https://sandbox.getunleash.io/ospro yarn run start",
|
2022-03-25 12:13:39 +01:00
|
|
|
"start:enterprise": "UNLEASH_API=https://unleash4.herokuapp.com yarn run start",
|
2022-06-23 08:54:08 +02:00
|
|
|
"start:demo": "UNLEASH_BASE_PATH=/demo/ yarn start",
|
2022-08-30 10:52:30 +02:00
|
|
|
"test": "tsc && vitest run",
|
2022-08-26 09:25:31 +02:00
|
|
|
"test:watch": "vitest watch",
|
2022-02-18 09:51:10 +01:00
|
|
|
"fmt": "prettier src --write --loglevel warn",
|
|
|
|
"fmt:check": "prettier src --check",
|
2022-09-30 13:01:32 +02:00
|
|
|
"ts:check": "tsc",
|
2022-03-25 12:13:39 +01:00
|
|
|
"e2e": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
|
2022-07-22 08:53:42 +02:00
|
|
|
"e2e:heroku": "yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=example@example.com",
|
2022-08-26 09:25:31 +02:00
|
|
|
"prepare": "yarn run build"
|
2016-11-10 14:26:24 +01:00
|
|
|
},
|
2021-04-09 13:38:30 +02:00
|
|
|
"devDependencies": {
|
2022-10-26 22:13:52 +02:00
|
|
|
"@codemirror/lang-json": "6.0.1",
|
2022-10-28 09:44:02 +02:00
|
|
|
"@emotion/react": "11.10.5",
|
|
|
|
"@emotion/styled": "11.10.5",
|
2022-08-30 15:01:13 +02:00
|
|
|
"@mui/icons-material": "5.10.3",
|
|
|
|
"@mui/lab": "5.0.0-alpha.97",
|
|
|
|
"@mui/material": "5.10.3",
|
2022-10-06 02:56:01 +02:00
|
|
|
"@openapitools/openapi-generator-cli": "2.5.2",
|
2022-10-11 01:04:32 +02:00
|
|
|
"@testing-library/dom": "8.19.0",
|
2022-08-19 13:16:00 +02:00
|
|
|
"@testing-library/jest-dom": "5.16.5",
|
2022-04-17 20:16:53 +02:00
|
|
|
"@testing-library/react": "12.1.5",
|
2022-08-18 15:56:39 +02:00
|
|
|
"@testing-library/react-hooks": "7.0.2",
|
2022-08-19 16:07:17 +02:00
|
|
|
"@testing-library/user-event": "14.4.3",
|
2021-09-29 21:11:52 +02:00
|
|
|
"@types/debounce": "1.2.1",
|
2021-11-08 16:02:06 +01:00
|
|
|
"@types/deep-diff": "1.0.1",
|
2022-11-09 23:04:49 +01:00
|
|
|
"@types/jest": "29.2.2",
|
2022-04-28 16:57:43 +02:00
|
|
|
"@types/lodash.clonedeep": "4.5.7",
|
2022-02-25 10:55:39 +01:00
|
|
|
"@types/node": "17.0.18",
|
2022-10-27 23:07:30 +02:00
|
|
|
"@types/react": "17.0.52",
|
2022-10-28 02:38:23 +02:00
|
|
|
"@types/react-dom": "17.0.18",
|
2022-05-05 15:34:46 +02:00
|
|
|
"@types/react-router-dom": "5.3.3",
|
2022-05-11 18:38:49 +02:00
|
|
|
"@types/react-table": "7.7.12",
|
2022-04-28 21:16:06 +02:00
|
|
|
"@types/react-test-renderer": "17.0.2",
|
2021-10-08 19:04:55 +02:00
|
|
|
"@types/react-timeago": "4.1.3",
|
2022-10-27 08:44:24 +02:00
|
|
|
"@types/semver": "7.3.13",
|
2022-11-10 07:24:17 +01:00
|
|
|
"@uiw/codemirror-theme-duotone": "4.13.0",
|
2022-11-10 15:59:52 +01:00
|
|
|
"@uiw/react-codemirror": "4.13.0",
|
2022-10-28 23:28:28 +02:00
|
|
|
"@vitejs/plugin-react": "2.2.0",
|
2022-08-04 16:46:41 +02:00
|
|
|
"chart.js": "3.9.1",
|
2022-02-21 18:02:59 +01:00
|
|
|
"chartjs-adapter-date-fns": "2.0.0",
|
2022-10-07 04:41:23 +02:00
|
|
|
"classnames": "2.3.2",
|
2022-08-03 13:46:10 +02:00
|
|
|
"copy-to-clipboard": "3.3.2",
|
2022-08-01 11:50:59 +02:00
|
|
|
"cypress": "9.7.0",
|
2022-10-07 07:12:58 +02:00
|
|
|
"date-fns": "2.29.3",
|
2021-09-27 09:12:17 +02:00
|
|
|
"debounce": "1.2.1",
|
2021-11-08 16:02:06 +01:00
|
|
|
"deep-diff": "1.0.2",
|
2022-10-10 12:18:37 +02:00
|
|
|
"dequal": "2.0.3",
|
2022-11-10 08:21:34 +01:00
|
|
|
"eslint": "8.27.0",
|
2022-08-18 15:56:39 +02:00
|
|
|
"eslint-config-react-app": "7.0.1",
|
2022-03-24 20:06:59 +01:00
|
|
|
"fast-json-patch": "3.1.1",
|
2022-04-29 01:07:23 +02:00
|
|
|
"http-proxy-middleware": "2.0.6",
|
2022-10-22 21:06:38 +02:00
|
|
|
"immer": "9.0.16",
|
2022-11-09 20:53:39 +01:00
|
|
|
"jsdom": "20.0.2",
|
2021-09-27 09:12:17 +02:00
|
|
|
"lodash.clonedeep": "4.5.0",
|
2022-10-12 17:19:37 +02:00
|
|
|
"millify": "^5.0.1",
|
2022-11-10 08:21:18 +01:00
|
|
|
"msw": "0.48.1",
|
2022-08-18 15:56:39 +02:00
|
|
|
"pkginfo": "0.4.1",
|
2022-06-07 17:35:57 +02:00
|
|
|
"plausible-tracker": "0.3.8",
|
2022-06-17 14:16:53 +02:00
|
|
|
"prettier": "2.7.1",
|
2022-02-11 01:34:06 +01:00
|
|
|
"prop-types": "15.8.1",
|
2021-09-27 09:12:17 +02:00
|
|
|
"react": "17.0.2",
|
2022-08-02 05:44:13 +02:00
|
|
|
"react-chartjs-2": "4.3.1",
|
2021-09-27 09:12:17 +02:00
|
|
|
"react-dom": "17.0.2",
|
2022-10-10 12:18:37 +02:00
|
|
|
"react-error-boundary": "3.1.4",
|
2022-08-23 11:51:17 +02:00
|
|
|
"react-hooks-global-state": "2.0.0",
|
2022-10-22 12:24:45 +02:00
|
|
|
"react-router-dom": "6.4.2",
|
2022-05-17 16:33:12 +02:00
|
|
|
"react-table": "7.8.0",
|
2022-02-25 10:55:39 +01:00
|
|
|
"react-test-renderer": "17.0.2",
|
2022-06-13 09:07:14 +02:00
|
|
|
"react-timeago": "7.1.0",
|
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#​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#​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
@​media (width >= 500px) and (not (grid))
```
will now be emitted unchanged, instead of producing
```scss
@​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
|
|
|
"sass": "1.56.1",
|
2022-10-07 16:42:35 +02:00
|
|
|
"semver": "7.3.8",
|
2022-04-30 13:18:26 +02:00
|
|
|
"swr": "1.3.0",
|
2022-08-30 08:23:37 +02:00
|
|
|
"tss-react": "4.0.0",
|
2022-10-07 19:54:29 +02:00
|
|
|
"typescript": "4.8.4",
|
chore(deps): update dependency vite to v3.2.3 (#2364)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://togithub.com/vitejs/vite/tree/main/#readme)
([source](https://togithub.com/vitejs/vite)) | [`3.2.1` ->
`3.2.3`](https://renovatebot.com/diffs/npm/vite/3.2.1/3.2.3) |
[![age](https://badges.renovateapi.com/packages/npm/vite/3.2.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vite/3.2.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vite/3.2.3/compatibility-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vite/3.2.3/confidence-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>vitejs/vite</summary>
###
[`v3.2.3`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small323-2022-11-07-small)
[Compare
Source](https://togithub.com/vitejs/vite/compare/v3.2.2...v3.2.3)
- refactor: change style.innerHTML to style.textContent
([#​10801](https://togithub.com/vitejs/vite/issues/10801))
([8ea71b4](https://togithub.com/vitejs/vite/commit/8ea71b4)), closes
[#​10801](https://togithub.com/vitejs/vite/issues/10801)
- fix: add `@types/node` as an optional peer dependency
([#​10757](https://togithub.com/vitejs/vite/issues/10757))
([57916a4](https://togithub.com/vitejs/vite/commit/57916a4)), closes
[#​10757](https://togithub.com/vitejs/vite/issues/10757)
- fix: transform import.meta.glob when scan JS/TS
[#​10634](https://togithub.com/vitejs/vite/issues/10634)
([#​10635](https://togithub.com/vitejs/vite/issues/10635))
([c53ffec](https://togithub.com/vitejs/vite/commit/c53ffec)), closes
[#​10634](https://togithub.com/vitejs/vite/issues/10634)
[#​10635](https://togithub.com/vitejs/vite/issues/10635)
- fix(css): url() with variable in sass/less (fixes
[#​3644](https://togithub.com/vitejs/vite/issues/3644),
[#​7651](https://togithub.com/vitejs/vite/issues/7651))
([#​10741](https://togithub.com/vitejs/vite/issues/10741))
([fa2e47f](https://togithub.com/vitejs/vite/commit/fa2e47f)), closes
[#​3644](https://togithub.com/vitejs/vite/issues/3644)
[#​7651](https://togithub.com/vitejs/vite/issues/7651)
[#​10741](https://togithub.com/vitejs/vite/issues/10741)
- feat: add `vite:afterUpdate` event
([#​9810](https://togithub.com/vitejs/vite/issues/9810))
([1f57f84](https://togithub.com/vitejs/vite/commit/1f57f84)), closes
[#​9810](https://togithub.com/vitejs/vite/issues/9810)
- perf: improve `multilineCommentsRE` regex (fix
[#​10689](https://togithub.com/vitejs/vite/issues/10689))
([#​10751](https://togithub.com/vitejs/vite/issues/10751))
([51ed059](https://togithub.com/vitejs/vite/commit/51ed059)), closes
[#​10689](https://togithub.com/vitejs/vite/issues/10689)
[#​10751](https://togithub.com/vitejs/vite/issues/10751)
- perf: Use only one ps exec to find a Chromium browser opened on Mac OS
([#​10588](https://togithub.com/vitejs/vite/issues/10588))
([f199e90](https://togithub.com/vitejs/vite/commit/f199e90)), closes
[#​10588](https://togithub.com/vitejs/vite/issues/10588)
- chore: fix dev build replacing undefined
([#​10740](https://togithub.com/vitejs/vite/issues/10740))
([1358a3c](https://togithub.com/vitejs/vite/commit/1358a3c)), closes
[#​10740](https://togithub.com/vitejs/vite/issues/10740)
- chore: remove non used type definitions
([#​10738](https://togithub.com/vitejs/vite/issues/10738))
([ee8c7a6](https://togithub.com/vitejs/vite/commit/ee8c7a6)), closes
[#​10738](https://togithub.com/vitejs/vite/issues/10738)
- chore(deps): update dependency
[@​rollup/plugin-commonjs](https://togithub.com/rollup/plugin-commonjs)
to v23 ([#​10611](https://togithub.com/vitejs/vite/issues/10611))
([cc4be70](https://togithub.com/vitejs/vite/commit/cc4be70)), closes
[#​10611](https://togithub.com/vitejs/vite/issues/10611)
- chore(deps): update dependency
[@​rollup/plugin-dynamic-import-vars](https://togithub.com/rollup/plugin-dynamic-import-vars)
to v2 ([#​10726](https://togithub.com/vitejs/vite/issues/10726))
([326f782](https://togithub.com/vitejs/vite/commit/326f782)), closes
[#​10726](https://togithub.com/vitejs/vite/issues/10726)
###
[`v3.2.2`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small322-2022-10-31-small)
[Compare
Source](https://togithub.com/vitejs/vite/compare/47a78db49740daee873525de90d0e44b19883771...v3.2.2)
- chore: remove src/client from package
([#​10703](https://togithub.com/vitejs/vite/issues/10703))
([816842e](https://togithub.com/vitejs/vite/commit/816842e)), closes
[#​10703](https://togithub.com/vitejs/vite/issues/10703)
- chore(deps): update all non-major dependencies
([#​10725](https://togithub.com/vitejs/vite/issues/10725))
([22cfad8](https://togithub.com/vitejs/vite/commit/22cfad8)), closes
[#​10725](https://togithub.com/vitejs/vite/issues/10725)
- fix: remove loaded input sourcemap (fixes
[#​8411](https://togithub.com/vitejs/vite/issues/8411))
([#​10705](https://togithub.com/vitejs/vite/issues/10705))
([eb50e3a](https://togithub.com/vitejs/vite/commit/eb50e3a)), closes
[#​8411](https://togithub.com/vitejs/vite/issues/8411)
[#​10705](https://togithub.com/vitejs/vite/issues/10705)
- fix: tsconfig `jsx` overrides esbuild options, reverts
[#​10374](https://togithub.com/vitejs/vite/issues/10374)
([#​10714](https://togithub.com/vitejs/vite/issues/10714))
([aacf6a4](https://togithub.com/vitejs/vite/commit/aacf6a4)), closes
[#​10374](https://togithub.com/vitejs/vite/issues/10374)
[#​10714](https://togithub.com/vitejs/vite/issues/10714)
- docs(changelog): fix broken url
([#​10692](https://togithub.com/vitejs/vite/issues/10692))
([f937ccc](https://togithub.com/vitejs/vite/commit/f937ccc)), closes
[#​10692](https://togithub.com/vitejs/vite/issues/10692)
</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-09 23:30:23 +01:00
|
|
|
"vite": "3.2.3",
|
2022-08-18 15:56:39 +02:00
|
|
|
"vite-plugin-env-compatible": "1.1.1",
|
2022-10-19 19:33:20 +02:00
|
|
|
"vite-plugin-svgr": "2.2.2",
|
2022-10-21 03:56:06 +02:00
|
|
|
"vite-tsconfig-paths": "3.5.2",
|
chore(deps): update dependency vitest to v0.25.1 (#2384)
[![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.24.3` ->
`0.25.1`](https://renovatebot.com/diffs/npm/vitest/0.24.3/0.25.1) |
[![age](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/compatibility-slim/0.24.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.25.1/confidence-slim/0.24.3)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>vitest-dev/vitest</summary>
###
[`v0.25.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.1)
[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.25.0...v0.25.1)
##### 🚀 Features
- Add `vi.setConfig` helper - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2293](https://togithub.com/vitest-dev/vitest/issues/2293)
- Allow hooks to be executed in a stack or list - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2294](https://togithub.com/vitest-dev/vitest/issues/2294)
##### 🐞 Bug Fixes
- Always rewrite defined jsdom keys - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2290](https://togithub.com/vitest-dev/vitest/issues/2290)
- Default reporter regression - by
[@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/2292](https://togithub.com/vitest-dev/vitest/issues/2292)
- Don't fail `bench` when using options - by
[@​poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2295](https://togithub.com/vitest-dev/vitest/issues/2295)
##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.25.0...v0.25.1)
###
[`v0.25.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.25.0)
[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.5...v0.25.0)
##### ✅ Builtin TypeChecking
In v0.25.0, Vitest allows you to write tests for your types, using
`expectTypeOf` or `assertType` syntaxes. By default all tests inside
`*.test-d.ts` files are considered type tests. Run `vitest typecheck` to
run type tests.
```ts
// my.test-d.ts
import { assertType, expectTypeOf } from 'vitest'
import { mount } from './mount.js'
test('my types work properly', () => {
expectTypeOf(mount).toBeFunction()
expectTypeOf(mount).parameter(0).toMatchTypeOf<{ name: string }>()
// @​ts-expect-error name is a string
assertType(mount({ name: 42 }))
})
```
Learn more at [the
documentation](https://vitest.dev/guide/testing-types.html) and this
[RFC](https://togithub.com/vitest-dev/vitest/issues/1954)
##### 🚨 Breaking Changes
- Return context in `startVitest()` - by
[@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/2072](https://togithub.com/vitest-dev/vitest/issues/2072)
##### 🚀 Features
- `onTestFailed` hook - by [@​antfu](https://togithub.com/antfu)
in
[https://github.com/vitest-dev/vitest/issues/2210](https://togithub.com/vitest-dev/vitest/issues/2210)
- Display error frame if present (like Vite) - by
[@​haikyuu](https://togithub.com/haikyuu) and
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2257](https://togithub.com/vitest-dev/vitest/issues/2257)
- Benchmark table report - by
[@​poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2179](https://togithub.com/vitest-dev/vitest/issues/2179)
- Add typechecking functionality - by
[@​sheremet-va](https://togithub.com/sheremet-va) and
[@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/2107](https://togithub.com/vitest-dev/vitest/issues/2107)
##### 🐞 Bug Fixes
- Clear full screen only in watch mode - by
[@​sheremet-va](https://togithub.com/sheremet-va)
[<samp>(c3d89)</samp>](https://togithub.com/vitest-dev/vitest/commit/c3d89504)
- Don't serialize symbols and immutables - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2266](https://togithub.com/vitest-dev/vitest/issues/2266)
- Use --conditions instead of -C - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2267](https://togithub.com/vitest-dev/vitest/issues/2267)
- Show correct stack trace in errors and console - by
[@​sheremet-va](https://togithub.com/sheremet-va) and
[@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/2248](https://togithub.com/vitest-dev/vitest/issues/2248)
- Align `.each` behavior with jest - by
[@​bartoszgolebiowski](https://togithub.com/bartoszgolebiowski)
and [@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/2064](https://togithub.com/vitest-dev/vitest/issues/2064)
- Remove undefined values in options - by
[@​g4rry420](https://togithub.com/g4rry420) and
[@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/2281](https://togithub.com/vitest-dev/vitest/issues/2281)
- **coverage**: Istanbul provider to preserve implicit else - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/2275](https://togithub.com/vitest-dev/vitest/issues/2275)
##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.5...v0.25.0)
###
[`v0.24.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.5)
[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.4...v0.24.5)
##### 🚀 Features
- **vite-node**: Trigger beforeFullReload / beforePrune / invalidate
hook - by [@​ycmjason](https://togithub.com/ycmjason) in
[https://github.com/vitest-dev/vitest/issues/2079](https://togithub.com/vitest-dev/vitest/issues/2079)
##### 🐞 Bug Fixes
- Respect folders with dot at the start, when mocking - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2244](https://togithub.com/vitest-dev/vitest/issues/2244)
- Prevent using mocks in rpc - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2254](https://togithub.com/vitest-dev/vitest/issues/2254)
- Show actual unhandled errors, serialize DOMErrors - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2253](https://togithub.com/vitest-dev/vitest/issues/2253)
- Load deps reporter - by
[@​poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2249](https://togithub.com/vitest-dev/vitest/issues/2249)
##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.4...v0.24.5)
###
[`v0.24.4`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.24.4)
[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.24.3...v0.24.4)
##### 🚀 Features
- **vite-node**: Don't exit on uncaughtException in watch mode - by
[@​poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2186](https://togithub.com/vitest-dev/vitest/issues/2186)
##### 🐞 Bug Fixes
- Add/Update `repository` properties in `package.json` - by
[@​silverwind](https://togithub.com/silverwind) in
[https://github.com/vitest-dev/vitest/issues/2151](https://togithub.com/vitest-dev/vitest/issues/2151)
- Ignore benchmark.reporters in getSerializableConfig - by
[@​kainstar](https://togithub.com/kainstar) in
[https://github.com/vitest-dev/vitest/issues/2164](https://togithub.com/vitest-dev/vitest/issues/2164)
- Improve config's default exclude - by
[@​haikyuu](https://togithub.com/haikyuu) and
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2188](https://togithub.com/vitest-dev/vitest/issues/2188)
- Always use node condition - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/1919](https://togithub.com/vitest-dev/vitest/issues/1919)
- Clear terminal output before running tests, show errors in correct
order - by [@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2228](https://togithub.com/vitest-dev/vitest/issues/2228)
- Improve compatibility with native Node CJS resolution - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2226](https://togithub.com/vitest-dev/vitest/issues/2226)
- Don't use resolved paths if they don't actually exist - by
[@​simon-abbott](https://togithub.com/simon-abbott) in
[https://github.com/vitest-dev/vitest/issues/1868](https://togithub.com/vitest-dev/vitest/issues/1868)
- **cli**:
- Set inputNamePattern to RegExp source instead of string - by
[@​rafedramzi](https://togithub.com/rafedramzi) in
[https://github.com/vitest-dev/vitest/issues/2201](https://togithub.com/vitest-dev/vitest/issues/2201)
- Normalize argument path - by
[@​poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2180](https://togithub.com/vitest-dev/vitest/issues/2180)
- **coverage**:
- Trim URL parameters from file paths in istanbul coverage - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/2232](https://togithub.com/vitest-dev/vitest/issues/2232)
- Trim URL parameters from file paths in c8 coverage - by
[@​OrestHk](https://togithub.com/OrestHk) and
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2181](https://togithub.com/vitest-dev/vitest/issues/2181)
- **reporter**:
- Load custom reporter using `executeFile` - by
[@​poyoho](https://togithub.com/poyoho) in
[https://github.com/vitest-dev/vitest/issues/2184](https://togithub.com/vitest-dev/vitest/issues/2184)
- **vitest**:
- Return detailed error when using toHaveReturnedWith - by
[@​azaleta](https://togithub.com/azaleta) in
[https://github.com/vitest-dev/vitest/issues/2163](https://togithub.com/vitest-dev/vitest/issues/2163)
##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.24.3...v0.24.4)
</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 15:58:27 +01:00
|
|
|
"vitest": "0.25.1",
|
2022-08-26 14:49:44 +02:00
|
|
|
"whatwg-fetch": "3.6.2"
|
2017-02-23 22:18:23 +01:00
|
|
|
},
|
2022-10-14 11:44:59 +02:00
|
|
|
"resolutions": {
|
2022-10-18 20:51:08 +02:00
|
|
|
"@codemirror/state": "6.1.2",
|
2022-11-03 15:30:01 +01:00
|
|
|
"@xmldom/xmldom": "^0.8.4"
|
2022-10-14 11:44:59 +02:00
|
|
|
},
|
2017-02-23 22:18:23 +01:00
|
|
|
"jest": {
|
|
|
|
"moduleNameMapper": {
|
2022-02-04 11:32:02 +01:00
|
|
|
"\\.(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",
|
2017-02-23 22:18:23 +01:00
|
|
|
"\\.(css|scss)$": "identity-obj-proxy"
|
2022-02-04 11:32:02 +01:00
|
|
|
}
|
2021-04-07 09:04:48 +02:00
|
|
|
},
|
|
|
|
"browserslist": {
|
|
|
|
"production": [
|
|
|
|
">0.2%",
|
|
|
|
"not dead",
|
|
|
|
"not op_mini all"
|
2021-02-05 14:24:22 +01:00
|
|
|
],
|
2021-04-07 09:04:48 +02:00
|
|
|
"development": [
|
|
|
|
"last 1 chrome version",
|
|
|
|
"last 1 firefox version",
|
|
|
|
"last 1 safari version"
|
2021-02-05 14:33:32 +01:00
|
|
|
]
|
2021-03-30 15:14:02 +02:00
|
|
|
},
|
2021-04-07 09:04:48 +02:00
|
|
|
"eslintConfig": {
|
|
|
|
"extends": [
|
|
|
|
"react-app",
|
|
|
|
"react-app/jest"
|
|
|
|
],
|
2022-05-25 12:36:58 +02:00
|
|
|
"parserOptions": {
|
|
|
|
"warnOnUnsupportedTypeScriptVersion": false
|
|
|
|
},
|
2021-04-07 09:04:48 +02:00
|
|
|
"rules": {
|
|
|
|
"no-restricted-globals": "off",
|
|
|
|
"no-useless-computed-key": "off",
|
|
|
|
"import/no-anonymous-default-export": "off"
|
2022-02-25 10:21:28 +01:00
|
|
|
},
|
|
|
|
"ignorePatterns": [
|
|
|
|
"cypress"
|
|
|
|
]
|
2022-04-08 11:45:23 +02:00
|
|
|
}
|
2016-11-10 14:26:24 +01:00
|
|
|
}
|