@thi.ng/equiv 2.0.6 → 2.1.2

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
@@ -1,99 +1,88 @@
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/equiv@2.0.5...@thi.ng/equiv@2.0.6) (2021-10-28)
7
-
8
- **Note:** Version bump only for package @thi.ng/equiv
9
-
10
-
11
-
12
-
13
-
14
- ## [2.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@2.0.4...@thi.ng/equiv@2.0.5) (2021-10-28)
15
-
16
- **Note:** Version bump only for package @thi.ng/equiv
17
-
18
-
19
-
20
-
21
-
22
- ## [2.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@2.0.3...@thi.ng/equiv@2.0.4) (2021-10-25)
23
-
24
- **Note:** Version bump only for package @thi.ng/equiv
25
-
26
-
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
27
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
28
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
29
11
 
30
- ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@2.0.2...@thi.ng/equiv@2.0.3) (2021-10-15)
31
-
32
- **Note:** Version bump only for package @thi.ng/equiv
33
-
34
-
35
-
36
-
37
-
38
- ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@2.0.1...@thi.ng/equiv@2.0.2) (2021-10-15)
39
-
40
- **Note:** Version bump only for package @thi.ng/equiv
41
-
42
-
43
-
44
-
45
-
46
- ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@2.0.0...@thi.ng/equiv@2.0.1) (2021-10-13)
47
-
48
- **Note:** Version bump only for package @thi.ng/equiv
49
-
50
-
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.1.0) (2021-11-17)
51
13
 
14
+ #### 🚀 Features
52
15
 
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
53
21
 
54
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@1.0.45...@thi.ng/equiv@2.0.0) (2021-10-12)
22
+ #### ♻️ Refactoring
55
23
 
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.
56
30
 
57
- ### Build System
31
+ ### [2.0.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.0.7) (2021-11-10)
58
32
 
59
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
33
+ #### ♻️ Refactoring
60
34
 
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
61
36
 
62
- ### BREAKING CHANGES
37
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.0.1) (2021-10-13)
63
38
 
64
- * discontinue CommonJS & UMD versions
39
+ #### ♻️ Refactoring
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
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
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
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.0.0) (2021-10-12)
77
44
 
45
+ #### 🛑 Breaking changes
78
46
 
47
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
48
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
49
+ - only ESM modules will be published from now on
50
+ - CJS obsolete due to ESM support in recent versions of node:
51
+ - i.e. launch NodeJS via:
52
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
53
+ - in the node REPL use `await import(...)` instead of `require()`
54
+ - UMD obsolete due to widespread browser support for ESM
55
+ Also:
56
+ - normalize/restructure/reorg all package.json files
57
+ - cleanup all build scripts, remove obsolete
58
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
79
59
 
60
+ #### ♻️ Refactoring
80
61
 
62
+ - update various benchmarks ([53e8a6a](https://github.com/thi-ng/umbrella/commit/53e8a6a))
63
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
64
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
81
65
 
66
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@1.0.0) (2019-01-21)
82
67
 
83
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@0.1.15...@thi.ng/equiv@1.0.0) (2019-01-21)
68
+ #### 🛑 Breaking changes
84
69
 
85
- ### Build System
70
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
71
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
72
+ - build scripts now first build ES6 modules in package root, then call
73
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
74
+ - all imports MUST be updated to only refer to package level
75
+ (not individual files anymore). tree shaking in user land will get rid of
76
+ all unused imported symbols.
86
77
 
87
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
78
+ ### [0.1.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@0.1.14) (2018-12-08)
88
79
 
89
- ### BREAKING CHANGES
80
+ #### ♻️ Refactoring
90
81
 
91
- - enabled multi-outputs (ES6 modules, CJS, UMD)
92
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
93
- - 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.
82
+ - minor update (intern string consts) ([8165005](https://github.com/thi-ng/umbrella/commit/8165005))
94
83
 
95
- # 0.1.0 (2018-05-10)
84
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@0.1.0) (2018-05-10)
96
85
 
97
- ### Features
86
+ #### 🚀 Features
98
87
 
99
- - **equiv:** add new package [@thi](https://github.com/thi).ng/equiv ([6d12ae0](https://github.com/thi-ng/umbrella/commit/6d12ae0))
88
+ - add new package [@thi.ng/equiv](https://github.com/thi-ng/umbrella/tree/main/packages/equiv) ([6d12ae0](https://github.com/thi-ng/umbrella/commit/6d12ae0))
package/README.md CHANGED
@@ -63,7 +63,7 @@ node --experimental-repl-await
63
63
  > const equiv = await import("@thi.ng/equiv");
64
64
  ```
65
65
 
66
- Package sizes (gzipped, pre-treeshake): ESM: 487 bytes
66
+ Package sizes (gzipped, pre-treeshake): ESM: 488 bytes
67
67
 
68
68
  ## Dependencies
69
69
 
package/index.js CHANGED
@@ -53,7 +53,7 @@ export const equiv = (a, b) => {
53
53
  export const equivArrayLike = (a, b, _equiv = equiv) => {
54
54
  let l = a.length;
55
55
  if (l === b.length) {
56
- while (--l >= 0 && _equiv(a[l], b[l]))
56
+ while (l-- > 0 && _equiv(a[l], b[l]))
57
57
  ;
58
58
  }
59
59
  return l < 0;
package/package.json CHANGED
@@ -1,67 +1,72 @@
1
1
  {
2
- "name": "@thi.ng/equiv",
3
- "version": "2.0.6",
4
- "description": "Extensible deep value equivalence checking for any data types",
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/equiv",
3
+ "version": "2.1.2",
4
+ "description": "Extensible deep value equivalence checking for any data types",
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/equiv#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/equiv#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"
35
- },
36
- "devDependencies": {
37
- "@thi.ng/testament": "^0.1.6"
38
- },
39
- "keywords": [
40
- "array",
41
- "deep",
42
- "equality",
43
- "interface",
44
- "typescript",
45
- "value-semantics"
46
- ],
47
- "publishConfig": {
48
- "access": "public"
49
- },
50
- "browser": {
51
- "process": false,
52
- "setTimeout": false
53
- },
54
- "engines": {
55
- "node": ">=12.7"
56
- },
57
- "files": [
58
- "*.js",
59
- "*.d.ts"
60
- ],
61
- "exports": {
62
- ".": {
63
- "import": "./index.js"
64
- }
65
- },
66
- "gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
67
- }
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
+ "devDependencies": {
37
+ "@microsoft/api-extractor": "^7.18.19",
38
+ "@thi.ng/testament": "^0.2.2",
39
+ "rimraf": "^3.0.2",
40
+ "tools": "^0.0.1",
41
+ "typedoc": "^0.22.9",
42
+ "typescript": "^4.5.2"
43
+ },
44
+ "keywords": [
45
+ "array",
46
+ "deep",
47
+ "equality",
48
+ "interface",
49
+ "typescript",
50
+ "value-semantics"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "browser": {
56
+ "process": false,
57
+ "setTimeout": false
58
+ },
59
+ "engines": {
60
+ "node": ">=12.7"
61
+ },
62
+ "files": [
63
+ "*.js",
64
+ "*.d.ts"
65
+ ],
66
+ "exports": {
67
+ ".": {
68
+ "import": "./index.js"
69
+ }
70
+ },
71
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
72
+ }