@valbuild/shared 0.145.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 +46 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +130 -273
- package/dist/declarations/src/internal/chainHead.d.ts +5 -7
- package/dist/declarations/src/internal/index.d.ts +4 -0
- package/dist/declarations/src/internal/patchSets/PatchSets.d.ts +75 -0
- package/dist/declarations/src/internal/patchSets/schemaTypesOfPath.d.ts +5 -0
- package/dist/declarations/src/internal/patchSets/selectionClosure.d.ts +23 -0
- package/dist/declarations/src/internal/proposalMerge/trees.d.ts +56 -0
- package/dist/declarations/src/internal/publish/contentApi.d.ts +10 -4
- package/dist/declarations/src/internal/resolveSchemaSourceFixes.d.ts +3 -2
- package/dist/declarations/src/internal/server/requestScopedMemo.d.ts +10 -8
- package/dist/declarations/src/internal/server/types.d.ts +3 -3
- package/dist/declarations/src/internal/zod/History.d.ts +5 -5
- package/dist/declarations/src/internal/zod/Patch.d.ts +0 -1
- package/dist/declarations/src/internal/zod/SerializedSchema.d.ts +1 -1
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +770 -274
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +770 -274
- package/internal/dist/valbuild-shared-internal.esm.js +763 -274
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
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)! - When a publish breaks a page on a site with proposals, its changes are no longer
|
|
10
|
+
held back on the site: they move into a proposal of their own, with any later
|
|
11
|
+
changes to the same pages, so everyone else keeps publishing. The Studio says
|
|
12
|
+
so — "Publishing broke the site" — and offers **Open the proposal**, where the
|
|
13
|
+
changes can be fixed and published. Sites without proposals hold the changes
|
|
14
|
+
back as before.
|
|
15
|
+
|
|
16
|
+
- [#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
|
|
17
|
+
selected**. On a site with proposals, Val moves them into a proposal of their
|
|
18
|
+
own and publishes it straight away; everything else stays unpublished, as it
|
|
19
|
+
was.
|
|
20
|
+
|
|
21
|
+
Some changes cannot be published apart — two edits to the same list, say — so
|
|
22
|
+
the confirm says what comes with your selection and whose it is before anything
|
|
23
|
+
moves. If the site is published while yours is being prepared, nothing is
|
|
24
|
+
published and you are asked to press it again. If publishing stops after the
|
|
25
|
+
changes have moved, they are safe in their proposal, and Review offers to open
|
|
26
|
+
it as well as to try again.
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`e4913e1`](https://github.com/valbuild/val/commit/e4913e1f1178e09987a7c03fd540909ab4b499b0)]:
|
|
29
|
+
- @valbuild/core@0.146.2
|
|
30
|
+
|
|
31
|
+
## 0.146.0
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- [#861](https://github.com/valbuild/val/pull/861) [`89b0fa8`](https://github.com/valbuild/val/commit/89b0fa82a3ae0d8ccd5d0282c1034f1f40cc4e26) Thanks [@freekh](https://github.com/freekh)! - Proposals can be brought up to date with the site, like a pull request.
|
|
36
|
+
|
|
37
|
+
- **Update from the site** merges what was published on the site since a proposal started into the proposal, field by field. Where the site and the proposal changed the same field, the Publish dialog shows both and asks which to keep.
|
|
38
|
+
- **With code:** a proposal that changes code, or a site whose code changed since the proposal started, is updated too. The Studio runs each version's schemas in the tab, and the merged code is built before it can be published.
|
|
39
|
+
- Publish offers **Update from the site** whenever the site has moved under the proposal.
|
|
40
|
+
|
|
41
|
+
- [#864](https://github.com/valbuild/val/pull/864) [`f0c7d27`](https://github.com/valbuild/val/commit/f0c7d27846c21f81ff6ce79c579185150bc0d063) Thanks [@freekh](https://github.com/freekh)! - Patch groups are removed. **Publish** now publishes every pending change, and
|
|
42
|
+
the Review list shows everyone's pending changes in one list. To keep changes
|
|
43
|
+
out of a publish, move them to a proposal.
|
|
44
|
+
|
|
45
|
+
Draft reads no longer send `own_patch_groups_only`, `patch_id` or
|
|
46
|
+
`include_patch_groups`, and the server no longer has the patch-group routes or
|
|
47
|
+
fields. A content host that still sends them is fine: they are ignored.
|
|
48
|
+
|
|
3
49
|
## 0.145.1
|
|
4
50
|
|
|
5
51
|
### Patch Changes
|