sort-by-property
Version:
Type-safe array sorting method with support for deeply nested properties and Typescript autocompletion.
216 lines (133 loc) • 14.5 kB
Markdown
### Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [1.3.0](https://github.com/jvandenaardweg/sort-by-property/compare/1.2.4...1.3.0)
- chore(deps-dev): bump jest and @types/jest [`4c2fdae`](https://github.com/jvandenaardweg/sort-by-property/commit/4c2fdae23cb18a08fc6efbb78a79ce7158e90780)
- chore(deps-dev): bump jest from 29.4.1 to 29.4.3 [`a2f51c4`](https://github.com/jvandenaardweg/sort-by-property/commit/a2f51c46427a39408f402a433dbf5dad0b525ba7)
- chore(deps-dev): bump release-it from 15.6.1 to 15.10.1 [`ecc1a03`](https://github.com/jvandenaardweg/sort-by-property/commit/ecc1a036553deebeb4794afcf8928353fadbf9d5)
#### [1.2.4](https://github.com/jvandenaardweg/sort-by-property/compare/1.2.3...1.2.4)
> 2 January 2023
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`f117a48`](https://github.com/jvandenaardweg/sort-by-property/commit/f117a4893d11d62031b41d776d9d9c7254a426cb)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`1af35ff`](https://github.com/jvandenaardweg/sort-by-property/commit/1af35ffc9909722b59677ac9a8369debd533152c)
- chore(deps-dev): bump @swc/core from 1.3.21 to 1.3.24 [`79ff209`](https://github.com/jvandenaardweg/sort-by-property/commit/79ff20913ae998f677736ce8d196b602b7b278fe)
#### [1.2.3](https://github.com/jvandenaardweg/sort-by-property/compare/1.2.2...1.2.3)
> 16 December 2022
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`1abadf5`](https://github.com/jvandenaardweg/sort-by-property/commit/1abadf5aaadc019eb4e1db469d0a55420367450c)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`01480d1`](https://github.com/jvandenaardweg/sort-by-property/commit/01480d1f8df2c80d23620cbb3c16f872314833a2)
- chore(deps-dev): bump release-it from 15.5.0 to 15.5.1 [`397dd9f`](https://github.com/jvandenaardweg/sort-by-property/commit/397dd9f52a5c0f2b94498483cc306d3a21107d03)
#### [1.2.2](https://github.com/jvandenaardweg/sort-by-property/compare/1.2.1...1.2.2)
> 28 November 2022
- chore(deps-dev): bump @swc/helpers from 0.4.12 to 0.4.14 [`#8`](https://github.com/jvandenaardweg/sort-by-property/pull/8)
- chore(deps-dev): bump @types/jest from 29.2.2 to 29.2.3 [`#7`](https://github.com/jvandenaardweg/sort-by-property/pull/7)
- chore(deps-dev): bump @swc/core from 1.3.16 to 1.3.19 [`#6`](https://github.com/jvandenaardweg/sort-by-property/pull/6)
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.42.1 to 5.43.0 [`#5`](https://github.com/jvandenaardweg/sort-by-property/pull/5)
- chore(deps-dev): bump @typescript-eslint/parser from 5.42.1 to 5.43.0 [`#4`](https://github.com/jvandenaardweg/sort-by-property/pull/4)
- chore: upgrade dependencies [`cca09b1`](https://github.com/jvandenaardweg/sort-by-property/commit/cca09b19de40789bc0d8c00ce2343daece8eae0a)
- chore: release v1.2.2 [`28420d9`](https://github.com/jvandenaardweg/sort-by-property/commit/28420d902e597e53aff948fc3b1beda58b339ebf)
- chore(deps-dev): bump lint-staged from 13.0.3 to 13.0.4 [`bd30e70`](https://github.com/jvandenaardweg/sort-by-property/commit/bd30e70c9583fe89215107b9ce52db77a5b06240)
#### [1.2.1](https://github.com/jvandenaardweg/sort-by-property/compare/1.2.0...1.2.1)
> 16 November 2022
- chore: release v1.2.1 [`7a12be9`](https://github.com/jvandenaardweg/sort-by-property/commit/7a12be98851277dee3e5aa0b0c288a89a868b609)
- chore: exclude dist/utils from npm package [`2d2e24a`](https://github.com/jvandenaardweg/sort-by-property/commit/2d2e24ab3b225f144c34413cf673e91b292fd1ca)
#### [1.2.0](https://github.com/jvandenaardweg/sort-by-property/compare/1.1.0...1.2.0)
> 16 November 2022
- feat: minify bundle and output to single file [`1519a6b`](https://github.com/jvandenaardweg/sort-by-property/commit/1519a6bf8d4206c776e9d824eab21370df800110)
- chore: release v1.2.0 [`3768f7c`](https://github.com/jvandenaardweg/sort-by-property/commit/3768f7cd9a9b1af385eb55a9b861d0bb60fde410)
#### [1.1.0](https://github.com/jvandenaardweg/sort-by-property/compare/1.0.5...1.1.0)
> 16 November 2022
- feat: support boolean values [`29c32c9`](https://github.com/jvandenaardweg/sort-by-property/commit/29c32c9dc822bb0b31e65900eedfc3a1f7dfe45c)
- refactor: make PropertyPath type simpler [`ebdb01b`](https://github.com/jvandenaardweg/sort-by-property/commit/ebdb01bd419f4089ae5e8b220df25915a3cff625)
- chore: release v1.1.0 [`f55c7cf`](https://github.com/jvandenaardweg/sort-by-property/commit/f55c7cfb4f2a1726aa8f47364d41904368aaa472)
#### [1.0.5](https://github.com/jvandenaardweg/sort-by-property/compare/1.0.4...1.0.5)
> 15 November 2022
- chore: remove unused dependencies [`43bfe3e`](https://github.com/jvandenaardweg/sort-by-property/commit/43bfe3ef134daf91c37398b3f52a8cc3a7c15312)
- fix: build after removed too many dev dependencies [`ca67dae`](https://github.com/jvandenaardweg/sort-by-property/commit/ca67dae73cffeab7b6d5200230d057814bf0a9ee)
- chore: release v1.0.5 [`be72859`](https://github.com/jvandenaardweg/sort-by-property/commit/be72859734271db955d01ab5fcf704e681429412)
#### [1.0.4](https://github.com/jvandenaardweg/sort-by-property/compare/1.0.3...1.0.4)
> 14 November 2022
- chore: use local github token to release [`c4fffb0`](https://github.com/jvandenaardweg/sort-by-property/commit/c4fffb0b5b19093843076ca6726b2d41d1efed01)
- chore: release v1.0.4 [`eaa589e`](https://github.com/jvandenaardweg/sort-by-property/commit/eaa589e3cd367ccb68c0bdbe07da1bce5369ac40)
- feat: export default sortByProperty [`5600b75`](https://github.com/jvandenaardweg/sort-by-property/commit/5600b75136d1b21f2aae4edb9bdccf2ce3f63c41)
#### [1.0.3](https://github.com/jvandenaardweg/sort-by-property/compare/1.0.2...1.0.3)
> 14 November 2022
- chore: release v1.0.3 [`ed07b37`](https://github.com/jvandenaardweg/sort-by-property/commit/ed07b3718737e6a162abf4ccb56f0fd82adc0cf0)
- fix: now really fixing module exports [`11e5acc`](https://github.com/jvandenaardweg/sort-by-property/commit/11e5accaac0858a75b3cd5b4443f356373af6b05)
- chore(deps-dev): bump @swc/core from 1.3.14 to 1.3.16 [`93ebec1`](https://github.com/jvandenaardweg/sort-by-property/commit/93ebec1be071237bff49940662296d84ad1d9318)
#### [1.0.2](https://github.com/jvandenaardweg/sort-by-property/compare/1.0.1...1.0.2)
> 14 November 2022
- chore: release v1.0.2 [`43b4852`](https://github.com/jvandenaardweg/sort-by-property/commit/43b4852b1ad6d4c96c540deb8cadc07a3782c47e)
- fix: bundle export [`b374da3`](https://github.com/jvandenaardweg/sort-by-property/commit/b374da3bbbe906dbdaf8d4a17103c8f0690df9c7)
#### [1.0.1](https://github.com/jvandenaardweg/sort-by-property/compare/1.0.0...1.0.1)
> 14 November 2022
- feat: use rollup to create dist files [`c00fca7`](https://github.com/jvandenaardweg/sort-by-property/commit/c00fca7bd327be71ea48f375ac27983d7a0750c5)
- chore: release v1.0.1 [`7877424`](https://github.com/jvandenaardweg/sort-by-property/commit/78774241a38b35e742236ee7e328143c710fc1d0)
### [1.0.0](https://github.com/jvandenaardweg/sort-by-property/compare/0.6.0...1.0.0)
> 14 November 2022
- test: better structure tests [`4542c27`](https://github.com/jvandenaardweg/sort-by-property/commit/4542c277a3511c5f9c3309c5cb6418944114c222)
- chore: update readme on performance [`da3d3e6`](https://github.com/jvandenaardweg/sort-by-property/commit/da3d3e60dfd5b5aaa5ae64b80ee5a24bbb228da1)
- test: use toStrictEqual to also allow type checking undefined values [`82a1401`](https://github.com/jvandenaardweg/sort-by-property/commit/82a1401d0801453a3a2b990186b5f5b08c09c302)
#### [0.6.0](https://github.com/jvandenaardweg/sort-by-property/compare/0.5.1...0.6.0)
> 11 November 2022
- feat: added support for sorting symbols [`ded98a9`](https://github.com/jvandenaardweg/sort-by-property/commit/ded98a97d1e4bfdf556a2fb46b9d0b4e990a3a85)
- chore: release v0.6.0 [`4f7ac07`](https://github.com/jvandenaardweg/sort-by-property/commit/4f7ac0782409964f59bf0c8a09980e9aca676600)
- refactor: use method to get property values from names [`b91469c`](https://github.com/jvandenaardweg/sort-by-property/commit/b91469c2a01296ae68cf8c40ae33dd383145498b)
#### [0.5.1](https://github.com/jvandenaardweg/sort-by-property/compare/0.5.0...0.5.1)
> 11 November 2022
- chore: fix ci on performance.ts [`abb49db`](https://github.com/jvandenaardweg/sort-by-property/commit/abb49db85691c2b17778ea3661d19b5cbcf171be)
- chore: release v0.5.1 [`39739c2`](https://github.com/jvandenaardweg/sort-by-property/commit/39739c2e5d566683283cdd809ed553d00319730a)
#### [0.5.0](https://github.com/jvandenaardweg/sort-by-property/compare/0.4.4...0.5.0)
> 11 November 2022
- feat: performance improvement on large arrays by not using reduce when the propertyPath is only 1 level [`b157a82`](https://github.com/jvandenaardweg/sort-by-property/commit/b157a82eb2bcca1d3d20fe4d1e552620481f408d)
- test: improve tests [`413991b`](https://github.com/jvandenaardweg/sort-by-property/commit/413991bdda28edcc063224119564f1c9398f19ee)
- chore: release v0.5.0 [`d7b78c3`](https://github.com/jvandenaardweg/sort-by-property/commit/d7b78c31288798a775d2dbb95cd875c409b72add)
#### [0.4.4](https://github.com/jvandenaardweg/sort-by-property/compare/0.4.3...0.4.4)
> 11 November 2022
- chore: update issue templates [`4731c97`](https://github.com/jvandenaardweg/sort-by-property/commit/4731c972c51eb91878eda2a6dab9976ff7811b57)
- refactor: move supported types in SupportedTypes type [`e111016`](https://github.com/jvandenaardweg/sort-by-property/commit/e1110166170c446fae6d83feb19d8b448bc218ff)
- refactor: do not split the path each time we sort an object [`d4705c5`](https://github.com/jvandenaardweg/sort-by-property/commit/d4705c5845212cecbe07f1a884f03068b6bdaab5)
#### [0.4.3](https://github.com/jvandenaardweg/sort-by-property/compare/0.4.2...0.4.3)
> 8 November 2022
- chore: release v0.4.3 [`f814891`](https://github.com/jvandenaardweg/sort-by-property/commit/f814891790ac815ad394df8fe4bdb766694f694a)
- feat: add dist folder to npm package [`6caa045`](https://github.com/jvandenaardweg/sort-by-property/commit/6caa0456be7b6e1e0ed7cde64d7c4b2604008972)
#### [0.4.2](https://github.com/jvandenaardweg/sort-by-property/compare/0.4.1...0.4.2)
> 8 November 2022
- refactor: move bigint check down its probably the least used [`c579f8a`](https://github.com/jvandenaardweg/sort-by-property/commit/c579f8a9e52908d9303ab9689f85ea647b21ae71)
- chore: release v0.4.2 [`2a37e62`](https://github.com/jvandenaardweg/sort-by-property/commit/2a37e626d2f7d209047bc7fac628f494e4df86a3)
- test: add extra bigint test [`2c2e4f3`](https://github.com/jvandenaardweg/sort-by-property/commit/2c2e4f3fa50053f701f8991d012d30fcf0a82315)
#### [0.4.1](https://github.com/jvandenaardweg/sort-by-property/compare/0.4.0...0.4.1)
> 8 November 2022
- chore: release v0.4.1 [`e768776`](https://github.com/jvandenaardweg/sort-by-property/commit/e768776043dd8dcf64843e476d83e8b5209945b9)
- chore: update readme [`102fa01`](https://github.com/jvandenaardweg/sort-by-property/commit/102fa017b8aa484c1209e56951444242281b4b9a)
- docs: fix typo [`b694f8a`](https://github.com/jvandenaardweg/sort-by-property/commit/b694f8aa567774ac9b23da4df62751eca857cbea)
#### [0.4.0](https://github.com/jvandenaardweg/sort-by-property/compare/0.3.0...0.4.0)
> 8 November 2022
- feat: handle bigint values correctly [`b3ffaf3`](https://github.com/jvandenaardweg/sort-by-property/commit/b3ffaf3656c38b62bffcbec3682f4313940df2e1)
- chore: release v0.4.0 [`ed70cd8`](https://github.com/jvandenaardweg/sort-by-property/commit/ed70cd8f64baa843c9526620bbdd646c5b976a02)
#### [0.3.0](https://github.com/jvandenaardweg/sort-by-property/compare/0.2.4...0.3.0)
> 8 November 2022
- feat: handle null and undefined values correctly without erroring [`1e8c726`](https://github.com/jvandenaardweg/sort-by-property/commit/1e8c7268243adfafec4d45d0b48beb70583f194e)
- chore: update packages and scripts [`48ba614`](https://github.com/jvandenaardweg/sort-by-property/commit/48ba6144a19f32563e5100c3dfc4b7130e09f044)
- feat: correctly sort strings disguised as a number [`9438046`](https://github.com/jvandenaardweg/sort-by-property/commit/94380463b7d7b6f4bbf46774d938bf04881958d5)
#### [0.2.4](https://github.com/jvandenaardweg/sort-by-property/compare/0.2.3...0.2.4)
> 8 November 2022
- chore: remove conventional changelog [`a8015da`](https://github.com/jvandenaardweg/sort-by-property/commit/a8015da16539bb7f449805415f90e28235beaefe)
- chore: release v0.2.4 [`f9449e5`](https://github.com/jvandenaardweg/sort-by-property/commit/f9449e5d302c203e1e11d1dd7a2ad094696c768e)
#### [0.2.3](https://github.com/jvandenaardweg/sort-by-property/compare/0.2.2...0.2.3)
> 8 November 2022
- chore: release v0.2.3 [`d21f219`](https://github.com/jvandenaardweg/sort-by-property/commit/d21f219c1f0e9a5008dab9b228770de5e26c0b1a)
- chore: added changelog [`cc46c2b`](https://github.com/jvandenaardweg/sort-by-property/commit/cc46c2b7846e3ec9355fb3443c3ac8f23d8ca70b)
#### [0.2.2](https://github.com/jvandenaardweg/sort-by-property/compare/0.2.1...0.2.2)
> 8 November 2022
- chore: create changelog on release [`9c7b570`](https://github.com/jvandenaardweg/sort-by-property/commit/9c7b570ebb64679a194d4f33600029dcea67934e)
- chore: use auto-changelog [`96f0aaa`](https://github.com/jvandenaardweg/sort-by-property/commit/96f0aaa2d01fd709b86dc822eb276dcbdfb08f8b)
- refactor: use array util for isArray [`4f7cdbb`](https://github.com/jvandenaardweg/sort-by-property/commit/4f7cdbb773cf6f32af746399251943992d407e8c)
#### [0.2.1](https://github.com/jvandenaardweg/sort-by-property/compare/0.2.0...0.2.1)
> 8 November 2022
- docs: update readme with npm package name [`c408483`](https://github.com/jvandenaardweg/sort-by-property/commit/c408483010cbce2534c39510d2f9a9a47cf98d4e)
- chore: release v0.2.1 [`0f72049`](https://github.com/jvandenaardweg/sort-by-property/commit/0f720497a3fc8bb0b808dcd813e12ec16c48ade7)
- chore: create changelog on release [`83c687f`](https://github.com/jvandenaardweg/sort-by-property/commit/83c687fd03b0e79aa5883f2334e6599f45984dbf)
#### 0.2.0
> 8 November 2022
- feat: add typed sortBy method [`ba12289`](https://github.com/jvandenaardweg/sort-by-property/commit/ba122899554a437e9b326b2051cd2cce16ad834a)
- chore: add release-it [`4f01d81`](https://github.com/jvandenaardweg/sort-by-property/commit/4f01d8138733955b97ea3000b8adb6cf1dab0af8)
- chore: remove unused deps [`1815a6f`](https://github.com/jvandenaardweg/sort-by-property/commit/1815a6ff3c1a6e44fbfc77183a9fdba98d4aa67d)