@pie-lib/categorize 0.8.17 → 0.9.0-beta.2
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 +33 -60
- package/NEXT.CHANGELOG.json +1 -0
- package/package.json +2 -2
- package/src/__tests__/index.test.js +953 -0
- package/src/__tests__/scoring.test.js +282 -0
- package/src/__tests__/utils.js +19 -0
- package/src/index.js +16 -0
- package/README.md +0 -5
- package/lib/index.js +0 -651
- package/lib/index.js.map +0 -1
- package/lib/scoring.js +0 -145
- package/lib/scoring.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [0.9.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.17...@pie-lib/categorize@0.9.0-beta.2) (2025-07-20)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
9
9
|
|
|
@@ -11,144 +11,117 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
14
|
+
# [0.9.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.17...@pie-lib/categorize@0.9.0-beta.1) (2025-07-20)
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
20
17
|
|
|
21
18
|
|
|
22
19
|
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
# [0.9.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.17...@pie-lib/categorize@0.9.0-beta.1) (2025-07-20)
|
|
26
23
|
|
|
24
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
27
25
|
|
|
28
|
-
### Bug Fixes
|
|
29
26
|
|
|
30
|
-
* version bump ([d9280a9](https://github.com/pie-framework/pie-lib/commit/d9280a9aeddab459b6d84ecdbeb62814e1eee965))
|
|
31
27
|
|
|
32
28
|
|
|
33
29
|
|
|
30
|
+
# [0.9.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.17...@pie-lib/categorize@0.9.0-beta.0) (2025-07-20)
|
|
34
31
|
|
|
32
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
35
33
|
|
|
36
|
-
## [0.8.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.12...@pie-lib/categorize@0.8.13) (2023-02-28)
|
|
37
34
|
|
|
38
35
|
|
|
39
|
-
### Bug Fixes
|
|
40
36
|
|
|
41
|
-
* **categorize:** sanity check for blind session answers in eval mode-PD-2601 ([b974de8](https://github.com/pie-framework/pie-lib/commit/b974de8c4a44d3fead2bcbdf8f523204c83d4846))
|
|
42
37
|
|
|
38
|
+
# [0.10.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.17...@pie-lib/categorize@0.10.0-beta.0) (2025-07-15)
|
|
43
39
|
|
|
40
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
44
41
|
|
|
42
|
+
# [0.9.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.17...@pie-lib/categorize@0.9.0-beta.0) (2025-07-15)
|
|
45
43
|
|
|
44
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
46
45
|
|
|
47
|
-
## [0.8.
|
|
46
|
+
## [0.8.17](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.16...@pie-lib/categorize@0.8.17) (2023-06-24)
|
|
48
47
|
|
|
49
48
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
50
49
|
|
|
50
|
+
## [0.8.16](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.15...@pie-lib/categorize@0.8.16) (2023-05-08)
|
|
51
51
|
|
|
52
|
+
### Bug Fixes
|
|
52
53
|
|
|
54
|
+
- **categorize:** add sanity check to fix PD-1982 ([9c221b5](https://github.com/pie-framework/pie-lib/commit/9c221b5fb7ef2469d8bc8eb96bce0203ce3d8ff3))
|
|
53
55
|
|
|
56
|
+
## [0.8.15](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.13...@pie-lib/categorize@0.8.15) (2023-02-28)
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
**Note:** Version bump only for package @pie-lib/categorize
|
|
58
|
+
### Bug Fixes
|
|
58
59
|
|
|
60
|
+
- version bump ([d9280a9](https://github.com/pie-framework/pie-lib/commit/d9280a9aeddab459b6d84ecdbeb62814e1eee965))
|
|
59
61
|
|
|
62
|
+
## [0.8.13](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.12...@pie-lib/categorize@0.8.13) (2023-02-28)
|
|
60
63
|
|
|
64
|
+
### Bug Fixes
|
|
61
65
|
|
|
66
|
+
- **categorize:** sanity check for blind session answers in eval mode-PD-2601 ([b974de8](https://github.com/pie-framework/pie-lib/commit/b974de8c4a44d3fead2bcbdf8f523204c83d4846))
|
|
62
67
|
|
|
63
|
-
## [0.8.
|
|
68
|
+
## [0.8.12](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.10...@pie-lib/categorize@0.8.12) (2023-01-31)
|
|
64
69
|
|
|
65
70
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
66
71
|
|
|
72
|
+
## [0.8.10](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.9...@pie-lib/categorize@0.8.10) (2023-01-31)
|
|
67
73
|
|
|
74
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
68
75
|
|
|
76
|
+
## [0.8.9](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.8...@pie-lib/categorize@0.8.9) (2023-01-31)
|
|
69
77
|
|
|
78
|
+
**Note:** Version bump only for package @pie-lib/categorize
|
|
70
79
|
|
|
71
80
|
## [0.8.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.7...@pie-lib/categorize@0.8.8) (2023-01-31)
|
|
72
81
|
|
|
73
82
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
74
83
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
84
|
## [0.8.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.4...@pie-lib/categorize@0.8.7) (2023-01-31)
|
|
80
85
|
|
|
81
86
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
82
87
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
88
|
## [0.8.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.2...@pie-lib/categorize@0.8.4) (2023-01-31)
|
|
88
89
|
|
|
89
90
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
92
|
## [0.8.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.8.0...@pie-lib/categorize@0.8.2) (2023-01-31)
|
|
96
93
|
|
|
97
94
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
96
|
# [0.8.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.7.0...@pie-lib/categorize@0.8.0) (2023-01-16)
|
|
104
97
|
|
|
105
|
-
|
|
106
98
|
### Features
|
|
107
99
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
100
|
+
- added theme naming support + cleanup ([72d562d](https://github.com/pie-framework/pie-lib/commit/72d562d509e5d31d883690eb455a9afea6bf54fc))
|
|
113
101
|
|
|
114
102
|
# [0.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.6.26...@pie-lib/categorize@0.7.0) (2023-01-03)
|
|
115
103
|
|
|
116
|
-
|
|
117
104
|
### Bug Fixes
|
|
118
105
|
|
|
119
|
-
|
|
120
|
-
|
|
106
|
+
- **categorize:** add test for addChoiceToAlternate-PD-1995 ([153ada3](https://github.com/pie-framework/pie-lib/commit/153ada3ce0a27189ca1fecb5839c2843e35487d5))
|
|
121
107
|
|
|
122
108
|
### Features
|
|
123
109
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
110
|
+
- **categorize:** add method to swap teo choices-PD-1967 ([4660fcf](https://github.com/pie-framework/pie-lib/commit/4660fcfe8cd47c0d02707651812c7897182baeea))
|
|
111
|
+
- **categorize:** conclude merge ([da8b332](https://github.com/pie-framework/pie-lib/commit/da8b33228705490c504be56d250f61e14ca5530d))
|
|
112
|
+
- **categorize:** ensure no extra choices in alternate + sanity checks-PD-1967 ([a574028](https://github.com/pie-framework/pie-lib/commit/a5740285469691e89bc2255045f129989861892b))
|
|
113
|
+
- **categorzie:** Ensure that there are no extra choices after moving and adding new choices: PD-1967 ([a2f0ebd](https://github.com/pie-framework/pie-lib/commit/a2f0ebd1dd5e0f86a255727207182a29db7e8ce0))
|
|
132
114
|
|
|
133
115
|
## [0.6.26](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.6.25...@pie-lib/categorize@0.6.26) (2022-12-19)
|
|
134
116
|
|
|
135
|
-
|
|
136
117
|
### Bug Fixes
|
|
137
118
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
119
|
+
- **drag,categorize:** drag an answer choice elsewhere after it has been placed in a category-PD-1995 ([d32015b](https://github.com/pie-framework/pie-lib/commit/d32015b31d50b45851df2f27ad517eeaad8ae511))
|
|
143
120
|
|
|
144
121
|
## [0.6.25](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.6.24...@pie-lib/categorize@0.6.25) (2022-11-23)
|
|
145
122
|
|
|
146
123
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
147
124
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
125
|
## [0.6.24](https://github.com/pie-framework/pie-lib/compare/@pie-lib/categorize@0.6.22...@pie-lib/categorize@0.6.24) (2021-06-25)
|
|
153
126
|
|
|
154
127
|
**Note:** Version bump only for package @pie-lib/categorize
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/categorize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"scripts": {},
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "e2aa3ddac60f49bcb8c2562370f496323642f453"
|
|
18
18
|
}
|