diff --git a/modules/sdk-coin-sui/package.json b/modules/sdk-coin-sui/package.json index d0133c395a..3f9fd5e867 100644 --- a/modules/sdk-coin-sui/package.json +++ b/modules/sdk-coin-sui/package.json @@ -47,7 +47,7 @@ "@grpc/grpc-js": "^1.14.4", "@mysten/bcs": "^0.7.0", "@mysten/hashi": "0.7.1", - "@mysten/sui": "2.20.0", + "@mysten/sui": "3.1.1", "@protobuf-ts/grpc-transport": "2.11.1", "bignumber.js": "^9.0.0", "bs58": "^4.0.1", diff --git a/modules/sdk-coin-sui/src/lib/grpcClient.ts b/modules/sdk-coin-sui/src/lib/grpcClient.ts index 1ae2cb33fb..8775c04e85 100644 --- a/modules/sdk-coin-sui/src/lib/grpcClient.ts +++ b/modules/sdk-coin-sui/src/lib/grpcClient.ts @@ -1,7 +1,7 @@ /** * Structural surface of the GrpcCoreClient namespace of @mysten/sui that the * Sui SDK's node interactions rely on. Shapes are verified against - * @mysten/sui@2.20.0 (src/grpc/core.ts); the exact version pin in package.json + * @mysten/sui@3.1.1 (dist/grpc/core.d.mts); the exact version pin in package.json * keeps them stable across upgrades, so no field is silently defaulted — * helpers below hard-throw when expected fields are missing. */ @@ -77,18 +77,14 @@ function isBrowserEnvironment(): boolean { return typeof window !== 'undefined' && typeof window.document !== 'undefined'; } -// protobuf-ts service clients hold their transport under a private `_transport` -// field that the structural SuiGrpcClient type cannot express; the shape is -// fixed at the pinned @mysten/sui version. -function transportOf(client: SuiGrpcClient): unknown { - const transportHolder = client as unknown as { transactionExecutionService: { _transport: unknown } }; - return transportHolder.transactionExecutionService._transport; -} +// SuiGrpcClient wraps the transport it is given, and @mysten/sui 3.x hands its service clients a +// plain object without `close`, so the SDK keeps a reference to the transport it built. +const clientTransports = new WeakMap(); const clientCache = new Map(); /** * Creates a Sui gRPC client. Node: native transport; browser: gRPC-web - * (SuiGrpcClient's default fetch transport, given the URL as base). One + * (the gRPC-web transport from @mysten/sui/grpc, given the URL as base). One * client (and connection) is cached per url+network and reused across calls. */ export async function createSuiGrpcClient(url: string, network: 'mainnet' | 'testnet'): Promise { @@ -100,17 +96,14 @@ export async function createSuiGrpcClient(url: string, network: 'mainnet' | 'tes // TS cannot resolve this ESM-only exports subpath under CJS resolution. const grpcModule = require('@mysten/sui/grpc') as { - SuiGrpcClient: new (options: { - network: 'mainnet' | 'testnet'; - transport?: unknown; - baseUrl?: string; - }) => SuiGrpcClient; + SuiGrpcClient: new (options: { network: 'mainnet' | 'testnet'; transport: unknown }) => SuiGrpcClient; + /** gRPC-web transport; `baseUrl` must be an absolute http(s) URL. */ + GrpcWebFetchTransport: new (options: { baseUrl: string }) => unknown; }; - let client: SuiGrpcClient; + let transport: unknown; if (isBrowserEnvironment()) { - const { SuiGrpcClient } = grpcModule; - client = new SuiGrpcClient({ network, baseUrl: url }); + transport = new grpcModule.GrpcWebFetchTransport({ baseUrl: url }); } else { const [{ GrpcTransport }, { ChannelCredentials }] = await Promise.all([ import('@protobuf-ts/grpc-transport'), @@ -118,14 +111,14 @@ export async function createSuiGrpcClient(url: string, network: 'mainnet' | 'tes ]); const isTls = !url.startsWith('http://'); const host = url.replace(/^https?:\/\//i, ''); - const transport = new GrpcTransport({ + transport = new GrpcTransport({ host, channelCredentials: isTls ? ChannelCredentials.createSsl() : ChannelCredentials.createInsecure(), timeout: SUI_GRPC_CALL_TIMEOUT_MS, }); - const { SuiGrpcClient: NativeSuiGrpcClient } = grpcModule; - client = new NativeSuiGrpcClient({ network, transport }); } + const client = new grpcModule.SuiGrpcClient({ network, transport }); + clientTransports.set(client, transport); clientCache.set(key, { client }); return client; } @@ -141,9 +134,9 @@ export function closeSuiGrpcClient(client: SuiGrpcClient): void { clientCache.delete(key); } } - const transport = transportOf(client) as { close?: () => void }; + const transport = clientTransports.get(client) as { close?: () => void } | undefined; try { - transport.close?.(); + transport?.close?.(); } catch { // transport already closed } @@ -156,3 +149,8 @@ export function __resetSuiGrpcClientCacheForTest(): void { } clientCache.clear(); } + +/** Test-only: the transport a client was built with. */ +export function __getSuiGrpcTransportForTest(client: SuiGrpcClient): unknown { + return clientTransports.get(client); +} diff --git a/modules/sdk-coin-sui/test/unit/utils.ts b/modules/sdk-coin-sui/test/unit/utils.ts index 0605226320..30e1f19124 100644 --- a/modules/sdk-coin-sui/test/unit/utils.ts +++ b/modules/sdk-coin-sui/test/unit/utils.ts @@ -456,22 +456,22 @@ describe('Sui util library', function () { const grpcClientModule = require('../../src/lib/grpcClient'); grpcClientModule.__resetSuiGrpcClientCacheForTest(); }); - it('uses the gRPC-web default transport in browser environments', async function () { - const { createSuiGrpcClient } = require('../../src/lib/grpcClient'); + it('uses the gRPC-web transport in browser environments', async function () { + const { createSuiGrpcClient, __getSuiGrpcTransportForTest } = require('../../src/lib/grpcClient'); + const { GrpcWebFetchTransport } = require('@mysten/sui/grpc'); (global as any).window = { document: {} }; try { - const client = await createSuiGrpcClient('fullnode.testnet.sui.io:443', 'testnet'); - const transportName = (client as any).transactionExecutionService._transport.constructor.name; - transportName.should.equal('GrpcWebFetchTransport'); + const client = await createSuiGrpcClient('https://fullnode.testnet.sui.io:443', 'testnet'); + should(__getSuiGrpcTransportForTest(client)).be.instanceOf(GrpcWebFetchTransport); } finally { delete (global as any).window; } }); it('uses the native transport in Node environments', async function () { - const { createSuiGrpcClient } = require('../../src/lib/grpcClient'); + const { createSuiGrpcClient, __getSuiGrpcTransportForTest } = require('../../src/lib/grpcClient'); + const { GrpcTransport } = require('@protobuf-ts/grpc-transport'); const client = await createSuiGrpcClient('fullnode.testnet.sui.io:443', 'testnet'); - const transportName = (client as any).transactionExecutionService._transport.constructor.name; - transportName.should.equal('GrpcTransport'); + should(__getSuiGrpcTransportForTest(client)).be.instanceOf(GrpcTransport); }); it('caches one client per url and network', async function () { @@ -485,9 +485,13 @@ describe('Sui util library', function () { }); it('closeSuiGrpcClient evicts the cache and closes the transport', async function () { - const { createSuiGrpcClient, closeSuiGrpcClient } = require('../../src/lib/grpcClient'); + const { + createSuiGrpcClient, + closeSuiGrpcClient, + __getSuiGrpcTransportForTest, + } = require('../../src/lib/grpcClient'); const client = await createSuiGrpcClient('fullnode.testnet.sui.io:443', 'testnet'); - const transport = (client as any).transactionExecutionService._transport; + const transport = __getSuiGrpcTransportForTest(client); const closeSpy = sinon.spy(transport, 'close'); closeSuiGrpcClient(client); sinon.assert.calledOnce(closeSpy); diff --git a/yarn.lock b/yarn.lock index 7e8cc19ab7..efb9d63f47 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2881,13 +2881,13 @@ "@gql.tada/internal" "1.0.8" graphql "^15.5.0 || ^16.0.0 || ^17.0.0" -"@gql.tada/cli-utils@1.9.4": - version "1.9.4" - resolved "https://registry.npmjs.org/@gql.tada/cli-utils/-/cli-utils-1.9.4.tgz#3e1a8f1d4c5cbeca82eb21ef64ea8604490db2fc" - integrity sha512-xQ9M+2Xxjxhz9IJi+7IMU/aOsEtuSiSNb4OgDMBUC/8AcSpo2vDtx71Aodsaif4qSwuTb0YFVfDwC+ESqiZSHg== +"@gql.tada/cli-utils@1.9.6": + version "1.9.6" + resolved "https://registry.npmjs.org/@gql.tada/cli-utils/-/cli-utils-1.9.6.tgz#da664ba373698233255086479f3b0061c75ad260" + integrity sha512-kCtYP36vQbeMJgHtp8baoZTXUObuq6GPu+eHPoS05u2J9pmnfETEicorEQpOJxB1klqQRC+4JA/8TZVMeCA9rQ== dependencies: "@0no-co/graphqlsp" "^1.17.3" - "@gql.tada/internal" "1.2.2" + "@gql.tada/internal" "1.3.0" graphql "^15.5.0 || ^16.0.0 || ^17.0.0" "@gql.tada/internal@1.0.8", "@gql.tada/internal@^1.0.0": @@ -2897,7 +2897,15 @@ dependencies: "@0no-co/graphql.web" "^1.0.5" -"@gql.tada/internal@1.2.2", "@gql.tada/internal@^1.2.1": +"@gql.tada/internal@1.3.0": + version "1.3.0" + resolved "https://registry.npmjs.org/@gql.tada/internal/-/internal-1.3.0.tgz#e6c1ff8ca532c67ef536e236036477a307b1980a" + integrity sha512-PDxUsI+EVBZlD1orBYuyQ9aDDOB0InQSskATFTfloVID4+BMTvk1HLOW/X12sOftR3rw+0XSdt3uVT7A756Jvg== + dependencies: + "@0no-co/graphql.web" "^1.3.1" + jsonc-parser "^3.3.1" + +"@gql.tada/internal@^1.2.1": version "1.2.2" resolved "https://registry.npmjs.org/@gql.tada/internal/-/internal-1.2.2.tgz#0bd8e5195710bf44d4475f2dc080bcf6dacc06aa" integrity sha512-4lZcElPP6MC8Ct8KN70LR2WQsHjbAsyAmTGG09VsOPhx738UFIYaL0S1XiI2pqq2tj/sDs/y3b9jvKoWGL7iuQ== @@ -3440,12 +3448,12 @@ dependencies: bs58 "^5.0.0" -"@mysten/bcs@^2.1.0": - version "2.1.2" - resolved "https://registry.npmjs.org/@mysten/bcs/-/bcs-2.1.2.tgz#2a8528b0bdc33c7a73d7b351dcbc67e481dc76b3" - integrity sha512-fv6lyuZMTHN0xRlu4GYiV/UXUrdJDOHbXm1KfZYEU0sy/t+22yTrTVtWnAQv1Km7eyB3qHhwIrAG2aem4JMocw== +"@mysten/bcs@^2.1.4": + version "2.1.4" + resolved "https://registry.npmjs.org/@mysten/bcs/-/bcs-2.1.4.tgz#3cfb685e1539eccd3e381c75e501c360350a7b1b" + integrity sha512-ksfm0HGy82iDcuLaf4kAduaeTNqALH8D8WCdxxwU/L2Gpk4SnqoC7D8R4qMoMpCSkh56CFVG3Tme343Iz2P8PA== dependencies: - "@mysten/utils" "^0.4.1" + "@mysten/utils" "^0.4.2" "@scure/base" "^2.3.0" "@mysten/hashi@0.7.1": @@ -3457,33 +3465,32 @@ "@noble/hashes" "^2.3.0" "@scure/base" "^2.3.0" -"@mysten/sui@2.20.0": - version "2.20.0" - resolved "https://registry.npmjs.org/@mysten/sui/-/sui-2.20.0.tgz#2f520d093c66ac8b9e016e438b63a6b76b5b07a5" - integrity sha512-xcRbhrSCunUecIjtkDn5KRz2dzPv2g6Vy5TIDkOYaOSALk2AjBkfzqDNWPgcL96DrQ4pv4gw63bwYSdwq1nXLg== +"@mysten/sui@3.1.1": + version "3.1.1" + resolved "https://registry.npmjs.org/@mysten/sui/-/sui-3.1.1.tgz#cafadd325e3373c64e99ec3516a7a7bb92a7282c" + integrity sha512-QJpnm4jvYm09uQJD1WqngHqq8KG/Gh8olgDTk34qDdUbbH5xnu2zXVXoB3rhdpa1Z0aW1gOst/Ck/UtJpMGD3A== dependencies: "@graphql-typed-document-node/core" "^3.2.0" - "@mysten/bcs" "^2.1.0" - "@mysten/utils" "^0.4.0" - "@noble/curves" "^2.2.0" - "@noble/hashes" "^2.2.0" - "@protobuf-ts/grpcweb-transport" "^2.11.1" + "@mysten/bcs" "^2.1.4" + "@mysten/utils" "^0.4.2" + "@noble/curves" "^2.3.0" + "@noble/hashes" "^2.3.0" + "@noble/post-quantum" "0.7.1" + "@protobuf-ts/grpcweb-transport" "~2.11.1" "@protobuf-ts/runtime" "^2.11.1" "@protobuf-ts/runtime-rpc" "^2.11.1" - "@scure/base" "^2.2.0" - "@scure/bip32" "^2.2.0" - "@scure/bip39" "^2.2.0" - gql.tada "^1.10.1" - graphql "^16.14.2" - poseidon-lite "0.2.1" - valibot "^1.4.1" - -"@mysten/utils@^0.4.0", "@mysten/utils@^0.4.1": - version "0.4.1" - resolved "https://registry.npmjs.org/@mysten/utils/-/utils-0.4.1.tgz#9027b86449cec15b132f3e56e45568fdcd2ec323" - integrity sha512-gffLJ84CbqG/CcOPuVlwXIRu37tFn0BtUx7CQtbLwJzWjUE7FU2Gq8BXWjzxImnvufcyLTaNWtCPG6wq22Zhog== - dependencies: "@scure/base" "^2.3.0" + "@scure/bip32" "^2.3.0" + "@scure/bip39" "^2.3.0" + gql.tada "^1.11.3" + graphql "^17.0.2" + poseidon-lite "0.3.0" + valibot "^1.4.2" + +"@mysten/utils@^0.4.2": + version "0.4.2" + resolved "https://registry.npmjs.org/@mysten/utils/-/utils-0.4.2.tgz#c909264060a2b46097c7d9d5c0618075d6bec5b8" + integrity sha512-K/5eBuYKxUFCrYcic1lvYvWE9OVSH581cjVjwsSJGUqPit91nZq2acUwes+B4lo98VE/CILIUeBcyEIvuNxMhA== "@napi-rs/canvas-android-arm64@0.1.100": version "0.1.100" @@ -3722,6 +3729,11 @@ "@near-js/utils" "1.1.0" borsh "1.0.0" +"@noble/ciphers@2.4.0": + version "2.4.0" + resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-2.4.0.tgz#04cf9e0f1cd3d521e8e5ca92dc0c02238180f676" + integrity sha512-AnjFn0Jv92laAkvMrghlFZq4qQCIN/4DxFV/eooqtC2YTjB7kBeLMS2T9KJX4Dn+ZVXLOwK0lSgqDtx9gvxtiw== + "@noble/ciphers@^1.1.1", "@noble/ciphers@^1.3.0": version "1.3.0" resolved "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz" @@ -3769,7 +3781,7 @@ dependencies: "@noble/hashes" "2.2.0" -"@noble/curves@2.4.0", "@noble/curves@^2.2.0", "@noble/curves@^2.3.0": +"@noble/curves@2.4.0", "@noble/curves@^2.3.0": version "2.4.0" resolved "https://registry.npmjs.org/@noble/curves/-/curves-2.4.0.tgz#367c869bfd790c3a2248152562f255b5f8898b74" integrity sha512-P4/62zrgfH33CneE3Dn4WhJVA22YUU0eR51wKIan4NVRvwsA0YnPTwWGpNbpuacSujmSFLvyzpyuR30+fbq2Ew== @@ -3828,11 +3840,20 @@ resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz#22da1d16a469954fce877055d559900a6c73b63b" integrity sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg== -"@noble/hashes@2.4.0", "@noble/hashes@^2.2.0", "@noble/hashes@^2.3.0": +"@noble/hashes@2.4.0", "@noble/hashes@^2.3.0": version "2.4.0" resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz#e6a3e98edbed3c8659b28bb8f9b18ca02ec8ea4b" integrity sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA== +"@noble/post-quantum@0.7.1": + version "0.7.1" + resolved "https://registry.npmjs.org/@noble/post-quantum/-/post-quantum-0.7.1.tgz#b57156fab2b4661f965d3d2d9776a7dbd1310ff8" + integrity sha512-+P9981IiAnVh+rmcubozzVwrEy3XsN/tMhTnvsjV9VDaYpOnNCqWqKo2FLWxbu92YHfjGIlE5XnW175UK+ln+Q== + dependencies: + "@noble/ciphers" "2.4.0" + "@noble/curves" "2.4.0" + "@noble/hashes" "2.4.0" + "@noble/secp256k1@1.6.3": version "1.6.3" resolved "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.6.3.tgz" @@ -4974,7 +4995,7 @@ "@protobuf-ts/runtime" "^2.11.1" "@protobuf-ts/runtime-rpc" "^2.11.1" -"@protobuf-ts/grpcweb-transport@^2.11.1": +"@protobuf-ts/grpcweb-transport@~2.11.1": version "2.11.1" resolved "https://registry.npmjs.org/@protobuf-ts/grpcweb-transport/-/grpcweb-transport-2.11.1.tgz#63a8a0d6043851fec14de4b091121377d2549683" integrity sha512-1W4utDdvOB+RHMFQ0soL4JdnxjXV+ddeGIUg08DvZrA8Ms6k5NN6GBFU2oHZdTOcJVpPrDJ02RJlqtaoCMNBtw== @@ -5080,7 +5101,7 @@ resolved "https://registry.npmjs.org/@scure/base/-/base-2.0.0.tgz#ba6371fddf92c2727e88ad6ab485db6e624f9a98" integrity sha512-3E1kpuZginKkek01ovG8krQ0Z44E3DHPjc5S2rjJw9lZn3KSQOs8S7wqikF/AH7iRanHypj85uGyxk0XAyC37w== -"@scure/base@2.4.0", "@scure/base@^2.2.0", "@scure/base@^2.3.0": +"@scure/base@2.4.0", "@scure/base@^2.3.0": version "2.4.0" resolved "https://registry.npmjs.org/@scure/base/-/base-2.4.0.tgz#61e4ed7d4447afc247f2bff9aeb8fca53267db86" integrity sha512-thZ1TuJwFwBblOhgsjDKvvGirBxNp+wSvY/DR6tJBJOTDhdAAcHJ8Vbr2eFnqaxeca4+t0i9KBf+uHYGWwZORg== @@ -5127,7 +5148,7 @@ "@noble/hashes" "~1.8.0" "@scure/base" "~1.2.5" -"@scure/bip32@^2.2.0": +"@scure/bip32@^2.3.0": version "2.4.0" resolved "https://registry.npmjs.org/@scure/bip32/-/bip32-2.4.0.tgz#4b13d0e5f60f776f17cbf5528893ee03839acb6a" integrity sha512-i3DS0CptAocyvqE4n3SUkpzeQK4vJMFwWLofTwRiiKo2aWojBOfyMCgfKw9HVpO6fSY5AK86sHS/Uzn8kK9Few== @@ -5168,7 +5189,7 @@ "@noble/hashes" "~1.8.0" "@scure/base" "~1.2.5" -"@scure/bip39@^2.2.0": +"@scure/bip39@^2.3.0": version "2.4.0" resolved "https://registry.npmjs.org/@scure/bip39/-/bip39-2.4.0.tgz#7b19a76d4dd2f4591c07b446a0f9695f9b1d9545" integrity sha512-82dxFbZUYboyOf0AXiydsQrFQ5Q4h9mX+O2UkE91ROYmsc0BKMGZLwDmy96Jpa2+vrtoxomjUhy1RPIgH/r2nA== @@ -12381,15 +12402,15 @@ got@^11.8.6: p-cancelable "^2.0.0" responselike "^2.0.0" -gql.tada@^1.10.1: - version "1.11.4" - resolved "https://registry.npmjs.org/gql.tada/-/gql.tada-1.11.4.tgz#000501c84ac41976349e70d861c574e5a97e4c66" - integrity sha512-UQnhJUhSM0MV8cpcgjci/7ET8LnmHx9o9FtZqU4sH+ILiBVG5rnfXJzNdzTN+Y7MuCz6Pp3XE/VPEVqmO969jw== +gql.tada@^1.11.3: + version "1.11.6" + resolved "https://registry.npmjs.org/gql.tada/-/gql.tada-1.11.6.tgz#f4fbebd2a131fcc7087709b2d1854eee1160d460" + integrity sha512-MEYdfHwkO7wrFwDQhV925ESNGwSuMaOYmM471AlJORGt7Zu0/ytbquVq9pbn16RpH1LUjinhYInhju2ItJQd4g== dependencies: "@0no-co/graphql.web" "^1.3.2" "@0no-co/graphqlsp" "^1.17.3" - "@gql.tada/cli-utils" "1.9.4" - "@gql.tada/internal" "1.2.2" + "@gql.tada/cli-utils" "1.9.6" + "@gql.tada/internal" "1.3.0" gql.tada@^1.8.2: version "1.8.13" @@ -12411,10 +12432,10 @@ graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, resolved "https://registry.npmjs.org/graphql/-/graphql-16.11.0.tgz" integrity sha512-mS1lbMsxgQj6hge1XZ6p7GPhbrtFwUFYi3wRzXAC/FmYnyXMTvvI3td3rjmQ2u8ewXueaSvRPWaEcgVVOT9Jnw== -graphql@^16.14.2: - version "16.14.2" - resolved "https://registry.npmjs.org/graphql/-/graphql-16.14.2.tgz#83faf25869e3df727cc855161db5da85b0e5b2c0" - integrity sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA== +graphql@^17.0.2: + version "17.1.0" + resolved "https://registry.npmjs.org/graphql/-/graphql-17.1.0.tgz#8ae1d3ad214fd99d59cb7a67b9c96419701191c8" + integrity sha512-JKCOa7rSQNrket/JFhuua86hljUO+IIpyUHfKxlKD6FEfbrLX8jc1FDrA0KPKI+s8OspBCF/5npYccAICHXPpQ== gzip-size@^6.0.0: version "6.0.0" @@ -13976,6 +13997,11 @@ jsonc-parser@3.2.0: resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== +jsonc-parser@^3.3.1: + version "3.3.1" + resolved "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz#f2a524b4f7fd11e3d791e559977ad60b98b798b4" + integrity sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== + jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" @@ -16910,7 +16936,12 @@ pngjs@^5.0.0: resolved "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz" integrity sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw== -poseidon-lite@0.2.1, poseidon-lite@^0.2.0: +poseidon-lite@0.3.0: + version "0.3.0" + resolved "https://registry.npmjs.org/poseidon-lite/-/poseidon-lite-0.3.0.tgz#93c42f6f9b870f154f2722dfd686b909c4285765" + integrity sha512-ilJj4MIve4uBEG7SrtPqUUNkvpJ/pLVbndxa0WvebcQqeIhe+h72JR4g0EvwchUzm9sOQDlOjiDNmRAgxNZl4A== + +poseidon-lite@^0.2.0: version "0.2.1" resolved "https://registry.npmjs.org/poseidon-lite/-/poseidon-lite-0.2.1.tgz" integrity sha512-xIr+G6HeYfOhCuswdqcFpSX47SPhm0EpisWJ6h7fHlWwaVIvH3dLnejpatrtw6Xc6HaLrpq05y7VRfvDmDGIog== @@ -20490,10 +20521,10 @@ valibot@1.2.0, valibot@^1.2.0: resolved "https://registry.npmjs.org/valibot/-/valibot-1.2.0.tgz#8fc720d9e4082ba16e30a914064a39619b2f1d6f" integrity sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg== -valibot@^1.4.1: - version "1.5.0" - resolved "https://registry.npmjs.org/valibot/-/valibot-1.5.0.tgz#c05adda6b2823807bb0248e2952c35e1a50046fd" - integrity sha512-nil6AkP2TChWL43Z5uJ6GTxX01CUA+g8LWUM+N/rB9NBbkUMaUsi9PUNzlUPgoKASgmx9f7eGOYpJ04/fSa6FQ== +valibot@^1.4.2: + version "1.6.0" + resolved "https://registry.npmjs.org/valibot/-/valibot-1.6.0.tgz#3164f76c9945c3fea34342de43fc4ac6fb1e019a" + integrity sha512-r8Cpu38zehdfONp8KbtWDDAFR3S3sklmSm0hAn61yC5WUKJvMr4LTds+c3kQqkjw4bKliHlo29doqZk0mbiTXQ== validate-npm-package-license@3.0.4, validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: version "3.0.4"