Skip to content

Commit 9c59861

Browse files
committed
upd: Updated dependencies. 🔝
1 parent a95bc8d commit 9c59861

File tree

19 files changed

+603
-573
lines changed

19 files changed

+603
-573
lines changed

eslint.config.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,4 @@ const __filename = fileURLToPath(import.meta.url);
88
const __dirname = path.dirname(__filename);
99
const gitignorePath = path.resolve(__dirname, ".gitignore");
1010

11-
export default [includeIgnoreFile(gitignorePath), ...eslintTs, {
12-
rules: {
13-
"no-trailing-spaces": ["error", { "ignoreComments": true }],
14-
"@typescript-eslint/no-non-null-assertion": "off",
15-
"@typescript-eslint/unified-signatures": "off"
16-
}
17-
}];
11+
export default [includeIgnoreFile(gitignorePath), ...eslintTs];

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@
6060
"ci": "pnpm install --frozen-lockfile"
6161
},
6262
"devDependencies": {
63-
"@byloth/eslint-config-typescript": "^3.1.0",
64-
"@eslint/compat": "^1.3.0",
65-
"@types/node": "^22.15.32",
63+
"@byloth/eslint-config-typescript": "^3.2.2",
64+
"@eslint/compat": "^1.4.0",
65+
"@types/node": "^22.18.6",
6666
"@vitest/coverage-v8": "^3.2.4",
67-
"eslint": "^9.29.0",
67+
"eslint": "^9.36.0",
6868
"husky": "^9.1.7",
6969
"jsdom": "^26.1.0",
70-
"typescript": "^5.8.3",
71-
"vite": "^7.0.0",
70+
"typescript": "^5.9.2",
71+
"vite": "^7.1.7",
7272
"vitest": "^3.2.4"
7373
},
74-
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
74+
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a"
7575
}

pnpm-lock.yaml

Lines changed: 551 additions & 516 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/aggregators/aggregated-async-iterator.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,9 @@ export default class AggregatedAsyncIterator<K extends PropertyKey, T>
507507
* @returns
508508
* A {@link Promise} resolving to a new {@link ReducedIterator} containing the reduced results for each group.
509509
*/
510-
public async reduce<A extends PropertyKey>(reducer: MaybeAsyncKeyedReducer<K, T, A>, initialValue: MaybePromise<A>)
511-
: Promise<ReducedIterator<K, A>>;
510+
public async reduce<A extends PropertyKey>(
511+
reducer: MaybeAsyncKeyedReducer<K, T, A>, initialValue: MaybePromise<A>
512+
): Promise<ReducedIterator<K, A>>;
512513

513514
/**
514515
* Reduces the elements of the iterator using a given reducer function.
@@ -545,8 +546,9 @@ export default class AggregatedAsyncIterator<K extends PropertyKey, T>
545546
* @returns
546547
* A {@link Promise} resolving to a new {@link ReducedIterator} containing the reduced results for each group.
547548
*/
548-
public async reduce<A>(reducer: MaybeAsyncKeyedReducer<K, T, A>, initialValue: (key: K) => MaybePromise<A>)
549-
: Promise<ReducedIterator<K, A>>;
549+
public async reduce<A>(
550+
reducer: MaybeAsyncKeyedReducer<K, T, A>, initialValue: (key: K) => MaybePromise<A>
551+
): Promise<ReducedIterator<K, A>>;
550552
public async reduce<A>(
551553
reducer: MaybeAsyncKeyedReducer<K, T, A>, initialValue?: MaybePromise<A> | ((key: K) => MaybePromise<A>)
552554
): Promise<ReducedIterator<K, A>>
@@ -810,9 +812,9 @@ export default class AggregatedAsyncIterator<K extends PropertyKey, T>
810812
* A {@link Promise} resolving to a new {@link ReducedIterator} containing
811813
* the first element that satisfies the condition for each group.
812814
*/
813-
public async find<S extends T>(predicate: MaybeAsyncKeyedIteratee<K, T, boolean>)
814-
: Promise<ReducedIterator<K, S | undefined>>;
815-
815+
public async find<S extends T>(
816+
predicate: MaybeAsyncKeyedIteratee<K, T, boolean>
817+
): Promise<ReducedIterator<K, S | undefined>>;
816818
public async find(predicate: MaybeAsyncKeyedIteratee<K, T, boolean>): Promise<ReducedIterator<K, T | undefined>>
817819
{
818820
const values = new Map<K, [number, T | undefined]>();
@@ -1020,8 +1022,9 @@ export default class AggregatedAsyncIterator<K extends PropertyKey, T>
10201022
*
10211023
* @returns A new {@link AggregatedAsyncIterator} containing the elements reorganized by the new keys.
10221024
*/
1023-
public reorganizeBy<J extends PropertyKey>(iteratee: MaybeAsyncKeyedIteratee<K, T, J>)
1024-
: AggregatedAsyncIterator<J, T>
1025+
public reorganizeBy<J extends PropertyKey>(
1026+
iteratee: MaybeAsyncKeyedIteratee<K, T, J>
1027+
): AggregatedAsyncIterator<J, T>
10251028
{
10261029
const elements = this._elements;
10271030

src/models/callbacks/callable-object.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Callback } from "./types.js";
22

33
const SmartFunction = (Function as unknown) as new<A extends unknown[] = [], R = void>(...args: string[])
4-
=> Callback<A, R>;
4+
=> Callback<A, R>;
55

66
/**
77
* An abstract class that can be used to implement callable objects.
@@ -41,7 +41,7 @@ export default abstract class CallableObject<T extends Callback<any[], any> = Ca
4141
*/
4242
public constructor()
4343
{
44-
super(`return this._invoke(...arguments);`);
44+
super("return this._invoke(...arguments);");
4545

4646
const self = this.bind(this);
4747
Object.setPrototypeOf(this, self);

src/models/callbacks/switchable-callback.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ export default class SwitchableCallback<T extends Callback<any[], any> = Callbac
130130
"The `SwitchableCallback` has no callback defined yet. " +
131131
"Did you forget to call the `register` method?"
132132
);
133-
134133
}) as unknown) as T;
135134
}
136135

src/models/callbacks/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export type InternalsEventsMap = Record<`__${string}__:${string}`, Callback<unkn
9494
* publisher.publish("player:death"); // "Event `player:death` was fired with args: []"
9595
* ```
9696
*/
97-
export interface WildcardEventsMap { "*": (type: string, ...args: unknown[]) => void; }
97+
export interface WildcardEventsMap { "*": (type: string, ...args: unknown[]) => void }
9898

9999
/**
100100
* An utility type that represents a {@link Publisher} object that can be published to.

src/models/collections/map-view.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ export default class MapView<K, V> extends Map<K, V> implements Subscribable<Map
173173
*
174174
* @returns A function that can be used to unsubscribe the callback from the event.
175175
*/
176-
public subscribe<T extends keyof MapViewEventsMap<K, V>>(event: T, subscriber: MapViewEventsMap<K, V>[T])
177-
: () => void
176+
public subscribe<T extends keyof MapViewEventsMap<K, V>>(
177+
event: T, subscriber: MapViewEventsMap<K, V>[T]
178+
): () => void
178179
{
179180
return this._publisher.subscribe(event, subscriber);
180181
}
@@ -203,8 +204,9 @@ export default class MapView<K, V> extends Map<K, V> implements Subscribable<Map
203204
* @param event The name of the event to unsubscribe from.
204205
* @param subscriber The callback to remove from the event.
205206
*/
206-
public unsubscribe<T extends keyof MapViewEventsMap<K, V>>(event: T & string, subscriber: MapViewEventsMap<K, V>[T])
207-
: void
207+
public unsubscribe<T extends keyof MapViewEventsMap<K, V>>(
208+
event: T & string, subscriber: MapViewEventsMap<K, V>[T]
209+
): void
208210
{
209211
this._publisher.unsubscribe(event, subscriber);
210212
}

src/models/collections/set-view.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ export default class SetView<T> extends Set<T> implements Subscribable<SetViewEv
167167
*
168168
* @returns A function that can be used to unsubscribe the callback from the event.
169169
*/
170-
public subscribe<K extends keyof SetViewEventsMap<T>>(event: K & string, subscriber: SetViewEventsMap<T>[K])
171-
: () => void
170+
public subscribe<K extends keyof SetViewEventsMap<T>>(
171+
event: K & string, subscriber: SetViewEventsMap<T>[K]
172+
): () => void
172173
{
173174
return this._publisher.subscribe(event, subscriber);
174175
}

src/models/iterators/smart-async-iterator.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ export default class SmartAsyncIterator<T, R = void, N = undefined> implements A
212212

213213
next = [yield result.value];
214214
}
215-
216215
})();
217216
}
218217
}
@@ -232,7 +231,6 @@ export default class SmartAsyncIterator<T, R = void, N = undefined> implements A
232231

233232
yield result.value;
234233
}
235-
236234
})();
237235
}
238236
else
@@ -248,7 +246,6 @@ export default class SmartAsyncIterator<T, R = void, N = undefined> implements A
248246

249247
next = [yield result.value];
250248
}
251-
252249
})();
253250
}
254251
}

0 commit comments

Comments
 (0)