@junobuild/cli-tools 0.12.2-next-2026-03-15.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,16 @@
1
1
  import type { PruneFilesFn, PruneParams, PruneResult } from '../types/prune';
2
+ /**
3
+ * Identifies and removes stale assets from a satellite's storage.
4
+ *
5
+ * @param {Object} options
6
+ * @param {PruneParams} options.params - Prune parameters including `dryRun` and `batchSize`.
7
+ * @param {PruneFilesFn} options.pruneFn - Function used to delete the resolved stale assets.
8
+ *
9
+ * @returns {Promise<PruneResult>}
10
+ * - `{ result: 'skipped' }` when no stale assets are found.
11
+ * - `{ result: 'simulated', files }` when `dryRun` is true; no files are deleted.
12
+ * - `{ result: 'pruned', files }` when stale assets are successfully deleted.
13
+ */
2
14
  export declare const prune: ({ params: { dryRun, batchSize, ...rest }, pruneFn }: {
3
15
  params: PruneParams;
4
16
  pruneFn: PruneFilesFn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli-tools",
3
- "version": "0.12.2-next-2026-03-15.2",
3
+ "version": "0.12.3",
4
4
  "description": "A collection of tools for Juno CLIs and Plugins.",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -46,13 +46,13 @@
46
46
  ],
47
47
  "homepage": "https://juno.build",
48
48
  "peerDependencies": {
49
- "@dfinity/utils": "*",
50
- "@junobuild/cdn": "*",
51
- "@junobuild/config": "*",
52
- "@junobuild/functions-tools": "*",
53
- "@junobuild/storage": "*",
54
- "esbuild": "*",
55
- "ora": "*"
49
+ "@dfinity/utils": "^4.1",
50
+ "@junobuild/cdn": "^2.3",
51
+ "@junobuild/config": "^2.14",
52
+ "@junobuild/functions-tools": "^0.5.2",
53
+ "@junobuild/storage": "^2.3",
54
+ "esbuild": "^0.27.0",
55
+ "ora": "^9"
56
56
  },
57
57
  "dependencies": {
58
58
  "file-type": "^21.3.2",
@@ -64,4 +64,4 @@
64
64
  "@types/mime-types": "^3.0.1",
65
65
  "@types/minimatch": "^6.0.0"
66
66
  }
67
- }
67
+ }