@valbuild/shared 0.144.5 → 0.144.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @valbuild/shared
2
2
 
3
+ ## 0.144.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#846](https://github.com/valbuild/val/pull/846) [`c44b561`](https://github.com/valbuild/val/commit/c44b5611cf9e557b6b744704703dbff0cb8b23b0) Thanks [@freekh](https://github.com/freekh)! - History is shown for projects hosted by Val Build and inside a proposal, where it lists the proposal's own saves. On the site of a project with proposals, a restore — one field, one module, or "Put everything back" — opens a new proposal with the restored values in it, so it is reviewed there before it is published.
8
+
9
+ History also reads a hosted project's first commit, which has no parent: "Go back to this point" failed on it.
10
+
11
+ "Go back to this point" on the site brings back the code as well as the content: the proposal it opens stages the files of the build the site served then, and serves that build at once.
12
+
3
13
  ## 0.144.5
4
14
 
5
15
  ### Patch Changes
@@ -441,6 +441,7 @@ export declare const Api: {
441
441
  name: z.ZodString;
442
442
  branch: z.ZodString;
443
443
  }, z.core.$strip>>;
444
+ historyBranch: z.ZodOptional<z.ZodString>;
444
445
  }, z.core.$strip>, z.ZodObject<{
445
446
  type: z.ZodLiteral<"use-websocket">;
446
447
  url: z.ZodString;
@@ -501,6 +502,7 @@ export declare const Api: {
501
502
  name: z.ZodString;
502
503
  branch: z.ZodString;
503
504
  }, z.core.$strip>>;
505
+ historyBranch: z.ZodOptional<z.ZodString>;
504
506
  }, z.core.$strip>]>;
505
507
  }, z.core.$strip>]>;
506
508
  };
@@ -1055,7 +1057,7 @@ export declare const Api: {
1055
1057
  status: z.ZodLiteral<200>;
1056
1058
  json: z.ZodObject<{
1057
1059
  schemaSha: z.ZodString;
1058
- schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1060
+ schemas: z.ZodRecord<z.ZodString & z.ZodType<ModuleFilePath, string, z.core.$ZodTypeInternals<ModuleFilePath, string>>, z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1059
1061
  }, z.core.$strip>;
1060
1062
  }, z.core.$strip>]>;
1061
1063
  };
@@ -1487,7 +1489,7 @@ export declare const Api: {
1487
1489
  }, z.core.$strip>;
1488
1490
  modules: z.ZodRecord<z.ZodString, z.ZodObject<{
1489
1491
  source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1490
- schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1492
+ schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1491
1493
  patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1492
1494
  changedPaths: z.ZodArray<z.ZodString>;
1493
1495
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1607,7 +1609,7 @@ export declare const Api: {
1607
1609
  moduleFilePath: z.ZodString;
1608
1610
  module: z.ZodNullable<z.ZodObject<{
1609
1611
  source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
1610
- schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1612
+ schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
1611
1613
  patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
1612
1614
  changedPaths: z.ZodArray<z.ZodString>;
1613
1615
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -65,7 +65,7 @@ export declare const BinaryFileRef: z.ZodObject<{
65
65
  export type BinaryFileRef = z.infer<typeof BinaryFileRef>;
66
66
  export declare const HistoricalModule: z.ZodObject<{
67
67
  source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
68
- schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
68
+ schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
69
69
  patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
70
70
  changedPaths: z.ZodArray<z.ZodString>;
71
71
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -110,7 +110,7 @@ export declare const HistoricalPatchSet: z.ZodObject<{
110
110
  }, z.core.$strip>;
111
111
  modules: z.ZodRecord<z.ZodString, z.ZodObject<{
112
112
  source: z.ZodNullable<z.ZodType<JSONValueT, unknown, z.core.$ZodTypeInternals<JSONValueT, unknown>>>;
113
- schema: z.ZodNullable<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
113
+ schema: z.ZodNullable<z.ZodType<SerializedSchemaT, unknown, z.core.$ZodTypeInternals<SerializedSchemaT, unknown>>>;
114
114
  patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
115
115
  changedPaths: z.ZodArray<z.ZodString>;
116
116
  failures: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2156,7 +2156,13 @@ var Api = {
2156
2156
  * on the site. What the Studio's switcher says it is in, and
2157
2157
  * where its Save goes (valbuild/home `docs/proposals.md`).
2158
2158
  */
2159
- proposal: StatProposal.optional()
2159
+ proposal: StatProposal.optional(),
2160
+ /**
2161
+ * The branch History lists: the proposal's in a proposal, else
2162
+ * the git mirror's or the one content reports for the project.
2163
+ * Absent where there is no history to show.
2164
+ */
2165
+ historyBranch: zod.z.string().optional()
2160
2166
  }), zod.z.object({
2161
2167
  type: zod.z.literal("use-websocket"),
2162
2168
  url: zod.z.string(),
@@ -2286,7 +2292,13 @@ var Api = {
2286
2292
  * on the site. What the Studio's switcher says it is in, and
2287
2293
  * where its Save goes (valbuild/home `docs/proposals.md`).
2288
2294
  */
2289
- proposal: StatProposal.optional()
2295
+ proposal: StatProposal.optional(),
2296
+ /**
2297
+ * The branch History lists: the proposal's in a proposal, else
2298
+ * the git mirror's or the one content reports for the project.
2299
+ * Absent where there is no history to show.
2300
+ */
2301
+ historyBranch: zod.z.string().optional()
2290
2302
  })])
2291
2303
  })])
2292
2304
  }
@@ -2156,7 +2156,13 @@ var Api = {
2156
2156
  * on the site. What the Studio's switcher says it is in, and
2157
2157
  * where its Save goes (valbuild/home `docs/proposals.md`).
2158
2158
  */
2159
- proposal: StatProposal.optional()
2159
+ proposal: StatProposal.optional(),
2160
+ /**
2161
+ * The branch History lists: the proposal's in a proposal, else
2162
+ * the git mirror's or the one content reports for the project.
2163
+ * Absent where there is no history to show.
2164
+ */
2165
+ historyBranch: zod.z.string().optional()
2160
2166
  }), zod.z.object({
2161
2167
  type: zod.z.literal("use-websocket"),
2162
2168
  url: zod.z.string(),
@@ -2286,7 +2292,13 @@ var Api = {
2286
2292
  * on the site. What the Studio's switcher says it is in, and
2287
2293
  * where its Save goes (valbuild/home `docs/proposals.md`).
2288
2294
  */
2289
- proposal: StatProposal.optional()
2295
+ proposal: StatProposal.optional(),
2296
+ /**
2297
+ * The branch History lists: the proposal's in a proposal, else
2298
+ * the git mirror's or the one content reports for the project.
2299
+ * Absent where there is no history to show.
2300
+ */
2301
+ historyBranch: zod.z.string().optional()
2290
2302
  })])
2291
2303
  })])
2292
2304
  }
@@ -2149,7 +2149,13 @@ var Api = {
2149
2149
  * on the site. What the Studio's switcher says it is in, and
2150
2150
  * where its Save goes (valbuild/home `docs/proposals.md`).
2151
2151
  */
2152
- proposal: StatProposal.optional()
2152
+ proposal: StatProposal.optional(),
2153
+ /**
2154
+ * The branch History lists: the proposal's in a proposal, else
2155
+ * the git mirror's or the one content reports for the project.
2156
+ * Absent where there is no history to show.
2157
+ */
2158
+ historyBranch: z.string().optional()
2153
2159
  }), z.object({
2154
2160
  type: z.literal("use-websocket"),
2155
2161
  url: z.string(),
@@ -2279,7 +2285,13 @@ var Api = {
2279
2285
  * on the site. What the Studio's switcher says it is in, and
2280
2286
  * where its Save goes (valbuild/home `docs/proposals.md`).
2281
2287
  */
2282
- proposal: StatProposal.optional()
2288
+ proposal: StatProposal.optional(),
2289
+ /**
2290
+ * The branch History lists: the proposal's in a proposal, else
2291
+ * the git mirror's or the one content reports for the project.
2292
+ * Absent where there is no history to show.
2293
+ */
2294
+ historyBranch: z.string().optional()
2283
2295
  })])
2284
2296
  })])
2285
2297
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.144.5",
3
+ "version": "0.144.9",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {