diff --git a/package.json b/package.json index 9dfaa48..d5e9b28 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --detectOpenHandles --verbose --coverage --forceExit", "test:watch": "jest --watch", "eslint-inspect": "pnpm dlx @eslint/config-inspector", - "generate": "stately schema generate -l js --schema-id 8030842688320564 --version 1 api/stately/schema/index.ts api/stately/generated", + "generate": "stately schema generate -l js --schema-id 8030842688320564 --version 1 api/stately/generated", + "generate-preview": "stately schema generate -l js --preview api/stately/schema/index.ts api/stately/generated", "dim-api-types:build": "./build-dim-api-types.sh" }, "devDependencies": { @@ -34,7 +35,7 @@ "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-node-resolve": "^15.2.3", "@sentry/cli": "^2.34.1", - "@stately-cloud/schema": "^0.4.0", + "@stately-cloud/schema": "^0.9.0", "@types/cors": "^2.8.17", "@types/express": "^4.17.21", "@types/jest": "^29.5.12", @@ -65,12 +66,12 @@ "typescript-eslint": "^8.3.0" }, "dependencies": { - "@bufbuild/protobuf": "^2.1.0", + "@bufbuild/protobuf": "^2.2.1", "@godaddy/terminus": "^4.12.1", "@google-cloud/profiler": "^6.0.2", "@sentry/node": "^7.119.0", "@sentry/tracing": "^7.114.0", - "@stately-cloud/client": "^0.5.0", + "@stately-cloud/client": "^0.11.0", "bungie-api-ts": "^5.1.0", "cors": "^2.8.5", "dotenv": "^16.4.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 54dffa6..36ef9f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@bufbuild/protobuf': - specifier: ^2.1.0 - version: 2.1.0 + specifier: ^2.2.1 + version: 2.2.1 '@godaddy/terminus': specifier: ^4.12.1 version: 4.12.1 @@ -21,8 +21,8 @@ dependencies: specifier: ^7.114.0 version: 7.114.0 '@stately-cloud/client': - specifier: ^0.5.0 - version: 0.5.0 + specifier: ^0.11.0 + version: 0.11.0 bungie-api-ts: specifier: ^5.1.0 version: 5.1.0 @@ -110,8 +110,8 @@ devDependencies: specifier: ^2.34.1 version: 2.34.1 '@stately-cloud/schema': - specifier: ^0.4.0 - version: 0.4.0 + specifier: ^0.9.0 + version: 0.9.0 '@types/cors': specifier: ^2.8.17 version: 2.8.17 @@ -165,7 +165,7 @@ devDependencies: version: 15.9.0 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@22.6.1)(ts-node@10.9.2) + version: 29.7.0(@types/node@22.8.5)(ts-node@10.9.2) prettier: specifier: ^3.3.3 version: 3.3.3 @@ -183,10 +183,10 @@ devDependencies: version: 29.2.5(@babel/core@7.25.2)(jest@29.7.0)(typescript@5.5.4) ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.6.1)(typescript@5.5.4) + version: 10.9.2(@types/node@22.8.5)(typescript@5.5.4) ts-node-dev: specifier: ^2.0.0 - version: 2.0.0(@types/node@22.6.1)(typescript@5.5.4) + version: 2.0.0(@types/node@22.8.5)(typescript@5.5.4) tsx: specifier: ^4.19.0 version: 4.19.0 @@ -1618,31 +1618,31 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@bufbuild/protobuf@2.1.0: - resolution: {integrity: sha512-+2Mx67Y3skJ4NCD/qNSdBJNWtu6x6Qr53jeNg+QcwiL6mt0wK+3jwHH2x1p7xaYH6Ve2JKOVn0OxU35WsmqI9A==} + /@bufbuild/protobuf@2.2.1: + resolution: {integrity: sha512-gdWzq7eX017a1kZCU/bP/sbk4e0GZ6idjsXOcMrQwODCb/rx985fHJJ8+hCu79KpuG7PfZh7bo3BBjPH37JuZw==} /@colors/colors@1.5.0: resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} engines: {node: '>=0.1.90'} dev: true - /@connectrpc/connect-node@2.0.0-beta.1(@bufbuild/protobuf@2.1.0)(@connectrpc/connect@2.0.0-beta.1): - resolution: {integrity: sha512-cmkuvOr1sAsEptlwSNN7rOjhrdc3vbsuipoEKUmGWQ0CjzF/SgCca86FyVf7dSsfGJme98TBsjYiznaLDJgaaA==} + /@connectrpc/connect-node@2.0.0-rc.1(@bufbuild/protobuf@2.2.1)(@connectrpc/connect@2.0.0-rc.1): + resolution: {integrity: sha512-nG+GmyKyZC5ki6L+WHXB2ysKwdMLzR+tkcARLAGX4Ugd7OyB5RWZxqjYYA4Q1M/eWptDzWbSPw29FmF+3LjFlg==} engines: {node: '>=18.14.1'} peerDependencies: - '@bufbuild/protobuf': ^2.1.0 - '@connectrpc/connect': 2.0.0-beta.1 + '@bufbuild/protobuf': ^2.2.0 + '@connectrpc/connect': 2.0.0-rc.1 dependencies: - '@bufbuild/protobuf': 2.1.0 - '@connectrpc/connect': 2.0.0-beta.1(@bufbuild/protobuf@2.1.0) + '@bufbuild/protobuf': 2.2.1 + '@connectrpc/connect': 2.0.0-rc.1(@bufbuild/protobuf@2.2.1) dev: false - /@connectrpc/connect@2.0.0-beta.1(@bufbuild/protobuf@2.1.0): - resolution: {integrity: sha512-3zr+mHusBrEqhFGjOpbCF7GrFBLZUQEk2/3Aa8lNEQt5hZhT2uXAOJhyroxs5mNTI5yWhAA/g6ua6RoSnTXoKQ==} + /@connectrpc/connect@2.0.0-rc.1(@bufbuild/protobuf@2.2.1): + resolution: {integrity: sha512-AupiGDh2Ht0wgslatfdU/Jp8zDPHwvsCrLcChi7Ea3zZT/biSpPMqj8LiaR5ri/EHexZ58jYvtBbTNqCP7H3fg==} peerDependencies: - '@bufbuild/protobuf': ^2.1.0 + '@bufbuild/protobuf': ^2.2.0 dependencies: - '@bufbuild/protobuf': 2.1.0 + '@bufbuild/protobuf': 2.2.1 dev: false /@cspotcode/source-map-support@0.8.1: @@ -2669,20 +2669,20 @@ packages: '@sinonjs/commons': 3.0.0 dev: true - /@stately-cloud/client@0.5.0: - resolution: {integrity: sha512-Bh5gEHI4VZr3y3XDuzscTJJwObZyFxO7n82h0y36hZIBBfa49S5HMiuM0dMSNCtrUdvzAOfhhhhkj79mPgeq4g==} + /@stately-cloud/client@0.11.0: + resolution: {integrity: sha512-DJ0ZWJ6sPjAF7sSWredXJvfObkq9uDj3VvafQZA1jd7qtlvwhathY1sJnP7rp+7Wp2lTY2ZyakrMcsIMaLPxGw==} engines: {node: '>=18'} dependencies: - '@bufbuild/protobuf': 2.1.0 - '@connectrpc/connect': 2.0.0-beta.1(@bufbuild/protobuf@2.1.0) - '@connectrpc/connect-node': 2.0.0-beta.1(@bufbuild/protobuf@2.1.0)(@connectrpc/connect@2.0.0-beta.1) + '@bufbuild/protobuf': 2.2.1 + '@connectrpc/connect': 2.0.0-rc.1(@bufbuild/protobuf@2.2.1) + '@connectrpc/connect-node': 2.0.0-rc.1(@bufbuild/protobuf@2.2.1)(@connectrpc/connect@2.0.0-rc.1) dev: false - /@stately-cloud/schema@0.4.0: - resolution: {integrity: sha512-GasVQRox4xWqroDatabhHFN+Orjp/AXcfqiGPq5XUn/5UeUjYidn/KDuoEgtWXP3UYxdMjRBi8o3NFacgnd16g==} + /@stately-cloud/schema@0.9.0: + resolution: {integrity: sha512-5VIDSKtjnOpnOhY0wML5QBuivy69oDSMXkEmeLp2AehwPYvpGdJ/zZHyVm59Jg6W8aYOrSTUxJjVpvPpAB0pfA==} hasBin: true dependencies: - '@bufbuild/protobuf': 2.1.0 + '@bufbuild/protobuf': 2.2.1 fast-equals: 5.0.1 tsx: 4.19.0 typescript: 5.5.4 @@ -2860,6 +2860,13 @@ packages: resolution: {integrity: sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw==} dependencies: undici-types: 6.19.8 + dev: false + + /@types/node@22.8.5: + resolution: {integrity: sha512-5iYk6AMPtsMbkZqCO1UGF9W5L38twq11S2pYWkybGHH2ogPUvXWNlQqJBzuEZWKj/WRH+QTeiv6ySWqJtvIEgA==} + dependencies: + undici-types: 6.19.8 + dev: true /@types/pg@8.11.8: resolution: {integrity: sha512-IqpCf8/569txXN/HoP5i1LjXfKZWL76Yr2R77xgeIICUbAYHeoaEZFhYHo2uDftecLWrTJUq63JvQu8q3lnDyA==} @@ -3803,11 +3810,11 @@ packages: engines: {node: '>=8.0.0'} requiresBuild: true dependencies: - nan: 2.20.0 + nan: 2.22.0 dev: true optional: true - /create-jest@29.7.0(@types/node@22.6.1)(ts-node@10.9.2): + /create-jest@29.7.0(@types/node@22.8.5)(ts-node@10.9.2): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -3816,7 +3823,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@22.6.1)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@22.8.5)(ts-node@10.9.2) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -5079,7 +5086,7 @@ packages: - supports-color dev: true - /jest-cli@29.7.0(@types/node@22.6.1)(ts-node@10.9.2): + /jest-cli@29.7.0(@types/node@22.8.5)(ts-node@10.9.2): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -5093,10 +5100,10 @@ packages: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@22.6.1)(ts-node@10.9.2) + create-jest: 29.7.0(@types/node@22.8.5)(ts-node@10.9.2) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@22.6.1)(ts-node@10.9.2) + jest-config: 29.7.0(@types/node@22.8.5)(ts-node@10.9.2) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -5142,13 +5149,13 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@types/node@22.6.1)(typescript@5.5.4) + ts-node: 10.9.2(@types/node@22.8.5)(typescript@5.5.4) transitivePeerDependencies: - babel-plugin-macros - supports-color dev: true - /jest-config@29.7.0(@types/node@22.6.1)(ts-node@10.9.2): + /jest-config@29.7.0(@types/node@22.8.5)(ts-node@10.9.2): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -5163,7 +5170,7 @@ packages: '@babel/core': 7.25.2 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.6.1 + '@types/node': 22.8.5 babel-jest: 29.7.0(@babel/core@7.25.2) chalk: 4.1.2 ci-info: 3.9.0 @@ -5183,7 +5190,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.2(@types/node@22.6.1)(typescript@5.5.4) + ts-node: 10.9.2(@types/node@22.8.5)(typescript@5.5.4) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -5472,7 +5479,7 @@ packages: supports-color: 8.1.1 dev: true - /jest@29.7.0(@types/node@22.6.1)(ts-node@10.9.2): + /jest@29.7.0(@types/node@22.8.5)(ts-node@10.9.2): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -5485,7 +5492,7 @@ packages: '@jest/core': 29.7.0(ts-node@10.9.2) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@22.6.1)(ts-node@10.9.2) + jest-cli: 29.7.0(@types/node@22.8.5)(ts-node@10.9.2) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -5907,6 +5914,13 @@ packages: /nan@2.20.0: resolution: {integrity: sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==} requiresBuild: true + dev: false + + /nan@2.22.0: + resolution: {integrity: sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==} + requiresBuild: true + dev: true + optional: true /natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -6821,7 +6835,7 @@ packages: bcrypt-pbkdf: 1.0.2 optionalDependencies: cpu-features: 0.0.2 - nan: 2.20.0 + nan: 2.22.0 dev: true /stack-trace@0.0.10: @@ -7066,7 +7080,7 @@ packages: bs-logger: 0.2.6 ejs: 3.1.10 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@22.6.1)(ts-node@10.9.2) + jest: 29.7.0(@types/node@22.8.5)(ts-node@10.9.2) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -7076,7 +7090,7 @@ packages: yargs-parser: 21.1.1 dev: true - /ts-node-dev@2.0.0(@types/node@22.6.1)(typescript@5.5.4): + /ts-node-dev@2.0.0(@types/node@22.8.5)(typescript@5.5.4): resolution: {integrity: sha512-ywMrhCfH6M75yftYvrvNarLEY+SUXtUvU8/0Z6llrHQVBx12GiFk5sStF8UdfE/yfzk9IAq7O5EEbTQsxlBI8w==} engines: {node: '>=0.8.0'} hasBin: true @@ -7095,7 +7109,7 @@ packages: rimraf: 2.7.1 source-map-support: 0.5.21 tree-kill: 1.2.2 - ts-node: 10.9.2(@types/node@22.6.1)(typescript@5.5.4) + ts-node: 10.9.2(@types/node@22.8.5)(typescript@5.5.4) tsconfig: 7.0.0 typescript: 5.5.4 transitivePeerDependencies: @@ -7104,7 +7118,7 @@ packages: - '@types/node' dev: true - /ts-node@10.9.2(@types/node@22.6.1)(typescript@5.5.4): + /ts-node@10.9.2(@types/node@22.8.5)(typescript@5.5.4): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -7123,7 +7137,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 22.6.1 + '@types/node': 22.8.5 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3