handsontable 0.0.0-next-9a96be1-20240418 → 0.0.0-next-0512c8e-20240419

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "0.0.0-next-9a96be1-20240418";
137
+ const hotVersion = "0.0.0-next-0512c8e-20240419";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "0.0.0-next-9a96be1-20240418";
127
+ const hotVersion = "0.0.0-next-0512c8e-20240419";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
package/helpers/number.js CHANGED
@@ -20,7 +20,6 @@ require("core-js/modules/esnext.set.union.v2.js");
20
20
  * are considered as numeric values:
21
21
  * - 0.001
22
22
  * - .001
23
- * - - 10000
24
23
  * - 10000
25
24
  * - 1e+26
26
25
  * - 22e-26
@@ -28,6 +27,10 @@ require("core-js/modules/esnext.set.union.v2.js");
28
27
  * - 0xabcdef (hex)
29
28
  * - 0x1 (hex)
30
29
  *
30
+ * these values are not considered as numeric:
31
+ * - - 1000
32
+ * - 100 000
33
+ *
31
34
  * @param {*} value The value to check.
32
35
  * @param {string[]} additionalDelimiters An additional delimiters to be used while checking the numeric value.
33
36
  * @returns {boolean}
@@ -44,7 +47,7 @@ function isNumeric(value) {
44
47
  return /\d/.test(value);
45
48
  }
46
49
  const delimiter = Array.from(new Set(['.', ...additionalDelimiters])).map(d => `\\${d}`).join('|');
47
- return new RegExp(`^[+-]?\\s*(((${delimiter})?\\d+((${delimiter})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`, 'i').test(value.trim());
50
+ return new RegExp(`^[+-]?(((${delimiter})?\\d+((${delimiter})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`, 'i').test(value.trim());
48
51
  } else if (type === 'object') {
49
52
  return !!value && typeof value.valueOf() === 'number' && !(value instanceof Date);
50
53
  }
@@ -11,7 +11,6 @@ import "core-js/modules/esnext.set.union.v2.js";
11
11
  * are considered as numeric values:
12
12
  * - 0.001
13
13
  * - .001
14
- * - - 10000
15
14
  * - 10000
16
15
  * - 1e+26
17
16
  * - 22e-26
@@ -19,6 +18,10 @@ import "core-js/modules/esnext.set.union.v2.js";
19
18
  * - 0xabcdef (hex)
20
19
  * - 0x1 (hex)
21
20
  *
21
+ * these values are not considered as numeric:
22
+ * - - 1000
23
+ * - 100 000
24
+ *
22
25
  * @param {*} value The value to check.
23
26
  * @param {string[]} additionalDelimiters An additional delimiters to be used while checking the numeric value.
24
27
  * @returns {boolean}
@@ -35,7 +38,7 @@ export function isNumeric(value) {
35
38
  return /\d/.test(value);
36
39
  }
37
40
  const delimiter = Array.from(new Set(['.', ...additionalDelimiters])).map(d => `\\${d}`).join('|');
38
- return new RegExp(`^[+-]?\\s*(((${delimiter})?\\d+((${delimiter})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`, 'i').test(value.trim());
41
+ return new RegExp(`^[+-]?(((${delimiter})?\\d+((${delimiter})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`, 'i').test(value.trim());
39
42
  } else if (type === 'object') {
40
43
  return !!value && typeof value.valueOf() === 'number' && !(value instanceof Date);
41
44
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "0.0.0-next-9a96be1-20240418",
13
+ "version": "0.0.0-next-0512c8e-20240419",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",