Skip to content

Releases: DataDog/build-plugins

v2.3.0

18 Sep 15:24
ec7121c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.1...v2.3.0

Breaking changes

auth.endPoint has moved

endPoint was only used by our Telemetry module and had no impact anywhere else. It was natural to move it under telemetry.endPoint.

const config = {
    plugins: [
        datadogEsbuildPlugin({
            auth: {
-             endPoint: 'app.datadoghq.com',
            },
            telemetry: {
+             endPoint: 'app.datadoghq.com',
            },
        }),
    ]
};

Telemetry

- chunks.* metrics are no more

chunks.* metrics are very much webpack specific, and are now merged into modules.* metrics.

- loaders.* and plugins.* metrics are now behind enableTracing: true

There is now two lists of metrics generated by the Telemetry module.

Some of them were very impactful on the performances of the plugin and created a massive overhead on the user's build.

They are now parked behind the enableTracing configuration which is false by default.
This configuration only has an impact on esbuild and webpack, as they are the only bundlers supported by this (for now).
The metrics impacted by this are loaders.* and plugins.*.

const config = {
    plugins: [
        datadogEsbuildPlugin({
            telemetry: {
+             enableTracing: false,
            }
        }),
    ]
};

Note

We will eventually merge loaders.* and plugins.* together when we'll widen the support of enableTracing to other bundlers, as "loaders" are only separately reported by webpack.

- telemetry.output files

The telemetry module won't produce dependencies.json or bundler.json files anymore.
This will be addressed in a follow up feature where we can better configure what files we want to output from the plugin.

const config = {
    plugins: [
        datadogEsbuildPlugin({
            telemetry: {
              output?: boolean
                  | string
                  | {
                      destination: string;
                      timings?: boolean;
-                     dependencies?: boolean;
-                     bundler?: boolean;
                      metrics?: boolean;
                  };
            },
        }),
    ]
};

- Log report has changed

The report we show in the logs has be refined and is now tied to the logLevel configuration.
It will only show if you have at least a level of info:

const config = {
    plugins: [
        datadogEsbuildPlugin({
+           logLevel: 'info',
            telemetry: {
               output?: boolean
                  | string
                  | {
                      destination: string;
                      timings?: boolean;
                      metrics?: boolean;
-                     logs?: boolean;
                  };
            },
        }),
    ]
};

v2.2.1

05 Sep 08:52
0d9576b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.0...v2.2.1

v2.2.0

23 Jul 14:55
6888e44
Compare
Choose a tag to compare

Support for Vite and Rollup.

You can now use the plugin with Vite and Rollup.
Check out our updated README for more details.

Breaking Changes

rum.sourcemaps won't automatically bail on error

We added a new configuration rum.sourcemaps.bailOnError that is false by default.
Previous behaviour was true by default.
To have the same behaviour as before use:

{
    rum: {
        sourcemaps: {
+            bailOnError: true,
        }
    }
}

What's Changed

Full Changelog: v2.1.0...v2.2.0

v2.1.0

10 Jul 15:44
500f410
Compare
Choose a tag to compare

New RUM plugin

Automatically upload your sourcemaps to Datadog after your build.

What's Changed

Full Changelog: v2.0.1...v2.1.0

v2.0.1

30 May 13:37
c1b2353
Compare
Choose a tag to compare

Full Changelog: v2.0.0...v2.0.1

v2.0.0

30 May 13:08
4d23270
Compare
Choose a tag to compare

This is a complete rewrite of the plugin.

Check the guide for migrating from v1 here.

What's Changed

Full Changelog: v1.0.4...v2.0.0

v1.0.4

14 Sep 08:03
8ff7fbc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.3...v1.0.4

v1.0.3

26 Aug 14:48
a14c073
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.2...v1.0.3

v1.0.2

19 Aug 13:00
c3e5db2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.0.2

v1.0.1

25 Jan 08:43
3324f6e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1