@theholocron/holocron-plugin-netlify 5.0.0-alpha.112 → 5.0.0-alpha.114
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/README.md +12 -6
- package/dist/index.d.mts +1 -10
- package/dist/index.mjs +0 -15
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -75,11 +75,6 @@ builder, poll to `ready`, fetch the live URL) using this plugin's own
|
|
|
75
75
|
built `createPlugin()` output.
|
|
76
76
|
|
|
77
77
|
- `listProjects` / `ensureProject` → `sites.list` / `sites.create`
|
|
78
|
-
- `deployFunction` → `deploys.createFromZip` — Netlify runs no build
|
|
79
|
-
step for a raw zip upload, so the caller (Sentinel's own stage-deploy
|
|
80
|
-
script) is responsible for already having resolved dependencies into
|
|
81
|
-
the file set, the same discipline Vercel's `deployFunction` path
|
|
82
|
-
requires via its own trimmed/pinned `package.json`.
|
|
83
78
|
- `getDeployment` → `deploys.get`
|
|
84
79
|
- `listEnvVars` / `setEnvVar` → `env.list` / `env.set`
|
|
85
80
|
- `ensureCustomDomain` → `sites.update({ custom_domain })`; returns a
|
|
@@ -96,7 +91,18 @@ current consumer** (best-effort, see inline comments in
|
|
|
96
91
|
- `triggerDeployment` → `sites.triggerBuild`, untested against a real
|
|
97
92
|
git-linked Netlify site.
|
|
98
93
|
|
|
99
|
-
Not implemented: `
|
|
94
|
+
Not implemented: `deployFunction` — the capability interface's
|
|
95
|
+
`DeployFunctionConfig.files` is `Record<string, string>` (text only,
|
|
96
|
+
matching Vercel's model: upload source, let the platform's own build
|
|
97
|
+
step install dependencies server-side). Netlify's real function-deploy
|
|
98
|
+
API runs no install step at all for a raw upload — a function needs
|
|
99
|
+
its real `node_modules` (binary native addons, wasm) zipped in
|
|
100
|
+
alongside it, which a text-only files map structurally cannot carry.
|
|
101
|
+
Sentinel's own stage-deploy script calls
|
|
102
|
+
`@theholocron/netlify-client`'s `deploys.create()` directly instead of
|
|
103
|
+
going through `holocron deploy` / this capability for that reason.
|
|
104
|
+
Same precedent as Cloudflare Pages omitting this method. Also not
|
|
105
|
+
implemented: `listPreviewDeployments` / `deletePreviewDeployments`
|
|
100
106
|
(both optional on the interface) — no current consumer needs
|
|
101
107
|
branch-preview listing/cleanup.
|
|
102
108
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NetlifyClient } from "@theholocron/netlify-client";
|
|
2
|
-
import { AuthError,
|
|
2
|
+
import { AuthError, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DnsRecordRequest, ResolveTokenInput } from "@theholocron/cli";
|
|
3
3
|
//#region src/auth.d.ts
|
|
4
4
|
declare const resolveToken: (input?: ResolveTokenInput) => string;
|
|
5
5
|
//#endregion
|
|
@@ -54,15 +54,6 @@ declare class NetlifyDeployment implements Deployment {
|
|
|
54
54
|
target?: DeploymentTrigger;
|
|
55
55
|
}): Promise<DeploymentRecord>;
|
|
56
56
|
getDeployment(deploymentId: string): Promise<DeploymentRecord>;
|
|
57
|
-
/**
|
|
58
|
-
* Zips `config.files` (plain text, per the interface contract) and
|
|
59
|
-
* uploads it as a one-shot deploy. Netlify runs no build step for a
|
|
60
|
-
* raw zip upload — the caller (Sentinel's own stage-deploy script) is
|
|
61
|
-
* responsible for having already resolved dependencies into the file
|
|
62
|
-
* set, the same discipline Vercel's `deployFunction` path already
|
|
63
|
-
* requires via its own trimmed/pinned package.json.
|
|
64
|
-
*/
|
|
65
|
-
deployFunction(projectId: string, config: DeployFunctionConfig): Promise<DeployFunctionResult>;
|
|
66
57
|
/**
|
|
67
58
|
* Idempotent: PATCHing the same `custom_domain` twice is a no-op on
|
|
68
59
|
* Netlify's side. Unlike Vercel, Netlify's API has no DNS-misconfiguration
|
package/dist/index.mjs
CHANGED
|
@@ -98,21 +98,6 @@ var NetlifyDeployment = class {
|
|
|
98
98
|
return toDeploymentRecord(await this.client().deploys.get(deploymentId));
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Zips `config.files` (plain text, per the interface contract) and
|
|
102
|
-
* uploads it as a one-shot deploy. Netlify runs no build step for a
|
|
103
|
-
* raw zip upload — the caller (Sentinel's own stage-deploy script) is
|
|
104
|
-
* responsible for having already resolved dependencies into the file
|
|
105
|
-
* set, the same discipline Vercel's `deployFunction` path already
|
|
106
|
-
* requires via its own trimmed/pinned package.json.
|
|
107
|
-
*/
|
|
108
|
-
async deployFunction(projectId, config) {
|
|
109
|
-
const deploy = await this.client().deploys.createFromZip(projectId, config.files, { draft: config.target === void 0 });
|
|
110
|
-
return {
|
|
111
|
-
deploymentId: deploy.id,
|
|
112
|
-
url: deploy.ssl_url || deploy.url
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
101
|
* Idempotent: PATCHing the same `custom_domain` twice is a no-op on
|
|
117
102
|
* Netlify's side. Unlike Vercel, Netlify's API has no DNS-misconfiguration
|
|
118
103
|
* check to consult — it's returned unconditionally once set, which is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-netlify",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.114",
|
|
4
4
|
"description": "Holocron plugin for Netlify. Implements the deployment capability against Netlify's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deployment",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"tsx": "4.23.12",
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
43
|
"vitest": "^4.1.11",
|
|
44
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
44
|
+
"@theholocron/cli": "5.0.0-alpha.114"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@theholocron/netlify-client": "^1.36.0",
|
|
48
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
48
|
+
"@theholocron/cli": "5.0.0-alpha.114"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@theholocron/netlify-client": {}
|