@valbuild/server 0.149.4 → 0.149.6

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,24 @@
1
1
  # @valbuild/server
2
2
 
3
+ ## 0.149.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#928](https://github.com/valbuild/val/pull/928) [`8e79b44`](https://github.com/valbuild/val/commit/8e79b44b4610d188a206ed0b6de448c602a99965) Thanks [@freekh](https://github.com/freekh)! - **Create proposal** prepares an upgrade before its page opens. It creates the upgrade's proposal, works out the upgrade, and builds its dependencies, while the button says **Preparing…** with a line beneath saying where it is: for example "Building the dependencies · Installing the packages (1 of 2) · 212 of 412 packages", or how many upgrades are ahead of it while it waits for a builder. When the dependencies are built, the same tab goes to the upgrade's page, which starts at the build.
8
+
9
+ An upgrade that cannot be prepared says why, and its proposal is closed again. So is one that turns out to move nothing. Nothing on the site changes either way.
10
+
11
+ - Updated dependencies [[`8e79b44`](https://github.com/valbuild/val/commit/8e79b44b4610d188a206ed0b6de448c602a99965)]:
12
+ - @valbuild/ui@0.149.6
13
+
14
+ ## 0.149.5
15
+
16
+ ### Patch Changes
17
+
18
+ - [#925](https://github.com/valbuild/val/pull/925) [`1e18a1b`](https://github.com/valbuild/val/commit/1e18a1ba31e169895fb75074028822dda305d26f) Thanks [@freekh](https://github.com/freekh)! - An upgrade renders its new build on the platform before it can be published. Once the typecheck finds no new errors and the build is done, the upgrade tab asks Val Build to render that build, as a publish does before it goes live. Publish is offered only when it renders. An upgrade can move the framework and React a site runs on, which a typecheck cannot judge and a render can.
19
+ - Updated dependencies [[`1e18a1b`](https://github.com/valbuild/val/commit/1e18a1ba31e169895fb75074028822dda305d26f), [`9e44644`](https://github.com/valbuild/val/commit/9e44644933103d0db38bf72463478d80a1a9b0dd)]:
20
+ - @valbuild/ui@0.149.5
21
+
3
22
  ## 0.149.4
4
23
 
5
24
  ### Patch Changes
@@ -289,7 +289,8 @@ export declare class ValOpsHttp extends ValOps {
289
289
  /**
290
290
  * Which proposal calls the browser may make, by method and the path after
291
291
  * `/proposals`: list and open, read and rename one, read what its build
292
- * targets, and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
292
+ * targets and how far an upgrade's preparation is, render its build as a
293
+ * canary (`verify`), and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
293
294
  * prepares the commit here -- and not `/patches`, which moves the site's
294
295
  * changes into a proposal and has no screen yet.
295
296
  */
@@ -5819,7 +5819,8 @@ class ValOpsHttp extends ValRouterCore.ValOps {
5819
5819
  /**
5820
5820
  * Which proposal calls the browser may make, by method and the path after
5821
5821
  * `/proposals`: list and open, read and rename one, read what its build
5822
- * targets, and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
5822
+ * targets and how far an upgrade's preparation is, render its build as a
5823
+ * canary (`verify`), and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
5823
5824
  * prepares the commit here -- and not `/patches`, which moves the site's
5824
5825
  * changes into a proposal and has no screen yet.
5825
5826
  */
@@ -5827,8 +5828,8 @@ class ValOpsHttp extends ValRouterCore.ValOps {
5827
5828
  if (path === "") return method === "GET" || method === "POST";
5828
5829
  const one = /^\/[0-9a-f]{20}$/.test(path);
5829
5830
  if (one) return method === "GET" || method === "PATCH";
5830
- if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files|merge-trees|build-target)$/.test(path);
5831
- return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|lockfile|typecheck|build|update-from-site|restore-code)$/.test(path);
5831
+ if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files|merge-trees|build-target|preparation)$/.test(path);
5832
+ return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|lockfile|typecheck|build|verify|update-from-site|restore-code)$/.test(path);
5832
5833
  }
5833
5834
 
5834
5835
  /**
@@ -5819,7 +5819,8 @@ class ValOpsHttp extends ValRouterCore.ValOps {
5819
5819
  /**
5820
5820
  * Which proposal calls the browser may make, by method and the path after
5821
5821
  * `/proposals`: list and open, read and rename one, read what its build
5822
- * targets, and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
5822
+ * targets and how far an upgrade's preparation is, render its build as a
5823
+ * canary (`verify`), and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
5823
5824
  * prepares the commit here -- and not `/patches`, which moves the site's
5824
5825
  * changes into a proposal and has no screen yet.
5825
5826
  */
@@ -5827,8 +5828,8 @@ class ValOpsHttp extends ValRouterCore.ValOps {
5827
5828
  if (path === "") return method === "GET" || method === "POST";
5828
5829
  const one = /^\/[0-9a-f]{20}$/.test(path);
5829
5830
  if (one) return method === "GET" || method === "PATCH";
5830
- if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files|merge-trees|build-target)$/.test(path);
5831
- return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|lockfile|typecheck|build|update-from-site|restore-code)$/.test(path);
5831
+ if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files|merge-trees|build-target|preparation)$/.test(path);
5832
+ return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|lockfile|typecheck|build|verify|update-from-site|restore-code)$/.test(path);
5832
5833
  }
5833
5834
 
5834
5835
  /**
@@ -5783,7 +5783,8 @@ class ValOpsHttp extends ValOps {
5783
5783
  /**
5784
5784
  * Which proposal calls the browser may make, by method and the path after
5785
5785
  * `/proposals`: list and open, read and rename one, read what its build
5786
- * targets, and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
5786
+ * targets and how far an upgrade's preparation is, render its build as a
5787
+ * canary (`verify`), and close, reopen and retry its setup. Not `/save` -- the Studio saves through `/save`, which
5787
5788
  * prepares the commit here -- and not `/patches`, which moves the site's
5788
5789
  * changes into a proposal and has no screen yet.
5789
5790
  */
@@ -5791,8 +5792,8 @@ class ValOpsHttp extends ValOps {
5791
5792
  if (path === "") return method === "GET" || method === "POST";
5792
5793
  const one = /^\/[0-9a-f]{20}$/.test(path);
5793
5794
  if (one) return method === "GET" || method === "PATCH";
5794
- if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files|merge-trees|build-target)$/.test(path);
5795
- return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|lockfile|typecheck|build|update-from-site|restore-code)$/.test(path);
5795
+ if (method === "GET") return /^\/[0-9a-f]{20}\/(merge-checks|files|merge-trees|build-target|preparation)$/.test(path);
5796
+ return method === "POST" && /^\/[0-9a-f]{20}\/(close|reopen|setup\/retry|merge|files|lockfile|typecheck|build|verify|update-from-site|restore-code)$/.test(path);
5796
5797
  }
5797
5798
 
5798
5799
  /**
package/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "exports": true
29
29
  },
30
- "version": "0.149.4",
30
+ "version": "0.149.6",
31
31
  "devDependencies": {
32
32
  "@prettier/sync": "^0.6.1",
33
33
  "@types/jest": "^30.0.0",
@@ -41,9 +41,9 @@
41
41
  "typescript": "^6.0.3",
42
42
  "zod": "^4.4.3",
43
43
  "zod-validation-error": "^5.0.0",
44
+ "@valbuild/core": "0.148.7",
44
45
  "@valbuild/shared": "0.148.7",
45
- "@valbuild/ui": "0.149.4",
46
- "@valbuild/core": "0.148.7"
46
+ "@valbuild/ui": "0.149.6"
47
47
  },
48
48
  "engines": {
49
49
  "node": "^20.19.0 || >=22"