use-memo-map 0.0.4-main.9f253d6 → 0.0.4-main.bcb7607
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/package.json +16 -31
- /package/lib/{commonjs-types → commonjs}/index.d.ts +0 -0
- /package/lib/{commonjs-types → commonjs}/private/usePrevious.d.ts +0 -0
- /package/lib/{commonjs-types → commonjs}/useMemoMap.d.ts +0 -0
- /package/lib/{esmodules-types → esmodules}/index.d.ts +0 -0
- /package/lib/{esmodules-types → esmodules}/private/usePrevious.d.ts +0 -0
- /package/lib/{esmodules-types → esmodules}/useMemoMap.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-memo-map",
|
|
3
|
-
"version": "0.0.4-main.
|
|
3
|
+
"version": "0.0.4-main.bcb7607",
|
|
4
4
|
"description": "Memoizes calls to array map function similar to React.useMemo. Memoized results will survive next render.",
|
|
5
5
|
"files": [
|
|
6
6
|
"./lib/"
|
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
11
|
-
"types": "./lib/esmodules
|
|
11
|
+
"types": "./lib/esmodules/index.d.ts",
|
|
12
12
|
"default": "./lib/esmodules/index.js"
|
|
13
13
|
},
|
|
14
14
|
"require": {
|
|
15
|
-
"types": "./lib/commonjs
|
|
15
|
+
"types": "./lib/commonjs/index.d.ts",
|
|
16
16
|
"default": "./lib/commonjs/index.js"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"./useMemoMap": {
|
|
20
20
|
"import": {
|
|
21
|
-
"types": "./lib/esmodules
|
|
21
|
+
"types": "./lib/esmodules/useMemoMap.d.ts",
|
|
22
22
|
"default": "./lib/esmodules/useMemoMap.js"
|
|
23
23
|
},
|
|
24
24
|
"require": {
|
|
25
|
-
"types": "./lib/commonjs
|
|
25
|
+
"types": "./lib/commonjs/useMemoMap.d.ts",
|
|
26
26
|
"default": "./lib/commonjs/useMemoMap.js"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"main": "./lib/commonjs/index.js",
|
|
31
|
-
"typings": "./lib/commonjs
|
|
31
|
+
"typings": "./lib/commonjs/index.d.ts",
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "npm run build:babel:commonjs && npm run build:babel:esmodules && npm run build:typescript:commonjs && npm run build:typescript:esmodules",
|
|
34
34
|
"build:babel:commonjs": "babel src --config-file ./babel.commonjs.config.json --extensions .ts,.tsx --out-dir ./lib/commonjs/",
|
|
@@ -38,19 +38,16 @@
|
|
|
38
38
|
"bump": "npm run bump:prod && npm run bump:dev && npm run bump:auditfix && npm run bump:babel",
|
|
39
39
|
"bump:auditfix": "npm audit fix || exit 0",
|
|
40
40
|
"bump:babel": "npm run bump:babel:commonjs && npm run bump:babel:esmodules",
|
|
41
|
-
"bump:babel:commonjs": "cat babel.commonjs.config.json | jq --arg CORE_JS_VERSION `cat node_modules/@babel/runtime-corejs3/package.json | jq -r .version` '(.plugins[] | select(.[0] == \"@babel/plugin-transform-runtime\"))[1].version = $CORE_JS_VERSION' | prettier --parser json > babel.commonjs.config.json.tmp && mv babel.commonjs.config.json.tmp babel.commonjs.config.json",
|
|
42
|
-
"bump:babel:esmodules": "cat babel.esmodules.config.json | jq --arg CORE_JS_VERSION `cat node_modules/@babel/runtime-corejs3/package.json | jq -r .version` '(.plugins[] | select(.[0] == \"@babel/plugin-transform-runtime\"))[1].version = $CORE_JS_VERSION' | prettier --parser json > babel.esmodules.config.json.tmp && mv babel.esmodules.config.json.tmp babel.esmodules.config.json",
|
|
43
|
-
"bump:dev": "
|
|
44
|
-
"bump:prod": "
|
|
45
|
-
"postbump": "cat package.json | jq '. + (.dependencies = (((.dependencies // {}) + (.localPeerDependencies // {})) | to_entries | sort_by(.key) | from_entries)) | (.devDependencies = (((.devDependencies // {}) + (.localPeerDevDependencies // {})) | to_entries | sort_by(.key) | from_entries))' > package-temp.json && mv package-temp.json package.json",
|
|
41
|
+
"bump:babel:commonjs": "cat babel.commonjs.config.json | jq --arg CORE_JS_VERSION `[ -f node_modules/@babel/runtime-corejs3/package.json ] && cat node_modules/@babel/runtime-corejs3/package.json | jq -r .version || cat ../../node_modules/@babel/runtime-corejs3/package.json | jq -r .version` '(.plugins[] | select(.[0] == \"@babel/plugin-transform-runtime\"))[1].version = $CORE_JS_VERSION' | prettier --parser json > babel.commonjs.config.json.tmp && mv babel.commonjs.config.json.tmp babel.commonjs.config.json",
|
|
42
|
+
"bump:babel:esmodules": "cat babel.esmodules.config.json | jq --arg CORE_JS_VERSION `[ -f node_modules/@babel/runtime-corejs3/package.json ] && cat node_modules/@babel/runtime-corejs3/package.json | jq -r .version || cat ../../node_modules/@babel/runtime-corejs3/package.json | jq -r .version` '(.plugins[] | select(.[0] == \"@babel/plugin-transform-runtime\"))[1].version = $CORE_JS_VERSION' | prettier --parser json > babel.esmodules.config.json.tmp && mv babel.esmodules.config.json.tmp babel.esmodules.config.json",
|
|
43
|
+
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '.localPeerDependencies // {} as $L | .devDependencies // {} | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@latest\") | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
|
|
44
|
+
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '.localPeerDependencies // {} as $L | .dependencies // {} | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@latest\") | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
|
|
46
45
|
"postscaffold": "npm run bump:babel",
|
|
47
|
-
"prebump": "cat package.json | jq '(((.localPeerDependencies // {}) | keys | map([\"dependencies\", .])) + ((.localPeerDevDependencies // {}) | keys | map([\"devDependencies\", .]))) as $localPeerPaths | delpaths($localPeerPaths)' > package-temp.json && mv package-temp.json package.json",
|
|
48
46
|
"precommit": "npm run precommit:eslint && npm run precommit:typescript:production && npm run precommit:typescript:test",
|
|
49
47
|
"precommit:eslint": "eslint ./src/",
|
|
50
48
|
"precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
|
|
51
49
|
"precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
|
|
52
50
|
"prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
|
|
53
|
-
"start": "esbuild --bundle --outfile=./public/main.js --servedir=./public --sourcemap ./scenarios/index.jsx",
|
|
54
51
|
"test": "jest"
|
|
55
52
|
},
|
|
56
53
|
"repository": {
|
|
@@ -69,20 +66,7 @@
|
|
|
69
66
|
"url": "https://github.com/compulim/use-memo-map/issues"
|
|
70
67
|
},
|
|
71
68
|
"homepage": "https://github.com/compulim/use-memo-map#readme",
|
|
72
|
-
"pinDependencies": {
|
|
73
|
-
"@types/react": [
|
|
74
|
-
"17",
|
|
75
|
-
"@testing-library/react-hooks@8.0.1 does not support react@>=18"
|
|
76
|
-
],
|
|
77
|
-
"react": [
|
|
78
|
-
"17",
|
|
79
|
-
"@testing-library/react-hooks@8.0.1 does not support react@>=18"
|
|
80
|
-
],
|
|
81
|
-
"react-test-renderer": [
|
|
82
|
-
"17",
|
|
83
|
-
"@testing-library/react-hooks@8.0.1 does not support react@>=18"
|
|
84
|
-
]
|
|
85
|
-
},
|
|
69
|
+
"pinDependencies": {},
|
|
86
70
|
"devDependencies": {
|
|
87
71
|
"@babel/cli": "^7.22.9",
|
|
88
72
|
"@babel/core": "^7.22.9",
|
|
@@ -90,15 +74,15 @@
|
|
|
90
74
|
"@babel/preset-env": "^7.22.9",
|
|
91
75
|
"@babel/preset-react": "^7.22.15",
|
|
92
76
|
"@babel/preset-typescript": "^7.22.5",
|
|
93
|
-
"@testing-library/react
|
|
77
|
+
"@testing-library/react": "^14.0.0",
|
|
94
78
|
"@tsconfig/recommended": "^1.0.2",
|
|
95
79
|
"@tsconfig/strictest": "^2.0.2",
|
|
96
80
|
"@types/jest": "^29.5.4",
|
|
97
|
-
"@types/react": "^
|
|
81
|
+
"@types/react": "^18.2.21",
|
|
98
82
|
"jest": "^29.6.1",
|
|
99
83
|
"jest-environment-jsdom": "^29.6.1",
|
|
100
|
-
"react": "^
|
|
101
|
-
"react-
|
|
84
|
+
"react": "^18.2.0",
|
|
85
|
+
"react-dom": "^18.2.0",
|
|
102
86
|
"typescript": "^5.1.6"
|
|
103
87
|
},
|
|
104
88
|
"peerDependencies": {
|
|
@@ -106,6 +90,7 @@
|
|
|
106
90
|
},
|
|
107
91
|
"dependencies": {
|
|
108
92
|
"@babel/runtime-corejs3": "7.22.6",
|
|
93
|
+
"use-memo-map": "^0.0.4-main.bcb7607",
|
|
109
94
|
"use-ref-from": "0.0.2"
|
|
110
95
|
}
|
|
111
96
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|