Socket
Socket
Sign inDemoInstall

@chakra-ui/button

Package Overview
Dependencies
108
Maintainers
4
Versions
456
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.6 to 1.5.0

dist/chakra-ui-button.cjs.d.ts

43

CHANGELOG.md
# Change Log
## 1.5.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/hooks@1.7.0
- @chakra-ui/react-utils@1.2.0
- @chakra-ui/spinner@1.2.0
- @chakra-ui/utils@1.9.0
## 1.4.6

@@ -4,0 +47,0 @@

39

package.json
{
"name": "@chakra-ui/button",
"version": "1.4.6",
"version": "1.5.0",
"description": "A React component that is a base button.",

@@ -18,12 +18,5 @@ "keywords": [

"license": "MIT",
"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-button.cjs.js",
"module": "dist/chakra-ui-button.esm.js",
"types": "dist/chakra-ui-button.cjs.d.ts",
"files": [

@@ -43,25 +36,11 @@ "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"
},
"devDependencies": {
"@chakra-ui/system": "1.7.6",
"@chakra-ui/system": "1.8.0",
"react": "^17.0.1"
},
"dependencies": {
"@chakra-ui/hooks": "1.6.2",
"@chakra-ui/react-utils": "1.1.2",
"@chakra-ui/spinner": "1.1.14",
"@chakra-ui/utils": "1.8.4"
"@chakra-ui/hooks": "1.7.0",
"@chakra-ui/react-utils": "1.2.0",
"@chakra-ui/spinner": "1.2.0",
"@chakra-ui/utils": "1.9.0"
},

@@ -68,0 +47,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc