Skip to content

Releases: DataDog/build-plugins

v2.6.3

24 Jul 08:00
25191d7
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.6.2...v2.6.3

v2.6.2

20 Jun 09:56
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.6.1...v2.6.2

v2.6.1

27 May 14:43
Compare
Choose a tag to compare

What's Changed

  • [fix] Vite: Ensure directories is set before calling getCwd by @tywayne in #176

New Contributors

Full Changelog: v2.6.0...v2.6.1

v2.6.0

22 May 09:13
Compare
Choose a tag to compare

What's Changed

Additions

The git plugin now fetch more information to be used in the ecosystem:

// Example of the enhanced Git metadata structure now available
const gitData = {
    commit: {
        author: {
            name: "John Doe",
            email: "john.doe@example.com",
            date: "2023-05-15"
        },
        committer: {
            name: "Jane Smith",
            email: "jane.smith@example.com", 
            date: "2023-05-16"
        },
        message: "Fix critical bug in production",
        hash: "25da22df90210a40b919debe3f7ebfb0c1811898"
    },
    branch: "main",
    remote: "git@github.com:user/repository.git",
    // ...additional data...
}

You can now use the new metadata configuration that allows you to better identify a single build, by giving it a name. The name is then used in logs, metrics and spans.

export interface Options {
    metadata?: {
        name?: string;
    };
    [...]
}

// In your bundler configuration
datadogWebpackPlugin({
    // Set a custom name for your build
    metadata: {
        name: 'my-production-build'  // Will appear in logs, metrics and spans
    },
    // Other configuration options...
    telemetry: {
        // ...
    }
});

The new True End plugin will add two new custom hooks you can use in your customPlugins.

{
    name: 'my-plugin',
    // Run asynchronous operations at the true end of the build
    async asyncTrueEnd() {
        // Do something asynchronous when the build truly completes
        await someAsyncOperation();
    },
    
    // Run synchronous operations at the true end of the build
    syncTrueEnd() {
        // Do something synchronous when the build truly completes
        someSyncOperation();
    }
}

Using time loggers will now let you override the timestamps for .start(ts), .pause(ts) and .resume(ts).

timer.pause(timeOverride?: number);
// [... do stuff ...]
timer.resume(timeOverride?: number);
// [... do more stuff ...]
timer.end(timeOverride?: number);

Internal DX

Do not typecheck the whole codebase in the pre-commit hook, only the packages of the files changed.

Self monitoring

Use the plugin on its own build so we can monitor it as well.

Miscelaneous

Full Changelog: v2.5.3...v2.6.0

v2.5.3

07 May 09:01
Compare
Choose a tag to compare

Highlight: Vite 6 Support

What's Changed

Full Changelog: v2.5.2...v2.5.3

v2.5.2

10 Apr 07:32
Compare
Choose a tag to compare

What's Changed

Internal improvements and refactors, there should be no change visible to end users.

What's Changed

Full Changelog: v2.5.1...v2.5.2

v2.5.1

19 Mar 08:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.0...v2.5.1

v2.5.0

13 Feb 14:35
Compare
Choose a tag to compare

What's Changed

Breaking Changes

rum became errorTracking in the configuration:

datadogWebpackPlugin({
-    rum?: {
+    errorTracking?: {
        disabled?: boolean,
        sourcemaps?: {
            bailOnError?: boolean,
            dryRun?: boolean,
            intakeUrl?: string,
            maxConcurrency?: number,
            minifiedPathPrefix: string,
            releaseVersion: string,
            service: string,
        },
    }
});

Full Changelog: v2.4.2...v2.5.0

v2.4.2

09 Feb 23:31
9f32713
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.1...v2.4.2

v2.4.1

06 Feb 20:10
f3a8fb4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.0...v2.4.1