@thi.ng/memoize 4.0.26 → 4.0.30

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/package.json +101 -101
  2. package/CHANGELOG.md +0 -71
package/package.json CHANGED
@@ -1,102 +1,102 @@
1
1
  {
2
- "name": "@thi.ng/memoize",
3
- "version": "4.0.26",
4
- "description": "Function memoization with configurable caching and support for async functions",
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://thi.ng/memoize",
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
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2"
43
- },
44
- "devDependencies": {
45
- "esbuild": "^0.25.9",
46
- "typedoc": "^0.28.12",
47
- "typescript": "^5.9.2"
48
- },
49
- "keywords": [
50
- "async",
51
- "cache",
52
- "functional",
53
- "memoization",
54
- "typescript"
55
- ],
56
- "publishConfig": {
57
- "access": "public"
58
- },
59
- "engines": {
60
- "node": ">=18"
61
- },
62
- "files": [
63
- "./*.js",
64
- "./*.d.ts"
65
- ],
66
- "exports": {
67
- ".": {
68
- "default": "./index.js"
69
- },
70
- "./api": {
71
- "default": "./api.js"
72
- },
73
- "./defonce": {
74
- "default": "./defonce.js"
75
- },
76
- "./delay": {
77
- "default": "./delay.js"
78
- },
79
- "./do-once": {
80
- "default": "./do-once.js"
81
- },
82
- "./memoize": {
83
- "default": "./memoize.js"
84
- },
85
- "./memoize1": {
86
- "default": "./memoize1.js"
87
- },
88
- "./memoizej": {
89
- "default": "./memoizej.js"
90
- },
91
- "./memoizeo": {
92
- "default": "./memoizeo.js"
93
- }
94
- },
95
- "thi.ng": {
96
- "related": [
97
- "cache"
98
- ],
99
- "year": 2018
100
- },
101
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
102
- }
2
+ "name": "@thi.ng/memoize",
3
+ "version": "4.0.30",
4
+ "description": "Function memoization with configurable caching and support for async functions",
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://thi.ng/memoize",
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
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.6"
43
+ },
44
+ "devDependencies": {
45
+ "esbuild": "^0.25.11",
46
+ "typedoc": "^0.28.14",
47
+ "typescript": "^5.9.3"
48
+ },
49
+ "keywords": [
50
+ "async",
51
+ "cache",
52
+ "functional",
53
+ "memoization",
54
+ "typescript"
55
+ ],
56
+ "publishConfig": {
57
+ "access": "public"
58
+ },
59
+ "engines": {
60
+ "node": ">=18"
61
+ },
62
+ "files": [
63
+ "./*.js",
64
+ "./*.d.ts"
65
+ ],
66
+ "exports": {
67
+ ".": {
68
+ "default": "./index.js"
69
+ },
70
+ "./api": {
71
+ "default": "./api.js"
72
+ },
73
+ "./defonce": {
74
+ "default": "./defonce.js"
75
+ },
76
+ "./delay": {
77
+ "default": "./delay.js"
78
+ },
79
+ "./do-once": {
80
+ "default": "./do-once.js"
81
+ },
82
+ "./memoize": {
83
+ "default": "./memoize.js"
84
+ },
85
+ "./memoize1": {
86
+ "default": "./memoize1.js"
87
+ },
88
+ "./memoizej": {
89
+ "default": "./memoizej.js"
90
+ },
91
+ "./memoizeo": {
92
+ "default": "./memoizeo.js"
93
+ }
94
+ },
95
+ "thi.ng": {
96
+ "related": [
97
+ "cache"
98
+ ],
99
+ "year": 2018
100
+ },
101
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
102
+ }
package/CHANGELOG.md DELETED
@@ -1,71 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@4.0.0) (2024-10-31)
15
-
16
- #### 🛑 Breaking changes
17
-
18
- - add async versions of all memoize functions ([#493](https://github.com/thi-ng/umbrella/issues/493)) ([e31543c](https://github.com/thi-ng/umbrella/commit/e31543c))
19
- - BREAKING CHANGE: remove obsolete arity overrides (i.e. 2/3/4 suffixed versions)
20
- - add memoizeAsync()
21
- - add memoizeAsync1()
22
- - add memoizeAsyncJ()
23
- - add memoizeAsyncO()
24
- - refactor memoize fns to be variadic
25
- - remove obsolete fixed arity versions (e.g. `memoize2O`, 3O, 4O etc.)
26
- - update tests
27
-
28
- ### [3.3.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.3.5) (2024-06-21)
29
-
30
- #### ♻️ Refactoring
31
-
32
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
33
-
34
- ### [3.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.3.2) (2024-04-20)
35
-
36
- #### ♻️ Refactoring
37
-
38
- - update type usage ([fcea178](https://github.com/thi-ng/umbrella/commit/fcea178))
39
-
40
- ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.3.0) (2024-04-08)
41
-
42
- #### 🚀 Features
43
-
44
- - add delay() wrapper ([d8f4733](https://github.com/thi-ng/umbrella/commit/d8f4733))
45
- - migrated from [@thi.ng/compose](https://github.com/thi-ng/umbrella/tree/main/packages/compose) since conceptually better at home here
46
- - add docs
47
-
48
- #### ♻️ Refactoring
49
-
50
- - rename `defonce()` => `defOnce()` ([08e876f](https://github.com/thi-ng/umbrella/commit/08e876f))
51
- - deprecate old spelling
52
-
53
- ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.2.0) (2024-03-27)
54
-
55
- #### 🚀 Features
56
-
57
- - add memoizeO() ([af2ead9](https://github.com/thi-ng/umbrella/commit/af2ead9))
58
- - add memoize2/3/4O() ([8309236](https://github.com/thi-ng/umbrella/commit/8309236))
59
-
60
- #### ♻️ Refactoring
61
-
62
- - minor updates, use plain objects where possible ([f44be23](https://github.com/thi-ng/umbrella/commit/f44be23))
63
- - update defOnce() & memoizeJ() to use Object.create(null) as default store
64
- - update default args in others
65
- - update docs
66
-
67
- ### [3.1.41](https://github.com/thi-ng/umbrella/tree/@thi.ng/memoize@3.1.41) (2023-11-09)
68
-
69
- #### ♻️ Refactoring
70
-
71
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))