use-mask-input 3.3.6 → 3.3.8

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
@@ -1,3 +1,17 @@
1
+ ## [3.3.8](https://github.com/eduardoborges/use-mask-input/compare/3.3.7...3.3.8) (2024-06-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * prepare withMask function to React 19 ref breaking changes ([#83](https://github.com/eduardoborges/use-mask-input/issues/83)) ([4756fe8](https://github.com/eduardoborges/use-mask-input/commit/4756fe807e29e6b2dfb54b5dc75c1667769de13f))
7
+
8
+ ## [3.3.7](https://github.com/eduardoborges/use-mask-input/compare/3.3.6...3.3.7) (2023-11-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fix options spread in getMaskOptions function ([e857424](https://github.com/eduardoborges/use-mask-input/commit/e85742442a375f85edfd819475071b29b4bc0af8))
14
+
1
15
  ## [3.3.6](https://github.com/eduardoborges/use-mask-input/compare/3.3.5...3.3.6) (2023-10-02)
2
16
 
3
17
 
package/dist/index.cjs CHANGED
@@ -3646,8 +3646,8 @@ const isServer = !(typeof window !== "undefined" && window.document && window.do
3646
3646
 
3647
3647
  const getMaskOptions = (mask, _options) => {
3648
3648
  const options = {
3649
- ..._options,
3650
- jitMasking: false
3649
+ jitMasking: false,
3650
+ ..._options
3651
3651
  };
3652
3652
  if (!mask)
3653
3653
  return options;
@@ -3753,14 +3753,13 @@ const withHookFormMask = (register, mask, options) => {
3753
3753
 
3754
3754
  const withMask = (mask, options) => (input) => {
3755
3755
  if (isServer)
3756
- return input;
3756
+ return;
3757
3757
  if (mask === null)
3758
- return input;
3758
+ return;
3759
3759
  const maskInput = inputmask(getMaskOptions(mask, options));
3760
3760
  if (input) {
3761
3761
  maskInput.mask(input);
3762
3762
  }
3763
- return input;
3764
3763
  };
3765
3764
 
3766
3765
  function useHookFormMask(registerFn) {