@synerise/ds-input-number 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@2.0.10...@synerise/ds-input-number@2.0.11) (2026-10-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/Synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
12
+ * remove per-render random keys and guard against them with a Biome plugin ([fcea7c5](https://github.com/Synerise/synerise-design/commit/fcea7c5d60b80c28cbbd191bfa2792379782a0e8))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@2.0.9...@synerise/ds-input-number@2.0.10) (2026-10-22)
7
19
 
8
20
  **Note:** Version bump only for package @synerise/ds-input-number
package/CLAUDE.md CHANGED
@@ -111,7 +111,6 @@ All styling lives in `InputNumber.styles.tsx` as DS-native styled-components dri
111
111
  - `@synerise/ds-input` — `AutosizeWrapper` + `AutoResizeProp` type
112
112
  - `@synerise/ds-core` — `useDataFormat` hook (locale-aware number formatting), `NumberToFormatOptions`, `ThemeProps`
113
113
  - `@synerise/ds-utils` — `useResizeObserver` (for `stretchToFit` autosize) + `PassthroughAttributes` type
114
- - `uuid` — generates stable `id` for label `htmlFor` association
115
114
 
116
115
  ## Implementation notes
117
116
 
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useCallback, useState, useRef, useMemo, useEffect } from "react";
3
- import { v4 } from "uuid";
4
3
  import { useDataFormat } from "@synerise/ds-core";
5
4
  import FormField from "@synerise/ds-form-field";
6
5
  import { useAutosizeWidth, useStretchToFit, SIZER_STYLE } from "@synerise/ds-input";
6
+ import { generateUuid } from "@synerise/ds-utils";
7
7
  import { useStepper } from "./hooks/useStepper.js";
8
8
  import { InputNumberRoot, HandlerWrap, HandlerUp, HandlerDown, InputFieldWrap, InputField, InputNumberAutosize, InputNumberContainer, InputNumberWrapper, GroupWrapper, Group, Addon } from "./InputNumber.styles.js";
9
9
  import { formatNumber, parseFormattedNumber } from "./utils/inputNumber.utils.js";
@@ -57,7 +57,7 @@ const InputNumber = ({
57
57
  const [displayValue, setDisplayValue] = useState(() => formatter(value ?? defaultValue));
58
58
  const inputRef = useRef(null);
59
59
  const scrollLeftRef = useRef(0);
60
- const id = useMemo(() => idProp ?? v4(), [idProp]);
60
+ const id = useMemo(() => idProp ?? generateUuid(), [idProp]);
61
61
  const showError = Boolean(error || errorText);
62
62
  useEffect(() => {
63
63
  if (value !== void 0 && value !== localValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input-number",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Input-Number UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -39,16 +39,17 @@
39
39
  "sideEffects": false,
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
- "@synerise/ds-form-field": "^2.0.9",
43
- "@synerise/ds-input": "^2.0.10",
44
- "@synerise/ds-utils": "^2.2.1",
45
- "uuid": "^8.3.2"
42
+ "@synerise/ds-form-field": "^2.0.10",
43
+ "@synerise/ds-input": "^2.0.11",
44
+ "@synerise/ds-utils": "^2.2.2"
45
+ },
46
+ "devDependencies": {
47
+ "vitest": "4"
46
48
  },
47
49
  "peerDependencies": {
48
50
  "@synerise/ds-core": "*",
49
51
  "react": ">=16.9.0 <= 18.3.1",
50
- "styled-components": "^5.3.3",
51
- "vitest": "4"
52
+ "styled-components": "^5.3.3"
52
53
  },
53
- "gitHead": "953d50843fbcbec956b6252a6185def119652282"
54
+ "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
54
55
  }