@thi.ng/equiv 2.0.4 → 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.
package/CHANGELOG.md CHANGED
@@ -1,83 +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.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/equiv@2.0.3...@thi.ng/equiv@2.0.4) (2021-10-25)
7
-
8
- **Note:** Version bump only for package @thi.ng/equiv
9
-
10
-
11
-
12
-
13
-
14
- ## [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)
15
-
16
- **Note:** Version bump only for package @thi.ng/equiv
17
-
18
-
3
+ - **Last updated**: 2021-11-19T07:59:50Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
19
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
20
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
21
11
 
22
- ## [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)
23
-
24
- **Note:** Version bump only for package @thi.ng/equiv
25
-
26
-
27
-
28
-
29
-
30
- ## [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)
31
-
32
- **Note:** Version bump only for package @thi.ng/equiv
33
-
34
-
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.1.0) (2021-11-17)
35
13
 
14
+ #### 🚀 Features
36
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
37
21
 
38
- # [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
39
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.
40
30
 
41
- ### Build System
31
+ ### [2.0.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.0.7) (2021-11-10)
42
32
 
43
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
33
+ #### ♻️ Refactoring
44
34
 
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
45
36
 
46
- ### BREAKING CHANGES
37
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@2.0.1) (2021-10-13)
47
38
 
48
- * discontinue CommonJS & UMD versions
39
+ #### ♻️ Refactoring
49
40
 
50
- - only ESM modules will be published from now on
51
- - CJS obsolete due to ESM support in recent versions of node:
52
- - i.e. launch NodeJS via:
53
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
54
- - in the node REPL use `await import(...)` instead of `require()`
55
- - 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))
56
42
 
57
- Also:
58
- - normalize/restructure/reorg all package.json files
59
- - cleanup all build scripts, remove obsolete
60
- - 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)
61
44
 
45
+ #### 🛑 Breaking changes
62
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
63
59
 
60
+ #### ♻️ Refactoring
64
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)
65
65
 
66
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/equiv@1.0.0) (2019-01-21)
66
67
 
67
- # [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
68
69
 
69
- ### 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.
70
77
 
71
- - 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)
72
79
 
73
- ### BREAKING CHANGES
80
+ #### ♻️ Refactoring
74
81
 
75
- - enabled multi-outputs (ES6 modules, CJS, UMD)
76
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
77
- - 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))
78
83
 
79
- # 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)
80
85
 
81
- ### Features
86
+ #### 🚀 Features
82
87
 
83
- - **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.4",
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.1",
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.4"
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": "9ff00a103f76cc4917ef3f244132e218f2300a05"
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.1",
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": "8bd27c8bde0b770e7c001943f11c951cd345d668\n"
72
+ }