@netlify/build 29.58.10 → 29.59.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.
@@ -1,4 +1,4 @@
1
- export function run({ event, error, constants, envChanges, featureFlags, netlifyConfig, otelCarrier }: {
1
+ export function run({ event, error, constants, envChanges, featureFlags, netlifyConfig, otelCarrier, extensionMetadata }: {
2
2
  event: any;
3
3
  error: any;
4
4
  constants: any;
@@ -6,6 +6,7 @@ export function run({ event, error, constants, envChanges, featureFlags, netlify
6
6
  featureFlags: any;
7
7
  netlifyConfig: any;
8
8
  otelCarrier: any;
9
+ extensionMetadata: any;
9
10
  }, { methods, inputs, packageJson, verbose }: {
10
11
  methods: any;
11
12
  inputs: any;
@@ -6,7 +6,7 @@ import { cloneNetlifyConfig, getConfigMutations } from './diff.js';
6
6
  import { getSystemLog } from './systemLog.js';
7
7
  import { getUtils } from './utils.js';
8
8
  /** Run a specific plugin event handler */
9
- export const run = async function ({ event, error, constants, envChanges, featureFlags, netlifyConfig, otelCarrier }, { methods, inputs, packageJson, verbose }) {
9
+ export const run = async function ({ event, error, constants, envChanges, featureFlags, netlifyConfig, otelCarrier, extensionMetadata }, { methods, inputs, packageJson, verbose }) {
10
10
  setGlobalContext(propagation.extract(context.active(), otelCarrier));
11
11
  // set the global context for the plugin run
12
12
  return context.with(getGlobalContext(), async () => {
@@ -24,6 +24,7 @@ export const run = async function ({ event, error, constants, envChanges, featur
24
24
  error,
25
25
  featureFlags,
26
26
  systemLog,
27
+ extensionMetadata,
27
28
  };
28
29
  const envBefore = setEnvChanges(envChanges);
29
30
  logPluginMethodStart(verbose);
@@ -29,6 +29,7 @@ export const firePluginStep = async function ({ event, childProcess, packageName
29
29
  netlifyConfig,
30
30
  constants,
31
31
  otelCarrier,
32
+ extensionMetadata,
32
33
  },
33
34
  logs: logsA,
34
35
  verbose,
@@ -21,4 +21,10 @@ export interface NetlifyPluginOptions<TInputs extends PluginInputs<StringKeys<TI
21
21
  utils: NetlifyPluginUtils;
22
22
  featureFlags?: Record<string, unknown>;
23
23
  systemLog?(message: string): void;
24
+ /**
25
+ * When an extension's event handler executes, we pass extension-specific metadata to the exension
26
+ */
27
+ extensionMetadata: {
28
+ extension_token?: string;
29
+ };
24
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.58.10",
3
+ "version": "29.59.1",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -69,15 +69,15 @@
69
69
  "@bugsnag/js": "^7.0.0",
70
70
  "@netlify/blobs": "^7.4.0",
71
71
  "@netlify/cache-utils": "^5.2.0",
72
- "@netlify/config": "^20.21.7",
72
+ "@netlify/config": "^20.22.0",
73
73
  "@netlify/edge-bundler": "12.3.2",
74
74
  "@netlify/framework-info": "^9.9.1",
75
- "@netlify/functions-utils": "^5.3.6",
75
+ "@netlify/functions-utils": "^5.3.7",
76
76
  "@netlify/git-utils": "^5.2.0",
77
77
  "@netlify/opentelemetry-utils": "^1.3.0",
78
78
  "@netlify/plugins-list": "^6.80.0",
79
79
  "@netlify/run-utils": "^5.2.0",
80
- "@netlify/zip-it-and-ship-it": "9.42.6",
80
+ "@netlify/zip-it-and-ship-it": "9.43.0",
81
81
  "@sindresorhus/slugify": "^2.0.0",
82
82
  "ansi-escapes": "^6.0.0",
83
83
  "chalk": "^5.0.0",
@@ -164,5 +164,5 @@
164
164
  "engines": {
165
165
  "node": "^14.16.0 || >=16.0.0"
166
166
  },
167
- "gitHead": "2efb5f0671a1e72d31a43bfddd1d79f2f8a466a0"
167
+ "gitHead": "5ef5481867986c27c75fc39a12a82c7be40f5938"
168
168
  }