@quenty/aggregator 1.7.0 → 1.7.1

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,6 +3,14 @@
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.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/aggregator@1.7.0...@quenty/aggregator@1.7.1) (2025-12-28)
7
+
8
+ **Note:** Version bump only for package @quenty/aggregator
9
+
10
+
11
+
12
+
13
+
6
14
  # [1.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/aggregator@1.6.0...@quenty/aggregator@1.7.0) (2025-09-26)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/aggregator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/aggregator",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Aggregates async promise requests",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "0ecdc6807f4ad638ffd49b056bceec4353895b82"
39
+ "gitHead": "821c9336020dfbcf5cd2f67f2dfe61624233ee06"
40
40
  }
@@ -19,17 +19,19 @@ Aggregator.__index = Aggregator
19
19
 
20
20
  export type PromiseBulkQuery<T> = ({ number }) -> Promise.Promise<T>
21
21
 
22
- export type Aggregator<T> = typeof(setmetatable(
23
- {} :: {
24
- _debugName: string,
25
- _promiseBatchQuery: ({ number }) -> Promise.Promise<T>,
26
- _promisesLruCache: any,
27
- _maxBatchSize: number,
28
- _unsentCount: number,
29
- _unsentPromises: { [number]: Promise.Promise<T> },
30
- },
31
- {} :: typeof({ __index = Aggregator })
32
- )) & BaseObject.BaseObject
22
+ export type Aggregator<T> =
23
+ typeof(setmetatable(
24
+ {} :: {
25
+ _debugName: string,
26
+ _promiseBatchQuery: ({ number }) -> Promise.Promise<T>,
27
+ _promisesLruCache: any,
28
+ _maxBatchSize: number,
29
+ _unsentCount: number,
30
+ _unsentPromises: { [number]: Promise.Promise<T> },
31
+ },
32
+ {} :: typeof({ __index = Aggregator })
33
+ ))
34
+ & BaseObject.BaseObject
33
35
 
34
36
  --[=[
35
37
  Creates a new aggregator that aggregates promised results together
@@ -21,20 +21,22 @@ export type QueueEntry<TArgs..., T...> = {
21
21
  tuple: Tuple.Tuple<TArgs...>,
22
22
  }
23
23
 
24
- export type RateAggregator<TArgs..., T...> = typeof(setmetatable(
25
- {} :: {
26
- _promiseQuery: (TArgs...) -> Promise.Promise<T...>,
27
- _maxRequestsPerSecond: number,
28
- _minWaitTime: number,
29
- _bankedWaitTime: number,
30
- _lastQueryTime: number,
31
- _queueRunning: boolean,
32
- _queue: Queue.Queue<QueueEntry<(TArgs...), (T...)>>,
33
- _tupleLookup: TupleLookup.TupleLookup,
34
- _promisesLruCache: any,
35
- },
36
- {} :: typeof({ __index = RateAggregator })
37
- )) & BaseObject.BaseObject
24
+ export type RateAggregator<TArgs..., T...> =
25
+ typeof(setmetatable(
26
+ {} :: {
27
+ _promiseQuery: (TArgs...) -> Promise.Promise<T...>,
28
+ _maxRequestsPerSecond: number,
29
+ _minWaitTime: number,
30
+ _bankedWaitTime: number,
31
+ _lastQueryTime: number,
32
+ _queueRunning: boolean,
33
+ _queue: Queue.Queue<QueueEntry<(TArgs...), (T...)>>,
34
+ _tupleLookup: TupleLookup.TupleLookup,
35
+ _promisesLruCache: any,
36
+ },
37
+ {} :: typeof({ __index = RateAggregator })
38
+ ))
39
+ & BaseObject.BaseObject
38
40
 
39
41
  function RateAggregator.new<TArgs..., T...>(promiseQuery: (TArgs...) -> Promise.Promise<T...>): RateAggregator<TArgs..., T...>
40
42
  local self: RateAggregator<TArgs..., T...> = setmetatable(BaseObject.new() :: any, RateAggregator)