Skip to content

Commit 2c186a3

Browse files
committed
release v4.6.1
1 parent 4551b5d commit 2c186a3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

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

3+
### 4.6.1 (Jun 18, 2026)
4+
5+
- Feature: add a `nonce` prop to support a strict Content Security Policy. It's applied to the dynamically-injected user-select `<style>` element so a `style-src` policy without `'unsafe-inline'` no longer blocks it. When omitted, webpack's `__webpack_nonce__` global is used if available. `enableUserSelectHack={false}` remains a no-prop opt-out. ([#808](https://github.com/react-grid-layout/react-draggable/pull/808), closes [#791](https://github.com/react-grid-layout/react-draggable/pull/791))
6+
- Internal: de-duplicate redundant `tsc` compilation in the build/CI pipeline.
7+
38
### 4.6.0 (May 29, 2026)
49

510
- 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)

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.6.0",
3+
"version": "4.6.1",
44
"description": "React draggable component",
55
"main": "build/cjs/cjs.js",
66
"module": "build/cjs/cjs.mjs",
@@ -96,4 +96,4 @@
9696
"react": ">= 16.3.0",
9797
"react-dom": ">= 16.3.0"
9898
}
99-
}
99+
}

0 commit comments

Comments
 (0)