@nymphjs/sorter 1.0.0-beta.11 → 1.0.0-beta.110
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 +406 -0
- package/README.md +2 -2
- package/dist/Sorter.d.ts +57 -0
- package/dist/Sorter.js +216 -0
- package/dist/Sorter.js.map +1 -0
- package/dist/Sorter.test.js +435 -0
- package/dist/Sorter.test.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/{lib → dist}/testArtifacts.d.ts +1 -0
- package/{lib → dist}/testArtifacts.js +7 -6
- package/dist/testArtifacts.js.map +1 -0
- package/jest.config.js +11 -2
- package/package.json +18 -27
- package/src/Sorter.test.ts +202 -20
- package/src/Sorter.ts +115 -76
- package/src/index.ts +2 -2
- package/src/testArtifacts.ts +1 -0
- package/tsconfig.json +6 -4
- package/typedoc.json +4 -0
- package/lib/Sorter.d.ts +0 -20
- package/lib/Sorter.js +0 -144
- package/lib/Sorter.js.map +0 -1
- package/lib/Sorter.test.js +0 -274
- package/lib/Sorter.test.js.map +0 -1
- package/lib/index.d.ts +0 -3
- package/lib/index.js +0 -24
- package/lib/index.js.map +0 -1
- package/lib/testArtifacts.js.map +0 -1
- package/webpack.config.js +0 -28
- /package/{lib → dist}/Sorter.test.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,412 @@
|
|
|
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
|
+
# [1.0.0-beta.110](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.109...v1.0.0-beta.110) (2026-02-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.109](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.108...v1.0.0-beta.109) (2026-02-15)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
13
|
+
|
|
14
|
+
# [1.0.0-beta.108](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.107...v1.0.0-beta.108) (2026-02-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
17
|
+
|
|
18
|
+
# [1.0.0-beta.107](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.106...v1.0.0-beta.107) (2026-02-13)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- update packages and fix all new issues ([0e9d17c](https://github.com/sciactive/nymphjs/commit/0e9d17c6e2db12c11bdfb559031719c1b52b5fa1))
|
|
23
|
+
|
|
24
|
+
# [1.0.0-beta.106](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.105...v1.0.0-beta.106) (2025-12-05)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
27
|
+
|
|
28
|
+
# [1.0.0-beta.105](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.104...v1.0.0-beta.105) (2025-12-04)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
31
|
+
|
|
32
|
+
# [1.0.0-beta.104](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.103...v1.0.0-beta.104) (2025-12-01)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
35
|
+
|
|
36
|
+
# [1.0.0-beta.103](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.102...v1.0.0-beta.103) (2025-11-30)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
39
|
+
|
|
40
|
+
# [1.0.0-beta.102](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.101...v1.0.0-beta.102) (2025-11-29)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
43
|
+
|
|
44
|
+
# [1.0.0-beta.101](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.100...v1.0.0-beta.101) (2025-11-29)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
47
|
+
|
|
48
|
+
# [1.0.0-beta.100](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.99...v1.0.0-beta.100) (2025-11-29)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
51
|
+
|
|
52
|
+
# [1.0.0-beta.99](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.98...v1.0.0-beta.99) (2025-11-26)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
55
|
+
|
|
56
|
+
# [1.0.0-beta.98](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.97...v1.0.0-beta.98) (2025-10-24)
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
- add identical resolver options to sorter ([7710dea](https://github.com/sciactive/nymphjs/commit/7710deac439134fc14eaf0ed9fdecaa2d62609f0))
|
|
61
|
+
|
|
62
|
+
# [1.0.0-beta.97](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.96...v1.0.0-beta.97) (2025-10-04)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
65
|
+
|
|
66
|
+
# [1.0.0-beta.96](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.95...v1.0.0-beta.96) (2025-09-01)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
69
|
+
|
|
70
|
+
# [1.0.0-beta.95](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.94...v1.0.0-beta.95) (2025-08-30)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
73
|
+
|
|
74
|
+
# [1.0.0-beta.94](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.93...v1.0.0-beta.94) (2025-08-25)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
77
|
+
|
|
78
|
+
# [1.0.0-beta.93](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.92...v1.0.0-beta.93) (2025-08-16)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
81
|
+
|
|
82
|
+
# [1.0.0-beta.92](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.91...v1.0.0-beta.92) (2025-04-06)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
85
|
+
|
|
86
|
+
# [1.0.0-beta.91](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.90...v1.0.0-beta.91) (2025-03-07)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
89
|
+
|
|
90
|
+
# [1.0.0-beta.90](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.89...v1.0.0-beta.90) (2025-02-09)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
93
|
+
|
|
94
|
+
# [1.0.0-beta.89](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.88...v1.0.0-beta.89) (2025-02-09)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
97
|
+
|
|
98
|
+
# [1.0.0-beta.88](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.87...v1.0.0-beta.88) (2025-01-30)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
101
|
+
|
|
102
|
+
# [1.0.0-beta.87](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.86...v1.0.0-beta.87) (2025-01-20)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
105
|
+
|
|
106
|
+
# [1.0.0-beta.86](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.85...v1.0.0-beta.86) (2024-12-28)
|
|
107
|
+
|
|
108
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
109
|
+
|
|
110
|
+
# [1.0.0-beta.85](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.84...v1.0.0-beta.85) (2024-12-27)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
113
|
+
|
|
114
|
+
# [1.0.0-beta.84](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.83...v1.0.0-beta.84) (2024-12-21)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
117
|
+
|
|
118
|
+
# [1.0.0-beta.83](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.82...v1.0.0-beta.83) (2024-12-20)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
121
|
+
|
|
122
|
+
# [1.0.0-beta.82](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.81...v1.0.0-beta.82) (2024-12-15)
|
|
123
|
+
|
|
124
|
+
### Features
|
|
125
|
+
|
|
126
|
+
- migrate to es modules, upgrade all packages, migrate to Svelte 5 ([3f2b9e5](https://github.com/sciactive/nymphjs/commit/3f2b9e517b39934eddce66601d7fc747fbf3f9e6))
|
|
127
|
+
|
|
128
|
+
# [1.0.0-beta.81](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.80...v1.0.0-beta.81) (2024-09-28)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
131
|
+
|
|
132
|
+
# [1.0.0-beta.80](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.79...v1.0.0-beta.80) (2024-09-28)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
135
|
+
|
|
136
|
+
# [1.0.0-beta.79](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.78...v1.0.0-beta.79) (2024-09-28)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
139
|
+
|
|
140
|
+
# [1.0.0-beta.78](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.77...v1.0.0-beta.78) (2024-09-27)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
143
|
+
|
|
144
|
+
# [1.0.0-beta.77](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.76...v1.0.0-beta.77) (2024-09-26)
|
|
145
|
+
|
|
146
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
147
|
+
|
|
148
|
+
# [1.0.0-beta.76](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.75...v1.0.0-beta.76) (2024-09-25)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
151
|
+
|
|
152
|
+
# [1.0.0-beta.75](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.74...v1.0.0-beta.75) (2024-09-24)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
155
|
+
|
|
156
|
+
# [1.0.0-beta.74](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.73...v1.0.0-beta.74) (2024-09-21)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
159
|
+
|
|
160
|
+
# [1.0.0-beta.73](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.72...v1.0.0-beta.73) (2024-09-20)
|
|
161
|
+
|
|
162
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
163
|
+
|
|
164
|
+
# [1.0.0-beta.72](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.71...v1.0.0-beta.72) (2024-09-20)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
167
|
+
|
|
168
|
+
# [1.0.0-beta.71](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.70...v1.0.0-beta.71) (2024-09-20)
|
|
169
|
+
|
|
170
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
171
|
+
|
|
172
|
+
# [1.0.0-beta.70](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.69...v1.0.0-beta.70) (2024-09-20)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
175
|
+
|
|
176
|
+
# [1.0.0-beta.69](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.68...v1.0.0-beta.69) (2024-09-19)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
179
|
+
|
|
180
|
+
# [1.0.0-beta.68](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.67...v1.0.0-beta.68) (2024-09-19)
|
|
181
|
+
|
|
182
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
183
|
+
|
|
184
|
+
# [1.0.0-beta.67](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.66...v1.0.0-beta.67) (2024-09-03)
|
|
185
|
+
|
|
186
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
187
|
+
|
|
188
|
+
# [1.0.0-beta.66](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.65...v1.0.0-beta.66) (2024-08-06)
|
|
189
|
+
|
|
190
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
191
|
+
|
|
192
|
+
# [1.0.0-beta.65](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.64...v1.0.0-beta.65) (2024-08-05)
|
|
193
|
+
|
|
194
|
+
### Bug Fixes
|
|
195
|
+
|
|
196
|
+
- hsort exponential time complexity ([47dc370](https://github.com/sciactive/nymphjs/commit/47dc370a88478dfb7fbfa2d6a257427395451013))
|
|
197
|
+
|
|
198
|
+
# [1.0.0-beta.64](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.63...v1.0.0-beta.64) (2024-08-04)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
201
|
+
|
|
202
|
+
# [1.0.0-beta.63](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.62...v1.0.0-beta.63) (2024-06-18)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
205
|
+
|
|
206
|
+
# [1.0.0-beta.62](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.61...v1.0.0-beta.62) (2024-06-15)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
209
|
+
|
|
210
|
+
# [1.0.0-beta.61](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.60...v1.0.0-beta.61) (2024-06-14)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
213
|
+
|
|
214
|
+
# [1.0.0-beta.60](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.59...v1.0.0-beta.60) (2024-06-14)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
217
|
+
|
|
218
|
+
# [1.0.0-beta.59](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.58...v1.0.0-beta.59) (2024-06-14)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
221
|
+
|
|
222
|
+
# [1.0.0-beta.58](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.57...v1.0.0-beta.58) (2024-06-12)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
225
|
+
|
|
226
|
+
# [1.0.0-beta.57](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.56...v1.0.0-beta.57) (2024-06-12)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
229
|
+
|
|
230
|
+
# [1.0.0-beta.56](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.55...v1.0.0-beta.56) (2024-06-11)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
233
|
+
|
|
234
|
+
# [1.0.0-beta.55](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.54...v1.0.0-beta.55) (2024-05-26)
|
|
235
|
+
|
|
236
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
237
|
+
|
|
238
|
+
# [1.0.0-beta.54](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.53...v1.0.0-beta.54) (2024-05-26)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
241
|
+
|
|
242
|
+
# [1.0.0-beta.53](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.52...v1.0.0-beta.53) (2024-05-26)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
245
|
+
|
|
246
|
+
# [1.0.0-beta.52](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.51...v1.0.0-beta.52) (2024-05-25)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
249
|
+
|
|
250
|
+
# [1.0.0-beta.51](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2024-04-12)
|
|
251
|
+
|
|
252
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
253
|
+
|
|
254
|
+
# [1.0.0-beta.50](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2024-04-08)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
257
|
+
|
|
258
|
+
# [1.0.0-beta.49](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2024-03-04)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
261
|
+
|
|
262
|
+
# [1.0.0-beta.48](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2023-11-10)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
265
|
+
|
|
266
|
+
# [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
269
|
+
|
|
270
|
+
# [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
273
|
+
|
|
274
|
+
# [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
|
|
275
|
+
|
|
276
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
277
|
+
|
|
278
|
+
# [1.0.0-beta.44](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2023-07-13)
|
|
279
|
+
|
|
280
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
281
|
+
|
|
282
|
+
# [1.0.0-beta.43](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2023-07-12)
|
|
283
|
+
|
|
284
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
285
|
+
|
|
286
|
+
# [1.0.0-beta.42](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2023-07-12)
|
|
287
|
+
|
|
288
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
289
|
+
|
|
290
|
+
# [1.0.0-beta.41](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2023-07-12)
|
|
291
|
+
|
|
292
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
293
|
+
|
|
294
|
+
# [1.0.0-beta.40](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2023-07-10)
|
|
295
|
+
|
|
296
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
297
|
+
|
|
298
|
+
# [1.0.0-beta.39](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2023-07-09)
|
|
299
|
+
|
|
300
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
301
|
+
|
|
302
|
+
# [1.0.0-beta.38](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2023-07-09)
|
|
303
|
+
|
|
304
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
305
|
+
|
|
306
|
+
# [1.0.0-beta.37](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2023-07-09)
|
|
307
|
+
|
|
308
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
309
|
+
|
|
310
|
+
# [1.0.0-beta.36](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2023-07-09)
|
|
311
|
+
|
|
312
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
313
|
+
|
|
314
|
+
# [1.0.0-beta.35](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2023-06-14)
|
|
315
|
+
|
|
316
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
317
|
+
|
|
318
|
+
# [1.0.0-beta.34](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2023-05-13)
|
|
319
|
+
|
|
320
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
321
|
+
|
|
322
|
+
# [1.0.0-beta.33](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2023-05-13)
|
|
323
|
+
|
|
324
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
325
|
+
|
|
326
|
+
# [1.0.0-beta.32](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2023-05-13)
|
|
327
|
+
|
|
328
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
329
|
+
|
|
330
|
+
# [1.0.0-beta.31](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2023-05-12)
|
|
331
|
+
|
|
332
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
333
|
+
|
|
334
|
+
# [1.0.0-beta.30](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2023-05-12)
|
|
335
|
+
|
|
336
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
337
|
+
|
|
338
|
+
# [1.0.0-beta.29](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2023-05-08)
|
|
339
|
+
|
|
340
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
341
|
+
|
|
342
|
+
# [1.0.0-beta.28](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2023-05-05)
|
|
343
|
+
|
|
344
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
345
|
+
|
|
346
|
+
# [1.0.0-beta.27](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2023-05-04)
|
|
347
|
+
|
|
348
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
349
|
+
|
|
350
|
+
# [1.0.0-beta.26](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2023-05-04)
|
|
351
|
+
|
|
352
|
+
### Features
|
|
353
|
+
|
|
354
|
+
- update packages and migrate to mysql2 ([72ad611](https://github.com/sciactive/nymphjs/commit/72ad611bd2bf7bf85c3ba8a3486503d9b50c49d6))
|
|
355
|
+
|
|
356
|
+
# [1.0.0-beta.25](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2023-05-04)
|
|
357
|
+
|
|
358
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
359
|
+
|
|
360
|
+
# [1.0.0-beta.24](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2023-05-02)
|
|
361
|
+
|
|
362
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
363
|
+
|
|
364
|
+
# [1.0.0-beta.23](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2023-05-02)
|
|
365
|
+
|
|
366
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
367
|
+
|
|
368
|
+
# [1.0.0-beta.22](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2023-05-01)
|
|
369
|
+
|
|
370
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
371
|
+
|
|
372
|
+
# [1.0.0-beta.21](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2023-05-01)
|
|
373
|
+
|
|
374
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
375
|
+
|
|
376
|
+
# [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
|
|
377
|
+
|
|
378
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
379
|
+
|
|
380
|
+
# [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
383
|
+
|
|
384
|
+
# [1.0.0-beta.18](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2023-04-27)
|
|
385
|
+
|
|
386
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
387
|
+
|
|
388
|
+
# [1.0.0-beta.17](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2023-04-24)
|
|
389
|
+
|
|
390
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
391
|
+
|
|
392
|
+
# [1.0.0-beta.16](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2023-03-31)
|
|
393
|
+
|
|
394
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
395
|
+
|
|
396
|
+
# [1.0.0-beta.15](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2023-03-23)
|
|
397
|
+
|
|
398
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
399
|
+
|
|
400
|
+
# [1.0.0-beta.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2023-03-17)
|
|
401
|
+
|
|
402
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
403
|
+
|
|
404
|
+
# [1.0.0-beta.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2023-03-16)
|
|
405
|
+
|
|
406
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
407
|
+
|
|
408
|
+
# [1.0.0-beta.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2023-03-04)
|
|
409
|
+
|
|
410
|
+
**Note:** Version bump only for package @nymphjs/sorter
|
|
411
|
+
|
|
6
412
|
# [1.0.0-beta.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2023-02-27)
|
|
7
413
|
|
|
8
414
|
**Note:** Version bump only for package @nymphjs/sorter
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Here's an overview:
|
|
|
18
18
|
import { Nymph } from '@nymphjs/nymph';
|
|
19
19
|
// or
|
|
20
20
|
import { Nymph } from '@nymphjs/client';
|
|
21
|
-
import PageClass from 'Page';
|
|
21
|
+
import PageClass from './Page.js';
|
|
22
22
|
|
|
23
23
|
import { Sorter } from '@nymphjs/sorter';
|
|
24
24
|
|
|
@@ -90,7 +90,7 @@ console.log(pages);
|
|
|
90
90
|
|
|
91
91
|
# License
|
|
92
92
|
|
|
93
|
-
Copyright 2021 SciActive Inc
|
|
93
|
+
Copyright 2021-2025 SciActive Inc
|
|
94
94
|
|
|
95
95
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
96
96
|
you may not use this file except in compliance with the License.
|
package/dist/Sorter.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type SortOptions<Entity extends Object> = {
|
|
2
|
+
/** Sort case sensitively. */
|
|
3
|
+
caseSensitive?: boolean;
|
|
4
|
+
/** Reverse the sort order. */
|
|
5
|
+
reverse?: boolean;
|
|
6
|
+
/** Options to pass to Intl.Collator for string comparisons. This overrides the caseSensitive options. */
|
|
7
|
+
collatorOptions?: Intl.CollatorOptions;
|
|
8
|
+
/** A custom comparator to use. This overrides all other options except reverse. */
|
|
9
|
+
comparator?: (a: any, b: any) => number;
|
|
10
|
+
/** A function to resolve order of entities with identical properties. */
|
|
11
|
+
identiticalResolver?: (a: Entity, b: Entity) => number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Entity Array Sorter
|
|
15
|
+
*
|
|
16
|
+
* Sorting functions sort the array in place and also return the sorted array.
|
|
17
|
+
*/
|
|
18
|
+
export default class Sorter<Entity extends Object> {
|
|
19
|
+
array: (Entity & {
|
|
20
|
+
[k: string]: any;
|
|
21
|
+
})[];
|
|
22
|
+
private sortProperty;
|
|
23
|
+
private sortParent;
|
|
24
|
+
private collator;
|
|
25
|
+
private comparator;
|
|
26
|
+
private identiticalResolver;
|
|
27
|
+
constructor(array: Entity[]);
|
|
28
|
+
private _arraySortProperty;
|
|
29
|
+
/**
|
|
30
|
+
* Sort an array of entities hierarchically by a specified property's value.
|
|
31
|
+
*
|
|
32
|
+
* Entities will be placed immediately after their parents. The
|
|
33
|
+
* `parentProperty` property, if present, should hold either null, undefined,
|
|
34
|
+
* or the entity's parent.
|
|
35
|
+
*
|
|
36
|
+
* @param property The name of the property to sort entities by.
|
|
37
|
+
* @param parentProperty The name of the property which holds the parent of the entity.
|
|
38
|
+
*/
|
|
39
|
+
hsort(property: string, parentProperty: string, { caseSensitive, reverse, collatorOptions, comparator, identiticalResolver, }?: SortOptions<Entity>): Entity[];
|
|
40
|
+
/**
|
|
41
|
+
* Sort an array of entities by parent and a specified property's value.
|
|
42
|
+
*
|
|
43
|
+
* Entities' will be sorted by their parents' properties, then the entities'
|
|
44
|
+
* properties.
|
|
45
|
+
*
|
|
46
|
+
* @param property The name of the property to sort entities by.
|
|
47
|
+
* @param parentProperty The name of the property which holds the parent of the entity.
|
|
48
|
+
*/
|
|
49
|
+
psort(property: string, parentProperty: string, { caseSensitive, reverse, collatorOptions, comparator, identiticalResolver, }?: SortOptions<Entity>): Entity[];
|
|
50
|
+
/**
|
|
51
|
+
* Sort an array of entities by a specified property's value.
|
|
52
|
+
*
|
|
53
|
+
* @param property The name of the property to sort entities by.
|
|
54
|
+
* @param identiticalResolver A function to resolve order of identical entities.
|
|
55
|
+
*/
|
|
56
|
+
sort(property: string, { caseSensitive, reverse, collatorOptions, comparator, identiticalResolver, }?: SortOptions<Entity>): Entity[];
|
|
57
|
+
}
|