Skip to content

Commit 2aade57

Browse files
committed
release v4.6.0
1 parent a969889 commit 2aade57

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
### 4.6.0 (May 29, 2026)
4+
5+
- Internal: Migrate library source from Flow to TypeScript. Types are now generated from source instead of hand-maintained, eliminating Flow/TypeScript drift. The build uses tsup (CommonJS + ESM + generated declarations) with webpack for the UMD bundle. No public API change — the CommonJS export shape (`module.exports === Draggable`, plus `.default` and `.DraggableCore`), the UMD `ReactDraggable` global, and the shipped type surface are all unchanged. (#805)
6+
- Feature: ship an ESM build and an `exports` map alongside the existing CommonJS entry, so the package can be imported natively in both module systems. (#805)
7+
- Fix: treat ctrl+click as a right-click on macOS so it no longer starts a drag. (#786)
8+
- Fix: remove a global module declaration from the TypeScript types to prevent type pollution. (#787)
9+
- Internal: Support React 19 (dependency upgrade and nodeRef-based browser tests).
10+
- Internal: Migrate the test suite from Karma/Jasmine to Vitest, expand unit coverage, and run CI across Node 20, 22, and 24. (#785, #788)
11+
- Docs: Modernize the README and publish a GitHub Pages demo site. (#790)
12+
313
### 4.5.0 (Jun 25, 2025)
414

515
- Internal: Update clsx version (#754)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-draggable",
3-
"version": "4.5.0",
3+
"version": "4.6.0",
44
"description": "React draggable component",
55
"main": "build/cjs/cjs.js",
66
"module": "build/cjs/cjs.mjs",
@@ -97,4 +97,4 @@
9797
"react": ">= 16.3.0",
9898
"react-dom": ">= 16.3.0"
9999
}
100-
}
100+
}

0 commit comments

Comments
 (0)