@thi.ng/memoize 3.0.8 → 3.1.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +77 -55
  2. package/package.json +85 -80
package/CHANGELOG.md CHANGED
@@ -1,100 +1,122 @@
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
- ## [3.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@3.0.7...@thi.ng/memoize@3.0.8) (2021-11-10)
7
-
8
- **Note:** Version bump only for package @thi.ng/memoize
9
-
10
-
11
-
12
-
13
-
14
- ## [3.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@3.0.6...@thi.ng/memoize@3.0.7) (2021-11-03)
15
-
16
- **Note:** Version bump only for package @thi.ng/memoize
3
+ - **Last updated**: 2021-12-13T10:26:00Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
17
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
18
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
19
11
 
12
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.1.0) (2021-11-17)
20
13
 
14
+ #### 🚀 Features
21
15
 
22
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.1.21...@thi.ng/memoize@3.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
23
21
 
22
+ #### ♻️ Refactoring
24
23
 
25
- ### 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.
26
30
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
31
+ ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.0.1) (2021-10-13)
28
32
 
33
+ #### ♻️ Refactoring
29
34
 
30
- ### 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
31
38
 
32
- * discontinue CommonJS & UMD versions
39
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.0.0) (2021-10-12)
33
40
 
34
- - only ESM modules will be published from now on
35
- - CJS obsolete due to ESM support in recent versions of node:
36
- - i.e. launch NodeJS via:
37
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
38
- - in the node REPL use `await import(...)` instead of `require()`
39
- - UMD obsolete due to widespread browser support for ESM
41
+ #### 🛑 Breaking changes
40
42
 
41
- Also:
42
- - normalize/restructure/reorg all package.json files
43
- - cleanup all build scripts, remove obsolete
44
- - 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
45
55
 
56
+ #### ♻️ Refactoring
46
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)
47
60
 
61
+ ### [2.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@2.1.6) (2020-12-07)
48
62
 
63
+ #### ♻️ Refactoring
49
64
 
65
+ - update type-only imports in remaining pkgs ([b22aa30](https://github.com/thi-ng/umbrella/commit/b22aa30))
66
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
50
67
 
51
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@2.0.19...@thi.ng/memoize@2.1.0) (2020-08-20)
68
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@2.1.0) (2020-08-20)
52
69
 
53
- ### Features
70
+ #### 🚀 Features
54
71
 
55
- - **memoize:** add doOnce(), update readme ([889e00d](https://github.com/thi-ng/umbrella/commit/889e00d0376cda39f2a7e5848780bdf26f5fc5ca))
72
+ - add doOnce(), update readme ([889e00d](https://github.com/thi-ng/umbrella/commit/889e00d))
56
73
 
57
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@1.1.8...@thi.ng/memoize@2.0.0) (2020-02-25)
74
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@2.0.0) (2020-02-25)
58
75
 
59
- ### Code Refactoring
76
+ #### 🛑 Breaking changes
60
77
 
61
- - **memoize:** update imports ([d6b5614](https://github.com/thi-ng/umbrella/commit/d6b56148ec3ab36f97bc3fce94d7c49a74e81e96))
78
+ - update imports ([d6b5614](https://github.com/thi-ng/umbrella/commit/d6b5614))
79
+ - BREAKING CHANGE: replace obsolete Fn type aliases w/ [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) types
62
80
 
63
- ### BREAKING CHANGES
81
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@1.1.0) (2019-07-07)
64
82
 
65
- - **memoize:** replace obsolete Fn type aliases w/ @thi.ng/api types
83
+ #### 🚀 Features
66
84
 
67
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@1.0.9...@thi.ng/memoize@1.1.0) (2019-07-07)
85
+ - enable TS strict compiler flags (refactor) ([a08cc69](https://github.com/thi-ng/umbrella/commit/a08cc69))
68
86
 
69
- ### Bug Fixes
87
+ #### 🩹 Bug fixes
70
88
 
71
- - **memoize:** return type memoize1() ([c0dafb9](https://github.com/thi-ng/umbrella/commit/c0dafb9))
89
+ - return type memoize1() ([c0dafb9](https://github.com/thi-ng/umbrella/commit/c0dafb9))
72
90
 
73
- ### Features
91
+ #### ♻️ Refactoring
74
92
 
75
- - **memoize:** enable TS strict compiler flags (refactor) ([a08cc69](https://github.com/thi-ng/umbrella/commit/a08cc69))
93
+ - address TS strictNullChecks flag ([333bf6d](https://github.com/thi-ng/umbrella/commit/333bf6d))
76
94
 
77
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@0.2.6...@thi.ng/memoize@1.0.0) (2019-01-21)
95
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@1.0.0) (2019-01-21)
78
96
 
79
- ### Build System
97
+ #### 🛑 Breaking changes
80
98
 
81
99
  - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
100
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
101
+ - build scripts now first build ES6 modules in package root, then call
102
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
103
+ - all imports MUST be updated to only refer to package level
104
+ (not individual files anymore). tree shaking in user land will get rid of
105
+ all unused imported symbols.
82
106
 
83
- ### BREAKING CHANGES
107
+ #### ♻️ Refactoring
84
108
 
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.
109
+ - use arrow fns ([48670f5](https://github.com/thi-ng/umbrella/commit/48670f5))
88
110
 
89
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/memoize@0.1.2...@thi.ng/memoize@0.2.0) (2018-09-06)
111
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@0.2.0) (2018-09-06)
90
112
 
91
- ### Features
113
+ #### 🚀 Features
92
114
 
93
- - **memoize:** add defonce() ([61bed88](https://github.com/thi-ng/umbrella/commit/61bed88))
115
+ - add defonce() ([61bed88](https://github.com/thi-ng/umbrella/commit/61bed88))
94
116
 
95
- # 0.1.0 (2018-08-08)
117
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@0.1.0) (2018-08-08)
96
118
 
97
- ### Features
119
+ #### 🚀 Features
98
120
 
99
- - **memoize:** add [@thi](https://github.com/thi).ng/memoize package ([adc4928](https://github.com/thi-ng/umbrella/commit/adc4928))
100
- - **memoize:** add optional cache arg for memoizeJ() ([2bc092d](https://github.com/thi-ng/umbrella/commit/2bc092d))
121
+ - add optional cache arg for memoizeJ() ([2bc092d](https://github.com/thi-ng/umbrella/commit/2bc092d))
122
+ - add [@thi.ng/memoize](https://github.com/thi-ng/umbrella/tree/main/packages/memoize) package ([adc4928](https://github.com/thi-ng/umbrella/commit/adc4928))
package/package.json CHANGED
@@ -1,88 +1,93 @@
1
1
  {
2
- "name": "@thi.ng/memoize",
3
- "version": "3.0.8",
4
- "description": "Function memoization with configurable caching",
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/memoize",
3
+ "version": "3.1.3",
4
+ "description": "Function memoization with configurable caching",
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/memoize#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/memoize#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.3"
38
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.19.2",
41
+ "@thi.ng/testament": "^0.2.3",
42
+ "rimraf": "^3.0.2",
43
+ "tools": "^0.0.1",
44
+ "typedoc": "^0.22.10",
45
+ "typescript": "^4.5.3"
46
+ },
47
+ "keywords": [
48
+ "cache",
49
+ "functional",
50
+ "memoization",
51
+ "typescript"
52
+ ],
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
56
+ "engines": {
57
+ "node": ">=12.7"
58
+ },
59
+ "files": [
60
+ "*.js",
61
+ "*.d.ts"
62
+ ],
63
+ "exports": {
64
+ ".": {
65
+ "import": "./index.js"
35
66
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.2.0"
67
+ "./api": {
68
+ "import": "./api.js"
38
69
  },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
70
+ "./defonce": {
71
+ "import": "./defonce.js"
41
72
  },
42
- "keywords": [
43
- "cache",
44
- "functional",
45
- "memoization",
46
- "typescript"
47
- ],
48
- "publishConfig": {
49
- "access": "public"
73
+ "./do-once": {
74
+ "import": "./do-once.js"
50
75
  },
51
- "engines": {
52
- "node": ">=12.7"
76
+ "./memoize": {
77
+ "import": "./memoize.js"
53
78
  },
54
- "files": [
55
- "*.js",
56
- "*.d.ts"
57
- ],
58
- "exports": {
59
- ".": {
60
- "import": "./index.js"
61
- },
62
- "./api": {
63
- "import": "./api.js"
64
- },
65
- "./defonce": {
66
- "import": "./defonce.js"
67
- },
68
- "./do-once": {
69
- "import": "./do-once.js"
70
- },
71
- "./memoize": {
72
- "import": "./memoize.js"
73
- },
74
- "./memoize1": {
75
- "import": "./memoize1.js"
76
- },
77
- "./memoizej": {
78
- "import": "./memoizej.js"
79
- }
79
+ "./memoize1": {
80
+ "import": "./memoize1.js"
80
81
  },
81
- "thi.ng": {
82
- "related": [
83
- "cache"
84
- ],
85
- "year": 2018
86
- },
87
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
88
- }
82
+ "./memoizej": {
83
+ "import": "./memoizej.js"
84
+ }
85
+ },
86
+ "thi.ng": {
87
+ "related": [
88
+ "cache"
89
+ ],
90
+ "year": 2018
91
+ },
92
+ "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
93
+ }