@thi.ng/compare 2.0.6 → 2.1.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +72 -80
  2. package/README.md +1 -1
  3. package/package.json +74 -69
package/CHANGELOG.md CHANGED
@@ -1,117 +1,109 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.5...@thi.ng/compare@2.0.6) (2021-10-28)
7
-
8
- **Note:** Version bump only for package @thi.ng/compare
9
-
10
-
11
-
12
-
13
-
14
- ## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.4...@thi.ng/compare@2.0.5) (2021-10-28)
15
-
16
- **Note:** Version bump only for package @thi.ng/compare
17
-
18
-
19
-
20
-
21
-
22
- ## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/compare@2.0.3...@thi.ng/compare@2.0.4) (2021-10-25)
23
-
24
- **Note:** Version bump only for package @thi.ng/compare
25
-
26
-
27
-
28
-
29
-
30
- ## [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)
31
-
32
- **Note:** Version bump only for package @thi.ng/compare
33
-
34
-
35
-
36
-
37
-
38
- ## [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)
39
-
40
- **Note:** Version bump only for package @thi.ng/compare
41
-
42
-
43
-
44
-
45
-
46
- ## [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)
47
-
48
- **Note:** Version bump only for package @thi.ng/compare
3
+ - **Last updated**: 2021-11-19T07:59:50Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
49
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
50
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
51
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@2.1.0) (2021-11-17)
52
13
 
14
+ #### 🚀 Features
53
15
 
54
- # [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)
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
55
21
 
22
+ #### ♻️ Refactoring
56
23
 
57
- ### Build System
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
58
30
 
59
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@2.0.1) (2021-10-13)
60
32
 
33
+ #### ♻️ Refactoring
61
34
 
62
- ### BREAKING CHANGES
35
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
36
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
37
+ - add .js suffix for all relative imports
63
38
 
64
- * discontinue CommonJS & UMD versions
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@2.0.0) (2021-10-12)
65
40
 
66
- - only ESM modules will be published from now on
67
- - CJS obsolete due to ESM support in recent versions of node:
68
- - i.e. launch NodeJS via:
69
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
70
- - in the node REPL use `await import(...)` instead of `require()`
71
- - UMD obsolete due to widespread browser support for ESM
41
+ #### 🛑 Breaking changes
72
42
 
73
- Also:
74
- - normalize/restructure/reorg all package.json files
75
- - cleanup all build scripts, remove obsolete
76
- - switch from mocha to @thi.ng/testament for all tests
43
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
44
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
45
+ - only ESM modules will be published from now on
46
+ - CJS obsolete due to ESM support in recent versions of node:
47
+ - i.e. launch NodeJS via:
48
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
49
+ - in the node REPL use `await import(...)` instead of `require()`
50
+ - UMD obsolete due to widespread browser support for ESM
51
+ Also:
52
+ - normalize/restructure/reorg all package.json files
53
+ - cleanup all build scripts, remove obsolete
54
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
77
55
 
56
+ #### ♻️ Refactoring
78
57
 
58
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
59
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
79
60
 
61
+ ### [1.3.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@1.3.16) (2020-09-13)
80
62
 
63
+ #### ♻️ Refactoring
81
64
 
65
+ - update deps, use new Fn types ([c3a4b97](https://github.com/thi-ng/umbrella/commit/c3a4b97))
82
66
 
83
- # [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)
67
+ ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@1.3.0) (2020-04-05)
84
68
 
85
- ### Features
69
+ #### 🚀 Features
86
70
 
87
- - **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))
71
+ - 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/f364b4e))
88
72
 
89
- # [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)
73
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@1.2.0) (2020-03-01)
90
74
 
91
- ### Features
75
+ #### 🚀 Features
92
76
 
93
- - **compare:** add HOFs, restructure, update deps & docs ([ed2c41c](https://github.com/thi-ng/umbrella/commit/ed2c41c120f6447b05022d74e510017a1f4a6257))
77
+ - add HOFs, restructure, update deps & docs ([ed2c41c](https://github.com/thi-ng/umbrella/commit/ed2c41c))
78
+ - add compareByKey(), compareByKeys2/3/4() HOF
79
+ - add reverse() HOF
80
+ - split into separate source files
81
+ - update readme
94
82
 
95
- # [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)
83
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@1.1.0) (2019-11-30)
96
84
 
97
- ### Features
85
+ #### 🚀 Features
98
86
 
99
- - **compare:** add compareNumAsc/Desc numeric comparators ([2b8fafc](https://github.com/thi-ng/umbrella/commit/2b8fafc9eca040b649ade479203537bbd9ba54ef))
87
+ - add compareNumAsc/Desc numeric comparators ([2b8fafc](https://github.com/thi-ng/umbrella/commit/2b8fafc))
100
88
 
101
- # [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)
89
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@1.0.0) (2019-01-21)
102
90
 
103
- ### Build System
91
+ #### 🛑 Breaking changes
104
92
 
105
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
93
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
94
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
95
+ - build scripts now first build ES6 modules in package root, then call
96
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
97
+ - all imports MUST be updated to only refer to package level
98
+ (not individual files anymore). tree shaking in user land will get rid of
99
+ all unused imported symbols.
106
100
 
107
- ### BREAKING CHANGES
101
+ #### ♻️ Refactoring
108
102
 
109
- - enabled multi-outputs (ES6 modules, CJS, UMD)
110
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
111
- - 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.
103
+ - use arrow fns ([025412a](https://github.com/thi-ng/umbrella/commit/025412a))
112
104
 
113
- # 0.1.0 (2018-05-10)
105
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/compare@0.1.0) (2018-05-10)
114
106
 
115
- ### Features
107
+ #### 🚀 Features
116
108
 
117
- - **compare:** add new package [@thi](https://github.com/thi).ng/compare ([e4a87c4](https://github.com/thi-ng/umbrella/commit/e4a87c4))
109
+ - add new package [@thi.ng/compare](https://github.com/thi-ng/umbrella/tree/main/packages/compare) ([e4a87c4](https://github.com/thi-ng/umbrella/commit/e4a87c4))
package/README.md CHANGED
@@ -60,7 +60,7 @@ node --experimental-repl-await
60
60
  > const compare = await import("@thi.ng/compare");
61
61
  ```
62
62
 
63
- Package sizes (gzipped, pre-treeshake): ESM: 396 bytes
63
+ Package sizes (gzipped, pre-treeshake): ESM: 429 bytes
64
64
 
65
65
  ## Dependencies
66
66
 
package/package.json CHANGED
@@ -1,75 +1,80 @@
1
1
  {
2
- "name": "@thi.ng/compare",
3
- "version": "2.0.6",
4
- "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/compare",
3
+ "version": "2.1.1",
4
+ "description": "Comparators with support for types implementing the @thi.ng/api/ICompare interface",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/compare#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/compare#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
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"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.1"
38
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.18.19",
41
+ "@thi.ng/testament": "^0.2.1",
42
+ "rimraf": "^3.0.2",
43
+ "tools": "^0.0.1",
44
+ "typedoc": "^0.22.9",
45
+ "typescript": "^4.5.2"
46
+ },
47
+ "keywords": [
48
+ "comparator",
49
+ "sort",
50
+ "typescript"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "engines": {
56
+ "node": ">=12.7"
57
+ },
58
+ "files": [
59
+ "*.js",
60
+ "*.d.ts"
61
+ ],
62
+ "exports": {
63
+ ".": {
64
+ "import": "./index.js"
35
65
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.0.6"
66
+ "./compare": {
67
+ "import": "./compare.js"
38
68
  },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
69
+ "./keys": {
70
+ "import": "./keys.js"
41
71
  },
42
- "keywords": [
43
- "comparator",
44
- "sort",
45
- "typescript"
46
- ],
47
- "publishConfig": {
48
- "access": "public"
72
+ "./numeric": {
73
+ "import": "./numeric.js"
49
74
  },
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": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
75
- }
75
+ "./reverse": {
76
+ "import": "./reverse.js"
77
+ }
78
+ },
79
+ "gitHead": "8bd27c8bde0b770e7c001943f11c951cd345d668\n"
80
+ }