@chakra-ui/provider
Advanced tools
Comparing version 1.6.11 to 1.7.0
# @chakra-ui/provider | ||
## 1.7.0 | ||
### Minor Changes | ||
- [#4991](https://github.com/chakra-ui/chakra-ui/pull/4991) | ||
[`6095eaf9a`](https://github.com/chakra-ui/chakra-ui/commit/6095eaf9ac64a7e4d9f934bcb530bae2a92111a6) | ||
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Update build system | ||
we use from a custom babel cli setup to | ||
[preconstruct](https://preconstruct.tools/). | ||
The previous build system transpiles the code in `src` directory to `dist/esm` | ||
and `dist/cjs` keeping the same file structure. The new build system merges | ||
all files in `src` and transpiles to a single `esm` and `cjs` file. | ||
**Potential Breaking Change:** The side effect of this is that, if you | ||
imported any function, component or hook using the **undocumented** approach | ||
like | ||
`import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click"`, | ||
you'll notice that the this doesn't work anymore. | ||
Here's how to resolve it: | ||
```jsx live=false | ||
// Won't work 🎇 | ||
import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click" | ||
// Works ✅ | ||
import { useOutsideClick } from "@chakra-ui/hooks" | ||
``` | ||
If this affected your project, we recommend that you import hooks, functions | ||
or components the way it's shown in the documentation. This will help keep | ||
your project future-proof. | ||
### Patch Changes | ||
- Updated dependencies | ||
[[`6095eaf9a`](https://github.com/chakra-ui/chakra-ui/commit/6095eaf9ac64a7e4d9f934bcb530bae2a92111a6)]: | ||
- @chakra-ui/css-reset@1.1.0 | ||
- @chakra-ui/react-env@1.1.0 | ||
- @chakra-ui/hooks@1.7.0 | ||
- @chakra-ui/portal@1.3.0 | ||
- @chakra-ui/system@1.8.0 | ||
- @chakra-ui/utils@1.9.0 | ||
## 1.6.11 | ||
@@ -4,0 +49,0 @@ |
{ | ||
"name": "@chakra-ui/provider", | ||
"version": "1.6.11", | ||
"version": "1.7.0", | ||
"description": "Theme and components agnostic ChakraProvider", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"typings": "dist/types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/cjs/index.js", | ||
"default": "./dist/esm/index.js" | ||
} | ||
}, | ||
"main": "dist/chakra-ui-provider.cjs.js", | ||
"module": "dist/chakra-ui-provider.esm.js", | ||
"types": "dist/chakra-ui-provider.cjs.d.ts", | ||
"files": [ | ||
@@ -22,23 +15,9 @@ "dist" | ||
}, | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"start": "nodemon --watch src --exec yarn build -e ts,tsx", | ||
"build": "concurrently yarn:build:*", | ||
"test": "jest --env=jsdom --passWithNoTests", | ||
"lint": "concurrently yarn:lint:*", | ||
"version": "yarn build", | ||
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps", | ||
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types", | ||
"test:cov": "yarn test --coverage", | ||
"lint:src": "eslint src --ext .ts,.tsx --config ../../.eslintrc", | ||
"lint:types": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@chakra-ui/css-reset": "1.0.0", | ||
"@chakra-ui/hooks": "1.6.2", | ||
"@chakra-ui/portal": "1.2.11", | ||
"@chakra-ui/react-env": "1.0.8", | ||
"@chakra-ui/system": "1.7.6", | ||
"@chakra-ui/utils": "1.8.4" | ||
"@chakra-ui/css-reset": "1.1.0", | ||
"@chakra-ui/hooks": "1.7.0", | ||
"@chakra-ui/portal": "1.3.0", | ||
"@chakra-ui/react-env": "1.1.0", | ||
"@chakra-ui/system": "1.8.0", | ||
"@chakra-ui/utils": "1.9.0" | ||
}, | ||
@@ -76,7 +55,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@emotion/react": "^11.1.4", | ||
"@emotion/styled": "^11.0.0", | ||
"@emotion/react": "^11.4.0", | ||
"@emotion/styled": "^11.3.0", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1" | ||
"react-dom": "^17.0.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203
13621
10
1
1
+ Added@chakra-ui/color-mode@1.3.0(transitive)
+ Added@chakra-ui/css-reset@1.1.0(transitive)
+ Added@chakra-ui/hooks@1.7.0(transitive)
+ Added@chakra-ui/portal@1.3.0(transitive)
+ Added@chakra-ui/react-env@1.1.0(transitive)
+ Added@chakra-ui/react-utils@1.2.0(transitive)
+ Added@chakra-ui/styled-system@1.14.0(transitive)
+ Added@chakra-ui/system@1.8.0(transitive)
+ Added@chakra-ui/utils@1.9.0(transitive)
- Removed@chakra-ui/color-mode@1.2.0(transitive)
- Removed@chakra-ui/css-reset@1.0.0(transitive)
- Removed@chakra-ui/hooks@1.6.2(transitive)
- Removed@chakra-ui/portal@1.2.11(transitive)
- Removed@chakra-ui/react-env@1.0.8(transitive)
- Removed@chakra-ui/react-utils@1.1.2(transitive)
- Removed@chakra-ui/styled-system@1.13.0(transitive)
- Removed@chakra-ui/system@1.7.6(transitive)
- Removed@chakra-ui/utils@1.8.4(transitive)
Updated@chakra-ui/css-reset@1.1.0
Updated@chakra-ui/hooks@1.7.0
Updated@chakra-ui/portal@1.3.0
Updated@chakra-ui/react-env@1.1.0
Updated@chakra-ui/system@1.8.0
Updated@chakra-ui/utils@1.9.0