Skip to content
This repository was archived by the owner on Mar 14, 2022. It is now read-only.

Commit 386a950

Browse files
committed
Merge branch 'release/3.1.2'
2 parents 3331959 + 046b2a6 commit 386a950

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

package-lock.json

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@handsontable/react",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "Best Data Grid for React with Spreadsheet Look and Feel.",
55
"author": "Handsoncode <[email protected]> (https://handsoncode.net)",
66
"homepage": "https://handsontable.com",
@@ -77,7 +77,7 @@
7777
"rollup-plugin-json": "^4.0.0",
7878
"rollup-plugin-node-resolve": "^5.2.0",
7979
"rollup-plugin-typescript2": "^0.22.1",
80-
"rollup-plugin-uglify": "^6.0.3",
80+
"rollup-plugin-uglify": "^6.0.4",
8181
"typescript": "^3.5.3",
8282
"uglify-js": "^3.4.9"
8383
},

src/helpers.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function createPortal(rElement: React.ReactElement, props, callback: Func
150150
* @param {Function} Klass Class to have the methods renamed.
151151
* @returns {Function} Class with the renamed methods.
152152
*/
153-
export function addUnsafePrefixes(Klass) {
153+
export function addUnsafePrefixes<T extends any>(Klass: T): T {
154154
const reactSemverArray = React.version.split('.').map((v) => parseInt(v));
155155
const shouldPrefix = reactSemverArray[0] >= 16 && reactSemverArray[1] >= 3;
156156

0 commit comments

Comments
 (0)