Skip to content

Commit aaa26e4

Browse files
authored
Merge pull request #250 from DestinyItemManager/update-deps
Update dependencies
2 parents 2593120 + 9e552ff commit aaa26e4

File tree

3 files changed

+429
-424
lines changed

3 files changed

+429
-424
lines changed
Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,67 @@
11
// @generated by Stately. DO NOT EDIT.
22
/* eslint-disable */
33

4-
import { createClient as createGenericClient, StatelyError } from "@stately-cloud/client";
4+
import { createClient as createGenericClient } from '@stately-cloud/client';
55
import {
66
ApiAppSchema,
7-
GlobalSettingsSchema,
8-
ItemAnnotationSchema,
9-
ItemHashTagSchema,
10-
LoadoutSchema,
11-
LoadoutShareSchema,
12-
SearchSchema,
13-
SettingsSchema,
14-
TriumphSchema,
157
ArtifactUnlocksSchema,
168
CollapsedSectionSchema,
179
CustomStatDefSchema,
18-
CustomStatWeightsEntrySchema,
1910
CustomStatsEntrySchema,
11+
CustomStatWeightsEntrySchema,
12+
GlobalSettingsSchema,
2013
InGameLoadoutIdentifiersSchema,
14+
ItemAnnotationSchema,
15+
ItemHashTagSchema,
2116
LoadoutItemSchema,
2217
LoadoutParametersSchema,
18+
LoadoutSchema,
19+
LoadoutShareSchema,
2320
ModsByBucketEntrySchema,
21+
SearchSchema,
22+
SettingsSchema,
2423
SocketOverrideSchema,
2524
StatConstraintSchema,
2625
StatConstraintsEntrySchema,
27-
} from "./stately_pb.js";
26+
TriumphSchema,
27+
} from './stately_pb.js';
2828

2929
export const typeToSchema = {
3030
// itemTypes
31-
"ApiApp": ApiAppSchema,
32-
"GlobalSettings": GlobalSettingsSchema,
33-
"ItemAnnotation": ItemAnnotationSchema,
34-
"ItemHashTag": ItemHashTagSchema,
35-
"Loadout": LoadoutSchema,
36-
"LoadoutShare": LoadoutShareSchema,
37-
"Search": SearchSchema,
38-
"Settings": SettingsSchema,
39-
"Triumph": TriumphSchema,
31+
ApiApp: ApiAppSchema,
32+
GlobalSettings: GlobalSettingsSchema,
33+
ItemAnnotation: ItemAnnotationSchema,
34+
ItemHashTag: ItemHashTagSchema,
35+
Loadout: LoadoutSchema,
36+
LoadoutShare: LoadoutShareSchema,
37+
Search: SearchSchema,
38+
Settings: SettingsSchema,
39+
Triumph: TriumphSchema,
4040

4141
// objectTypes
42-
"ArtifactUnlocks": ArtifactUnlocksSchema,
43-
"CollapsedSection": CollapsedSectionSchema,
44-
"CustomStatDef": CustomStatDefSchema,
45-
"CustomStatWeightsEntry": CustomStatWeightsEntrySchema,
46-
"CustomStatsEntry": CustomStatsEntrySchema,
47-
"InGameLoadoutIdentifiers": InGameLoadoutIdentifiersSchema,
48-
"LoadoutItem": LoadoutItemSchema,
49-
"LoadoutParameters": LoadoutParametersSchema,
50-
"ModsByBucketEntry": ModsByBucketEntrySchema,
51-
"SocketOverride": SocketOverrideSchema,
52-
"StatConstraint": StatConstraintSchema,
53-
"StatConstraintsEntry": StatConstraintsEntrySchema,
42+
ArtifactUnlocks: ArtifactUnlocksSchema,
43+
CollapsedSection: CollapsedSectionSchema,
44+
CustomStatDef: CustomStatDefSchema,
45+
CustomStatWeightsEntry: CustomStatWeightsEntrySchema,
46+
CustomStatsEntry: CustomStatsEntrySchema,
47+
InGameLoadoutIdentifiers: InGameLoadoutIdentifiersSchema,
48+
LoadoutItem: LoadoutItemSchema,
49+
LoadoutParameters: LoadoutParametersSchema,
50+
ModsByBucketEntry: ModsByBucketEntrySchema,
51+
SocketOverride: SocketOverrideSchema,
52+
StatConstraint: StatConstraintSchema,
53+
StatConstraintsEntry: StatConstraintsEntrySchema,
5454
};
5555

56-
const SCHEMA_VERSION_ID = 1
56+
/** The version of the schema that this client was generated for. */
57+
const SCHEMA_VERSION_ID = 2;
5758

5859
export function createClient(storeId, opts) {
59-
6060
return createGenericClient(storeId, typeToSchema, SCHEMA_VERSION_ID, opts);
6161
}
62+
63+
if (createGenericClient.length < 3) {
64+
throw new Error(
65+
'Your version of @stately-cloud/client is too old. Please update to the latest version.',
66+
);
67+
}

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --detectOpenHandles --verbose --coverage --forceExit",
2121
"test:watch": "jest --watch",
2222
"eslint-inspect": "pnpm dlx @eslint/config-inspector",
23-
"generate": "stately schema generate -l js --schema-id 8030842688320564 --version 1 api/stately/generated",
23+
"generate": "stately schema generate -l js --schema-id 8030842688320564 --version 2 api/stately/generated",
2424
"generate-preview": "stately schema generate -l js --preview api/stately/schema/index.ts api/stately/generated",
2525
"dim-api-types:build": "./build-dim-api-types.sh"
2626
},
@@ -30,40 +30,40 @@
3030
"@babel/plugin-transform-object-rest-spread": "^7.25.9",
3131
"@babel/preset-env": "^7.26.0",
3232
"@babel/preset-typescript": "^7.26.0",
33-
"@eslint/compat": "^1.2.2",
33+
"@eslint/compat": "^1.2.3",
3434
"@eslint/js": "^9.14.0",
3535
"@rollup/plugin-babel": "^6.0.4",
3636
"@rollup/plugin-node-resolve": "^15.3.0",
3737
"@sentry/cli": "^2.38.2",
38-
"@stately-cloud/schema": "^0.9.0",
38+
"@stately-cloud/schema": "^0.10.0",
3939
"@types/cors": "^2.8.17",
4040
"@types/express": "^4.17.21",
4141
"@types/jest": "^29.5.14",
4242
"@types/jsonwebtoken": "^9.0.7",
4343
"@types/lodash": "^4.17.13",
4444
"@types/morgan": "^1.9.9",
4545
"@types/pg": "^8.11.10",
46-
"@types/uuid": "^9.0.8",
46+
"@types/uuid": "^10.0.0",
4747
"@types/vhost": "3.0.7",
48-
"@typescript-eslint/eslint-plugin": "^6.21.0",
49-
"@typescript-eslint/parser": "^6.21.0",
48+
"@typescript-eslint/eslint-plugin": "^8.14.0",
49+
"@typescript-eslint/parser": "^8.14.0",
5050
"db-migrate": "^0.11.14",
5151
"db-migrate-pg": "^1.5.2",
5252
"eslint": "^9.14.0",
53-
"eslint-plugin-regexp": "^2.6.0",
53+
"eslint-plugin-regexp": "^2.7.0",
5454
"eslint-plugin-sonarjs": "^1.0.4",
5555
"globals": "^15.12.0",
5656
"jest": "^29.7.0",
5757
"prettier": "^3.3.3",
58-
"prettier-plugin-organize-imports": "^3.2.4",
59-
"rollup": "^3.29.5",
58+
"prettier-plugin-organize-imports": "^4.1.0",
59+
"rollup": "^4.26.0",
6060
"supertest-fetch": "^2.0.0",
6161
"ts-jest": "^29.2.5",
6262
"ts-node": "^10.9.2",
6363
"ts-node-dev": "^2.0.0",
6464
"tsx": "^4.19.2",
6565
"typescript": "^5.6.3",
66-
"typescript-eslint": "^8.13.0"
66+
"typescript-eslint": "^8.14.0"
6767
},
6868
"dependencies": {
6969
"@bufbuild/protobuf": "^2.2.2",
@@ -88,7 +88,7 @@
8888
"pg": "^8.13.1",
8989
"pg-protocol": "^1.7.0",
9090
"slugify": "^1.6.6",
91-
"uuid": "^9.0.1",
91+
"uuid": "^11.0.3",
9292
"vhost": "^3.0.2"
9393
},
9494
"packageManager": "pnpm@8.9.0+sha256.8f5264ad1d100da11a6add6bb8a94c6f1e913f9e9261b2a551fabefad2ec0fec"

0 commit comments

Comments
 (0)