@theholocron/vercel-client 1.5.6 → 1.6.1

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.
Files changed (2) hide show
  1. package/README.md +11 -16
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -14,8 +14,8 @@ pnpm add @theholocron/vercel-client
14
14
  import { createVercelClient } from "@theholocron/vercel-client";
15
15
 
16
16
  const vercel = createVercelClient({
17
- token: process.env.VERCEL_TOKEN!,
18
- teamId: process.env.VERCEL_TEAM_ID, // optional; appended to every request
17
+ token: process.env.VERCEL_TOKEN!,
18
+ teamId: process.env.VERCEL_TEAM_ID, // optional; appended to every request
19
19
  });
20
20
 
21
21
  // Get the authenticated user
@@ -29,33 +29,28 @@ const project = await vercel.projects.get("my-app");
29
29
 
30
30
  // Create a project
31
31
  const created = await vercel.projects.create({
32
- name: "my-app",
33
- framework: "nextjs",
34
- repo: "org/repo",
32
+ name: "my-app",
33
+ framework: "nextjs",
34
+ repo: "org/repo",
35
35
  });
36
36
 
37
37
  // Update project settings
38
38
  await vercel.projects.update("project-id", {
39
- previewDeploymentsDisabled: true,
39
+ previewDeploymentsDisabled: true,
40
40
  });
41
41
 
42
42
  // List env vars
43
43
  const { envs } = await vercel.env.list("project-id");
44
44
 
45
45
  // Set (upsert) an env var
46
- await vercel.env.set(
47
- "project-id",
48
- "production",
49
- "API_URL",
50
- "https://api.example.com",
51
- );
46
+ await vercel.env.set("project-id", "production", "API_URL", "https://api.example.com");
52
47
 
53
48
  // Trigger a deployment
54
49
  const deployment = await vercel.deployments.trigger({
55
- projectName: "my-app",
56
- branch: "main",
57
- repoId: project.link?.repoId!,
58
- target: "production",
50
+ projectName: "my-app",
51
+ branch: "main",
52
+ repoId: project.link?.repoId!,
53
+ target: "production",
59
54
  });
60
55
 
61
56
  // Poll deployment status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/vercel-client",
3
- "version": "1.5.6",
3
+ "version": "1.6.1",
4
4
  "description": "A TypeScript client for the Vercel API",
5
5
  "homepage": "https://github.com/theholocron/clients/tree/main/packages/vercel-client#readme",
6
6
  "bugs": "https://github.com/theholocron/clients/issues",
@@ -30,14 +30,14 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@theholocron/http-client": "^1.5.6"
33
+ "@theholocron/http-client": "^1.6.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",
37
- "@theholocron/eslint-config": "^7.6.1",
38
- "@theholocron/tsconfig": "^7.6.1",
39
- "@theholocron/tsdown-config": "^7.6.1",
40
- "@theholocron/vitest-config": "^7.6.1",
37
+ "@theholocron/eslint-config": "^7.7.0",
38
+ "@theholocron/tsconfig": "^7.7.0",
39
+ "@theholocron/tsdown-config": "^7.7.0",
40
+ "@theholocron/vitest-config": "^7.7.0",
41
41
  "@vitest/coverage-v8": "^4.1.10",
42
42
  "@vitest/eslint-plugin": "^1.6.24",
43
43
  "eslint": "^10.8.0",