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" ,
2023-04-18 15:44:19 +02:00
"build"
2016-12-23 10:58:33 +01:00
] ,
2016-11-10 14:26:24 +01:00
"engines" : {
2023-04-18 14:42:49 +02:00
"node" : ">=18"
2016-11-10 14:26:24 +01:00
} ,
"scripts" : {
2022-08-30 10:52:30 +02:00
"build" : "vite build" ,
chore: simplify package scripts (#3736)
# Simplify package scripts
This PR's purpose is to raise a discussion surrounding our current
package scripts.
It includes some suggestions that aim to simplify the scripts and
hopefully bring a much more straightforward approach to developing and
contributing to Unleash.
Building (prod) should only happen **explicitly** and when needed.
## Before PR (current behavior)
- Clone the project;
- Open 2 terminals: One for `unleash` and another for
`unleash/frontend`;
- On `unleash`:
- Run `yarn` (which will also build, for some reason?);
- Run `yarn start:dev` to start backend in dev mode (`tsc-watch`);
- On `unleash/frontend`:
- Run `yarn` (which will also build, for some reason?);
- Run `yarn start` to start frontend in dev mode (`vite`);
So it seems to me like we build unnecessarily every time we install
dependencies. Neither dev scripts need to build the project, as backend
uses `tsc-watch` and frontend uses `vite`. I'm unsure why this is the
case, as building can take a very long time.
![image](https://github.com/Unleash/unleash/assets/14320932/5ecb7df1-e5b4-4d70-ba7e-97119f5d1116)
There's also some complexity in the way we need to split the terminal to
`cd` into `frontend` and treat it as a different project. The fact that
we have different script names is also confusing (`yarn start`, `yarn
start:dev`, etc).
## After PR
- Clone the project;
- Run `yarn` to install all dependencies;
- Run `yarn dev` to get started developing Unleash;
Running `yarn` should take care of everything needed to start
developing. This includes installing dependencies for frontend as well.
It should not build projects if we are not being explicit about it,
especially since we don't need to build them at this stage.
![image](https://github.com/Unleash/unleash/assets/14320932/614e42fc-3467-432f-91fc-624b1b35c7c1)
Running `yarn dev` should start the project in dev mode. This means
running both projects in `dev` mode, which for `backend` means running
`tsc-watch` and for `frontend` means running `vite`.
Here this PR attempts to provide a better DX by using
[concurrently](https://www.npmjs.com/package/concurrently) and
[wait-on](https://www.npmjs.com/package/wait-on) - This means both tasks
are ran simultaneously, stdout is labeled accordingly, and are stopped
together. It also means that `frontend` waits for `backend` to be
serving at `4242` before starting, since `frontend` starts pretty much
immediately with `vite` and `backend` takes a bit longer. Of course,
when the `backend` is hot-reloading you may still find some
`ECONNREFUSED`s on `frontend` stdout while it recompiles.
![image](https://github.com/Unleash/unleash/assets/14320932/8bde8ee2-3cad-4e3f-a0db-9eed60cfb04d)
No more splitting your terminal and treating `frontend` as a separate
project.
## Discussion points
Maybe there's a better alternative to `tsc-watch`? I briefly explored
some alternatives and while they had a much faster starting speed,
hot-reload was sometimes slower. IMO we should aspire to run
`src/server-dev.ts` directly and only compile when needed.
Running `dev:backend` still serves a version of the frontend (at 4242).
**Why? Can we remove that behavior?**
I can't imagine a scenario in dev where we wouldn't want to run the
latest version of the frontend with `vite`.
~~**Note:** This PR removes all other out-of-scope scripts to focus on
this revamp. If we decide to merge it, we should evaluate what other
existing scripts we still want to include. May be a good opportunity to
clean up unused ones and only include the ones we really use. This
includes scripts that our GH actions rely on.~~
**Update:** In an effort to minimize impact surface of this PR and make
it a bit more ready for merging:
- It updates some docs in
https://github.com/Unleash/unleash/pull/3736/commits/2a4ff805e87b65d9c1256effaa189ddcccba15fb
and
https://github.com/Unleash/unleash/pull/3736/commits/1bbc4882519b5a82e3116f0be255ad24a6f3ce53
to reflect our new simplified flow;
- It includes the old package scripts for now in
https://github.com/Unleash/unleash/pull/3736/commits/039bc04699ac880e491fd3ce01f9bcd6f97a94b9;
- It updates some of our GH actions to reflect the new scripts in
https://github.com/Unleash/unleash/pull/3736/commits/7782cb9b12e37ee844507e41ef2b7137eaf55666;
Given its current status I'll promote the PR to "ready for review".
I still think we should have a second look at our existing scripts and
GH actions to see what we really need and/or should adapt, but it should
be a team effort so we have a broader context. Maybe on a follow-up PR.
Does this require any changes to related projects (e.g. Enterprise)?
---------
Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-12 12:23:22 +02:00
"dev" : "vite" ,
2022-05-05 17:15:22 +02:00
"start" : "vite" ,
2022-12-16 19:09:24 +01:00
"start:prod" : "vite build && vite preview" ,
2022-10-19 14:02:00 +02:00
"start:sandbox" : "UNLEASH_API=https://sandbox.getunleash.io/ospro yarn run start" ,
2023-01-17 13:33:52 +01:00
"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" ,
2023-02-17 12:15:50 +01:00
"start:demo" : "UNLEASH_BASE_PATH=/demo/ UNLEASH_API=https://app.unleash-hosted.com/ yarn run start" ,
2023-04-18 10:35:32 +02:00
"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" ,
2023-01-02 10:46:32 +01:00
"lint" : "eslint --fix ./src" ,
"lint:check" : "eslint ./src" ,
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" ,
2023-04-18 10:35:32 +02:00
"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" ,
chore: simplify package scripts (#3736)
# Simplify package scripts
This PR's purpose is to raise a discussion surrounding our current
package scripts.
It includes some suggestions that aim to simplify the scripts and
hopefully bring a much more straightforward approach to developing and
contributing to Unleash.
Building (prod) should only happen **explicitly** and when needed.
## Before PR (current behavior)
- Clone the project;
- Open 2 terminals: One for `unleash` and another for
`unleash/frontend`;
- On `unleash`:
- Run `yarn` (which will also build, for some reason?);
- Run `yarn start:dev` to start backend in dev mode (`tsc-watch`);
- On `unleash/frontend`:
- Run `yarn` (which will also build, for some reason?);
- Run `yarn start` to start frontend in dev mode (`vite`);
So it seems to me like we build unnecessarily every time we install
dependencies. Neither dev scripts need to build the project, as backend
uses `tsc-watch` and frontend uses `vite`. I'm unsure why this is the
case, as building can take a very long time.
![image](https://github.com/Unleash/unleash/assets/14320932/5ecb7df1-e5b4-4d70-ba7e-97119f5d1116)
There's also some complexity in the way we need to split the terminal to
`cd` into `frontend` and treat it as a different project. The fact that
we have different script names is also confusing (`yarn start`, `yarn
start:dev`, etc).
## After PR
- Clone the project;
- Run `yarn` to install all dependencies;
- Run `yarn dev` to get started developing Unleash;
Running `yarn` should take care of everything needed to start
developing. This includes installing dependencies for frontend as well.
It should not build projects if we are not being explicit about it,
especially since we don't need to build them at this stage.
![image](https://github.com/Unleash/unleash/assets/14320932/614e42fc-3467-432f-91fc-624b1b35c7c1)
Running `yarn dev` should start the project in dev mode. This means
running both projects in `dev` mode, which for `backend` means running
`tsc-watch` and for `frontend` means running `vite`.
Here this PR attempts to provide a better DX by using
[concurrently](https://www.npmjs.com/package/concurrently) and
[wait-on](https://www.npmjs.com/package/wait-on) - This means both tasks
are ran simultaneously, stdout is labeled accordingly, and are stopped
together. It also means that `frontend` waits for `backend` to be
serving at `4242` before starting, since `frontend` starts pretty much
immediately with `vite` and `backend` takes a bit longer. Of course,
when the `backend` is hot-reloading you may still find some
`ECONNREFUSED`s on `frontend` stdout while it recompiles.
![image](https://github.com/Unleash/unleash/assets/14320932/8bde8ee2-3cad-4e3f-a0db-9eed60cfb04d)
No more splitting your terminal and treating `frontend` as a separate
project.
## Discussion points
Maybe there's a better alternative to `tsc-watch`? I briefly explored
some alternatives and while they had a much faster starting speed,
hot-reload was sometimes slower. IMO we should aspire to run
`src/server-dev.ts` directly and only compile when needed.
Running `dev:backend` still serves a version of the frontend (at 4242).
**Why? Can we remove that behavior?**
I can't imagine a scenario in dev where we wouldn't want to run the
latest version of the frontend with `vite`.
~~**Note:** This PR removes all other out-of-scope scripts to focus on
this revamp. If we decide to merge it, we should evaluate what other
existing scripts we still want to include. May be a good opportunity to
clean up unused ones and only include the ones we really use. This
includes scripts that our GH actions rely on.~~
**Update:** In an effort to minimize impact surface of this PR and make
it a bit more ready for merging:
- It updates some docs in
https://github.com/Unleash/unleash/pull/3736/commits/2a4ff805e87b65d9c1256effaa189ddcccba15fb
and
https://github.com/Unleash/unleash/pull/3736/commits/1bbc4882519b5a82e3116f0be255ad24a6f3ce53
to reflect our new simplified flow;
- It includes the old package scripts for now in
https://github.com/Unleash/unleash/pull/3736/commits/039bc04699ac880e491fd3ce01f9bcd6f97a94b9;
- It updates some of our GH actions to reflect the new scripts in
https://github.com/Unleash/unleash/pull/3736/commits/7782cb9b12e37ee844507e41ef2b7137eaf55666;
Given its current status I'll promote the PR to "ready for review".
I still think we should have a second look at our existing scripts and
GH actions to see what we really need and/or should adapt, but it should
be a team effort so we have a broader context. Maybe on a follow-up PR.
Does this require any changes to related projects (e.g. Enterprise)?
---------
Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-12 12:23:22 +02:00
"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"
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" ,
2023-05-06 00:47:03 +02:00
"@emotion/react" : "11.10.8" ,
"@emotion/styled" : "11.10.8" ,
chore(deps): update material-ui monorepo (#3174)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mui/icons-material](https://mui.com/material-ui/material-icons/)
([source](https://togithub.com/mui/material-ui)) | [`5.11.0` ->
`5.11.9`](https://renovatebot.com/diffs/npm/@mui%2ficons-material/5.11.0/5.11.9)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.9/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.9/compatibility-slim/5.11.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2ficons-material/5.11.9/confidence-slim/5.11.0)](https://docs.renovatebot.com/merge-confidence/)
|
| [@mui/lab](https://mui.com/material-ui/about-the-lab/)
([source](https://togithub.com/mui/material-ui)) | [`5.0.0-alpha.119` ->
`5.0.0-alpha.120`](https://renovatebot.com/diffs/npm/@mui%2flab/5.0.0-alpha.119/5.0.0-alpha.120)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.120/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.120/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.120/compatibility-slim/5.0.0-alpha.119)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2flab/5.0.0-alpha.120/confidence-slim/5.0.0-alpha.119)](https://docs.renovatebot.com/merge-confidence/)
|
| [@mui/material](https://mui.com/material-ui/getting-started/overview/)
([source](https://togithub.com/mui/material-ui)) | [`5.11.8` ->
`5.11.9`](https://renovatebot.com/diffs/npm/@mui%2fmaterial/5.11.8/5.11.9)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.9/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.9/compatibility-slim/5.11.8)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.9/confidence-slim/5.11.8)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>mui/material-ui</summary>
###
[`v5.11.9`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#​5119)
[Compare
Source](https://togithub.com/mui/material-ui/compare/v5.11.0...v5.11.9)
<!-- generated comparing v5.11.8..master -->
*Feb 14, 2023*
A big thanks to the 17 contributors who made this release possible. Here
are some highlights ✨:
- 🐛 [@​rangoo94](https://togithub.com/rangoo94),
[@​sai6855](https://togithub.com/sai6855), and
[@​michaldudak](https://togithub.com/michaldudak) fixed a couple
of bugs in the Autocomplete component
([#​36116](https://togithub.com/mui/material-ui/issues/36116),
[#​35640](https://togithub.com/mui/material-ui/issues/35640),
[#​36076](https://togithub.com/mui/material-ui/issues/36076),
[#​36088](https://togithub.com/mui/material-ui/issues/36088))
- many other 🐛 bug fixes and 📚 documentation improvements
##### `@mui/material@5.11.9`
- \[AppBar] Fix joinVars() not handling undefined
([#​36128](https://togithub.com/mui/material-ui/issues/36128))
[@​donaldnevermore](https://togithub.com/donaldnevermore)
- \[Autocomplete] Fix tag removal regression
([#​36116](https://togithub.com/mui/material-ui/issues/36116))
[@​michaldudak](https://togithub.com/michaldudak)
- \[Autocomplete] Correct padding of filled Autocomplete
([#​35640](https://togithub.com/mui/material-ui/issues/35640))
[@​michaldudak](https://togithub.com/michaldudak)
- \[Grid]\[Stack] classNames prefixed with Mui
([#​36167](https://togithub.com/mui/material-ui/issues/36167))
[@​sai6855](https://togithub.com/sai6855)
##### `@mui/styled-engine@5.11.9`
- \[StyledEngineProvider] Fix issue with cache not being defined
([#​36162](https://togithub.com/mui/material-ui/issues/36162))
[@​mnajdova](https://togithub.com/mnajdova)
##### `@mui/joy@5.0.0-alpha.67`
- \[Joy] Add order dashboard template
([#​36081](https://togithub.com/mui/material-ui/issues/36081))
[@​siriwatknp](https://togithub.com/siriwatknp)
- \[Joy] Remove classes prop from the components that have it
([#​36159](https://togithub.com/mui/material-ui/issues/36159))
[@​hbjORbj](https://togithub.com/hbjORbj)
- \[Joy] Miscellaneous fixes
([#​36163](https://togithub.com/mui/material-ui/issues/36163))
[@​siriwatknp](https://togithub.com/siriwatknp)
##### `@mui/base@5.0.0-alpha.118`
- \[base] Override the types of `slotProps` per slot
([#​35964](https://togithub.com/mui/material-ui/issues/35964))
[@​hbjORbj](https://togithub.com/hbjORbj)
- \[Select]\[base] Prevent unnecessary rerendering of Select options
([#​35946](https://togithub.com/mui/material-ui/issues/35946))
[@​michaldudak](https://togithub.com/michaldudak)
- \[Select]\[base] Update the generated docs
([#​36183](https://togithub.com/mui/material-ui/issues/36183))
[@​michaldudak](https://togithub.com/michaldudak)
- \[useAutocomplete] Pass only valid values for the getOptionLabel prop
([#​36088](https://togithub.com/mui/material-ui/issues/36088))
[@​rangoo94](https://togithub.com/rangoo94)
- \[useAutocomplete] Fix `useAutocomplete` disabled prop not disabling
the input
([#​36076](https://togithub.com/mui/material-ui/issues/36076))
[@​sai6855](https://togithub.com/sai6855)
- \[useInput] Add return value interface
([#​36036](https://togithub.com/mui/material-ui/issues/36036))
[@​Shorifpatwary](https://togithub.com/Shorifpatwary)
- \[UseTabPanel] Add explicit return type
([#​36053](https://togithub.com/mui/material-ui/issues/36053))
[@​Shorifpatwary](https://togithub.com/Shorifpatwary)
- \[useTabsList] Add explicit return type
([#​36048](https://togithub.com/mui/material-ui/issues/36048))
[@​sai6855](https://togithub.com/sai6855)
- \[Tab] Add explicit return type to useTab
([#​36046](https://togithub.com/mui/material-ui/issues/36046))
[@​sai6855](https://togithub.com/sai6855)
##### `@mui/material-next@6.0.0-alpha.75`
- \[Material You] Use `md` as a CSS var prefix
([#​36177](https://togithub.com/mui/material-ui/issues/36177))
[@​siriwatknp](https://togithub.com/siriwatknp)
##### Docs
- \[docs] Fix the prop type regression on the API pages
([#​36168](https://togithub.com/mui/material-ui/issues/36168))
[@​mnajdova](https://togithub.com/mnajdova)
- \[docs] Fix virtualized table column resizing
([#​36066](https://togithub.com/mui/material-ui/issues/36066))
[@​petyosi](https://togithub.com/petyosi)
- \[docs] Fix react-spring demos
([#​36023](https://togithub.com/mui/material-ui/issues/36023))
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- \[docs] Fix classname mismatch on Joy docs
([#​36127](https://togithub.com/mui/material-ui/issues/36127))
[@​siriwatknp](https://togithub.com/siriwatknp)
- \[docs] Fix typo in the released version of
[@​mui/styled-engine](https://togithub.com/mui/styled-engine)
([#​36121](https://togithub.com/mui/material-ui/issues/36121))
[@​m4theushw](https://togithub.com/m4theushw)
- \[docs] Fix demos showing TypeScript instead of JavaScript
([#​35850](https://togithub.com/mui/material-ui/issues/35850))
[@​mj12albert](https://togithub.com/mj12albert)
- \[docs] Update release instructions
([#​36113](https://togithub.com/mui/material-ui/issues/36113))
[@​mj12albert](https://togithub.com/mj12albert)
- \[docs] Rename `v6-alpha` to `v6-next` in navigation
([#​36102](https://togithub.com/mui/material-ui/issues/36102))
[@​LukasTy](https://togithub.com/LukasTy)
- \[docs] Revise Joy UI "Input" page
([#​35970](https://togithub.com/mui/material-ui/issues/35970))
[@​LadyBluenotes](https://togithub.com/LadyBluenotes)
- \[docs] Revise Joy UI "Typography" page
([#​35868](https://togithub.com/mui/material-ui/issues/35868))
[@​LadyBluenotes](https://togithub.com/LadyBluenotes)
##### Examples
- \[examples]\[vitejs] Load Roboto font
([#​35678](https://togithub.com/mui/material-ui/issues/35678))
[@​oliv37](https://togithub.com/oliv37)
##### Core
- \[blog] Fix the look and feel of the media description
([#​36069](https://togithub.com/mui/material-ui/issues/36069))
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- \[core] Add default preview url
([#​36118](https://togithub.com/mui/material-ui/issues/36118))
[@​siriwatknp](https://togithub.com/siriwatknp)
- \[core] Migrate all the internals exported by `tests/utils/index.js`
to TypeScript
([#​35382](https://togithub.com/mui/material-ui/issues/35382))
[@​flaviendelangle](https://togithub.com/flaviendelangle)
- \[core] Convert the waterfall module to an internal package
([#​35323](https://togithub.com/mui/material-ui/issues/35323))
[@​michaldudak](https://togithub.com/michaldudak)
- \[website] Fix homepage MD theme demo
([#​36027](https://togithub.com/mui/material-ui/issues/36027))
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- \[website] Revise the Lead Designer role job ad
([#​35912](https://togithub.com/mui/material-ui/issues/35912))
[@​danilo-leal](https://togithub.com/danilo-leal)
- \[POC] Add deploy preview to PR body
([#​35995](https://togithub.com/mui/material-ui/issues/35995))
[@​siriwatknp](https://togithub.com/siriwatknp)
All contributors of this release in alphabetical order:
[@​danilo-leal](https://togithub.com/danilo-leal),
[@​donaldnevermore](https://togithub.com/donaldnevermore),
[@​flaviendelangle](https://togithub.com/flaviendelangle),
[@​hbjORbj](https://togithub.com/hbjORbj),
[@​LadyBluenotes](https://togithub.com/LadyBluenotes),
[@​LukasTy](https://togithub.com/LukasTy),
[@​m4theushw](https://togithub.com/m4theushw),
[@​michaldudak](https://togithub.com/michaldudak),
[@​mj12albert](https://togithub.com/mj12albert),
[@​mnajdova](https://togithub.com/mnajdova),
[@​oliv37](https://togithub.com/oliv37),
[@​oliviertassinari](https://togithub.com/oliviertassinari),
[@​petyosi](https://togithub.com/petyosi),
[@​rangoo94](https://togithub.com/rangoo94),
[@​sai6855](https://togithub.com/sai6855),
[@​Shorifpatwary](https://togithub.com/Shorifpatwary),
[@​siriwatknp](https://togithub.com/siriwatknp)
</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.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- 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-22 00:53:48 +01:00
"@mui/icons-material" : "5.11.9" ,
"@mui/lab" : "5.0.0-alpha.120" ,
chore(deps): update dependency @mui/material to v5.11.10 (#3207)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@mui/material](https://mui.com/material-ui/getting-started/overview/)
([source](https://togithub.com/mui/material-ui)) | [`5.11.9` ->
`5.11.10`](https://renovatebot.com/diffs/npm/@mui%2fmaterial/5.11.9/5.11.10)
|
[![age](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.10/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.10/compatibility-slim/5.11.9)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@mui%2fmaterial/5.11.10/confidence-slim/5.11.9)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>mui/material-ui</summary>
###
[`v5.11.10`](https://togithub.com/mui/material-ui/blob/HEAD/CHANGELOG.md#​51110)
[Compare
Source](https://togithub.com/mui/material-ui/compare/v5.11.9...v5.11.10)
<!-- generated comparing v5.11.9..master -->
*Feb 20, 2023*
A big thanks to the 11 contributors who made this release possible.
This release was mostly about 🐛 bug fixes and 📚 documentation
improvements.
##### `@mui/material@5.11.10`
- <!-- 22 -->\[Avatar] Fix ownerState usage with styleOverrides when
fallback is used
([#​36228](https://togithub.com/mui/material-ui/issues/36228))
[@​sai6855](https://togithub.com/sai6855)
- <!-- 21 -->\[Badge]\[material] Replace `BadgeUnstyled` with
`useBadge` hook
([#​36158](https://togithub.com/mui/material-ui/issues/36158))
[@​hbjORbj](https://togithub.com/hbjORbj)
- <!-- 03 -->\[Switch] Fix DOM warning when `type` isn't `checkbox` or
`radio`
([#​36170](https://togithub.com/mui/material-ui/issues/36170))
[@​dani-mp](https://togithub.com/dani-mp)
- <!-- 02 -->\[TextareaAutosize] Convert code to TypeScript
([#​35862](https://togithub.com/mui/material-ui/issues/35862))
[@​sai6855](https://togithub.com/sai6855)
- <!-- 01 -->\[useMediaQuery] Fix behavior of noSsr with React 18
([#​36056](https://togithub.com/mui/material-ui/issues/36056))
[@​oliviertassinari](https://togithub.com/oliviertassinari)
##### `@mui/joy@5.0.0-alpha.68`
- <!-- 05 -->\[Joy] Add `zIndex` to theme
([#​36236](https://togithub.com/mui/material-ui/issues/36236))
[@​siriwatknp](https://togithub.com/siriwatknp)
- <!-- 04 -->\[Joy] Remove transition from all components
([#​35952](https://togithub.com/mui/material-ui/issues/35952))
[@​hbjORbj](https://togithub.com/hbjORbj)
##### Docs
- <!-- 20 -->\[docs]\[base] Fix base Input demos for Safari
([#​36213](https://togithub.com/mui/material-ui/issues/36213))
[@​mj12albert](https://togithub.com/mj12albert)
- <!-- 16 -->\[docs] Fix 301 links
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- <!-- 15 -->\[docs] Fix modal transition demos
([#​36137](https://togithub.com/mui/material-ui/issues/36137))
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- <!-- 14 -->\[docs] Update links to pt examples
([#​36237](https://togithub.com/mui/material-ui/issues/36237))
[@​Aleff13](https://togithub.com/Aleff13)
- <!-- 13 -->\[docs] Update custom Typography variants example
([#​36185](https://togithub.com/mui/material-ui/issues/36185))
[@​mj12albert](https://togithub.com/mj12albert)
- <!-- 12 -->\[docs] Change markdown numbering syntax
([#​36187](https://togithub.com/mui/material-ui/issues/36187))
[@​mj12albert](https://togithub.com/mj12albert)
- <!-- 11 -->\[docs] Fix switch alignment in `Disabled tree items`
section in Tree View docs
([#​36217](https://togithub.com/mui/material-ui/issues/36217))
[@​PunitSoniME](https://togithub.com/PunitSoniME)
- <!-- 10 -->\[docs] Standardize example names
([#​36112](https://togithub.com/mui/material-ui/issues/36112))
[@​samuelsycamore](https://togithub.com/samuelsycamore)
- <!-- 09 -->\[docs] Fix typo
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- <!-- 08 -->\[docs] Fix markdown table alignments
([#​36136](https://togithub.com/mui/material-ui/issues/36136))
[@​oliviertassinari](https://togithub.com/oliviertassinari)
- <!-- 07 -->\[docs] Small color tweaks to the docs search bar
([#​36160](https://togithub.com/mui/material-ui/issues/36160))
[@​danilo-leal](https://togithub.com/danilo-leal)
- <!-- 06 -->\[docs]\[joy] Update class name prefixes in the `Anatomy`
section
([#​36210](https://togithub.com/mui/material-ui/issues/36210))
[@​ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)
##### Core
- <!-- 19 -->\[core] Migrate nprogress to emotion
([#​36181](https://togithub.com/mui/material-ui/issues/36181))
[@​siriwatknp](https://togithub.com/siriwatknp)
- <!-- 18 -->\[core] Enforce namespace import for ReactDOM
([#​36208](https://togithub.com/mui/material-ui/issues/36208))
[@​mj12albert](https://togithub.com/mj12albert)
- <!-- 17 -->\[core] Fix deploy preview links
([#​36203](https://togithub.com/mui/material-ui/issues/36203))
[@​siriwatknp](https://togithub.com/siriwatknp)
All contributors of this release in alphabetical order:
[@​Aleff13](https://togithub.com/Aleff13),
[@​dani-mp](https://togithub.com/dani-mp),
[@​danilo-leal](https://togithub.com/danilo-leal),
[@​hbjORbj](https://togithub.com/hbjORbj),
[@​mj12albert](https://togithub.com/mj12albert),
[@​oliviertassinari](https://togithub.com/oliviertassinari),
[@​PunitSoniME](https://togithub.com/PunitSoniME),
[@​sai6855](https://togithub.com/sai6855),
[@​samuelsycamore](https://togithub.com/samuelsycamore),
[@​siriwatknp](https://togithub.com/siriwatknp),
[@​ZeeshanTamboli](https://togithub.com/ZeeshanTamboli)
</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:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTIuNSIsInVwZGF0ZWRJblZlciI6IjM0LjE1Mi41In0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 01:14:49 +01:00
"@mui/material" : "5.11.10" ,
2023-02-15 03:50:32 +01:00
"@testing-library/dom" : "8.20.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" ,
2022-12-07 17:22:03 +01:00
"@types/deep-diff" : "1.0.2" ,
chore(deps): update jest monorepo (#3694)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`29.4.0` ->
`29.5.1`](https://renovatebot.com/diffs/npm/@types%2fjest/29.4.0/29.5.1)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.5.1/compatibility-slim/29.4.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.5.1/confidence-slim/29.4.0)](https://docs.renovatebot.com/merge-confidence/)
|
| [jest](https://jestjs.io/)
([source](https://togithub.com/facebook/jest)) | [`29.4.3` ->
`29.5.0`](https://renovatebot.com/diffs/npm/jest/29.4.3/29.5.0) |
[![age](https://badges.renovateapi.com/packages/npm/jest/29.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/jest/29.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/jest/29.5.0/compatibility-slim/29.4.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/jest/29.5.0/confidence-slim/29.4.3)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>facebook/jest</summary>
###
[`v29.5.0`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#​2950)
[Compare
Source](https://togithub.com/facebook/jest/compare/v29.4.3...v29.5.0)
##### Features
- `[jest-changed-files]` Support Sapling
([#​13941](https://togithub.com/facebook/jest/pull/13941))
- `[jest-circus, @​jest/cli, jest-config]` Add feature to
randomize order of tests via CLI flag or through the config
file([#​12922](https://togithub.com/facebook/jest/pull/12922))
- `[jest-cli, jest-config, @​jest/core, jest-haste-map,
@​jest/reporters, jest-runner, jest-runtime, @​jest/types]`
Add `workerThreads` configuration option to allow using [worker
threads](https://nodejs.org/dist/latest/docs/api/worker_threads.html)
for parallelization
([#​13939](https://togithub.com/facebook/jest/pull/13939))
- `[jest-cli]` Export `yargsOptions`
([#​13970](https://togithub.com/facebook/jest/pull/13970))
- `[jest-config]` Add `openHandlesTimeout` option to configure possible
open handles warning.
([#​13875](https://togithub.com/facebook/jest/pull/13875))
- `[@jest/create-cache-key-function]` Allow passing `length` argument to
`createCacheKey()` function and set its default value to `16` on Windows
([#​13827](https://togithub.com/facebook/jest/pull/13827))
- `[jest-message-util]` Add support for
[AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError)
([#​13946](https://togithub.com/facebook/jest/pull/13946) &
[#​13947](https://togithub.com/facebook/jest/pull/13947))
- `[jest-message-util]` Add support for [Error
causes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause)
in `test` and `it`
([#​13935](https://togithub.com/facebook/jest/pull/13935) &
[#​13966](https://togithub.com/facebook/jest/pull/13966))
- `[jest-reporters]` Add `summaryThreshold` option to summary reporter
to allow overriding the internal threshold that is used to print the
summary of all failed tests when the number of test suites surpasses it
([#​13895](https://togithub.com/facebook/jest/pull/13895))
- `[jest-runtime]` Expose `@sinonjs/fake-timers` async APIs functions
`advanceTimersByTimeAsync(msToRun)` (`tickAsync(msToRun)`),
`advanceTimersToNextTimerAsync(steps)` (`nextAsync`),
`runAllTimersAsync` (`runAllAsync`), and `runOnlyPendingTimersAsync`
(`runToLastAsync`)
([#​13981](https://togithub.com/facebook/jest/pull/13981))
- `[jest-runtime, @​jest/transform]` Allow V8 coverage provider to
collect coverage from files which were not loaded explicitly
([#​13974](https://togithub.com/facebook/jest/pull/13974))
- `[jest-snapshot]` Add support to `cts` and `mts` TypeScript files to
inline snapshots
([#​13975](https://togithub.com/facebook/jest/pull/13975))
- `[jest-worker]` Add `start` method to worker farms
([#​13937](https://togithub.com/facebook/jest/pull/13937))
- `[jest-worker]` Support passing a URL as path to worker
([#​13982](https://togithub.com/facebook/jest/pull/13982))
##### Fixes
- `[babel-plugin-jest-hoist]` Fix unwanted hoisting of nested `jest`
usages ([#​13952](https://togithub.com/facebook/jest/pull/13952))
- `[jest-circus]` Send test case results for `todo` tests
([#​13915](https://togithub.com/facebook/jest/pull/13915))
- `[jest-circus]` Update message printed on test timeout
([#​13830](https://togithub.com/facebook/jest/pull/13830))
- `[jest-circus]` Avoid creating the word "testfalse" when
`takesDoneCallback` is `false` in the message printed on test timeout
AND updated timeouts test
([#​13954](https://togithub.com/facebook/jest/pull/13954))
- `[jest-environment-jsdom]` Stop setting `document` to `null` on
teardown
([#​13972](https://togithub.com/facebook/jest/pull/13972))
- `[@jest/expect-utils]` Update `toStrictEqual()` to be able to check
`jest.fn().mock.calls`
([#​13960](https://togithub.com/facebook/jest/pull/13960))
- `[@jest/test-result]` Allow `TestResultsProcessor` type to return a
Promise ([#​13950](https://togithub.com/facebook/jest/pull/13950))
##### Chore & Maintenance
- `[jest-snapshot]` Remove dependency on `jest-haste-map`
([#​13977](https://togithub.com/facebook/jest/pull/13977))
</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.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzNS43MS40IiwidXBkYXRlZEluVmVyIjoiMzUuNzEuNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-05 16:19:19 +02:00
"@types/jest" : "29.5.1" ,
2022-04-28 16:57:43 +02:00
"@types/lodash.clonedeep" : "4.5.7" ,
2022-12-02 10:39:20 +01:00
"@types/lodash.omit" : "4.5.7" ,
2022-02-25 10:55:39 +01:00
"@types/node" : "17.0.18" ,
2023-05-13 18:46:04 +02:00
"@types/react" : "17.0.59" ,
2023-05-03 05:10:53 +02:00
"@types/react-dom" : "17.0.20" ,
2023-04-13 14:48:03 +02:00
"@types/react-linkify" : "1.0.1" ,
2022-05-05 15:34:46 +02:00
"@types/react-router-dom" : "5.3.3" ,
2022-12-31 06:10:56 +01:00
"@types/react-table" : "7.7.14" ,
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" ,
2023-01-27 09:13:57 +01:00
"@types/uuid" : "^9.0.0" ,
2023-04-20 02:20:18 +02:00
"@uiw/codemirror-theme-duotone" : "4.19.16" ,
2023-04-20 17:32:50 +02:00
"@uiw/react-codemirror" : "4.19.16" ,
2023-02-15 06:02:10 +01:00
"@vitejs/plugin-react" : "3.1.0" ,
2022-08-04 16:46:41 +02:00
"chart.js" : "3.9.1" ,
2022-12-28 14:09:19 +01:00
"chartjs-adapter-date-fns" : "3.0.0" ,
2022-10-07 04:41:23 +02:00
"classnames" : "2.3.2" ,
2022-11-14 17:27:49 +01:00
"copy-to-clipboard" : "3.3.3" ,
2023-04-18 11:56:15 +02:00
"countries-and-timezones" : "^3.4.0" ,
2023-05-08 10:16:18 +02:00
"cypress" : "12.11.0" ,
"cypress-vite" : "^1.4.0" ,
2023-05-16 16:45:53 +02:00
"date-fns" : "2.30.0" ,
2023-04-18 11:56:15 +02:00
"date-fns-tz" : "^2.0.0" ,
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" ,
2023-05-16 21:35:48 +02:00
"eslint" : "8.40.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" ,
2023-04-03 17:42:06 +02:00
"immer" : "9.0.21" ,
2023-05-09 20:53:41 +02:00
"jsdom" : "21.1.2" ,
2021-09-27 09:12:17 +02:00
"lodash.clonedeep" : "4.5.0" ,
2022-12-02 10:39:20 +01:00
"lodash.omit" : "4.5.0" ,
2022-12-16 15:12:36 +01:00
"mermaid" : "^9.3.0" ,
2022-10-12 17:19:37 +02:00
"millify" : "^5.0.1" ,
2023-02-12 17:25:43 +01:00
"msw" : "0.49.3" ,
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" ,
chore(deps): update dependency prettier to v2.8.1 (#2509)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [prettier](https://prettier.io)
([source](https://togithub.com/prettier/prettier)) | [`2.7.1` ->
`2.8.1`](https://renovatebot.com/diffs/npm/prettier/2.7.1/2.8.1) |
[![age](https://badges.renovateapi.com/packages/npm/prettier/2.8.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/prettier/2.8.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/prettier/2.8.1/compatibility-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/prettier/2.8.1/confidence-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>prettier/prettier</summary>
###
[`v2.8.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​281)
[Compare
Source](https://togithub.com/prettier/prettier/compare/2.8.0...2.8.1)
[diff](https://togithub.com/prettier/prettier/compare/2.8.0...2.8.1)
##### Fix SCSS map in arguments
([#​9184](https://togithub.com/prettier/prettier/pull/9184) by
[@​agamkrbit](https://togithub.com/agamkrbit))
<!-- prettier-ignore -->
```scss
// Input
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
),
$display-breakpoints
);
// Prettier 2.8.0
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm
")-1})",
),
$display-breakpoints
);
// Prettier 2.8.1
$display-breakpoints: map-deep-merge(
(
"print-only": "only print",
"screen-only": "only screen",
"xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
),
$display-breakpoints
);
```
##### Support auto accessors syntax
([#​13919](https://togithub.com/prettier/prettier/pull/13919) by
[@​sosukesuzuki](https://togithub.com/sosukesuzuki))
Support for [Auto Accessors
Syntax](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/#auto-accessors-in-classes)
landed in TypeScript 4.9.
(Doesn't work well with `babel-ts` parser)
<!-- prettier-ignore -->
```tsx
class Foo {
accessor foo: number = 3;
}
```
###
[`v2.8.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​280)
[Compare
Source](https://togithub.com/prettier/prettier/compare/2.7.1...2.8.0)
[diff](https://togithub.com/prettier/prettier/compare/2.7.1...2.8.0)
🔗 [Release Notes](https://prettier.io/blog/2022/11/23/2.8.0.html)
</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:eyJjcmVhdGVkSW5WZXIiOiIzNC4zMC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNjIuMSJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gastón Fournier <gaston@getunleash.ai>
2022-12-27 10:45:43 +01:00
"prettier" : "2.8.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" ,
2023-04-21 12:48:44 +02:00
"react-confetti" : "^6.1.0" ,
2021-09-27 09:12:17 +02:00
"react-dom" : "17.0.2" ,
2023-01-20 09:50:24 +01:00
"react-dropzone" : "14.2.3" ,
2022-10-10 12:18:37 +02:00
"react-error-boundary" : "3.1.4" ,
2022-12-10 18:26:53 +01:00
"react-hooks-global-state" : "2.1.0" ,
2023-04-18 11:56:15 +02:00
"react-joyride" : "^2.5.3" ,
"react-linkify" : "^1.0.0-alpha" ,
2023-04-21 12:48:44 +02:00
"react-markdown" : "^8.0.4" ,
2023-05-11 22:59:34 +02:00
"react-router-dom" : "6.11.1" ,
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" ,
2023-05-03 08:36:20 +02:00
"sass" : "1.62.1" ,
2023-05-03 18:00:07 +02:00
"semver" : "7.5.0" ,
2023-05-04 03:47:40 +02:00
"swr" : "2.1.5" ,
2023-05-04 16:44:56 +02:00
"tss-react" : "4.8.3" ,
2022-10-07 19:54:29 +02:00
"typescript" : "4.8.4" ,
2023-05-13 12:21:43 +02:00
"vite" : "4.3.5" ,
2022-08-18 15:56:39 +02:00
"vite-plugin-env-compatible" : "1.1.1" ,
2022-12-28 14:06:52 +01:00
"vite-plugin-svgr" : "2.4.0" ,
2023-05-05 02:43:07 +02:00
"vite-tsconfig-paths" : "4.2.0" ,
chore(deps): update dependency vitest to v0.31.0 (#3748)
[![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.30.1` ->
`0.31.0`](https://renovatebot.com/diffs/npm/vitest/0.30.1/0.31.0) |
[![age](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/compatibility-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vitest/0.31.0/confidence-slim/0.30.1)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>vitest-dev/vitest</summary>
###
[`v0.31.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v0.31.0)
[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v0.30.1...v0.31.0)
##### 🚨 Breaking Changes
- Remove `browser` from allowed pools inside `poolMatchGlob` config
option. Please, use Vitest workspaces for running tests in the browser.
- Move assertion declarations to expect package - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3294](https://togithub.com/vitest-dev/vitest/issues/3294)
[<samp>(cf3af)</samp>](https://togithub.com/vitest-dev/vitest/commit/cf3afe2b)
- The change should be minor:
```diff
- declare namespace Vi {
+ declare module 'vitest' {
interface Assertion<T = any> extends CustomMatchers<T> {}
interface AsymmetricMatchersContaining extends CustomMatchers {}
}
```
##### 🚀 Features
- Update mock implementation to support ESM runtime, introduce
"vi.hoisted" - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3258](https://togithub.com/vitest-dev/vitest/issues/3258)
[<samp>(0c09a)</samp>](https://togithub.com/vitest-dev/vitest/commit/0c09a40d)
- Bypass ESM import order restriction with `vi.hoisted` to run code
before imports are executed:
```ts
vi.hoisted(() => vi.setSystemTime(new Date(2022, 1, 1)))
```
You can also use it to pass variables to `vi.mock`:
```ts
const { mockedMethod } = vi.hoisted(() => {
return { mockedMethod: vi.fn() }
})
vi.mock('./path/to/module.js', () => {
return { originalMethod: mockedMethod }
})
```
- Add repeat method to tests - by
[@​samkevin1](https://togithub.com/samkevin1) in
[https://github.com/vitest-dev/vitest/issues/2652](https://togithub.com/vitest-dev/vitest/issues/2652)
[<samp>(7c8f0)</samp>](https://togithub.com/vitest-dev/vitest/commit/7c8f0ba9)
- Add an option to hide skipped test lines - by
[@​g4rry420](https://togithub.com/g4rry420) and
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/2745](https://togithub.com/vitest-dev/vitest/issues/2745)
[<samp>(9bdb1)</samp>](https://togithub.com/vitest-dev/vitest/commit/9bdb1603)
- **coverage**: Watermarks for c8 - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3254](https://togithub.com/vitest-dev/vitest/issues/3254)
[<samp>(730af)</samp>](https://togithub.com/vitest-dev/vitest/commit/730af0b4)
- **ui**: Add html coverage - by
[@​userquin](https://togithub.com/userquin) and
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3071](https://togithub.com/vitest-dev/vitest/issues/3071)
[<samp>(e24cd)</samp>](https://togithub.com/vitest-dev/vitest/commit/e24cd9b2)
- **watch**: Test run cancelling, feat: `--bail` option for cancelling
test run - by [@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3163](https://togithub.com/vitest-dev/vitest/issues/3163)
[<samp>(8d460)</samp>](https://togithub.com/vitest-dev/vitest/commit/8d4606eb)
##### 🐞 Bug Fixes
- Don't call global setup teardown twice - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3188](https://togithub.com/vitest-dev/vitest/issues/3188)
[<samp>(ba3d1)</samp>](https://togithub.com/vitest-dev/vitest/commit/ba3d1338)
- Reporter to log version before provider initalizations - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3131](https://togithub.com/vitest-dev/vitest/issues/3131)
[<samp>(481b1)</samp>](https://togithub.com/vitest-dev/vitest/commit/481b1fd2)
- Throw an error if Vitest cannot access its internal state - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3250](https://togithub.com/vitest-dev/vitest/issues/3250)
[<samp>(fbb14)</samp>](https://togithub.com/vitest-dev/vitest/commit/fbb1468e)
- Warning suppression broken - by
[@​IceQub3](https://togithub.com/IceQub3) in
[https://github.com/vitest-dev/vitest/issues/3270](https://togithub.com/vitest-dev/vitest/issues/3270)
and
[https://github.com/vitest-dev/vitest/issues/3271](https://togithub.com/vitest-dev/vitest/issues/3271)
[<samp>(036de)</samp>](https://togithub.com/vitest-dev/vitest/commit/036de797)
- Show correct diff in "toHaveBeenCalledWith" - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3289](https://togithub.com/vitest-dev/vitest/issues/3289)
[<samp>(19fcd)</samp>](https://togithub.com/vitest-dev/vitest/commit/19fcd8df)
- Don't print esm warning, if package name is not found - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3292](https://togithub.com/vitest-dev/vitest/issues/3292)
[<samp>(62c14)</samp>](https://togithub.com/vitest-dev/vitest/commit/62c14cba)
- Support exactOptionalPropertyTypes - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3293](https://togithub.com/vitest-dev/vitest/issues/3293)
[<samp>(ba81d)</samp>](https://togithub.com/vitest-dev/vitest/commit/ba81d8a3)
- Don't inline vite hmr and rollup types - by
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3291](https://togithub.com/vitest-dev/vitest/issues/3291)
[<samp>(1f118)</samp>](https://togithub.com/vitest-dev/vitest/commit/1f1189bc)
- **browser**:
- Failing to load vitest/utils - by
[@​userquin](https://togithub.com/userquin) in
[https://github.com/vitest-dev/vitest/issues/3190](https://togithub.com/vitest-dev/vitest/issues/3190)
[<samp>(78bad)</samp>](https://togithub.com/vitest-dev/vitest/commit/78bad4ab)
- **coverage**:
- `thresholdAutoUpdate` to work with `perFile` - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3182](https://togithub.com/vitest-dev/vitest/issues/3182)
[<samp>(29eeb)</samp>](https://togithub.com/vitest-dev/vitest/commit/29eebf65)
- Throw error if fail to load built-in provider - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3217](https://togithub.com/vitest-dev/vitest/issues/3217)
[<samp>(0a287)</samp>](https://togithub.com/vitest-dev/vitest/commit/0a2875e3)
- Stackblitz hangs with c8 - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3225](https://togithub.com/vitest-dev/vitest/issues/3225)
[<samp>(d9fda)</samp>](https://togithub.com/vitest-dev/vitest/commit/d9fda2a1)
- C8 to ignore vite's generated helpers - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3241](https://togithub.com/vitest-dev/vitest/issues/3241)
[<samp>(21942)</samp>](https://togithub.com/vitest-dev/vitest/commit/21942db0)
- Workspaces c8 source maps - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3226](https://togithub.com/vitest-dev/vitest/issues/3226)
[<samp>(efce3)</samp>](https://togithub.com/vitest-dev/vitest/commit/efce3b4d)
- **docs**:
- Correct typo and broken link to WebdriverIO - by
[@​nathanbabcock](https://togithub.com/nathanbabcock) in
[https://github.com/vitest-dev/vitest/issues/3275](https://togithub.com/vitest-dev/vitest/issues/3275)
[<samp>(c7da1)</samp>](https://togithub.com/vitest-dev/vitest/commit/c7da155f)
- **spy**:
- Update to set initial implementation through normal logic - by
[@​Codex-](https://togithub.com/Codex-) in
[https://github.com/vitest-dev/vitest/issues/3260](https://togithub.com/vitest-dev/vitest/issues/3260)
and
[https://github.com/vitest-dev/vitest/issues/3263](https://togithub.com/vitest-dev/vitest/issues/3263)
[<samp>(c759a)</samp>](https://togithub.com/vitest-dev/vitest/commit/c759a9aa)
- **vite-node**:
- Circular imports - by [@​antfu](https://togithub.com/antfu) in
[https://github.com/vitest-dev/vitest/issues/3196](https://togithub.com/vitest-dev/vitest/issues/3196)
[<samp>(cbb59)</samp>](https://togithub.com/vitest-dev/vitest/commit/cbb593a8)
- Add missing `import.meta.hot.send` mock - by
[@​antfu](https://togithub.com/antfu)
[<samp>(b1624)</samp>](https://togithub.com/vitest-dev/vitest/commit/b1624db5)
- **vitest**:
- Also check for vite relative to vitest package - by
[@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) and
[@​sheremet-va](https://togithub.com/sheremet-va) in
[https://github.com/vitest-dev/vitest/issues/3274](https://togithub.com/vitest-dev/vitest/issues/3274)
[<samp>(a3393)</samp>](https://togithub.com/vitest-dev/vitest/commit/a3393b15)
- **watch**:
- Run test files when added to filesystem - by
[@​AriPerkkio](https://togithub.com/AriPerkkio) in
[https://github.com/vitest-dev/vitest/issues/3189](https://togithub.com/vitest-dev/vitest/issues/3189)
[<samp>(7b2c8)</samp>](https://togithub.com/vitest-dev/vitest/commit/7b2c81bc)
##### [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v0.30.1...v0.31.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://app.renovatebot.com/dashboard#github/Unleash/unleash).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43OS4xIiwidXBkYXRlZEluVmVyIjoiMzUuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-12 03:56:45 +02:00
"vitest" : "0.31.0" ,
2023-04-18 11:56:15 +02:00
"whatwg-fetch" : "3.6.2"
2017-02-23 22:18:23 +01:00
} ,
2023-01-05 11:57:53 +01:00
"optionalDependencies" : {
"orval" : "^6.10.3"
} ,
2022-10-14 11:44:59 +02:00
"resolutions" : {
2022-12-27 23:41:27 +01:00
"@codemirror/state" : "6.2.0" ,
2023-01-12 10:09:59 +01:00
"@xmldom/xmldom" : "^0.8.4" ,
2023-01-17 13:33:52 +01:00
"json5" : "^2.2.2" ,
2023-05-13 18:46:04 +02:00
"@types/react" : "17.0.59" ,
2023-05-03 05:10:53 +02:00
"@types/react-dom" : "17.0.20"
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" ,
2023-02-07 11:20:44 +01:00
"import/no-anonymous-default-export" : "off" ,
"react-hooks/exhaustive-deps" : "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
}