@turbo/types 2.9.1-canary.1 → 2.9.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turbo/types",
3
- "version": "2.9.1-canary.1",
3
+ "version": "2.9.1",
4
4
  "description": "Turborepo types",
5
5
  "homepage": "https://turborepo.dev",
6
6
  "bugs": {
@@ -37,6 +37,28 @@
37
37
  }
38
38
  ]
39
39
  },
40
+ "cacheMaxAge": {
41
+ "description": "Maximum age of local cache entries before automatic eviction.\n\nAccepts a human-readable duration string (e.g. `\"7d\"`, `\"24h\"`, `\"2w\"`). Set to `\"0\"` to disable eviction (the default). Entries older than this value are removed at the start of each run.",
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/definitions/String"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "cacheMaxSize": {
52
+ "description": "Maximum total size of the local filesystem cache.\n\nAccepts a human-readable size string (e.g. `\"10GB\"`, `\"500MB\"`). When exceeded, the oldest entries are evicted until the cache is under the limit. Set to `\"0\"` to disable (the default).",
53
+ "anyOf": [
54
+ {
55
+ "$ref": "#/definitions/String"
56
+ },
57
+ {
58
+ "type": "null"
59
+ }
60
+ ]
61
+ },
40
62
  "concurrency": {
41
63
  "description": "Set/limit the maximum concurrency for task execution.\n\nMust be an integer greater than or equal to `1` or a percentage value like `50%`. Use `1` to force serial execution (one task at a time). Use `100%` to use all available logical processors.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#concurrency",
42
64
  "anyOf": [
@@ -325,6 +347,28 @@
325
347
  }
326
348
  ]
327
349
  },
350
+ "cacheMaxAge": {
351
+ "description": "Maximum age of local cache entries before automatic eviction.\n\nAccepts a human-readable duration string (e.g. `\"7d\"`, `\"24h\"`, `\"2w\"`). Set to `\"0\"` to disable eviction (the default). Entries older than this value are removed at the start of each run.",
352
+ "anyOf": [
353
+ {
354
+ "$ref": "#/definitions/String"
355
+ },
356
+ {
357
+ "type": "null"
358
+ }
359
+ ]
360
+ },
361
+ "cacheMaxSize": {
362
+ "description": "Maximum total size of the local filesystem cache.\n\nAccepts a human-readable size string (e.g. `\"10GB\"`, `\"500MB\"`). When exceeded, the oldest entries are evicted until the cache is under the limit. Set to `\"0\"` to disable (the default).",
363
+ "anyOf": [
364
+ {
365
+ "$ref": "#/definitions/String"
366
+ },
367
+ {
368
+ "type": "null"
369
+ }
370
+ ]
371
+ },
328
372
  "concurrency": {
329
373
  "description": "Set/limit the maximum concurrency for task execution.",
330
374
  "anyOf": [
package/schemas/schema.ts CHANGED
@@ -155,6 +155,28 @@ export interface RootSchema extends BaseSchema {
155
155
  */
156
156
  cacheDir?: RelativeUnixPath;
157
157
 
158
+ /**
159
+ * Maximum age of local cache entries before automatic eviction.
160
+ *
161
+ * Accepts a human-readable duration string (e.g. `"7d"`, `"24h"`, `"2w"`).
162
+ * Set to `"0"` to disable eviction (the default).
163
+ * Entries older than this value are removed at the start of each run.
164
+ *
165
+ * @defaultValue `"0"`
166
+ */
167
+ cacheMaxAge?: string;
168
+
169
+ /**
170
+ * Maximum total size of the local filesystem cache.
171
+ *
172
+ * Accepts a human-readable size string (e.g. `"10GB"`, `"500MB"`).
173
+ * When exceeded, the oldest entries are evicted until the cache is
174
+ * under the limit. Set to `"0"` to disable (the default).
175
+ *
176
+ * @defaultValue `"0"`
177
+ */
178
+ cacheMaxSize?: string;
179
+
158
180
  /**
159
181
  * Deprecated: The daemon is no longer used for `turbo run` and this option will be removed in version 3.0.
160
182
  *
@@ -359,6 +381,28 @@ export interface GlobalConfig {
359
381
  */
360
382
  cacheDir?: RelativeUnixPath;
361
383
 
384
+ /**
385
+ * Maximum age of local cache entries before automatic eviction.
386
+ *
387
+ * Accepts a human-readable duration string (e.g. `"7d"`, `"24h"`, `"2w"`).
388
+ * Set to `"0"` to disable eviction (the default).
389
+ * Entries older than this value are removed at the start of each run.
390
+ *
391
+ * @defaultValue `"0"`
392
+ */
393
+ cacheMaxAge?: string;
394
+
395
+ /**
396
+ * Maximum total size of the local filesystem cache.
397
+ *
398
+ * Accepts a human-readable size string (e.g. `"10GB"`, `"500MB"`).
399
+ * When exceeded, the oldest entries are evicted until the cache is
400
+ * under the limit. Set to `"0"` to disable (the default).
401
+ *
402
+ * @defaultValue `"0"`
403
+ */
404
+ cacheMaxSize?: string;
405
+
362
406
  /**
363
407
  * Deprecated: The daemon is no longer used for `turbo run`.
364
408
  *
@@ -37,6 +37,30 @@
37
37
  }
38
38
  ]
39
39
  },
40
+ "cacheMaxAge": {
41
+ "description": "Maximum age of local cache entries before automatic eviction.\n\nAccepts a human-readable duration string (e.g. \"7d\", \"24h\", \"2w\"). Set to \"0\" to disable eviction (the default). Entries older than this value are removed at the start of each run.",
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/definitions/String"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ],
50
+ "default": "0"
51
+ },
52
+ "cacheMaxSize": {
53
+ "description": "Maximum total size of the local filesystem cache.\n\nAccepts a human-readable size string (e.g. \"10GB\", \"500MB\"). When exceeded, the oldest entries are evicted until the cache is under the limit. Set to \"0\" to disable (the default).",
54
+ "anyOf": [
55
+ {
56
+ "$ref": "#/definitions/String"
57
+ },
58
+ {
59
+ "type": "null"
60
+ }
61
+ ],
62
+ "default": "0"
63
+ },
40
64
  "concurrency": {
41
65
  "description": "Set/limit the maximum concurrency for task execution.\n\nMust be an integer greater than or equal to `1` or a percentage value like `50%`. Use `1` to force serial execution (one task at a time). Use `100%` to use all available logical processors.\n\nDocumentation: https://turborepo.dev/docs/reference/configuration#concurrency",
42
66
  "anyOf": [
@@ -155,6 +155,28 @@ export interface RootSchema extends BaseSchema {
155
155
  */
156
156
  cacheDir?: RelativeUnixPath;
157
157
 
158
+ /**
159
+ * Maximum age of local cache entries before automatic eviction.
160
+ *
161
+ * Accepts a human-readable duration string (e.g. `"7d"`, `"24h"`, `"2w"`).
162
+ * Set to `"0"` to disable eviction (the default).
163
+ * Entries older than this value are removed at the start of each run.
164
+ *
165
+ * @defaultValue `"0"`
166
+ */
167
+ cacheMaxAge?: string;
168
+
169
+ /**
170
+ * Maximum total size of the local filesystem cache.
171
+ *
172
+ * Accepts a human-readable size string (e.g. `"10GB"`, `"500MB"`).
173
+ * When exceeded, the oldest entries are evicted until the cache is
174
+ * under the limit. Set to `"0"` to disable (the default).
175
+ *
176
+ * @defaultValue `"0"`
177
+ */
178
+ cacheMaxSize?: string;
179
+
158
180
  /**
159
181
  * Deprecated: The daemon is no longer used for `turbo run` and this option will be removed in version 3.0.
160
182
  *
@@ -359,6 +381,28 @@ export interface GlobalConfig {
359
381
  */
360
382
  cacheDir?: RelativeUnixPath;
361
383
 
384
+ /**
385
+ * Maximum age of local cache entries before automatic eviction.
386
+ *
387
+ * Accepts a human-readable duration string (e.g. `"7d"`, `"24h"`, `"2w"`).
388
+ * Set to `"0"` to disable eviction (the default).
389
+ * Entries older than this value are removed at the start of each run.
390
+ *
391
+ * @defaultValue `"0"`
392
+ */
393
+ cacheMaxAge?: string;
394
+
395
+ /**
396
+ * Maximum total size of the local filesystem cache.
397
+ *
398
+ * Accepts a human-readable size string (e.g. `"10GB"`, `"500MB"`).
399
+ * When exceeded, the oldest entries are evicted until the cache is
400
+ * under the limit. Set to `"0"` to disable (the default).
401
+ *
402
+ * @defaultValue `"0"`
403
+ */
404
+ cacheMaxSize?: string;
405
+
362
406
  /**
363
407
  * Deprecated: The daemon is no longer used for `turbo run`.
364
408
  *