@thi.ng/compare 1.3.34 → 2.0.3

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
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [1.3.34](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.33...@thi.ng/compare@1.3.34) (2021-09-03)
6
+ ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.2...@thi.ng/compare@2.0.3) (2021-10-15)
7
7
 
8
8
  **Note:** Version bump only for package @thi.ng/compare
9
9
 
@@ -11,53 +11,83 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.2.2...@thi.ng/compare@1.3.0) (2020-04-05)
14
+ ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.1...@thi.ng/compare@2.0.2) (2021-10-15)
15
15
 
16
+ **Note:** Version bump only for package @thi.ng/compare
16
17
 
17
- ### Features
18
18
 
19
- * **compare:** fix [#215](https://github.com/thi-ng/umbrella/issues/215), add sort key getter support for compareByKeysX() ([f364b4e](https://github.com/thi-ng/umbrella/commit/f364b4e62dcd2ed13689a1ef97799cb53af3ef71))
20
19
 
21
20
 
22
21
 
22
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.0...@thi.ng/compare@2.0.1) (2021-10-13)
23
23
 
24
+ **Note:** Version bump only for package @thi.ng/compare
24
25
 
25
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.1.4...@thi.ng/compare@1.2.0) (2020-03-01)
26
26
 
27
27
 
28
- ### Features
29
28
 
30
- * **compare:** add HOFs, restructure, update deps & docs ([ed2c41c](https://github.com/thi-ng/umbrella/commit/ed2c41c120f6447b05022d74e510017a1f4a6257))
31
29
 
30
+ # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.3.34...@thi.ng/compare@2.0.0) (2021-10-12)
32
31
 
33
32
 
33
+ ### Build System
34
34
 
35
+ * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
35
36
 
36
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.0.10...@thi.ng/compare@1.1.0) (2019-11-30)
37
37
 
38
- ### Features
38
+ ### BREAKING CHANGES
39
39
 
40
- * **compare:** add compareNumAsc/Desc numeric comparators ([2b8fafc](https://github.com/thi-ng/umbrella/commit/2b8fafc9eca040b649ade479203537bbd9ba54ef))
40
+ * discontinue CommonJS & UMD versions
41
41
 
42
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@0.1.12...@thi.ng/compare@1.0.0) (2019-01-21)
42
+ - only ESM modules will be published from now on
43
+ - CJS obsolete due to ESM support in recent versions of node:
44
+ - i.e. launch NodeJS via:
45
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
46
+ - in the node REPL use `await import(...)` instead of `require()`
47
+ - UMD obsolete due to widespread browser support for ESM
43
48
 
44
- ### Build System
49
+ Also:
50
+ - normalize/restructure/reorg all package.json files
51
+ - cleanup all build scripts, remove obsolete
52
+ - switch from mocha to @thi.ng/testament for all tests
45
53
 
46
- * update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
47
54
 
48
- ### BREAKING CHANGES
49
55
 
50
- * enabled multi-outputs (ES6 modules, CJS, UMD)
51
56
 
52
- - build scripts now first build ES6 modules in package root, then call
53
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
54
- - all imports MUST be updated to only refer to package level
55
- (not individual files anymore). tree shaking in user land will get rid of
56
- all unused imported symbols.
57
57
 
58
- <a name="0.1.0"></a>
59
- # 0.1.0 (2018-05-10)
60
58
 
61
- ### Features
59
+ # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.2.2...@thi.ng/compare@1.3.0) (2020-04-05)
60
+
61
+ ### Features
62
+
63
+ - **compare:** fix [#215](https://github.com/thi-ng/umbrella/issues/215), add sort key getter support for compareByKeysX() ([f364b4e](https://github.com/thi-ng/umbrella/commit/f364b4e62dcd2ed13689a1ef97799cb53af3ef71))
64
+
65
+ # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.1.4...@thi.ng/compare@1.2.0) (2020-03-01)
66
+
67
+ ### Features
68
+
69
+ - **compare:** add HOFs, restructure, update deps & docs ([ed2c41c](https://github.com/thi-ng/umbrella/commit/ed2c41c120f6447b05022d74e510017a1f4a6257))
70
+
71
+ # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@1.0.10...@thi.ng/compare@1.1.0) (2019-11-30)
72
+
73
+ ### Features
74
+
75
+ - **compare:** add compareNumAsc/Desc numeric comparators ([2b8fafc](https://github.com/thi-ng/umbrella/commit/2b8fafc9eca040b649ade479203537bbd9ba54ef))
76
+
77
+ # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@0.1.12...@thi.ng/compare@1.0.0) (2019-01-21)
78
+
79
+ ### Build System
80
+
81
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
82
+
83
+ ### BREAKING CHANGES
84
+
85
+ - enabled multi-outputs (ES6 modules, CJS, UMD)
86
+ - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
87
+ - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
88
+
89
+ # 0.1.0 (2018-05-10)
90
+
91
+ ### Features
62
92
 
63
- * **compare:** add new package [@thi](https://github.com/thi).ng/compare ([e4a87c4](https://github.com/thi-ng/umbrella/commit/e4a87c4))
93
+ - **compare:** add new package [@thi](https://github.com/thi).ng/compare ([e4a87c4](https://github.com/thi-ng/umbrella/commit/e4a87c4))
package/README.md CHANGED
@@ -22,9 +22,8 @@ This project is part of the
22
22
 
23
23
  ## About
24
24
 
25
- Comparators with optional support for types implementing the
26
- [@thi.ng/api
27
- `ICompare`](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/api/compare.ts)
25
+ Comparators with optional support for types implementing the [@thi.ng/api
26
+ `ICompare`](https://github.com/thi-ng/umbrella/tree/develop/packages/api/src/compare.ts)
28
27
  interface.
29
28
 
30
29
  Since v1.2.0 additional higher-order comparators are included, e.g. to
@@ -44,15 +43,24 @@ comparator. See examples below.
44
43
  yarn add @thi.ng/compare
45
44
  ```
46
45
 
46
+ ES module import:
47
+
47
48
  ```html
48
- // ES module
49
- <script type="module" src="https://unpkg.com/@thi.ng/compare?module" crossorigin></script>
49
+ <script type="module" src="https://cdn.skypack.dev/@thi.ng/compare"></script>
50
+ ```
51
+
52
+ [Skypack documentation](https://docs.skypack.dev/)
53
+
54
+ For Node.js REPL:
55
+
56
+ ```text
57
+ # with flag only for < v16
58
+ node --experimental-repl-await
50
59
 
51
- // UMD
52
- <script src="https://unpkg.com/@thi.ng/compare/lib/index.umd.js" crossorigin></script>
60
+ > const compare = await import("@thi.ng/compare");
53
61
  ```
54
62
 
55
- Package sizes (gzipped, pre-treeshake): ESM: 396 bytes / CJS: 471 bytes / UMD: 519 bytes
63
+ Package sizes (gzipped, pre-treeshake): ESM: 396 bytes
56
64
 
57
65
  ## Dependencies
58
66
 
@@ -66,10 +74,11 @@ directory are using this package.
66
74
 
67
75
  A selection:
68
76
 
69
- | Screenshot | Description | Live demo | Source |
70
- |:--------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------|:-------------------------------------------------------|:------------------------------------------------------------------------------------|
71
- | | Full umbrella repo doc string search w/ paginated results | [Demo](https://demo.thi.ng/umbrella/rdom-search-docs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-search-docs) |
72
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/triple-query.png" width="240"/> | Triple store query results & sortable table | [Demo](https://demo.thi.ng/umbrella/triple-query/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/triple-query) |
77
+ | Screenshot | Description | Live demo | Source |
78
+ |:-----------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|:-------------------------------------------------------|:------------------------------------------------------------------------------------|
79
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/dominant-colors) |
80
+ | | Full umbrella repo doc string search w/ paginated results | [Demo](https://demo.thi.ng/umbrella/rdom-search-docs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-search-docs) |
81
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/triple-query.png" width="240"/> | Triple store query results & sortable table | [Demo](https://demo.thi.ng/umbrella/triple-query/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/triple-query) |
73
82
 
74
83
  ## API
75
84
 
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./compare";
2
- export * from "./keys";
3
- export * from "./numeric";
4
- export * from "./reverse";
1
+ export * from "./compare.js";
2
+ export * from "./keys.js";
3
+ export * from "./numeric.js";
4
+ export * from "./reverse.js";
5
5
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./compare";
2
- export * from "./keys";
3
- export * from "./numeric";
4
- export * from "./reverse";
1
+ export * from "./compare.js";
2
+ export * from "./keys.js";
3
+ export * from "./numeric.js";
4
+ export * from "./reverse.js";
package/keys.js CHANGED
@@ -1,4 +1,4 @@
1
- import { compare } from "./compare";
1
+ import { compare } from "./compare.js";
2
2
  const getKey = (k) => typeof k === "function" ? k : (x) => x[k];
3
3
  export function compareByKey(a, cmp = compare) {
4
4
  const k = getKey(a);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thi.ng/compare",
3
- "version": "1.3.34",
3
+ "version": "2.0.3",
4
4
  "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface",
5
+ "type": "module",
5
6
  "module": "./index.js",
6
- "main": "./lib/index.js",
7
- "umd:main": "./lib/index.umd.js",
8
7
  "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
@@ -24,27 +24,21 @@
24
24
  "author": "Karsten Schmidt <k+npm@thi.ng>",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
- "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module",
28
- "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all",
29
- "build:es6": "tsc --declaration",
30
- "build:test": "rimraf build && tsc -p test/tsconfig.json",
31
- "build:check": "tsc --isolatedModules --noEmit",
32
- "test": "mocha test",
33
- "cover": "nyc mocha test && nyc report --reporter=lcov",
34
- "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib",
35
- "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
36
- "doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.ts",
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf *.js *.d.ts *.map doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
37
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
38
- "pub": "yarn build:release && yarn publish --access public"
31
+ "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
+ "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
+ "pub": "yarn build && yarn publish --access public",
34
+ "test": "testament test"
39
35
  },
40
36
  "dependencies": {
41
- "@thi.ng/api": "^7.2.0"
37
+ "@thi.ng/api": "^8.0.3"
38
+ },
39
+ "devDependencies": {
40
+ "@thi.ng/testament": "^0.1.3"
42
41
  },
43
- "files": [
44
- "*.js",
45
- "*.d.ts",
46
- "lib"
47
- ],
48
42
  "keywords": [
49
43
  "comparator",
50
44
  "sort",
@@ -53,6 +47,29 @@
53
47
  "publishConfig": {
54
48
  "access": "public"
55
49
  },
56
- "sideEffects": false,
57
- "gitHead": "d971cb3f9b215a95483f78f1a8614015e331146f"
50
+ "engines": {
51
+ "node": ">=12.7"
52
+ },
53
+ "files": [
54
+ "*.js",
55
+ "*.d.ts"
56
+ ],
57
+ "exports": {
58
+ ".": {
59
+ "import": "./index.js"
60
+ },
61
+ "./compare": {
62
+ "import": "./compare.js"
63
+ },
64
+ "./keys": {
65
+ "import": "./keys.js"
66
+ },
67
+ "./numeric": {
68
+ "import": "./numeric.js"
69
+ },
70
+ "./reverse": {
71
+ "import": "./reverse.js"
72
+ }
73
+ },
74
+ "gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
58
75
  }
package/lib/index.js DELETED
@@ -1,79 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const compare = (a, b) => {
6
- if (a === b) {
7
- return 0;
8
- }
9
- if (a == null) {
10
- return b == null ? 0 : -1;
11
- }
12
- if (b == null) {
13
- return a == null ? 0 : 1;
14
- }
15
- if (typeof a.compare === "function") {
16
- return a.compare(b);
17
- }
18
- if (typeof b.compare === "function") {
19
- return -b.compare(a);
20
- }
21
- return a < b ? -1 : a > b ? 1 : 0;
22
- };
23
-
24
- const getKey = (k) => typeof k === "function" ? k : (x) => x[k];
25
- function compareByKey(a, cmp = compare) {
26
- const k = getKey(a);
27
- return (x, y) => cmp(k(x), k(y));
28
- }
29
- function compareByKeys2(a, b, cmpA = compare, cmpB = compare) {
30
- const ka = getKey(a);
31
- const kb = getKey(b);
32
- return (x, y) => {
33
- let res = cmpA(ka(x), ka(y));
34
- return res === 0 ? cmpB(kb(x), kb(y)) : res;
35
- };
36
- }
37
- function compareByKeys3(a, b, c, cmpA = compare, cmpB = compare, cmpC = compare) {
38
- const ka = getKey(a);
39
- const kb = getKey(b);
40
- const kc = getKey(c);
41
- return (x, y) => {
42
- let res = cmpA(ka(x), ka(y));
43
- return res === 0
44
- ? (res = cmpB(kb(x), kb(y))) === 0
45
- ? cmpC(kc(x), kc(y))
46
- : res
47
- : res;
48
- };
49
- }
50
- function compareByKeys4(a, b, c, d, cmpA = compare, cmpB = compare, cmpC = compare, cmpD = compare) {
51
- const ka = getKey(a);
52
- const kb = getKey(b);
53
- const kc = getKey(c);
54
- const kd = getKey(d);
55
- return (x, y) => {
56
- let res = cmpA(ka(x), ka(y));
57
- return res === 0
58
- ? (res = cmpB(kb(x), kb(y))) === 0
59
- ? (res = cmpC(kc(x), kc(y))) === 0
60
- ? cmpD(kd(x), kd(y))
61
- : res
62
- : res
63
- : res;
64
- };
65
- }
66
-
67
- const compareNumAsc = (a, b) => a - b;
68
- const compareNumDesc = (a, b) => b - a;
69
-
70
- const reverse = (cmp) => (a, b) => -cmp(a, b);
71
-
72
- exports.compare = compare;
73
- exports.compareByKey = compareByKey;
74
- exports.compareByKeys2 = compareByKeys2;
75
- exports.compareByKeys3 = compareByKeys3;
76
- exports.compareByKeys4 = compareByKeys4;
77
- exports.compareNumAsc = compareNumAsc;
78
- exports.compareNumDesc = compareNumDesc;
79
- exports.reverse = reverse;
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../compare.js","../keys.js","../numeric.js","../reverse.js"],"sourcesContent":null,"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AACjC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;AACjB,QAAQ,OAAO,CAAC,CAAC;AACjB,KAAK;AACL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(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.compare={}))}(this,(function(e){"use strict";const n=(e,n)=>e===n?0:null==e?null==n?0:-1:null==n?null==e?0:1:"function"==typeof e.compare?e.compare(n):"function"==typeof n.compare?-n.compare(e):e<n?-1:e>n?1:0,t=e=>"function"==typeof e?e:n=>n[e];e.compare=n,e.compareByKey=function(e,o=n){const r=t(e);return(e,n)=>o(r(e),r(n))},e.compareByKeys2=function(e,o,r=n,c=n){const u=t(e),i=t(o);return(e,n)=>{let t=r(u(e),u(n));return 0===t?c(i(e),i(n)):t}},e.compareByKeys3=function(e,o,r,c=n,u=n,i=n){const f=t(e),p=t(o),s=t(r);return(e,n)=>{let t=c(f(e),f(n));return 0===t&&0===(t=u(p(e),p(n)))?i(s(e),s(n)):t}},e.compareByKeys4=function(e,o,r,c,u=n,i=n,f=n,p=n){const s=t(e),l=t(o),a=t(r),m=t(c);return(e,n)=>{let t=u(s(e),s(n));return 0===t&&0===(t=i(l(e),l(n)))&&0===(t=f(a(e),a(n)))?p(m(e),m(n)):t}},e.compareNumAsc=(e,n)=>e-n,e.compareNumDesc=(e,n)=>n-e,e.reverse=e=>(n,t)=>-e(n,t),Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../compare.js","../keys.js","../numeric.js","../reverse.js"],"sourcesContent":null,"names":[],"mappings":";;;;;;AAAY,UAAC,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;IACjC,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;IACjB,QAAQ,OAAO,CAAC,CAAC;IACjB,KAAK;IACL,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE;IACnB,QAAQ,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,KAAK;IACL,IAAI,IAAI,CA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