Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/data/material/migration/upgrade-to-v9/upgrade-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ If you were using `MuiTouchRipple` in your theme, remove it and use global CSS w
});
```

### JSDOM support
### jsdom support

v9 removes all usage of `process.env.NODE_ENV === 'test'`. The `NODE_ENV` variable will exclusively be used for for tree-shaking. Our libraries have been updated to auto-detect DOM environments that don't support layout such as [JSDOM](https://github.com/jsdom/jsdom) and [happy-dom](https://github.com/capricorn86/happy-dom) through user agent sniffing.
Replace the use of `process.env.NODE_ENV === 'test'` with feature detection or user-agent sniffing when it's more acccurate with the intention of the code.
Comment thread
oliviertassinari marked this conversation as resolved.
Outdated
For example, the code has been updated to auto-detect DOM environments that don't support layout such as [jsdom](https://github.com/jsdom/jsdom) and [happy-dom](https://github.com/capricorn86/happy-dom) with user-agent sniffing.
Comment thread
oliviertassinari marked this conversation as resolved.
Outdated

### Stepper, Step and StepButton

Expand Down
Binary file modified docs/mui-vale.zip
Binary file not shown.
1 change: 1 addition & 0 deletions docs/mui-vale/styles/MUI/CorrectReferenceAllCases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ swap:
page router: Pages Router # Next.js
eslint: ESLint
ES modules: ES modules
JSDOM: jsdom
Loading