Skip to content

Releases: autoNumeric/autoNumeric

4.10.10

16 Apr 04:52
7e7a2c3

Choose a tag to compare

  • Fixes coverage reporting and instrumentation in unit tests
  • Fixes #807 "__dirname is not defined in ES module scope" error in e2e test
  • Fixes #818 The test 'should fail to init when the default value is outside of the min and max limits' fails if this is the first one to execute
  • Modifies globalObject to globalThis so that the generated bundle can be used in more contexts (import as module from a browser, node.js)
  • Fixes watching external changes on elements different from input elements, and reenable/improve some unit tests
  • Fixes a few unit tests that uses setFocus() to raise focus even (and test its effect) on the element
  • Fixes #808 input event (#809)
  • Update this.lastVal internally in _onKeyup() and _onPaste() so that value change is detected in the Delete/Backspace handler and input event is raised
  • Handle the Ctrl-Del event on windows (it deletes the word to the right of the cursor)
  • Updates the this.throwInput in undo/redo branches by setting it to true, otherwise input event may not be raised in Chrome
  • Created global helper functions (getCaretPositions, getCaretStart, sendCtrlChar, isHovered, mouseWheel)
  • Added tests to 'Webdriverio modifiers keys' to test how webdriver handles modifier key down statuses in key seqs
  • Simplified some tests using the new helper function
  • Re-enabled test suites: 'Issue #322', 'Issue #527', 'Issue #393'
  • Started to re-enable test suite 'undo and redo functions'
  • Fixes the test: 'should correctly display the negative value with the custom negative sign on mouseover (without adding the default minus sign)' by emulating the alt+mousemove event
  • Fixes the indexFirstNonZeroDecimalPlace() function that did not return the correct indexes in some cases, and add some tests for it
  • Improves the JSDoc comments, fixes minor warnings (substr() is deprecated), array === [] is always false) (#828)
  • Includes further tests for addAndRoundToNearestAuto() and modified some existing ones, because the fixed indexFirstNonZeroDecimalPlace() affected these too
  • Updates the issue template by replacing it with the original AutoNumeric issue template (#824)
  • Fixes #582 Two digits are removed in plugin when user tries to put forbidden character and press "Backspace" button
  • Fixes #819 Re-entering the last input value on the second attempt after pressing Escape does not trigger the oninput event listener
  • Fixes #817 Up and down arrows on values with a rawValueDivisor like percents are broken
  • Fixes #670 Copy pasting value adds incorrect additional comma/decimal to rawValue
  • Fixes AutoNumericHelper.isSeleniumBot() to not detect Chromium/webdriver as Selenium/geckodriver
  • Fixes another branch in _onPaste onInvalidPaste.clamp
  • Fixes when onInvalidPaste == ignore and the pasted value is outside of the range (and value should not be changed)
  • Removes unnecessary _checkPaste() and related codes
  • Adds a test to check when mixed content is pasted (ie. "123millimeter")
  • Fixes #702 onInvalidPaste not working (#827)
  • Improves a few jsdoc comments in AutoNumericHelper.js
  • Improves the e2e tests of the partially selected text branch in _onPaste() and more onInvalidPaste options
  • Replaces browser.execute() calls with the appropriate utility functions: getCaretPositions() and getCaretStart()
  • Re-enables the 'Issue #593' suite
  • Re-enables the 'Issue #542' suite, and adds some tests when using a custom decimalCharacter"
  • Re-enables some tests in 'Issue #611'
  • Updates the AUTHORS file

4.10.9

03 Sep 09:24
33ae7ef

Choose a tag to compare

Fixes #799 Cannot read properties of null (reading 'toString') in _cleanValueForRangeParse()
Updates the npm version that includes the #673 fix
Fixes #673 Handle composition events to fix strange behavior during input composition (#797)

4.10.6

14 Oct 00:28
9eba183

Choose a tag to compare

Fixes #795 Error when resetting a form that has an input with name="id"
TypeScript add @packageDocumentation (#783)
Adds the native focus event to the test page
Fixes cut event handling when eventKey x is in uppercase (#774)

4.10.4

18 Jan 19:41
5741903

Choose a tag to compare

Fixes the handling of a wheel event with a deltaY equal to zero

4.10.2

21 Dec 00:38
678eda2

Choose a tag to compare

Fixes #773 Typescript types in index.d.ts missing/wrong

You may now have a better experience using AutoNumeric with Typescript.

4.10.1

15 Dec 18:23
9ee3183

Choose a tag to compare

Fixes #776 On rapid event wheel emissions, deltaY of value 0 can be emitted and makes AutoNumeric throw an error

4.10.0

02 Sep 01:52
30546cb

Choose a tag to compare

This release brings a potentially important change if you use AutoNumeric on very old browsers.
Since Microsoft dropped support for IE11 a few years ago, we decided to drop its support as well from AutoNumeric.
Starting in 4.10.0, IE11 is no longer supported by AutoNumeric.

4.9.0

17 May 20:59
1c7a7a9

Choose a tag to compare

  • Closes #728 Unable to group by 2 using digital group spacing options

Changes:

  • This version modifies the AutoNumeric.options.digitalGroupSpacing.two option, which is now named AutoNumeric.options.digitalGroupSpacing.twoThree
  • The AutoNumeric.options.digitalGroupSpacing.two now effectively groups only by 2 (and not by 2 and 3 like before for India's numbering system)

4.8.4

12 May 02:54
d790975

Choose a tag to compare

  • Fixes #768 unformatOnSubmit does not unformat fields located outside of form DOM subtree
  • Updates the function that search for form children to also include the contenteditable elements

Changes:

  • All form functions relying on the _getFormAutoNumericChildren() function will now correctly include all inputs and contenteditable elements

4.8.3

05 May 21:52
23d5b27

Choose a tag to compare

  • Fixes #718 When emptyInputBehavior is set to null, then getNumber() returns 0 when no value has been set before
  • Updates the yarn clean:log command to clean the logs from the newer webdriver.io version
  • Fixes #765 change event is not triggered when dragging value into a text input
    Now, dropping a valid value into an AutoNumeric element, will trigger a change event if said value is different from the one already in the element
  • Fixes PR #731 by avoiding "Forced reflow" when calling the _historyTableAdd() function

Changes:

  • When emptyInputBehavior is set to null and no default or intial value is passed during initialization, then getNumber() will now return null instead of 0 like before.