Skip to content

Releases: nwoltman/string-natural-compare

3.0.1

21 Jan 05:37
v3.0.1
a213a8e
Compare
Choose a tag to compare
  • fix: Handle case where different strings with leading zeros have the same length (7d5a4ae)
  • docs: Explain algorithm better and include reference to the alphanum algorithm (9263689)

3.0.0

31 Oct 01:12
v3.0.0
3e0a516
Compare
Choose a tag to compare

BREAKING CHANGES

  • Update code to use ES2015 syntax (6d9d8c0)
  • Throw on non-string arguments and replace the caseInsensitive function with an option (65d397b)
    • naturalCompare() now throws if either of the first two arguments are not a string.
    • Also, the naturalCompare.caseInsensitive() function has been removed. Pass {caseInsensitive: true} as the third parameter to naturalCompare() instead.
  • Replace naturalCompare.alphabet with an alphabet option (6048bab)
    • naturalCompare.alphabet no longer exists for setting a custom alphabet. Use the new alphabet option instead.

Improvements

  • Perf boost with custom alphabet (21e061a)

Polish

  • Simplify if statements that handle leading zeros (fcaae03)
  • Replace var with let and const (e4de3f2)

Documentation

  • Make explanation a little clearer (464e890)
  • Simplify a section of the readme (4a4ca90)

2.0.3

16 Oct 05:21
v2.0.3
2f70d49
Compare
Choose a tag to compare
  • Fix sort when there are many leading 0s (#4) (@LeeHao92)
  • Test on Node 10, stop testing on Node 4 & 9 (b22b75d)

2.0.2

26 Oct 02:03
Compare
Choose a tag to compare
  • Update readme (b29b92f, ddad4d0)
  • Update dev dependencies (1afdad4)
  • eslint: Remove unnecessary and deprecated rules (724d1cc)
  • ci: Only test against Node v4 and higher (996b90e)

2.0.1

01 Jun 23:40
Compare
Choose a tag to compare
  • doc: Update README.md in regards to Bower (942c14c)
  • Test on Node v6 (497ea4b)

2.0.0

21 Apr 04:42
Compare
Choose a tag to compare

Note: This is a major version change and the interface to this module has completely changed. Please read the documentation in the readme to see the new API.

Changes:

  • Update license year (6649df0)
  • Convert to a CommonJS module (f055482)
  • Drop Bower support (unfortunately new tags keep getting published to Bower anyway)
  • Test with Node.js v4 and v5
  • Add benchmark test suite (ffd348e, c36d22f, be0f4f8, dda6739)
  • Reduce code and improve performance and memory usage (d58b22b)

1.1.1

08 Aug 19:29
Compare
Choose a tag to compare
  • Change location of dist files (affects Bower installation)
  • Change code style to require trailing commas

1.1.0

18 May 03:30
Compare
Choose a tag to compare
  • Performance and documentation improvements

1.0.0

08 May 22:40
Compare
Choose a tag to compare

First stable release

Changes:

  • Performance improvements