@valbuild/server 0.146.1 → 0.146.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 +34 -0
- package/dist/declarations/src/ValOps.d.ts +11 -0
- package/dist/declarations/src/ValOpsHttp.d.ts +31 -1
- package/dist/declarations/src/fixHandlers.d.ts +1 -1
- package/dist/valbuild-server.cjs.dev.js +538 -7
- package/dist/valbuild-server.cjs.prod.js +538 -7
- package/dist/valbuild-server.esm.js +539 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @valbuild/server
|
|
2
2
|
|
|
3
|
+
## 0.146.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#871](https://github.com/valbuild/val/pull/871) [`e4913e1`](https://github.com/valbuild/val/commit/e4913e1f1178e09987a7c03fd540909ab4b499b0) Thanks [@freekh](https://github.com/freekh)! - An image, file or video picked from a gallery is checked against the gallery as it is now. Picking one uploaded since the site was built (still unpublished, saved in a proposal, or published without a rebuild) used to fail with "The gallery does not have an image at …" and refuse the save. In a proposal, Save now reads "Fix N" and goes to the validation errors instead of being refused by the server, as Publish does on the site.
|
|
8
|
+
|
|
9
|
+
- [#867](https://github.com/valbuild/val/pull/867) [`04f81ba`](https://github.com/valbuild/val/commit/04f81baeee4a98054c0673ca9fdc34bc5cadacb9) Thanks [@freekh](https://github.com/freekh)! - Publishing a proposal is no longer blocked by other people's unpublished changes
|
|
10
|
+
on the same pages. When Publish is pressed in a proposal, Val works out which of
|
|
11
|
+
those changes conflict with it: those move into a new proposal, named "Moved when
|
|
12
|
+
“…” was published", which the people who wrote them own together; the rest stay
|
|
13
|
+
unpublished on the site, where they were. The Publish dialog says beforehand how
|
|
14
|
+
many changes will move and whose they are.
|
|
15
|
+
|
|
16
|
+
If someone changes those pages while the proposal is being published, the
|
|
17
|
+
publish stops and asks you to press Publish again, so nothing moves on an
|
|
18
|
+
outdated plan.
|
|
19
|
+
|
|
20
|
+
- [#867](https://github.com/valbuild/val/pull/867) [`04f81ba`](https://github.com/valbuild/val/commit/04f81baeee4a98054c0673ca9fdc34bc5cadacb9) Thanks [@freekh](https://github.com/freekh)! - Publish only some of your changes: tick them in Review and press **Publish
|
|
21
|
+
selected**. On a site with proposals, Val moves them into a proposal of their
|
|
22
|
+
own and publishes it straight away; everything else stays unpublished, as it
|
|
23
|
+
was.
|
|
24
|
+
|
|
25
|
+
Some changes cannot be published apart — two edits to the same list, say — so
|
|
26
|
+
the confirm says what comes with your selection and whose it is before anything
|
|
27
|
+
moves. If the site is published while yours is being prepared, nothing is
|
|
28
|
+
published and you are asked to press it again. If publishing stops after the
|
|
29
|
+
changes have moved, they are safe in their proposal, and Review offers to open
|
|
30
|
+
it as well as to try again.
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [[`e4913e1`](https://github.com/valbuild/val/commit/e4913e1f1178e09987a7c03fd540909ab4b499b0), [`04f81ba`](https://github.com/valbuild/val/commit/04f81baeee4a98054c0673ca9fdc34bc5cadacb9), [`04f81ba`](https://github.com/valbuild/val/commit/04f81baeee4a98054c0673ca9fdc34bc5cadacb9), [`04f81ba`](https://github.com/valbuild/val/commit/04f81baeee4a98054c0673ca9fdc34bc5cadacb9)]:
|
|
33
|
+
- @valbuild/core@0.146.2
|
|
34
|
+
- @valbuild/shared@0.146.2
|
|
35
|
+
- @valbuild/ui@0.146.2
|
|
36
|
+
|
|
3
37
|
## 0.146.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -956,6 +956,15 @@ export type OrderedPatches = {
|
|
|
956
956
|
* reasons.
|
|
957
957
|
*/
|
|
958
958
|
headVersion?: number;
|
|
959
|
+
/**
|
|
960
|
+
* The branch's last commit, `null` when it has none: what the commits this
|
|
961
|
+
* answer lists bring a build up to at the least, because the content
|
|
962
|
+
* service reads it before them. What Publish selected names as its
|
|
963
|
+
* proposal's base, so a publish landing in between is refused rather than
|
|
964
|
+
* reverted. Only `ValOpsHttp` fills it, and only from an unfiltered read
|
|
965
|
+
* (`fetchPatches` without `patchIds`); absent from an older content service.
|
|
966
|
+
*/
|
|
967
|
+
headCommitSha?: string | null;
|
|
959
968
|
/**
|
|
960
969
|
* Of these patches, the ones a publish job that is still running holds. A
|
|
961
970
|
* Studio does not offer Publish over them, on any tab or device. Reported
|
|
@@ -986,6 +995,8 @@ export type OrderedPatchesMetadata = {
|
|
|
986
995
|
headPatchId?: OrderedPatches["headPatchId"];
|
|
987
996
|
/** See {@link OrderedPatches.headVersion}. */
|
|
988
997
|
headVersion?: OrderedPatches["headVersion"];
|
|
998
|
+
/** See {@link OrderedPatches.headCommitSha}. */
|
|
999
|
+
headCommitSha?: OrderedPatches["headCommitSha"];
|
|
989
1000
|
/** See {@link OrderedPatches.publishingPatches}. */
|
|
990
1001
|
publishingPatches?: OrderedPatches["publishingPatches"];
|
|
991
1002
|
/** See {@link OrderedPatches.heldBackPatches}. */
|
|
@@ -323,6 +323,30 @@ export declare class ValOpsHttp extends ValOps {
|
|
|
323
323
|
* with their `resolutions` merges.
|
|
324
324
|
*/
|
|
325
325
|
private updateContentFromSite;
|
|
326
|
+
/**
|
|
327
|
+
* Whether this server says what a merge of `name` moves: at the proposal's
|
|
328
|
+
* own address, whose schemas are the ones it publishes; and on the site, for
|
|
329
|
+
* Publish selected's proposal, which changes no code -- so the site's
|
|
330
|
+
* schemas are its own -- and has no address to be published from.
|
|
331
|
+
*/
|
|
332
|
+
private answersMovesFor;
|
|
333
|
+
/** Content's proposals API for one proposal, as the person asking. */
|
|
334
|
+
private proposalContent;
|
|
335
|
+
/**
|
|
336
|
+
* Which of the site's pending changes a merge of this proposal moves
|
|
337
|
+
* (`movesAtMerge`), or `null` when content could not say what is pending:
|
|
338
|
+
* then nothing is claimed, and the site's pending changes block the merge.
|
|
339
|
+
*/
|
|
340
|
+
private mergeMovesOf;
|
|
341
|
+
/**
|
|
342
|
+
* The merge checks, with `pending-on-site` answered by what the merge
|
|
343
|
+
* moves rather than by whether anything is pending: the conflicting
|
|
344
|
+
* changes move to a proposal of their own when it is published, and the
|
|
345
|
+
* rest stay, so neither blocks it.
|
|
346
|
+
*/
|
|
347
|
+
private mergeChecksWithMoves;
|
|
348
|
+
/** Publish in a proposal, carrying the moves (`MergeBody.moves` in content). */
|
|
349
|
+
private pressMergeWithMoves;
|
|
326
350
|
/**
|
|
327
351
|
* Update from the site, for a proposal with code (valbuild/home
|
|
328
352
|
* `docs/hosted-publishing.md`, step 8.2, slice 1b), at
|
|
@@ -474,7 +498,13 @@ export declare class ValOpsHttp extends ValOps {
|
|
|
474
498
|
errors?: undefined;
|
|
475
499
|
deleted?: undefined;
|
|
476
500
|
}>;
|
|
477
|
-
commit(prepared: PreparedCommit, message: string, committer: AuthorId, filesDirectory: string, newBranch?: string
|
|
501
|
+
commit(prepared: PreparedCommit, message: string, committer: AuthorId, filesDirectory: string, newBranch?: string,
|
|
502
|
+
/**
|
|
503
|
+
* A save into this proposal rather than this server's own branch: the
|
|
504
|
+
* site's server saving Publish selected's proposal (`/publish-selected`),
|
|
505
|
+
* which has no address of its own to save from.
|
|
506
|
+
*/
|
|
507
|
+
intoProposal?: string): Promise<{
|
|
478
508
|
isNotFastForward?: boolean;
|
|
479
509
|
updatedFiles: string[];
|
|
480
510
|
commit: CommitSha;
|
|
@@ -247,6 +247,6 @@ export declare function handleJsonValuesExtractEntry(ctx: FixHandlerContext): Pr
|
|
|
247
247
|
*/
|
|
248
248
|
export declare function handleViewCheckModule(ctx: FixHandlerContext): Promise<FixHandlerResult>;
|
|
249
249
|
export declare function handleExternalUpload(): Promise<FixHandlerResult>;
|
|
250
|
-
export declare const currentFixHandlers: Record<Exclude<ValidationFix, "keyof:check-keys" | "router:check-route" | "locale:check-locale" | "record:fill-keys">, FixHandler>;
|
|
250
|
+
export declare const currentFixHandlers: Record<Exclude<ValidationFix, "keyof:check-keys" | "image:check-gallery" | "file:check-gallery" | "video:check-gallery" | "router:check-route" | "locale:check-locale" | "record:fill-keys">, FixHandler>;
|
|
251
251
|
export declare const fixHandlers: Record<string, FixHandler>;
|
|
252
252
|
export declare function createDefaultValFSHost(): IValFSHost;
|