@datadog/rspack-plugin 3.2.11 → 3.2.12-dev.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.
@@ -9,36 +9,24 @@ declare class TrackedFilesMatcher {
9
9
  rawTrackedFilesList(): string[];
10
10
  private getFilename;
11
11
  }
12
- type AuthMethod = "apiKey" | "oauth";
13
- type AppsProtectionLevel = "direct_publish" | "approval_required";
12
+ type LongPollingOptions = {
13
+ /** Max long-poll attempts. `1` polls once and never retries. Default: `10`. */
14
+ maxRetries?: number;
15
+ /** Randomize retry delays so concurrent pollers don't sync up. Default: `true`. */
16
+ jitter?: boolean;
17
+ /** Grow the delay between retries exponentially. Default: `true`. */
18
+ exponentialBackoff?: boolean;
19
+ /**
20
+ * Deadline for one attempt, in ms. Must stay above the server's ~30s window,
21
+ * otherwise healthy polls get aborted. Default: `40000`.
22
+ */
23
+ timeoutMs?: number;
24
+ };
14
25
  type AppsOptions = {
15
26
  enable?: boolean;
16
27
  include?: string[];
17
- dryRun?: boolean;
18
- identifier?: string;
19
- name?: string;
20
- /** Human-readable description of the app. */
21
- description?: string;
22
- /** When true, the app appears in the Datadog self-service catalog. */
23
- selfService?: boolean;
24
- /** Deployment and identity settings for the app. */
25
- permissions?: {
26
- /**
27
- * Controls whether publishing the app requires a second approver.
28
- * - `direct_publish`: any user with publish rights can deploy immediately.
29
- * - `approval_required`: a second user must approve before the app goes live.
30
- */
31
- protectionLevel?: AppsProtectionLevel;
32
- /**
33
- * UUID of the service account the app's backend functions run as.
34
- * When omitted the app runs as the uploading user.
35
- * Only service accounts are accepted; arbitrary user UUIDs are rejected by the API.
36
- */
37
- runAs?: string;
38
- };
39
- authOverrides?: {
40
- method?: AuthMethod;
41
- };
28
+ /** Controls how the dev server retries the Datadog long-poll execution endpoint. */
29
+ longPolling?: LongPollingOptions;
42
30
  };
43
31
  declare const CONFIG_KEY: "apps";
44
32
  declare const PLUGIN_NAME: PluginName;
@@ -5233,7 +5221,12 @@ type BundlerReport = GlobalData["bundler"] & {
5233
5221
  outDir: string;
5234
5222
  rawConfig?: any;
5235
5223
  };
5236
- type InjectedValue = string | (() => Promise<string>) | ((sourceOrHash?: string) => string);
5224
+ type ChunkInfo = {
5225
+ sourceOrHash: string;
5226
+ fileName: string;
5227
+ isEntry: boolean;
5228
+ };
5229
+ type InjectedValue = string | (() => Promise<string>) | ((chunk?: ChunkInfo) => string);
5237
5230
  declare enum InjectPosition {
5238
5231
  BEFORE = 0,
5239
5232
  MIDDLE = 1,
@@ -5288,6 +5281,8 @@ type Env = (typeof ALL_ENVS)[number];
5288
5281
  type TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;
5289
5282
  type GlobalContext = {
5290
5283
  addMetric: (metric: Metric) => void;
5284
+ artifactsPending: boolean;
5285
+ artifactsReady: Promise<void>;
5291
5286
  asyncHook: TriggerHook<Promise<void[]>>;
5292
5287
  auth: AuthOptionsWithDefaults;
5293
5288
  build: BuildReport;
@@ -5298,6 +5293,8 @@ type GlobalContext = {
5298
5293
  git?: RepositoryData;
5299
5294
  hook: TriggerHook<void>;
5300
5295
  inject: (item: ToInjectItem) => void;
5296
+ markArtifactsPending: () => void;
5297
+ markArtifactsReady: (error?: unknown) => void;
5301
5298
  pluginNames: string[];
5302
5299
  plugins: (PluginOptions | CustomPluginOptions)[];
5303
5300
  queue: (promise: Promise<any>) => void;
@@ -5357,7 +5354,6 @@ type AuthOptions = {
5357
5354
  };
5358
5355
  type AuthOptionsWithDefaults = Omit<AuthOptions, "site"> & {
5359
5356
  site: Site$1;
5360
- siteSubdomain?: string;
5361
5357
  };
5362
5358
  interface BaseOptions {
5363
5359
  auth?: AuthOptions;