@valbuild/server 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,19 @@
|
|
|
1
1
|
# @valbuild/server
|
|
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
|
+
|
|
13
|
+
- Updated dependencies [[`df1e5f5`](https://github.com/valbuild/val/commit/df1e5f5f94391f25c71839cc476a51198b90db4d)]:
|
|
14
|
+
- @valbuild/ui@0.140.2
|
|
15
|
+
- @valbuild/shared@0.140.2
|
|
16
|
+
|
|
3
17
|
## 0.140.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -941,6 +941,14 @@ export type OrderedPatches = {
|
|
|
941
941
|
* here. Only `ValOpsHttp` fills it.
|
|
942
942
|
*/
|
|
943
943
|
patchGroups?: PatchGroupT[];
|
|
944
|
+
/**
|
|
945
|
+
* Of these patches, the ones a publish job that is still running holds. A
|
|
946
|
+
* Studio does not offer Publish over them, on any tab or device. Reported
|
|
947
|
+
* whole on every answer, so a job that ends without sealing gives them back.
|
|
948
|
+
* Absent where publishing is not done in jobs, and from an older content
|
|
949
|
+
* service. Only `ValOpsHttp` fills it.
|
|
950
|
+
*/
|
|
951
|
+
publishingPatches?: PatchId[];
|
|
944
952
|
error?: GenericErrorMessage;
|
|
945
953
|
errors?: PatchReadError[];
|
|
946
954
|
unauthorized?: boolean;
|
|
@@ -958,6 +966,8 @@ export type OrderedPatchesMetadata = {
|
|
|
958
966
|
headVersion?: OrderedPatches["headVersion"];
|
|
959
967
|
/** See {@link OrderedPatches.patchGroups}. */
|
|
960
968
|
patchGroups?: OrderedPatches["patchGroups"];
|
|
969
|
+
/** See {@link OrderedPatches.publishingPatches}. */
|
|
970
|
+
publishingPatches?: OrderedPatches["publishingPatches"];
|
|
961
971
|
error?: GenericErrorMessage;
|
|
962
972
|
errors?: OrderedPatches["errors"];
|
|
963
973
|
unauthorized?: boolean;
|
|
@@ -333,6 +333,8 @@ export declare class ValOpsHttp extends ValOps {
|
|
|
333
333
|
patches: PatchId[];
|
|
334
334
|
/** Of `patches`, the ones that have shipped. See the implementation. */
|
|
335
335
|
appliedPatches: PatchId[];
|
|
336
|
+
/** Of `patches`, the ones a running publish holds. See {@link OrderedPatches.publishingPatches}. */
|
|
337
|
+
publishingPatches?: PatchId[];
|
|
336
338
|
/** The head of the chain. See {@link OrderedPatchesMetadata.headPatchId}. */
|
|
337
339
|
headPatchId?: PatchId | null;
|
|
338
340
|
/** The chain version of that head. See {@link OrderedPatchesMetadata.headVersion}. */
|
|
@@ -8489,6 +8489,8 @@ const GetApplicablePatches = z.z.object({
|
|
|
8489
8489
|
* Optional for the same reason.
|
|
8490
8490
|
*/
|
|
8491
8491
|
headVersion: z.z.number().optional(),
|
|
8492
|
+
/** Of `patches`, the ones a running publish holds. See `OrderedPatches.publishingPatches`. */
|
|
8493
|
+
publishingPatches: z.z.array(internal.PatchId).optional(),
|
|
8492
8494
|
commits: z.z.array(z.z.object({
|
|
8493
8495
|
commitSha: z.z.string(),
|
|
8494
8496
|
/*
|
|
@@ -9373,6 +9375,13 @@ class ValOpsHttp extends ValOps {
|
|
|
9373
9375
|
deployments: allPatchData.deployments || [],
|
|
9374
9376
|
patches,
|
|
9375
9377
|
appliedPatches,
|
|
9378
|
+
/*
|
|
9379
|
+
* Absent, not empty, from a content service that does not say: an empty
|
|
9380
|
+
* list would claim no publish is running when it cannot know.
|
|
9381
|
+
*/
|
|
9382
|
+
...(allPatchData.publishingPatches !== undefined ? {
|
|
9383
|
+
publishingPatches: allPatchData.publishingPatches
|
|
9384
|
+
} : {}),
|
|
9376
9385
|
/*
|
|
9377
9386
|
* The CHAIN head, not the publish head below. Spread: absent is a content
|
|
9378
9387
|
* service that does not report it, which is not the same as `null`.
|
|
@@ -9740,6 +9749,9 @@ class ValOpsHttp extends ValOps {
|
|
|
9740
9749
|
} : {}),
|
|
9741
9750
|
...(data.headVersion !== undefined ? {
|
|
9742
9751
|
headVersion: data.headVersion
|
|
9752
|
+
} : {}),
|
|
9753
|
+
...(data.publishingPatches !== undefined ? {
|
|
9754
|
+
publishingPatches: data.publishingPatches
|
|
9743
9755
|
} : {})
|
|
9744
9756
|
};
|
|
9745
9757
|
}
|
|
@@ -8489,6 +8489,8 @@ const GetApplicablePatches = z.z.object({
|
|
|
8489
8489
|
* Optional for the same reason.
|
|
8490
8490
|
*/
|
|
8491
8491
|
headVersion: z.z.number().optional(),
|
|
8492
|
+
/** Of `patches`, the ones a running publish holds. See `OrderedPatches.publishingPatches`. */
|
|
8493
|
+
publishingPatches: z.z.array(internal.PatchId).optional(),
|
|
8492
8494
|
commits: z.z.array(z.z.object({
|
|
8493
8495
|
commitSha: z.z.string(),
|
|
8494
8496
|
/*
|
|
@@ -9373,6 +9375,13 @@ class ValOpsHttp extends ValOps {
|
|
|
9373
9375
|
deployments: allPatchData.deployments || [],
|
|
9374
9376
|
patches,
|
|
9375
9377
|
appliedPatches,
|
|
9378
|
+
/*
|
|
9379
|
+
* Absent, not empty, from a content service that does not say: an empty
|
|
9380
|
+
* list would claim no publish is running when it cannot know.
|
|
9381
|
+
*/
|
|
9382
|
+
...(allPatchData.publishingPatches !== undefined ? {
|
|
9383
|
+
publishingPatches: allPatchData.publishingPatches
|
|
9384
|
+
} : {}),
|
|
9376
9385
|
/*
|
|
9377
9386
|
* The CHAIN head, not the publish head below. Spread: absent is a content
|
|
9378
9387
|
* service that does not report it, which is not the same as `null`.
|
|
@@ -9740,6 +9749,9 @@ class ValOpsHttp extends ValOps {
|
|
|
9740
9749
|
} : {}),
|
|
9741
9750
|
...(data.headVersion !== undefined ? {
|
|
9742
9751
|
headVersion: data.headVersion
|
|
9752
|
+
} : {}),
|
|
9753
|
+
...(data.publishingPatches !== undefined ? {
|
|
9754
|
+
publishingPatches: data.publishingPatches
|
|
9743
9755
|
} : {})
|
|
9744
9756
|
};
|
|
9745
9757
|
}
|
|
@@ -8452,6 +8452,8 @@ const GetApplicablePatches = z.object({
|
|
|
8452
8452
|
* Optional for the same reason.
|
|
8453
8453
|
*/
|
|
8454
8454
|
headVersion: z.number().optional(),
|
|
8455
|
+
/** Of `patches`, the ones a running publish holds. See `OrderedPatches.publishingPatches`. */
|
|
8456
|
+
publishingPatches: z.array(PatchId$1).optional(),
|
|
8455
8457
|
commits: z.array(z.object({
|
|
8456
8458
|
commitSha: z.string(),
|
|
8457
8459
|
/*
|
|
@@ -9336,6 +9338,13 @@ class ValOpsHttp extends ValOps {
|
|
|
9336
9338
|
deployments: allPatchData.deployments || [],
|
|
9337
9339
|
patches,
|
|
9338
9340
|
appliedPatches,
|
|
9341
|
+
/*
|
|
9342
|
+
* Absent, not empty, from a content service that does not say: an empty
|
|
9343
|
+
* list would claim no publish is running when it cannot know.
|
|
9344
|
+
*/
|
|
9345
|
+
...(allPatchData.publishingPatches !== undefined ? {
|
|
9346
|
+
publishingPatches: allPatchData.publishingPatches
|
|
9347
|
+
} : {}),
|
|
9339
9348
|
/*
|
|
9340
9349
|
* The CHAIN head, not the publish head below. Spread: absent is a content
|
|
9341
9350
|
* service that does not report it, which is not the same as `null`.
|
|
@@ -9703,6 +9712,9 @@ class ValOpsHttp extends ValOps {
|
|
|
9703
9712
|
} : {}),
|
|
9704
9713
|
...(data.headVersion !== undefined ? {
|
|
9705
9714
|
headVersion: data.headVersion
|
|
9715
|
+
} : {}),
|
|
9716
|
+
...(data.publishingPatches !== undefined ? {
|
|
9717
|
+
publishingPatches: data.publishingPatches
|
|
9706
9718
|
} : {})
|
|
9707
9719
|
};
|
|
9708
9720
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"types": "dist/valbuild-server.cjs.d.ts",
|
|
19
|
-
"version": "0.140.
|
|
19
|
+
"version": "0.140.2",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@prettier/sync": "^0.6.1",
|
|
22
22
|
"@types/jest": "^30.0.0",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"typescript": "^6.0.3",
|
|
31
31
|
"zod": "^4.4.3",
|
|
32
32
|
"zod-validation-error": "^5.0.0",
|
|
33
|
-
"@valbuild/
|
|
34
|
-
"@valbuild/
|
|
35
|
-
"@valbuild/
|
|
33
|
+
"@valbuild/shared": "0.140.2",
|
|
34
|
+
"@valbuild/core": "0.139.1",
|
|
35
|
+
"@valbuild/ui": "0.140.2"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": "^20.19.0 || >=22"
|