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