diff --git a/package-lock.json b/package-lock.json index e412270b..c098ff47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,14 +15,14 @@ "@dfinity/ic-management": "^6.1.1", "@dfinity/identity": "^2.3.0", "@dfinity/principal": "^2.3.0", - "@junobuild/admin": "^0.5.0-next-2025-06-03.5", - "@junobuild/cdn": "^0.1.0-next-2025-06-03.5", - "@junobuild/cli-tools": "^0.2.0-next-2025-06-03.5", + "@junobuild/admin": "^0.5.0-next-2025-06-03.8", + "@junobuild/cdn": "^0.1.0-next-2025-06-03.8", + "@junobuild/cli-tools": "^0.2.0-next-2025-06-03.8", "@junobuild/config": "^0.1.8", "@junobuild/config-loader": "^0.2.1", - "@junobuild/core": "^0.1.15-next-2025-06-03.5", + "@junobuild/core": "^0.1.15-next-2025-06-03.8", "@junobuild/did-tools": "^0.2.1", - "@junobuild/storage": "^0.2.0-next-2025-06-03.5", + "@junobuild/storage": "^0.2.0-next-2025-06-03.8", "@junobuild/utils": "^0.1.3", "chokidar": "^4.0.3", "conf": "^13.1.0", @@ -1464,9 +1464,9 @@ } }, "node_modules/@junobuild/admin": { - "version": "0.5.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-0.5.0-next-2025-06-03.5.tgz", - "integrity": "sha512-8M3tBFUZkJfXUxW5whLs535AzpIKEnapmeiozs3hA6lBpfIo5iUZ7phCsFM8ekQN93rsigsDu5xd7Itoag8Yzg==", + "version": "0.5.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-0.5.0-next-2025-06-03.8.tgz", + "integrity": "sha512-dJWhV8ZwyaVcv2+3RDTmb7I+cxOCHRqaa5FlLVVI2BOxt6lNkJfcIof6tQcLHSAwHDr4opboUeZk9i1lphekvA==", "license": "MIT", "peerDependencies": { "@dfinity/agent": "*", @@ -1481,9 +1481,9 @@ } }, "node_modules/@junobuild/cdn": { - "version": "0.1.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-0.1.0-next-2025-06-03.5.tgz", - "integrity": "sha512-oYZn69k0NSw3QWFRimmgSE9RkzE3oUPD0/+hMzY0cay1gCWoNbVNkj21BMp+7uf+XXJP4ZRamo2F1y7SoS652A==", + "version": "0.1.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-0.1.0-next-2025-06-03.8.tgz", + "integrity": "sha512-VSYz5P66VJ6uYCuLzPb+UvU8fPIVucIEzYqGt3R3uT0vNu2LqEFRNTsVsWTzLS9Eol5gBDNloZ2A8XEUtemG3Q==", "license": "MIT", "peerDependencies": { "@dfinity/agent": "*", @@ -1497,9 +1497,9 @@ } }, "node_modules/@junobuild/cli-tools": { - "version": "0.2.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/cli-tools/-/cli-tools-0.2.0-next-2025-06-03.5.tgz", - "integrity": "sha512-Mz446gTtEHGb4JJtAY1NYydTHxxVbMy+/zSwApNFnezMwADOYve9ONxGzJLjjCK9sypnIIPJRBg+wv8MjyNavw==", + "version": "0.2.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/cli-tools/-/cli-tools-0.2.0-next-2025-06-03.8.tgz", + "integrity": "sha512-Z0vgivR8ZJ/V0rm/0Vwwu82cLGO4qH2lcxJGyt0YU6vuLoX7DSUs+dAsvuTFHPVAde3yGLXdHWJaM3FgdFpMJw==", "license": "MIT", "dependencies": { "file-type": "^21.0.0", @@ -1536,9 +1536,9 @@ } }, "node_modules/@junobuild/core": { - "version": "0.1.15-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-0.1.15-next-2025-06-03.5.tgz", - "integrity": "sha512-4rGKieTGzYiEDtCRMvgyieib6xzUjOC0zj8BQP+RxvKUJ449SijGyb7MZ/K6NXCbRxmcduazlcwZWGjTlzOf6Q==", + "version": "0.1.15-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-0.1.15-next-2025-06-03.8.tgz", + "integrity": "sha512-Z2oAvx11gFBWgHC7yUD5QHr8o6sggCfMGaUhTWk0m+SDw4G3w5hsFhoKr5BqLJhPFx2dLoe0EUbozpmEqz2TNQ==", "license": "MIT", "dependencies": { "@junobuild/errors": "*", @@ -1591,9 +1591,9 @@ } }, "node_modules/@junobuild/storage": { - "version": "0.2.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-0.2.0-next-2025-06-03.5.tgz", - "integrity": "sha512-1Q4gk7QP9VO06baD4YFulYtq0qO7Jw9wBJeLJxERWdJQATAqdg/WlZfL5wwuJewDuKQAfr93s8ET2qOHm76xMg==", + "version": "0.2.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-0.2.0-next-2025-06-03.8.tgz", + "integrity": "sha512-TjDjuCCWDW3IRzPGsTUzSkvKdAOFSQ0lGqt0M9ySo/bR5HXijb4mArQgpqdJDdQ84btVTlvyb/mktR7kJBra1g==", "license": "MIT", "peerDependencies": { "@dfinity/agent": "*", @@ -8011,21 +8011,21 @@ } }, "@junobuild/admin": { - "version": "0.5.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-0.5.0-next-2025-06-03.5.tgz", - "integrity": "sha512-8M3tBFUZkJfXUxW5whLs535AzpIKEnapmeiozs3hA6lBpfIo5iUZ7phCsFM8ekQN93rsigsDu5xd7Itoag8Yzg==", + "version": "0.5.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/admin/-/admin-0.5.0-next-2025-06-03.8.tgz", + "integrity": "sha512-dJWhV8ZwyaVcv2+3RDTmb7I+cxOCHRqaa5FlLVVI2BOxt6lNkJfcIof6tQcLHSAwHDr4opboUeZk9i1lphekvA==", "requires": {} }, "@junobuild/cdn": { - "version": "0.1.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-0.1.0-next-2025-06-03.5.tgz", - "integrity": "sha512-oYZn69k0NSw3QWFRimmgSE9RkzE3oUPD0/+hMzY0cay1gCWoNbVNkj21BMp+7uf+XXJP4ZRamo2F1y7SoS652A==", + "version": "0.1.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/cdn/-/cdn-0.1.0-next-2025-06-03.8.tgz", + "integrity": "sha512-VSYz5P66VJ6uYCuLzPb+UvU8fPIVucIEzYqGt3R3uT0vNu2LqEFRNTsVsWTzLS9Eol5gBDNloZ2A8XEUtemG3Q==", "requires": {} }, "@junobuild/cli-tools": { - "version": "0.2.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/cli-tools/-/cli-tools-0.2.0-next-2025-06-03.5.tgz", - "integrity": "sha512-Mz446gTtEHGb4JJtAY1NYydTHxxVbMy+/zSwApNFnezMwADOYve9ONxGzJLjjCK9sypnIIPJRBg+wv8MjyNavw==", + "version": "0.2.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/cli-tools/-/cli-tools-0.2.0-next-2025-06-03.8.tgz", + "integrity": "sha512-Z0vgivR8ZJ/V0rm/0Vwwu82cLGO4qH2lcxJGyt0YU6vuLoX7DSUs+dAsvuTFHPVAde3yGLXdHWJaM3FgdFpMJw==", "requires": { "file-type": "^21.0.0", "listr": "^0.14.3", @@ -8046,9 +8046,9 @@ "requires": {} }, "@junobuild/core": { - "version": "0.1.15-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-0.1.15-next-2025-06-03.5.tgz", - "integrity": "sha512-4rGKieTGzYiEDtCRMvgyieib6xzUjOC0zj8BQP+RxvKUJ449SijGyb7MZ/K6NXCbRxmcduazlcwZWGjTlzOf6Q==", + "version": "0.1.15-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/core/-/core-0.1.15-next-2025-06-03.8.tgz", + "integrity": "sha512-Z2oAvx11gFBWgHC7yUD5QHr8o6sggCfMGaUhTWk0m+SDw4G3w5hsFhoKr5BqLJhPFx2dLoe0EUbozpmEqz2TNQ==", "requires": { "@junobuild/errors": "*", "@junobuild/storage": "*", @@ -8074,9 +8074,9 @@ "requires": {} }, "@junobuild/storage": { - "version": "0.2.0-next-2025-06-03.5", - "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-0.2.0-next-2025-06-03.5.tgz", - "integrity": "sha512-1Q4gk7QP9VO06baD4YFulYtq0qO7Jw9wBJeLJxERWdJQATAqdg/WlZfL5wwuJewDuKQAfr93s8ET2qOHm76xMg==", + "version": "0.2.0-next-2025-06-03.8", + "resolved": "https://registry.npmjs.org/@junobuild/storage/-/storage-0.2.0-next-2025-06-03.8.tgz", + "integrity": "sha512-TjDjuCCWDW3IRzPGsTUzSkvKdAOFSQ0lGqt0M9ySo/bR5HXijb4mArQgpqdJDdQ84btVTlvyb/mktR7kJBra1g==", "requires": {} }, "@junobuild/utils": { diff --git a/package.json b/package.json index d2d782bc..cc33c7a6 100644 --- a/package.json +++ b/package.json @@ -30,14 +30,14 @@ "@dfinity/ic-management": "^6.1.1", "@dfinity/identity": "^2.3.0", "@dfinity/principal": "^2.3.0", - "@junobuild/admin": "^0.5.0-next-2025-06-03.5", - "@junobuild/cdn": "^0.1.0-next-2025-06-03.5", - "@junobuild/cli-tools": "^0.2.0-next-2025-06-03.5", + "@junobuild/admin": "^0.5.0-next-2025-06-03.8", + "@junobuild/cdn": "^0.1.0-next-2025-06-03.8", + "@junobuild/cli-tools": "^0.2.0-next-2025-06-03.8", "@junobuild/config": "^0.1.8", "@junobuild/config-loader": "^0.2.1", - "@junobuild/core": "^0.1.15-next-2025-06-03.5", + "@junobuild/core": "^0.1.15-next-2025-06-03.8", "@junobuild/did-tools": "^0.2.1", - "@junobuild/storage": "^0.2.0-next-2025-06-03.5", + "@junobuild/storage": "^0.2.0-next-2025-06-03.8", "@junobuild/utils": "^0.1.3", "chokidar": "^4.0.3", "conf": "^13.1.0", diff --git a/src/services/functions/upgrade/upgrade.with-proposal.services.ts b/src/services/functions/upgrade/upgrade.with-proposal.services.ts index 575a1779..7994e17a 100644 --- a/src/services/functions/upgrade/upgrade.with-proposal.services.ts +++ b/src/services/functions/upgrade/upgrade.with-proposal.services.ts @@ -50,7 +50,7 @@ const deployWasmWithProposal = async ({ return {result: 'error'}; } - const fullPath = `${CDN_RELEASES_FULL_PATH}/satellite-v${version}-${crypto.randomUUID()}.wasm.gz`; + const fullPath = `${CDN_RELEASES_FULL_PATH}/satellite-${crypto.randomUUID()}.wasm.gz`; const result = await uploadWasmWithProposal({ satellite, @@ -100,7 +100,9 @@ const uploadWasmWithProposal = async ({ // @ts-expect-error type incompatibility NodeJS vs bundle data, fullPath: storagePath ?? fullPath, - headers + headers, + token: crypto.randomUUID(), + description: `change=${Number(proposalId)};version=${version}` } }); }; @@ -128,7 +130,6 @@ const uploadWasmWithProposal = async ({ fullPath, filePath, sourceAbsolutePath, - token: crypto.randomUUID(), assertMemory }, proposal: {