@valbuild/server 0.144.7 → 0.144.8

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,17 @@
1
1
  # @valbuild/server
2
2
 
3
+ ## 0.144.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#844](https://github.com/valbuild/val/pull/844) [`b67c03e`](https://github.com/valbuild/val/commit/b67c03ee1876803c31098098ae0becf3f4ad6ade) Thanks [@freekh](https://github.com/freekh)! - Publishing a proposal now says what blocks it, and what to do about it:
8
+
9
+ - When the site's code changed after a proposal with code changes started, the Publish dialog offers **Update from the site**. It moves the proposal onto the site as it is now, and its code then needs building again ("Build required").
10
+ - When someone published changes to the same page since the proposal started, the dialog names the fields each side changed.
11
+
12
+ - Updated dependencies [[`6fd8f79`](https://github.com/valbuild/val/commit/6fd8f791a83d37f95dc3ae12bd8025ccf81e4a7c), [`b67c03e`](https://github.com/valbuild/val/commit/b67c03ee1876803c31098098ae0becf3f4ad6ade)]:
13
+ - @valbuild/ui@0.144.8
14
+
3
15
  ## 0.144.7
4
16
 
5
17
  ### Patch Changes
@@ -294,8 +294,9 @@ export declare class ValOpsHttp extends ValOps {
294
294
  */
295
295
  private static proposalsApiAllowed;
296
296
  /**
297
- * A write to a proposal's FILES -- staging code, or serving a build of it
298
- * (valbuild/home `docs/hosted-publishing.md`, step 7) -- is made by the
297
+ * A write to a proposal's FILES -- staging code, serving a build of it
298
+ * (valbuild/home `docs/hosted-publishing.md`, step 7), or moving it onto the
299
+ * site's code (step 8, "Update from the site") -- is made by the
299
300
  * proposal's own server and nobody else's: the file tools act on the
300
301
  * proposal the Studio is open in (P11), and the site's files change only
301
302
  * when a proposal is merged. The proposal it names, or `null` when this
@@ -10130,12 +10130,13 @@ class ValOpsHttp extends ValOps {
10130
10130
  const one = /^\/[0-9a-f]{20}$/.test(path);
10131
10131
  if (one) return method === "GET" || method === "PATCH";
10132
10132
  if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files)$/.test(path);
10133
- return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|build)$/.test(path);
10133
+ return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|build|update-from-site)$/.test(path);
10134
10134
  }
10135
10135
 
10136
10136
  /**
10137
- * A write to a proposal's FILES -- staging code, or serving a build of it
10138
- * (valbuild/home `docs/hosted-publishing.md`, step 7) -- is made by the
10137
+ * A write to a proposal's FILES -- staging code, serving a build of it
10138
+ * (valbuild/home `docs/hosted-publishing.md`, step 7), or moving it onto the
10139
+ * site's code (step 8, "Update from the site") -- is made by the
10139
10140
  * proposal's own server and nobody else's: the file tools act on the
10140
10141
  * proposal the Studio is open in (P11), and the site's files change only
10141
10142
  * when a proposal is merged. The proposal it names, or `null` when this
@@ -10144,7 +10145,7 @@ class ValOpsHttp extends ValOps {
10144
10145
  static proposalFilesWrite(method, path) {
10145
10146
  var _exec;
10146
10147
  if (method !== "POST") return null;
10147
- return ((_exec = /^\/([0-9a-f]{20})\/(files|build)$/.exec(path)) === null || _exec === void 0 ? void 0 : _exec[1]) ?? null;
10148
+ return ((_exec = /^\/([0-9a-f]{20})\/(files|build|update-from-site)$/.exec(path)) === null || _exec === void 0 ? void 0 : _exec[1]) ?? null;
10148
10149
  }
10149
10150
 
10150
10151
  /**
@@ -10130,12 +10130,13 @@ class ValOpsHttp extends ValOps {
10130
10130
  const one = /^\/[0-9a-f]{20}$/.test(path);
10131
10131
  if (one) return method === "GET" || method === "PATCH";
10132
10132
  if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files)$/.test(path);
10133
- return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|build)$/.test(path);
10133
+ return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|build|update-from-site)$/.test(path);
10134
10134
  }
10135
10135
 
10136
10136
  /**
10137
- * A write to a proposal's FILES -- staging code, or serving a build of it
10138
- * (valbuild/home `docs/hosted-publishing.md`, step 7) -- is made by the
10137
+ * A write to a proposal's FILES -- staging code, serving a build of it
10138
+ * (valbuild/home `docs/hosted-publishing.md`, step 7), or moving it onto the
10139
+ * site's code (step 8, "Update from the site") -- is made by the
10139
10140
  * proposal's own server and nobody else's: the file tools act on the
10140
10141
  * proposal the Studio is open in (P11), and the site's files change only
10141
10142
  * when a proposal is merged. The proposal it names, or `null` when this
@@ -10144,7 +10145,7 @@ class ValOpsHttp extends ValOps {
10144
10145
  static proposalFilesWrite(method, path) {
10145
10146
  var _exec;
10146
10147
  if (method !== "POST") return null;
10147
- return ((_exec = /^\/([0-9a-f]{20})\/(files|build)$/.exec(path)) === null || _exec === void 0 ? void 0 : _exec[1]) ?? null;
10148
+ return ((_exec = /^\/([0-9a-f]{20})\/(files|build|update-from-site)$/.exec(path)) === null || _exec === void 0 ? void 0 : _exec[1]) ?? null;
10148
10149
  }
10149
10150
 
10150
10151
  /**
@@ -10093,12 +10093,13 @@ class ValOpsHttp extends ValOps {
10093
10093
  const one = /^\/[0-9a-f]{20}$/.test(path);
10094
10094
  if (one) return method === "GET" || method === "PATCH";
10095
10095
  if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files)$/.test(path);
10096
- return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|build)$/.test(path);
10096
+ return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|build|update-from-site)$/.test(path);
10097
10097
  }
10098
10098
 
10099
10099
  /**
10100
- * A write to a proposal's FILES -- staging code, or serving a build of it
10101
- * (valbuild/home `docs/hosted-publishing.md`, step 7) -- is made by the
10100
+ * A write to a proposal's FILES -- staging code, serving a build of it
10101
+ * (valbuild/home `docs/hosted-publishing.md`, step 7), or moving it onto the
10102
+ * site's code (step 8, "Update from the site") -- is made by the
10102
10103
  * proposal's own server and nobody else's: the file tools act on the
10103
10104
  * proposal the Studio is open in (P11), and the site's files change only
10104
10105
  * when a proposal is merged. The proposal it names, or `null` when this
@@ -10107,7 +10108,7 @@ class ValOpsHttp extends ValOps {
10107
10108
  static proposalFilesWrite(method, path) {
10108
10109
  var _exec;
10109
10110
  if (method !== "POST") return null;
10110
- return ((_exec = /^\/([0-9a-f]{20})\/(files|build)$/.exec(path)) === null || _exec === void 0 ? void 0 : _exec[1]) ?? null;
10111
+ return ((_exec = /^\/([0-9a-f]{20})\/(files|build|update-from-site)$/.exec(path)) === null || _exec === void 0 ? void 0 : _exec[1]) ?? null;
10111
10112
  }
10112
10113
 
10113
10114
  /**
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.144.7",
19
+ "version": "0.144.8",
20
20
  "devDependencies": {
21
21
  "@prettier/sync": "^0.6.1",
22
22
  "@types/jest": "^30.0.0",
@@ -32,7 +32,7 @@
32
32
  "zod-validation-error": "^5.0.0",
33
33
  "@valbuild/core": "0.144.0",
34
34
  "@valbuild/shared": "0.144.5",
35
- "@valbuild/ui": "0.144.7"
35
+ "@valbuild/ui": "0.144.8"
36
36
  },
37
37
  "engines": {
38
38
  "node": "^20.19.0 || >=22"