@containerbase/base 14.47.0 → 14.49.0

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { tools } from './data.ts';
2
2
  import type { DistroCode } from './types.ts';
3
- export type { DistroCode, InstallToolType, ToolMetadata, ToolType, } from './types.ts';
3
+ export type { Arch, DistroCode, InstallToolType, ToolMetadata, ToolType, } from './types.ts';
4
4
  export type { FileIntegrity, FileReference, FormatIndex, ToolFile, ToolIndex, ToolVersion, ToolVersions, VersionFiles, VersionIntegrity, } from './tool-versions-types.ts';
5
5
  export { containerbaseVersionFile, isCompatibleVersion, isContainerbase, packageVersion, toolVersionsPath, validateContainerbaseVersion, } from './containerbase.ts';
6
6
  export { isToolVersionsFormat, toolVersionsFormat, toolVersionsFormatPath, } from './tool-versions-format.ts';
package/dist/schema.d.ts CHANGED
@@ -15,6 +15,10 @@ export declare const DistroCode: z.ZodEnum<{
15
15
  noble: "noble";
16
16
  resolute: "resolute";
17
17
  }>;
18
+ export declare const Arch: z.ZodEnum<{
19
+ amd64: "amd64";
20
+ arm64: "arm64";
21
+ }>;
18
22
  /**
19
23
  * Schema of a single entry of `tools.json`.
20
24
  *
package/dist/schema.js CHANGED
@@ -8,6 +8,9 @@ export const ToolType = z
8
8
  export const DistroCode = z
9
9
  .enum(['jammy', 'noble', 'resolute'])
10
10
  .describe('an Ubuntu release supported by containerbase, by codename');
11
+ export const Arch = z
12
+ .enum(['amd64', 'arm64'])
13
+ .describe('a CPU architecture supported by containerbase');
11
14
  /**
12
15
  * Schema of a single entry of `tools.json`.
13
16
  *
@@ -29,6 +29,8 @@ export declare const ToolVersion: z.ZodObject<{
29
29
  distro: z.ZodExactOptional<z.ZodString>;
30
30
  }, z.core.$strip>>>;
31
31
  constraints: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32
+ archs: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
33
+ distros: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
32
34
  }, z.core.$strip>;
33
35
  /** The content of a `<tool>.json` file. */
34
36
  export declare const ToolVersions: z.ZodObject<{
@@ -58,6 +60,8 @@ export declare const ToolVersions: z.ZodObject<{
58
60
  distro: z.ZodExactOptional<z.ZodString>;
59
61
  }, z.core.$strip>>>;
60
62
  constraints: z.ZodExactOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
+ archs: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
64
+ distros: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
61
65
  }, z.core.$strip>>;
62
66
  }, z.core.$strip>;
63
67
  /** The content of a `<tool>/<version>.json` file: the files of one version. */
@@ -52,6 +52,16 @@ export const ToolVersion = z.object({
52
52
  * present when the registry has one
53
53
  */
54
54
  constraints: z.record(z.string().min(1), z.string().min(1)).exactOptional(),
55
+ /**
56
+ * sorted, the archs which have a file of this version, only in the
57
+ * `<tool>.json` files and only for versions with arch specific files
58
+ */
59
+ archs: z.array(z.string().min(1)).min(1).exactOptional(),
60
+ /**
61
+ * sorted, the distro codenames which have a file of this version, only in
62
+ * the `<tool>.json` files and only for versions with distro specific files
63
+ */
64
+ distros: z.array(z.string().min(1)).min(1).exactOptional(),
55
65
  });
56
66
  /**
57
67
  * The url of the json schema of a published file, which identifies its format.
@@ -53,6 +53,16 @@ export interface ToolVersion {
53
53
  * present when the registry has one.
54
54
  */
55
55
  constraints?: Record<string, string>;
56
+ /**
57
+ * Sorted, the archs which have a file of this version, only in the
58
+ * `<tool>.json` files and only for versions with arch specific files.
59
+ */
60
+ archs?: string[];
61
+ /**
62
+ * Sorted, the distro codenames which have a file of this version, only in
63
+ * the `<tool>.json` files and only for versions with distro specific files.
64
+ */
65
+ distros?: string[];
56
66
  }
57
67
  /**
58
68
  * The content of a `<tool>.json` file.
package/dist/types.d.ts CHANGED
@@ -10,6 +10,10 @@ export type ToolType = 'gem' | 'npm' | 'pip' | 'dotnet';
10
10
  * The Ubuntu releases containerbase supports, by codename.
11
11
  */
12
12
  export type DistroCode = 'jammy' | 'noble' | 'resolute';
13
+ /**
14
+ * The CPU architectures containerbase supports.
15
+ */
16
+ export type Arch = 'amd64' | 'arm64';
13
17
  /**
14
18
  * What containerbase knows about a supported tool.
15
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@containerbase/base",
3
- "version": "14.47.0",
3
+ "version": "14.49.0",
4
4
  "description": "Metadata about the tools supported by containerbase",
5
5
  "keywords": [
6
6
  "containerbase",