@void/deploy-core 0.21.8 → 0.22.0
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/dist/index.d.mts +4 -2
- package/dist/index.mjs +5 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -263,6 +263,8 @@ export type SandboxMigrationMeta = {
|
|
|
263
263
|
newSqliteClasses?: ReadonlyArray<string>;
|
|
264
264
|
deletedClasses?: ReadonlyArray<string>;
|
|
265
265
|
};
|
|
266
|
+
/** Named images under the Durable Object scheduling policy must be digest-pinned. */
|
|
267
|
+
export declare function isSandboxRegistryImage(image: string): boolean;
|
|
266
268
|
export type SandboxManifestMeta = {
|
|
267
269
|
bindingName: string;
|
|
268
270
|
className: string;
|
|
@@ -273,10 +275,10 @@ export type SandboxManifestMeta = {
|
|
|
273
275
|
migrations?: ReadonlyArray<SandboxMigrationMeta>;
|
|
274
276
|
/** Written by the managed platform, never accepted from deployment clients. */
|
|
275
277
|
runtime?: {
|
|
276
|
-
protocol: 1;
|
|
278
|
+
protocol: 1 | 2;
|
|
277
279
|
};
|
|
278
280
|
/** Managed transport implemented by the application's bundled Void runtime. */
|
|
279
|
-
controllerProtocol?: 1;
|
|
281
|
+
controllerProtocol?: 1 | 2;
|
|
280
282
|
};
|
|
281
283
|
export type LiveMigrationMeta = {
|
|
282
284
|
tag: string;
|
package/dist/index.mjs
CHANGED
|
@@ -470,5 +470,9 @@ function sortUniqueStrings(values) {
|
|
|
470
470
|
function sameStringSet(a, b) {
|
|
471
471
|
return a.length === b.length && a.every((value, index) => value === b[index]);
|
|
472
472
|
}
|
|
473
|
+
/** Named images under the Durable Object scheduling policy must be digest-pinned. */
|
|
474
|
+
function isSandboxRegistryImage(image) {
|
|
475
|
+
return /^registry\.cloudflare\.com\/[^/@\s]+\/[^@\s]+@sha256:[a-f\d]{64}$/.test(image);
|
|
476
|
+
}
|
|
473
477
|
//#endregion
|
|
474
|
-
export { DEPLOY_ARTIFACT_VERSION, MANIFEST_REDIRECT_RULE_STATUSES, MAX_REVALIDATE_QUERY_ALLOWLIST_ENTRIES, MAX_ROUTING_RULES, SUPPORTED_MANIFEST_VERSIONS, appendSqliteClassMigration, createDeployArtifact, createDeployIntent, createDeployResourcePlan, createDeployUploadPayload, planWebSocketMigrations, validateManifestShape };
|
|
478
|
+
export { DEPLOY_ARTIFACT_VERSION, MANIFEST_REDIRECT_RULE_STATUSES, MAX_REVALIDATE_QUERY_ALLOWLIST_ENTRIES, MAX_ROUTING_RULES, SUPPORTED_MANIFEST_VERSIONS, appendSqliteClassMigration, createDeployArtifact, createDeployIntent, createDeployResourcePlan, createDeployUploadPayload, isSandboxRegistryImage, planWebSocketMigrations, validateManifestShape };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/deploy-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/voidzero-dev/void.git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "7.0.2",
|
|
24
|
-
"vite-plus": "0.
|
|
24
|
+
"vite-plus": "1.0.0"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "vp pack",
|