Skip to content

Commit

Permalink
release: v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chengpeiquan committed Apr 21, 2024
1 parent 2ea19be commit 5e1c8a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# [0.4.0](https://github.com/remanufacturing/react-truncate/compare/v0.3.2...v0.4.0) (2024-04-21)


### Bug Fixes

* **MiddleTruncate:** ignore omit's props when passed in rests ([3ed2714](https://github.com/remanufacturing/react-truncate/commit/3ed2714ec39bb9914a61844630132ba893afe098))
* **ShowMore:** ignore omit's props when passed in rests ([ec62636](https://github.com/remanufacturing/react-truncate/commit/ec62636952d6c6621bbde3b214c5a207ae52bec9))
* **Truncate:** fixed a calculation error where end is 0 when middle mode is enabled ([84f8424](https://github.com/remanufacturing/react-truncate/commit/84f84248719e10673fd4ae1aa978d468d4765e0d))


### Features

* **ShowMore:** add custom buttons support and toggle state change callback ([71bcb94](https://github.com/remanufacturing/react-truncate/commit/71bcb944d23e8def9c31f9a10e632b5509bd6444))
* **Truncate:** add safe and positive integer check for the lines prop value ([9f84142](https://github.com/remanufacturing/react-truncate/commit/9f8414227100e012befc33019e77199c33dcf733))
* **Truncate:** update comments for types ([bf1c365](https://github.com/remanufacturing/react-truncate/commit/bf1c3650180dc841b5ff558988410c1642e13723))



## [0.3.2](https://github.com/remanufacturing/react-truncate/compare/v0.3.1...v0.3.2) (2024-01-20)


Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"react-dom": "^18.2.0"
},
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
"react": ">=19.0.0 || >=18.0.0 || >=17.0.0 || >=16.0.0",
"react-dom": ">=19.0.0 || >=18.0.0 || >=17.0.0 || >=16.0.0"
},
"devDependencies": {
"@bassist/changelog": "^0.3.0",
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineConfig({
entry: ['src/index.ts'],
target: ['es2020'],
format: ['cjs', 'esm', 'iife'],
globalName: 'ReactTruncate',
outExtension({ format }) {
switch (format) {
case 'cjs': {
Expand Down

0 comments on commit 5e1c8a4

Please sign in to comment.