@quenty/throttle 10.12.2 → 10.13.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/CHANGELOG.md +17 -218
- package/package.json +2 -2
- package/src/Shared/ThrottledFunction.spec.lua +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,432 +3,231 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @quenty/throttle
|
|
6
|
+
# [10.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.12.2...@quenty/throttle@10.13.0) (2026-07-18)
|
|
9
7
|
|
|
8
|
+
### Bug Fixes
|
|
10
9
|
|
|
10
|
+
- pin translation behavior with tests and fix camelCase key generation ([#737](https://github.com/Quenty/NevermoreEngine/issues/737)) ([1b7a536](https://github.com/Quenty/NevermoreEngine/commit/1b7a536dde7e124f8432e57612ec8138dd835d75))
|
|
11
11
|
|
|
12
|
+
## [10.12.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.12.1...@quenty/throttle@10.12.2) (2026-04-30)
|
|
12
13
|
|
|
14
|
+
**Note:** Version bump only for package @quenty/throttle
|
|
13
15
|
|
|
14
16
|
## [10.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.12.0...@quenty/throttle@10.12.1) (2026-04-29)
|
|
15
17
|
|
|
16
18
|
**Note:** Version bump only for package @quenty/throttle
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
20
|
# [10.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.11.0...@quenty/throttle@10.12.0) (2026-04-23)
|
|
23
21
|
|
|
24
22
|
**Note:** Version bump only for package @quenty/throttle
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
24
|
# [10.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.10.3...@quenty/throttle@10.11.0) (2026-02-17)
|
|
31
25
|
|
|
32
26
|
**Note:** Version bump only for package @quenty/throttle
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
28
|
## [10.10.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.10.2...@quenty/throttle@10.10.3) (2026-01-12)
|
|
39
29
|
|
|
40
|
-
|
|
41
30
|
### Bug Fixes
|
|
42
31
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
- Fix dependency installation process for pnpm ([9651b09](https://github.com/Quenty/NevermoreEngine/commit/9651b09af34f252ef3f9c7c539793cc878dd8cba))
|
|
48
33
|
|
|
49
34
|
## [10.10.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.10.1...@quenty/throttle@10.10.2) (2026-01-10)
|
|
50
35
|
|
|
51
36
|
**Note:** Version bump only for package @quenty/throttle
|
|
52
37
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
38
|
## [10.10.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.10.0...@quenty/throttle@10.10.1) (2026-01-03)
|
|
58
39
|
|
|
59
40
|
**Note:** Version bump only for package @quenty/throttle
|
|
60
41
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
42
|
# [10.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.9.3...@quenty/throttle@10.10.0) (2025-05-10)
|
|
66
43
|
|
|
67
44
|
**Note:** Version bump only for package @quenty/throttle
|
|
68
45
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
46
|
## [10.9.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.9.2...@quenty/throttle@10.9.3) (2025-04-10)
|
|
74
47
|
|
|
75
48
|
**Note:** Version bump only for package @quenty/throttle
|
|
76
49
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
50
|
## [10.9.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.9.0...@quenty/throttle@10.9.2) (2025-04-07)
|
|
82
51
|
|
|
83
|
-
|
|
84
52
|
### Bug Fixes
|
|
85
53
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
54
|
+
- Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
55
|
+
- Bump package versions for republishing ([ba47c62](https://github.com/Quenty/NevermoreEngine/commit/ba47c62e32170bf74377b0c658c60b84306dc294))
|
|
92
56
|
|
|
93
57
|
## [10.9.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.9.0...@quenty/throttle@10.9.1) (2025-04-07)
|
|
94
58
|
|
|
95
|
-
|
|
96
59
|
### Bug Fixes
|
|
97
60
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
61
|
+
- Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
103
62
|
|
|
104
63
|
# [10.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.8.1...@quenty/throttle@10.9.0) (2025-02-18)
|
|
105
64
|
|
|
106
65
|
**Note:** Version bump only for package @quenty/throttle
|
|
107
66
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
67
|
## [10.8.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.8.0...@quenty/throttle@10.8.1) (2024-11-04)
|
|
113
68
|
|
|
114
69
|
**Note:** Version bump only for package @quenty/throttle
|
|
115
70
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
71
|
# [10.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.7.0...@quenty/throttle@10.8.0) (2024-10-06)
|
|
121
72
|
|
|
122
73
|
**Note:** Version bump only for package @quenty/throttle
|
|
123
74
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
75
|
# [10.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.6.0...@quenty/throttle@10.7.0) (2024-10-04)
|
|
129
76
|
|
|
130
77
|
**Note:** Version bump only for package @quenty/throttle
|
|
131
78
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
79
|
# [10.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.5.0...@quenty/throttle@10.6.0) (2024-09-25)
|
|
137
80
|
|
|
138
81
|
**Note:** Version bump only for package @quenty/throttle
|
|
139
82
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
83
|
# [10.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.4.0...@quenty/throttle@10.5.0) (2024-09-12)
|
|
145
84
|
|
|
146
85
|
**Note:** Version bump only for package @quenty/throttle
|
|
147
86
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
87
|
# [10.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.3.0...@quenty/throttle@10.4.0) (2024-08-09)
|
|
153
88
|
|
|
154
|
-
|
|
155
89
|
### Features
|
|
156
90
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
91
|
+
- Added \_\_call metamethod to ThrottledFunction ([#484](https://github.com/Quenty/NevermoreEngine/issues/484)) ([b74baa6](https://github.com/Quenty/NevermoreEngine/commit/b74baa6ec5b85ed3f7ec33b2a487343b3e6b2726))
|
|
162
92
|
|
|
163
93
|
# [10.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.2.0...@quenty/throttle@10.3.0) (2024-05-09)
|
|
164
94
|
|
|
165
|
-
|
|
166
95
|
### Bug Fixes
|
|
167
96
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
97
|
+
- Fix .package-lock.json replicating in packages ([75d0efe](https://github.com/Quenty/NevermoreEngine/commit/75d0efeef239f221d93352af71a5b3e930ec23c5))
|
|
173
98
|
|
|
174
99
|
# [10.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.1.0...@quenty/throttle@10.2.0) (2024-04-27)
|
|
175
100
|
|
|
176
101
|
**Note:** Version bump only for package @quenty/throttle
|
|
177
102
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
103
|
# [10.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@10.0.0...@quenty/throttle@10.1.0) (2024-03-09)
|
|
183
104
|
|
|
184
105
|
**Note:** Version bump only for package @quenty/throttle
|
|
185
106
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
107
|
# [10.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@9.0.0...@quenty/throttle@10.0.0) (2024-02-14)
|
|
191
108
|
|
|
192
109
|
**Note:** Version bump only for package @quenty/throttle
|
|
193
110
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
111
|
# [9.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@8.0.0...@quenty/throttle@9.0.0) (2024-02-13)
|
|
199
112
|
|
|
200
113
|
**Note:** Version bump only for package @quenty/throttle
|
|
201
114
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
115
|
# [8.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@7.2.0...@quenty/throttle@8.0.0) (2024-02-13)
|
|
207
116
|
|
|
208
117
|
**Note:** Version bump only for package @quenty/throttle
|
|
209
118
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
119
|
# [7.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@7.1.0...@quenty/throttle@7.2.0) (2024-01-08)
|
|
215
120
|
|
|
216
121
|
**Note:** Version bump only for package @quenty/throttle
|
|
217
122
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
123
|
# [7.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@7.0.0...@quenty/throttle@7.1.0) (2023-12-14)
|
|
223
124
|
|
|
224
125
|
**Note:** Version bump only for package @quenty/throttle
|
|
225
126
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
127
|
# [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@6.3.0...@quenty/throttle@7.0.0) (2023-10-11)
|
|
231
128
|
|
|
232
129
|
**Note:** Version bump only for package @quenty/throttle
|
|
233
130
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
131
|
# [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@6.2.1...@quenty/throttle@6.3.0) (2023-08-23)
|
|
239
132
|
|
|
240
133
|
**Note:** Version bump only for package @quenty/throttle
|
|
241
134
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
135
|
## [6.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@6.2.0...@quenty/throttle@6.2.1) (2023-04-07)
|
|
247
136
|
|
|
248
137
|
**Note:** Version bump only for package @quenty/throttle
|
|
249
138
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
139
|
# [6.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@6.1.0...@quenty/throttle@6.2.0) (2023-03-05)
|
|
255
140
|
|
|
256
141
|
**Note:** Version bump only for package @quenty/throttle
|
|
257
142
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
143
|
# [6.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@6.0.1...@quenty/throttle@6.1.0) (2023-02-21)
|
|
263
144
|
|
|
264
145
|
**Note:** Version bump only for package @quenty/throttle
|
|
265
146
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
147
|
## [6.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@6.0.0...@quenty/throttle@6.0.1) (2022-11-04)
|
|
271
148
|
|
|
272
149
|
**Note:** Version bump only for package @quenty/throttle
|
|
273
150
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
151
|
# [6.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@5.0.1...@quenty/throttle@6.0.0) (2022-09-27)
|
|
279
152
|
|
|
280
153
|
**Note:** Version bump only for package @quenty/throttle
|
|
281
154
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
155
|
## [5.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@5.0.0...@quenty/throttle@5.0.1) (2022-08-16)
|
|
287
156
|
|
|
288
157
|
**Note:** Version bump only for package @quenty/throttle
|
|
289
158
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
159
|
# [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@4.1.0...@quenty/throttle@5.0.0) (2022-05-21)
|
|
295
160
|
|
|
296
161
|
**Note:** Version bump only for package @quenty/throttle
|
|
297
162
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
163
|
# [4.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@4.0.0...@quenty/throttle@4.1.0) (2022-03-27)
|
|
303
164
|
|
|
304
165
|
**Note:** Version bump only for package @quenty/throttle
|
|
305
166
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
167
|
# [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.5.0...@quenty/throttle@4.0.0) (2022-03-06)
|
|
311
168
|
|
|
312
169
|
**Note:** Version bump only for package @quenty/throttle
|
|
313
170
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
171
|
# [3.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.4.0...@quenty/throttle@3.5.0) (2022-01-17)
|
|
319
172
|
|
|
320
|
-
|
|
321
173
|
### Features
|
|
322
174
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
175
|
+
- Add ability to call leading upon the first execution. ([621c8c8](https://github.com/Quenty/NevermoreEngine/commit/621c8c83bd760c7b75714721a87cb042bd64be54))
|
|
328
176
|
|
|
329
177
|
# [3.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.3.0...@quenty/throttle@3.4.0) (2022-01-07)
|
|
330
178
|
|
|
331
179
|
**Note:** Version bump only for package @quenty/throttle
|
|
332
180
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
181
|
# [3.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.2.1...@quenty/throttle@3.3.0) (2022-01-03)
|
|
338
182
|
|
|
339
183
|
**Note:** Version bump only for package @quenty/throttle
|
|
340
184
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
185
|
## [3.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.2.0...@quenty/throttle@3.2.1) (2021-12-30)
|
|
346
186
|
|
|
347
187
|
**Note:** Version bump only for package @quenty/throttle
|
|
348
188
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
189
|
# [3.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.1.1...@quenty/throttle@3.2.0) (2021-11-20)
|
|
354
190
|
|
|
355
|
-
|
|
356
191
|
### Bug Fixes
|
|
357
192
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
193
|
+
- Support MacOS syncing ([#225](https://github.com/Quenty/NevermoreEngine/issues/225)) ([03f9183](https://github.com/Quenty/NevermoreEngine/commit/03f918392c6a5bdd33f8a17c38de371d1e06c67a))
|
|
363
194
|
|
|
364
195
|
## [3.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.1.0...@quenty/throttle@3.1.1) (2021-10-30)
|
|
365
196
|
|
|
366
197
|
**Note:** Version bump only for package @quenty/throttle
|
|
367
198
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
199
|
# [3.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.0.1...@quenty/throttle@3.1.0) (2021-10-02)
|
|
373
200
|
|
|
374
201
|
**Note:** Version bump only for package @quenty/throttle
|
|
375
202
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
203
|
## [3.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@3.0.0...@quenty/throttle@3.0.1) (2021-09-18)
|
|
381
204
|
|
|
382
205
|
**Note:** Version bump only for package @quenty/throttle
|
|
383
206
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
207
|
# [3.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@2.1.0...@quenty/throttle@3.0.0) (2021-09-11)
|
|
389
208
|
|
|
390
209
|
**Note:** Version bump only for package @quenty/throttle
|
|
391
210
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
211
|
# [2.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@2.0.0...@quenty/throttle@2.1.0) (2021-09-05)
|
|
397
212
|
|
|
398
213
|
**Note:** Version bump only for package @quenty/throttle
|
|
399
214
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
215
|
# [2.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/throttle@1.2.0...@quenty/throttle@2.0.0) (2021-09-05)
|
|
405
216
|
|
|
406
|
-
|
|
407
217
|
### Bug Fixes
|
|
408
218
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
219
|
+
- Remove peer dependencies. This is because lerna doesn't really support peer dependencies being linked and getting a new version on build, which is unfortunate. ([5f5aeee](https://github.com/Quenty/NevermoreEngine/commit/5f5aeeea8de9975435309e53679f0ef7064f9dd0))
|
|
414
220
|
|
|
415
221
|
# 1.2.0 (2021-07-31)
|
|
416
222
|
|
|
417
|
-
|
|
418
223
|
### Bug Fixes
|
|
419
224
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
225
|
+
- Add CI and CD ([47513e9](https://github.com/Quenty/NevermoreEngine/commit/47513e9b568162707534af132396dd8756947dd3))
|
|
226
|
+
- Adjust CI badge to show automatic build and release state ([5a55d3f](https://github.com/Quenty/NevermoreEngine/commit/5a55d3f19bf8d66a760d67da9b56ed47fab74656))
|
|
227
|
+
- Fix selene linting ([45fc074](https://github.com/Quenty/NevermoreEngine/commit/45fc07489ee59127ac6582689f19a0e87c1e5b5a))
|
|
425
228
|
|
|
426
229
|
## 1.0.2 (2021-07-25)
|
|
427
230
|
|
|
428
|
-
|
|
429
|
-
|
|
430
231
|
## 1.0.1 (2021-07-25)
|
|
431
232
|
|
|
432
|
-
|
|
433
|
-
|
|
434
233
|
# 1.0.0 (2021-07-24)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/throttle",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.13.0",
|
|
4
4
|
"description": "Adds the throttle function to Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "647acfad93dca41c38f59cda247d2bfc0fff36d4"
|
|
44
44
|
}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
@class ThrottledFunction.spec.lua
|
|
4
4
|
]]
|
|
5
5
|
|
|
6
|
-
local require = (
|
|
7
|
-
game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent
|
|
8
|
-
).bootstrapStory(script) :: typeof(require(script.Parent.loader).load(script))
|
|
6
|
+
local require = require(script.Parent.loader).load(script)
|
|
9
7
|
|
|
10
8
|
local Jest = require("Jest")
|
|
11
9
|
local ThrottledFunction = require("ThrottledFunction")
|
|
@@ -18,10 +16,12 @@ local jest = Jest.Globals.jest
|
|
|
18
16
|
local TIMEOUT = 1
|
|
19
17
|
local TIMEOUT_MS = TIMEOUT * 1000
|
|
20
18
|
|
|
21
|
-
local function recordCalls
|
|
19
|
+
local function recordCalls()
|
|
22
20
|
local calls = {}
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
-- Variadic-any so a single throttled function can be called with different arities
|
|
23
|
+
-- across the test (a generic T... would bind to the first call's shape).
|
|
24
|
+
local function callback(...: any)
|
|
25
25
|
table.insert(calls, table.pack(...))
|
|
26
26
|
end
|
|
27
27
|
|