Skip to content

Commit 1a8f8b2

Browse files
authored
chore: update @socketsecurity/lib to 3.2.8 and remove unused SHA256 generation (#880)
* refactor(scripts): remove unused SHA256 checksum generation from compress-cli The .bz.sha256 checksum file was generated but never used by the runtime or build process. Removes SHA256 generation to align with cli-with-sentry implementation and avoid creating unnecessary dist artifacts. * chore(deps): update @socketsecurity/lib to 3.2.8 Updates socket-lib dependency from 3.2.6 to 3.2.8 in the workspace catalog.
1 parent 486576f commit 1a8f8b2

File tree

3 files changed

+29
-38
lines changed

3 files changed

+29
-38
lines changed

packages/cli/scripts/compress-cli.mjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* The compressed file is decompressed at runtime by dist/index.js.
88
*/
99

10-
import crypto from 'node:crypto'
1110
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs'
1211
import path from 'node:path'
1312
import { fileURLToPath } from 'node:url'
@@ -50,12 +49,4 @@ logger.success(
5049
`Compressed: ${(originalSize / 1024 / 1024).toFixed(2)} MB → ${(compressedSize / 1024 / 1024).toFixed(2)} MB (${compressionRatio}% reduction)`,
5150
)
5251

53-
// Generate SHA256 checksum for integrity validation.
54-
const sha256 = crypto.createHash('sha256').update(compressed).digest('hex')
55-
const checksumPath = path.join(distPath, 'cli.js.bz.sha256')
56-
writeFileSync(checksumPath, `${sha256} cli.js.bz\n`)
57-
58-
logger.success(`SHA256: ${sha256}`)
59-
logger.log(`Checksum written to: ${path.relative(rootPath, checksumPath)}`)
60-
6152
logger.log('')

pnpm-lock.yaml

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ catalog:
3939
'@socketregistry/packageurl-js': 1.3.5
4040
'@socketregistry/yocto-spinner': 1.0.25
4141
'@socketsecurity/config': 3.0.1
42-
'@socketsecurity/lib': 3.2.6
42+
'@socketsecurity/lib': 3.2.8
4343
'@socketsecurity/registry': 2.0.2
4444
'@socketsecurity/sdk': 3.1.3
4545
'@types/cmd-shim': 5.0.2

0 commit comments

Comments
 (0)