Skip to content

Commit

Permalink
Revert 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xnimorz committed Nov 29, 2022
1 parent 1724b98 commit 3556a91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 9.0.2
- Reverted 9.0.0. We will revisit these changes later

## 9.0.0
- Moved use-debounce to support modules see [issue](https://github.com/xnimorz/use-debounce/issues/147) Thank to [@matewilk](https://github.com/matewilk)
- _breaking change_ The path to `dist/index.js` is changed. Now it's `dist/index.cjs`.
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "use-debounce",
"version": "9.0.1",
"version": "9.0.2",
"description": "Debounce hook for react",
"type": "module",
"source": "src/index.ts",
"main": "dist/index.cjs",
"main": "dist/index.js",
"module": "dist/index.module.js",
"esmodule": "dist/index.modern.js",
"umd:main": "dist/index.umd.js",
Expand All @@ -13,13 +12,13 @@
"node": {
"types": "./dist/index.d.ts",
"module": "./dist/index.module.js",
"require": "./dist/index.cjs",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"browser": {
"types": "./dist/index.d.ts",
"import": "./dist/index.module.js",
"require": "./dist/index.cjs"
"require": "./dist/index.js"
},
"default": "./dist/index.module.js"
},
Expand Down Expand Up @@ -92,7 +91,7 @@
},
"size-limit": [
{
"path": "dist/index.cjs",
"path": "dist/index.js",
"limit": "1 KB"
},
{
Expand All @@ -108,17 +107,17 @@
"limit": "1 KB"
},
{
"path": "dist/index.cjs",
"path": "dist/index.js",
"import": "{ useDebounce }",
"limit": "1 KB"
},
{
"path": "dist/index.cjs",
"path": "dist/index.js",
"import": "{ useDebouncedCallback }",
"limit": "1 KB"
},
{
"path": "dist/index.cjs",
"path": "dist/index.js",
"import": "{ useThrottledCallback }",
"limit": "1 KB"
}
Expand Down

0 comments on commit 3556a91

Please # to comment.