@valbuild/shared 0.138.0 → 0.138.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 +10 -0
- package/dist/declarations/src/internal/publish/contentApi.d.ts +5 -0
- package/dist/declarations/src/internal/publish/protocol.d.ts +2 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +6 -1
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +6 -1
- package/internal/dist/valbuild-shared-internal.esm.js +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.138.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#763](https://github.com/valbuild/val/pull/763) [`2beb226`](https://github.com/valbuild/val/commit/2beb226446c76eb71026f43e04c13943da4a1e31) Thanks [@freekh](https://github.com/freekh)! - When a publish fails because the Studio could not build the site, the editor is now told why. The tab that built it sends its reason with the failed step, so the message reads, for example, "build failed 3 times: Tailwind's '@plugin' is not supported here…" instead of just "build failed 3 times". This needs the content service that accepts the reason; an older one ignores it and shows the message as before.
|
|
8
|
+
|
|
9
|
+
- [#763](https://github.com/valbuild/val/pull/763) [`443cdcd`](https://github.com/valbuild/val/commit/443cdcdfa8948db22a54adef2ad5e18d9f9868e9) Thanks [@freekh](https://github.com/freekh)! - `val publish` now wires the site at the project's branch, which the content service names, instead of the branch the checkout is on. The site's Val saves its edits to the branch it is wired at, so publishing a managed project from a feature branch made every Studio edit land where no publish looks, and Publish answered "nothing to publish". When the two differ, the CLI says so. With a content service that does not name the branch, the checkout's is used, as before.
|
|
10
|
+
- Updated dependencies [[`cf3bbc8`](https://github.com/valbuild/val/commit/cf3bbc8fc89ff349aac5ab101d0b4f28164583e6)]:
|
|
11
|
+
- @valbuild/core@0.138.2
|
|
12
|
+
|
|
3
13
|
## 0.138.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -310,6 +310,11 @@ export type ContentPublishApi = {
|
|
|
310
310
|
ok: boolean;
|
|
311
311
|
/** A finished build step: the id of the publish (`POST /publish`) it declared. */
|
|
312
312
|
build?: string;
|
|
313
|
+
/**
|
|
314
|
+
* A failed step: why, in the tab's words. The step is still retried;
|
|
315
|
+
* if it fails for good, this is what the editor is told.
|
|
316
|
+
*/
|
|
317
|
+
message?: string;
|
|
313
318
|
};
|
|
314
319
|
res: {
|
|
315
320
|
job: PublishTabJob | null;
|
|
@@ -96,6 +96,7 @@ declare const buildTargetResponse: z.ZodObject<{
|
|
|
96
96
|
css: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
97
97
|
workerOnly: z.ZodArray<z.ZodString>;
|
|
98
98
|
}, z.core.$strip>;
|
|
99
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
99
100
|
}, z.core.$strip>;
|
|
100
101
|
export type BuildTargetResponse = z.infer<typeof buildTargetResponse>;
|
|
101
102
|
/**
|
|
@@ -184,6 +185,7 @@ declare const updateTargetResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
184
185
|
css: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
185
186
|
workerOnly: z.ZodArray<z.ZodString>;
|
|
186
187
|
}, z.core.$strip>;
|
|
188
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
187
189
|
}, z.core.$strip>>;
|
|
188
190
|
}, z.core.$strip>, z.ZodObject<{
|
|
189
191
|
status: z.ZodLiteral<"unavailable">;
|
|
@@ -7442,7 +7442,12 @@ var buildTargetResponse = zod.z.object({
|
|
|
7442
7442
|
modules: zod.z.record(zod.z.string(), zod.z.string()),
|
|
7443
7443
|
css: zod.z.record(zod.z.string(), zod.z.string()),
|
|
7444
7444
|
workerOnly: zod.z.array(zod.z.string())
|
|
7445
|
-
})
|
|
7445
|
+
}),
|
|
7446
|
+
/**
|
|
7447
|
+
* The project's branch: what a build is wired at, so its Val saves where
|
|
7448
|
+
* publishes commit. Optional, for a content service that predates it.
|
|
7449
|
+
*/
|
|
7450
|
+
branch: zod.z.string().optional()
|
|
7446
7451
|
});
|
|
7447
7452
|
/**
|
|
7448
7453
|
* `null` files is a real answer: a project that has never published.
|
|
@@ -7442,7 +7442,12 @@ var buildTargetResponse = zod.z.object({
|
|
|
7442
7442
|
modules: zod.z.record(zod.z.string(), zod.z.string()),
|
|
7443
7443
|
css: zod.z.record(zod.z.string(), zod.z.string()),
|
|
7444
7444
|
workerOnly: zod.z.array(zod.z.string())
|
|
7445
|
-
})
|
|
7445
|
+
}),
|
|
7446
|
+
/**
|
|
7447
|
+
* The project's branch: what a build is wired at, so its Val saves where
|
|
7448
|
+
* publishes commit. Optional, for a content service that predates it.
|
|
7449
|
+
*/
|
|
7450
|
+
branch: zod.z.string().optional()
|
|
7446
7451
|
});
|
|
7447
7452
|
/**
|
|
7448
7453
|
* `null` files is a real answer: a project that has never published.
|
|
@@ -7435,7 +7435,12 @@ var buildTargetResponse = z.object({
|
|
|
7435
7435
|
modules: z.record(z.string(), z.string()),
|
|
7436
7436
|
css: z.record(z.string(), z.string()),
|
|
7437
7437
|
workerOnly: z.array(z.string())
|
|
7438
|
-
})
|
|
7438
|
+
}),
|
|
7439
|
+
/**
|
|
7440
|
+
* The project's branch: what a build is wired at, so its Val saves where
|
|
7441
|
+
* publishes commit. Optional, for a content service that predates it.
|
|
7442
|
+
*/
|
|
7443
|
+
branch: z.string().optional()
|
|
7439
7444
|
});
|
|
7440
7445
|
/**
|
|
7441
7446
|
* `null` files is a real answer: a project that has never published.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.138.
|
|
3
|
+
"version": "0.138.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"flexsearch": "^0.8.212",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
39
|
"zod-validation-error": "^5.0.0",
|
|
40
|
-
"@valbuild/core": "0.138.
|
|
40
|
+
"@valbuild/core": "0.138.2"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"CHANGELOG.md",
|