@valbuild/shared 0.140.0 → 0.140.2

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.140.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#792](https://github.com/valbuild/val/pull/792) [`df1e5f5`](https://github.com/valbuild/val/commit/df1e5f5f94391f25c71839cc476a51198b90db4d) Thanks [@freekh](https://github.com/freekh)! - The Publish button no longer turns green while a publish is still running, in any tab or on any device. Before, the changes being published still counted as unpublished until the publish went live. So from about 64% on the progress, Publish lit up over them again: in the tab that pressed it, in every other open Studio, and on another device.
8
+
9
+ The button now reads "Publishing" for those changes until the publish is live, and you can press it again only for changes made since. If a publish fails, its changes become publishable again straight away.
10
+
11
+ Val Build's content service now reports which changes a running publish holds, and the Studio reads that from `/stat` and the live connection. A content service that doesn't report it keeps the previous behaviour, except in the tab that pressed Publish.
12
+
3
13
  ## 0.140.0
4
14
 
5
15
  ### Minor Changes
@@ -412,6 +412,7 @@ export declare const Api: {
412
412
  sourcesSha: z.ZodString;
413
413
  patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
414
414
  appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
415
+ publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
415
416
  headCommitSha: z.ZodOptional<z.ZodString>;
416
417
  removed: z.ZodOptional<z.ZodArray<z.ZodObject<{
417
418
  patchId: z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>;
@@ -445,6 +446,7 @@ export declare const Api: {
445
446
  commitSha: z.ZodOptional<z.ZodString>;
446
447
  patches: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
447
448
  appliedPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
449
+ publishingPatches: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
448
450
  headCommitSha: z.ZodOptional<z.ZodString>;
449
451
  headPatchId: z.ZodOptional<z.ZodNullable<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>>;
450
452
  headVersion: z.ZodOptional<z.ZodNumber>;
@@ -1944,6 +1944,12 @@ var Api = {
1944
1944
  * client that ignores this behaves exactly as it did before.
1945
1945
  */
1946
1946
  appliedPatches: zod.z.array(PatchId).optional(),
1947
+ /*
1948
+ * Of `patches`, the ones a publish that is still running holds.
1949
+ * The Studio does not offer Publish over these. Whole on every
1950
+ * answer: a job that ends without sealing gives them back.
1951
+ */
1952
+ publishingPatches: zod.z.array(PatchId).optional(),
1947
1953
  /**
1948
1954
  * The newest commit, which is the PUBLISH head.
1949
1955
  *
@@ -2034,6 +2040,12 @@ var Api = {
2034
2040
  * client that ignores this behaves exactly as it did before.
2035
2041
  */
2036
2042
  appliedPatches: zod.z.array(PatchId).optional(),
2043
+ /*
2044
+ * Of `patches`, the ones a publish that is still running holds.
2045
+ * The Studio does not offer Publish over these. Whole on every
2046
+ * answer: a job that ends without sealing gives them back.
2047
+ */
2048
+ publishingPatches: zod.z.array(PatchId).optional(),
2037
2049
  /**
2038
2050
  * The newest commit, which is the PUBLISH head.
2039
2051
  *
@@ -1944,6 +1944,12 @@ var Api = {
1944
1944
  * client that ignores this behaves exactly as it did before.
1945
1945
  */
1946
1946
  appliedPatches: zod.z.array(PatchId).optional(),
1947
+ /*
1948
+ * Of `patches`, the ones a publish that is still running holds.
1949
+ * The Studio does not offer Publish over these. Whole on every
1950
+ * answer: a job that ends without sealing gives them back.
1951
+ */
1952
+ publishingPatches: zod.z.array(PatchId).optional(),
1947
1953
  /**
1948
1954
  * The newest commit, which is the PUBLISH head.
1949
1955
  *
@@ -2034,6 +2040,12 @@ var Api = {
2034
2040
  * client that ignores this behaves exactly as it did before.
2035
2041
  */
2036
2042
  appliedPatches: zod.z.array(PatchId).optional(),
2043
+ /*
2044
+ * Of `patches`, the ones a publish that is still running holds.
2045
+ * The Studio does not offer Publish over these. Whole on every
2046
+ * answer: a job that ends without sealing gives them back.
2047
+ */
2048
+ publishingPatches: zod.z.array(PatchId).optional(),
2037
2049
  /**
2038
2050
  * The newest commit, which is the PUBLISH head.
2039
2051
  *
@@ -1937,6 +1937,12 @@ var Api = {
1937
1937
  * client that ignores this behaves exactly as it did before.
1938
1938
  */
1939
1939
  appliedPatches: z.array(PatchId).optional(),
1940
+ /*
1941
+ * Of `patches`, the ones a publish that is still running holds.
1942
+ * The Studio does not offer Publish over these. Whole on every
1943
+ * answer: a job that ends without sealing gives them back.
1944
+ */
1945
+ publishingPatches: z.array(PatchId).optional(),
1940
1946
  /**
1941
1947
  * The newest commit, which is the PUBLISH head.
1942
1948
  *
@@ -2027,6 +2033,12 @@ var Api = {
2027
2033
  * client that ignores this behaves exactly as it did before.
2028
2034
  */
2029
2035
  appliedPatches: z.array(PatchId).optional(),
2036
+ /*
2037
+ * Of `patches`, the ones a publish that is still running holds.
2038
+ * The Studio does not offer Publish over these. Whole on every
2039
+ * answer: a job that ends without sealing gives them back.
2040
+ */
2041
+ publishingPatches: z.array(PatchId).optional(),
2030
2042
  /**
2031
2043
  * The newest commit, which is the PUBLISH head.
2032
2044
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.140.0",
3
+ "version": "0.140.2",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {