@valbuild/shared 0.144.2 → 0.144.4

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,11 @@
1
1
  # @valbuild/shared
2
2
 
3
+ ## 0.144.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#835](https://github.com/valbuild/val/pull/835) [`e70a261`](https://github.com/valbuild/val/commit/e70a261ed8c0938b635214721fc4e445704b1f1f) Thanks [@freekh](https://github.com/freekh)! - A build is now named by what it was built from rather than by what it produced, so publishing the same project files again reuses the build the site already has. When that build is still held, the Studio skips building and uploading it.
8
+
3
9
  ## 0.144.2
4
10
 
5
11
  ### Patch Changes
@@ -87,6 +87,15 @@ export type ContentPublishApi = {
87
87
  sha256: string;
88
88
  bytes: number;
89
89
  }[];
90
+ /**
91
+ * The build this project already holds under `buildHash`, declared by
92
+ * name: `artifacts` is sent empty and filled in from that build, and
93
+ * `linksOwnCss` is the build's. A build is named by its inputs, so a
94
+ * publisher that knows the name before building can skip the build.
95
+ * 409 with `BUILD_NOT_HELD` when no complete build has that name:
96
+ * build it, and declare its artifacts.
97
+ */
98
+ byReference?: boolean;
90
99
  };
91
100
  res: {
92
101
  publishId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.144.2",
3
+ "version": "0.144.4",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {