Skip to content

Commit

Permalink
feat: reuse natural-orderby v3 as it ported to typescript with perfor…
Browse files Browse the repository at this point in the history
…mance fixes
  • Loading branch information
slavik-chapelskyi committed Nov 15, 2023
1 parent 03670e9 commit 57f688b
Show file tree
Hide file tree
Showing 73 changed files with 22 additions and 7,288 deletions.
9 changes: 9 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/test.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,9 @@
"type-check:watch": "npm run type-check -- --watch"
},
"lint-staged": {
"*.{html,md,yml}": [
"prettier --write"
],
"*.{js,ts,json}": [
"eslint --fix"
],
".circleci/config.yml": [
".husky/validate-circleci-config.sh"
]
"*.{html,md,yml}": "prettier --write",
"*.{js,ts,json}": "eslint --fix",
".circleci/config.yml": ".husky/validate-circleci-config.sh"
},
"prettier": "@shelf/prettier-config",
"devDependencies": {
Expand All @@ -46,21 +40,23 @@
"@shelf/tsconfig": "0.0.11",
"@size-limit/preset-small-lib": "10.0.2",
"@types/jest": "29.5.7",
"@types/node": "16",
"@types/node": "18",
"benny": "3.7.1",
"eslint": "8.52.0",
"husky": "8.0.3",
"jest": "29.7.0",
"lint-staged": "15.0.2",
"natural-orderby": "2.0.3",
"prettier": "3.0.3",
"size-limit": "10.0.2",
"typescript": "5.2.2"
},
"engines": {
"node": ">=14"
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"natural-orderby": "3.0.2"
}
}
6 changes: 2 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"extends": ["config:base"],
"labels": ["dependencies", "backend"],
"ignoreDeps": [
"@types/node"
]
"labels": ["backend"],
"ignoreDeps": ["@types/node"]
}
39 changes: 0 additions & 39 deletions src/compare/__tests__/index.test.ts

This file was deleted.

103 changes: 0 additions & 103 deletions src/compare/index.ts

This file was deleted.

11 changes: 2 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
// Javascript natural sort algorithm with unicode support
// based on chunking idea by Dave Koelle
//
// https://github.com/yobacca/natural-sort-order
// released under MIT License
import orderBy from './orderBy/index.js';
import compare from './compare/index.js';

export {orderBy, compare};
// eslint-disable-next-line no-restricted-imports
export {orderBy, compare} from 'natural-orderby';
Loading

0 comments on commit 57f688b

Please sign in to comment.