Skip to content

Commit 1cba773

Browse files
fix(deps): update all non-major dependencies (#2716)
* fix(deps): update all non-major dependencies * fix: resolved type errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Aura Román <kyradiscord@gmail.com>
1 parent dba519b commit 1cba773

8 files changed

Lines changed: 480 additions & 497 deletions

File tree

Lines changed: 287 additions & 287 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ plugins:
1010
- path: .yarn/plugins/@yarnpkg/plugin-git-hooks.cjs
1111
spec: "https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-hooks/main/bundles/%40yarnpkg/plugin-git-hooks.js"
1212

13-
yarnPath: .yarn/releases/yarn-4.5.3.cjs
13+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@
5151
"update": "yarn upgrade-interactive"
5252
},
5353
"dependencies": {
54-
"@discordjs/builders": "^1.9.0",
54+
"@discordjs/builders": "^1.10.0",
5555
"@discordjs/collection": "^2.1.1",
5656
"@discordjs/core": "^1.2.0",
5757
"@influxdata/influxdb-client": "^1.35.0",
5858
"@influxdata/influxdb-client-apis": "^1.35.0",
59-
"@prisma/client": "^6.1.0",
59+
"@prisma/client": "^6.2.0",
6060
"@sapphire/async-queue": "^1.5.5",
6161
"@sapphire/bitfield": "^1.2.4",
6262
"@sapphire/decorators": "^6.1.1",
63-
"@sapphire/discord.js-utilities": "7.3.1",
63+
"@sapphire/discord.js-utilities": "7.3.2",
6464
"@sapphire/fetch": "^3.0.5",
65-
"@sapphire/framework": "5.3.1",
65+
"@sapphire/framework": "5.3.2",
6666
"@sapphire/iterator-utilities": "^2.0.1",
6767
"@sapphire/plugin-api": "^8.0.0",
68-
"@sapphire/plugin-editable-commands": "^4.0.3",
68+
"@sapphire/plugin-editable-commands": "^4.0.4",
6969
"@sapphire/plugin-i18next": "^7.1.3",
7070
"@sapphire/plugin-logger": "^4.0.2",
7171
"@sapphire/plugin-subcommands": "^7.0.1",
@@ -74,7 +74,7 @@
7474
"@sapphire/stopwatch": "^1.5.4",
7575
"@sapphire/time-utilities": "^1.7.14",
7676
"@sapphire/utilities": "^3.18.1",
77-
"@sentry/node": "^8.47.0",
77+
"@sentry/node": "^8.48.0",
7878
"@skyra/ai": "^1.2.0",
7979
"@skyra/char": "^1.0.3",
8080
"@skyra/env-utilities": "^1.3.0",
@@ -84,8 +84,8 @@
8484
"colorette": "^2.0.20",
8585
"confusables": "^1.1.1",
8686
"diff": "^7.0.0",
87-
"discord-api-types": "0.37.98",
88-
"discord.js": "~14.16.3",
87+
"discord-api-types": "^0.37.115",
88+
"discord.js": "~14.17.2",
8989
"he": "^1.2.0",
9090
"zlib-sync": "^0.1.9"
9191
},
@@ -99,7 +99,7 @@
9999
"@types/backoff": "^2.5.5",
100100
"@types/diff": "^6.0.0",
101101
"@types/he": "^1.2.3",
102-
"@types/node": "^22.9.0",
102+
"@types/node": "^22.10.5",
103103
"@types/pg": "^8.11.10",
104104
"@types/ws": "^8.5.13",
105105
"@typescript-eslint/eslint-plugin": "^7.18.0",
@@ -111,15 +111,15 @@
111111
"eslint-plugin-prettier": "^5.2.1",
112112
"lint-staged": "^15.3.0",
113113
"prettier": "^3.4.2",
114-
"prisma": "^6.1.0",
114+
"prisma": "^6.2.0",
115115
"prisma-json-types-generator": "^3.2.2",
116-
"tsc-watch": "^6.2.1",
117-
"typescript": "~5.4.5",
116+
"tsc-watch": "^6.3.0",
117+
"typescript": "~5.7.2",
118118
"vitest": "^2.1.8"
119119
},
120120
"resolutions": {
121121
"ansi-regex": "^5.0.1",
122-
"discord-api-types": "0.37.98",
122+
"discord-api-types": "^0.37.115",
123123
"minimist": "^1.2.8"
124124
},
125125
"engines": {
@@ -144,7 +144,7 @@
144144
}
145145
},
146146
"prettier": "@sapphire/prettier-config",
147-
"packageManager": "yarn@4.5.3",
147+
"packageManager": "yarn@4.6.0",
148148
"volta": {
149149
"node": "22.12.0"
150150
}

src/lib/database/settings/structures/PermissionNodeManager.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const enum PermissionNodeAction {
1111
Deny
1212
}
1313

14+
type PermissionNodeValueResolvable = Role | GuildMember | User;
15+
1416
export class PermissionNodeManager {
1517
private sorted = new Collection<string, PermissionsManagerNode>();
1618
#cachedRawPermissionRoles: readonly PermissionsNode[] = [];
@@ -20,7 +22,7 @@ export class PermissionNodeManager {
2022
this.refresh(settings);
2123
}
2224

23-
public settingsPropertyFor(target: Role | GuildMember | User) {
25+
public settingsPropertyFor(target: PermissionNodeValueResolvable) {
2426
return (target instanceof Role ? 'permissionsRoles' : 'permissionsUsers') satisfies keyof ReadonlyGuildData;
2527
}
2628

@@ -32,7 +34,7 @@ export class PermissionNodeManager {
3234
return this.sorted.has(roleId);
3335
}
3436

35-
public add(target: Role | GuildMember | User, command: string, action: PermissionNodeAction): readonly PermissionsNode[] {
37+
public add(target: PermissionNodeValueResolvable, command: string, action: PermissionNodeAction): readonly PermissionsNode[] {
3638
const nodes = this.#getPermissionNodes(target);
3739

3840
const nodeIndex = nodes.findIndex((n) => n.id === target.id);
@@ -63,7 +65,7 @@ export class PermissionNodeManager {
6365
return nodes.with(nodeIndex, node);
6466
}
6567

66-
public remove(target: Role | GuildMember | User, command: string, action: PermissionNodeAction): readonly PermissionsNode[] {
68+
public remove(target: PermissionNodeValueResolvable, command: string, action: PermissionNodeAction): readonly PermissionsNode[] {
6769
const nodes = this.#getPermissionNodes(target);
6870

6971
const nodeIndex = nodes.findIndex((n) => n.id === target.id);
@@ -80,16 +82,16 @@ export class PermissionNodeManager {
8082

8183
const node: PermissionsNode = {
8284
id: target.id,
83-
allow: 'allow' ? previous.allow.toSpliced(commandIndex, 1) : previous.allow,
84-
deny: 'deny' ? previous.deny.toSpliced(commandIndex, 1) : previous.deny
85+
allow: action === PermissionNodeAction.Allow ? previous.allow.toSpliced(commandIndex, 1) : previous.allow,
86+
deny: action === PermissionNodeAction.Deny ? previous.deny.toSpliced(commandIndex, 1) : previous.deny
8587
};
8688

8789
return node.allow.length === 0 && node.deny.length === 0 //
8890
? nodes.toSpliced(nodeIndex, 1)
8991
: nodes.with(nodeIndex, node);
9092
}
9193

92-
public reset(target: Role | GuildMember | User): readonly PermissionsNode[] {
94+
public reset(target: PermissionNodeValueResolvable): readonly PermissionsNode[] {
9395
const nodes = this.#getPermissionNodes(target);
9496

9597
const nodeIndex = nodes.findIndex((n) => n.id === target.id);
@@ -226,7 +228,7 @@ export class PermissionNodeManager {
226228
}
227229
}
228230

229-
#getPermissionNodes(target: Role | GuildMember | User): readonly PermissionsNode[] {
231+
#getPermissionNodes(target: PermissionNodeValueResolvable): readonly PermissionsNode[] {
230232
return target instanceof Role ? this.#cachedRawPermissionRoles : this.#cachedRawPermissionUsers;
231233
}
232234
}

src/lib/structures/data/SortedCollection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class SortedCollection<K extends number | string | bigint, V> implements
192192
/**
193193
* Returns an iterator that contains all the keys in the collection.
194194
*/
195-
public *keys(): IterableIterator<K> {
195+
public *keys(): MapIterator<K> {
196196
for (const [key] of this.#entries) {
197197
yield key;
198198
}
@@ -201,7 +201,7 @@ export class SortedCollection<K extends number | string | bigint, V> implements
201201
/**
202202
* Returns an iterator that yields all the values in the collection.
203203
*/
204-
public *values(): IterableIterator<V> {
204+
public *values(): MapIterator<V> {
205205
for (const [, value] of this.#entries) {
206206
yield value;
207207
}
@@ -210,14 +210,14 @@ export class SortedCollection<K extends number | string | bigint, V> implements
210210
/**
211211
* Returns an iterator that yields all the entries in the collection.
212212
*/
213-
public *entries(): IterableIterator<[K, V]> {
213+
public *entries(): MapIterator<[K, V]> {
214214
yield* this.#entries;
215215
}
216216

217217
/**
218218
* Returns an iterator that yields all the entries in the collection.
219219
*/
220-
public *[Symbol.iterator](): IterableIterator<[K, V]> {
220+
public *[Symbol.iterator](): MapIterator<[K, V]> {
221221
yield* this.#entries;
222222
}
223223

src/listeners/guilds/members/rawGuildMemberUpdate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class UserListener extends Listener {
6262
action_type: AuditLogEvent.MemberRoleUpdate
6363
});
6464

65-
const updatedRoleId = this.getChange(auditLogs, data.user!.id);
65+
const updatedRoleId = this.getChange(auditLogs, data.user.id);
6666
if (updatedRoleId === null) return;
6767

6868
let memberRoles = data.roles;

src/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"outDir": "../dist",
66
"rootDir": ".",
77
"baseUrl": ".",
8-
"resolvePackageJsonImports": true
8+
"resolvePackageJsonImports": true,
9+
"skipLibCheck": true
910
},
1011
"include": [".", "./**/*.json"],
1112
"exclude": ["./tsconfig.json"]

0 commit comments

Comments
 (0)