@arrai-innovations/reactive-helpers 17.0.2 → 18.0.0
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/.commitlintrc.json +23 -1
- package/docs/utils/getFakePk.md +2 -1
- package/package.json +8 -8
- package/utils/getFakePk.js +2 -1
package/.commitlintrc.json
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": ["@
|
|
2
|
+
"extends": ["@commitlint/config-conventional"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"type-enum": [
|
|
5
|
+
2,
|
|
6
|
+
"always",
|
|
7
|
+
[
|
|
8
|
+
"build",
|
|
9
|
+
"ci",
|
|
10
|
+
"chore",
|
|
11
|
+
"content",
|
|
12
|
+
"docs",
|
|
13
|
+
"feat",
|
|
14
|
+
"fix",
|
|
15
|
+
"perf",
|
|
16
|
+
"refactor",
|
|
17
|
+
"remove",
|
|
18
|
+
"revert",
|
|
19
|
+
"style",
|
|
20
|
+
"test",
|
|
21
|
+
"wip"
|
|
22
|
+
]
|
|
23
|
+
]
|
|
24
|
+
}
|
|
3
25
|
}
|
package/docs/utils/getFakePk.md
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
> **getFakePk**(`arraySetMapOrObject`, `key`): `string`
|
|
14
14
|
|
|
15
|
-
Get a fake pk that is not in the array, set, map, or object.
|
|
15
|
+
Get a fake pk that is not in the array, set, map, or object. The fake pk is negative number, so they can be
|
|
16
|
+
differentiated from real ids. They are returned as strings, as javascript object property keys are always strings.
|
|
16
17
|
|
|
17
18
|
#### Parameters
|
|
18
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrai-innovations/reactive-helpers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "VueJS 3 utility composition functions to help manipulate objects and lists.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"test": "npx vitest",
|
|
14
14
|
"eslint": "npx --no-install eslint --fix index.js config/**/*.js tests/**/*.js use/**/*.js utils/**/*.js",
|
|
15
15
|
"prettier": "npx --no-install prettier --write .",
|
|
16
|
-
"coverage": "npm
|
|
17
|
-
"coverage:clean": "rm -rf coverage",
|
|
16
|
+
"coverage": "npm test -- --run --coverage=true",
|
|
18
17
|
"prepare": "npx --no-install husky",
|
|
19
18
|
"docs": "node make_type_doc.js"
|
|
20
19
|
},
|
|
@@ -31,13 +30,14 @@
|
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@arrai-innovations/commitlint-config": "^1.1.0",
|
|
33
32
|
"@commitlint/cli": "^19.4.0",
|
|
33
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
34
34
|
"@godaddy/dmd": "^1.0.4",
|
|
35
35
|
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
|
|
36
36
|
"@types/browser-util-inspect": "^0.2.4",
|
|
37
37
|
"@types/lodash-es": "^4.17.12",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
39
39
|
"@typescript-eslint/parser": "^7.18.0",
|
|
40
|
-
"@vitest/coverage-v8": "^
|
|
40
|
+
"@vitest/coverage-v8": "^3.0.8",
|
|
41
41
|
"@vue/compiler-sfc": "^3.4.37",
|
|
42
42
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
43
43
|
"@vue/test-utils": "^2.3.2",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"eslint-plugin-vitest-globals": "^1.3.1",
|
|
49
49
|
"eslint-plugin-vue": "^9.27.0",
|
|
50
50
|
"flush-promises": "^1.0.2",
|
|
51
|
-
"globals": "^
|
|
51
|
+
"globals": "^16.0.0",
|
|
52
52
|
"husky": "^9.1.7",
|
|
53
53
|
"jsdom": "^26.0.0",
|
|
54
54
|
"lint-staged": "^15.2.8",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"typedoc": "^0.27.1",
|
|
57
57
|
"typedoc-plugin-markdown": "^4.3.0",
|
|
58
58
|
"typescript": "^5.5.4",
|
|
59
|
-
"vitest": "^
|
|
59
|
+
"vitest": "^3.0.8"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@jcoreio/async-throttle": "^1.6.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"vue-deepunref": "^1.0.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@vueuse/core": "^
|
|
68
|
+
"@vueuse/core": "^13.0.0",
|
|
69
69
|
"lodash-es": "^4.17.21",
|
|
70
|
-
"vue": "^3.
|
|
70
|
+
"vue": "^3.5.13"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/utils/getFakePk.js
CHANGED
|
@@ -3,7 +3,8 @@ import isMap from "lodash-es/isMap.js";
|
|
|
3
3
|
import isSet from "lodash-es/isSet.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Get a fake pk that is not in the array, set, map, or object.
|
|
6
|
+
* Get a fake pk that is not in the array, set, map, or object. The fake pk is negative number, so they can be
|
|
7
|
+
* differentiated from real ids. They are returned as strings, as javascript object property keys are always strings.
|
|
7
8
|
*
|
|
8
9
|
* @param {Array|Set|Map|object} arraySetMapOrObject - The array, set, map, or object to check for the fake pk.
|
|
9
10
|
* An array is assumed to be an array of objects.
|