@netlify/build 35.7.0 → 35.7.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.
@@ -17,7 +17,7 @@ const condition = async ({ buildDir, packagePath, featureFlags }) => {
17
17
  }
18
18
  return false;
19
19
  };
20
- const coreStep = async ({ api, constants, context, deployId }) => {
20
+ const coreStep = async ({ api, branch, constants, context }) => {
21
21
  const siteId = constants.SITE_ID;
22
22
  // @ts-expect-error This is an internal method for now so it isn't typed yet.
23
23
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
@@ -28,7 +28,7 @@ const coreStep = async ({ api, constants, context, deployId }) => {
28
28
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
29
29
  const databaseBranch = (await api.createSiteDatabaseBranch({
30
30
  site_id: siteId,
31
- body: { deploy_id: deployId },
31
+ body: { branch_id: branch },
32
32
  }));
33
33
  connectionString = databaseBranch.connection_string;
34
34
  }
@@ -19,6 +19,10 @@ export type CoreStepFunctionArgs = {
19
19
  * The deploy context (e.g. 'production', 'deploy-preview', 'branch-deploy')
20
20
  */
21
21
  context: string;
22
+ /**
23
+ * The branch being built (e.g. 'main', 'my-feature-123')
24
+ */
25
+ branch: string;
22
26
  saveConfig: boolean;
23
27
  constants: NetlifyPluginConstants;
24
28
  quiet?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "35.7.0",
3
+ "version": "35.7.1",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -71,12 +71,12 @@
71
71
  "@netlify/cache-utils": "^6.0.4",
72
72
  "@netlify/config": "^24.4.0",
73
73
  "@netlify/edge-bundler": "14.9.8",
74
- "@netlify/functions-utils": "^6.2.21",
74
+ "@netlify/functions-utils": "^6.2.22",
75
75
  "@netlify/git-utils": "^6.0.3",
76
76
  "@netlify/opentelemetry-utils": "^2.0.1",
77
77
  "@netlify/plugins-list": "^6.81.2",
78
78
  "@netlify/run-utils": "^6.0.2",
79
- "@netlify/zip-it-and-ship-it": "14.3.1",
79
+ "@netlify/zip-it-and-ship-it": "14.3.2",
80
80
  "@sindresorhus/slugify": "^2.0.0",
81
81
  "ansi-escapes": "^7.0.0",
82
82
  "ansis": "^4.1.0",
@@ -152,5 +152,5 @@
152
152
  "engines": {
153
153
  "node": ">=18.14.0"
154
154
  },
155
- "gitHead": "7afb85bef616ee25b81b3bd5728333dbbd076725"
155
+ "gitHead": "3916fb7641d4e6fa8c2bede1e72d35ac8b87d8d8"
156
156
  }