Skip to content

Releases: DataDog/build-plugins

v3.0.8

02 Dec 21:41
789dae9

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.7...v3.0.8

v3.0.7

24 Oct 13:49
0834901

Choose a tag to compare

What's Changed

Full Changelog: v3.0.6...v3.0.7

v3.0.6

22 Oct 14:35
fa279d2

Choose a tag to compare

What's Changed

v3.0.5 got a MASSIVE size bump from ~600kb to ~3.5mb 😱
v3.0.6 fixes it.

Full Changelog: v3.0.5...v3.0.6

v3.0.5

22 Oct 13:45
6c011d5

Choose a tag to compare

What's Changed

  • [test] Refactor testing infrastructure and add CSS support by @yoannmoinet in #235
  • [fix] prevent injection in unsupported file types by @yoannmoinet in #234
  • [debug] Enable build reports output in CI and improve logging by @yoannmoinet in #236

Full Changelog: v3.0.4...v3.0.5

v3.0.4

03 Oct 14:12
f9af1df

Choose a tag to compare

What's Changed

Full Changelog: v3.0.3...v3.0.4

v3.0.3

01 Oct 16:04
1cdf887

Choose a tag to compare

What's Changed

  • [bot] Bump versions to v3.0.2 by @dd-octo-sts[bot] in #225
  • [fix] Gate banner and footer injections to only supported file types for esbuild by @yoannmoinet in #227
  • [rum-privacy] Add info log on dictionary size and upgrade to the latest dep by @cy-moi in #226

Full Changelog: v3.0.2...v3.0.3

v3.0.2

26 Sep 14:00
31968d2

Choose a tag to compare

What's Changed

  • Upgrade js-instrumentation lib version by @cy-moi in #224

Full Changelog: v3.0.1...v3.0.2

v3.0.1

23 Sep 15:10
5727ffa

Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

18 Sep 15:15
6e33adc

Choose a tag to compare

What's Changed

Breaking changes

A lot of them, refer to the migration guide for the full list and their migration.

  • Dropped support for Node 18.
  • Dropped support for webpack 4.
  • Renamed disabled to enable and disableGit to enableGit.
  • Removed options.errorTracking.sourcemaps.disableGit.
  • Renamed cwd to buildRoot.
  • Renamed telemetry into metrics.
  • Changed telemetry.filters API on the Metric object, replaced metric.value: number for metric.points: [timestamp, value][].
  • Added a new default prefix to all metrics sent, use enableDefaultPrefix: false to keep previous behavior (no default prefix).
  • Unified site configuration, removed telemetry.endPoint and errorTracking.sourcemaps.intakeUrl.
Full migration diff
// Renamed `telemetry` to `metrics`
-import type { TelemetryTypes } from '@datadog/webpack-plugin';
-type MyOptions = TelemetryTypes.TelemetryOptions;
+import type { MetricsTypes } from '@datadog/webpack-plugin';
+type MyOptions = MetricsTypes.MetricsOptions;

import { datadogWebpackPlugin, helpers } from '@datadog/webpack-plugin';
// Renamed `telemetry` to `metrics`
-const defaultFilters = helpers.telemetry.filters;
+const defaultFilters = helpers.metrics.filters;

const myFilter = (metric: Metric): Metric | null => {
    // New API
-   const value = metric.value;
+   const value = metric.points[0]?.[1] || 0;
    return value > 100 ? metric : null;
};

const plugin = datadogWebpackPlugin({
    auth: {
        apiKey: '<my-api-key>',
        // Centralized `site` configuration
+       site: 'datadoghq.eu'
    },
    // Removed `disableGit` option in favor of `enableGit`
+   enableGit: false,
    // Renamed `telemetry` to `metrics`
-   telemetry: {
+   metrics: {
        // Renamed `disabled` to `enable`
-       disabled: true,
+       enable: false,
        // Centralized `site` configuration
-       endPoint: 'https://app.datadoghq.eu'
        // New `output` plugin
-       output: './metrics-debug',
        // Default static prefix
+       enableDefaultPrefix: true,
        filters: [...defaultFilters, myFilter],
        // ... other configuration
    },
    errorTracking: {
        sourcemaps: {
            // Centralized `site` configuration
-           intakeUrl: 'https://sourcemap-intake.datadoghq.eu/api/v2/srcmap',
            // Removed `disableGit` option in favor of root's `enableGit`
-           disableGit: true,
            // ... other options
        }
    },
    // New `output` plugin
+   output: {
+       path: './metrics-debug',
+       files: {
+           metrics: true,
+       },
+   }
});

Full Changelog: v2.6.4...v3.0.0

v2.6.4

13 Aug 08:07
16d3bdf

Choose a tag to compare

What's Changed

Full Changelog: v2.6.3...v2.6.4