v2.6.0
What's Changed
Additions
- [feat] More git infos by @yoannmoinet in #169
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...
}
- [feat] Add
metadata
configuration by @yoannmoinet in #166
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: {
// ...
}
});
- [feat] Add true-end plugin by @yoannmoinet in #171
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();
}
}
- [feat] Improve time logger by @yoannmoinet in #172
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
- [dx] Pre commit hook typecheck update by @yoannmoinet in #167
Do not typecheck the whole codebase in the pre-commit hook, only the packages of the files changed.
Self monitoring
- [chore] Use the plugin on our own builds by @yoannmoinet in #168
Use the plugin on its own build so we can monitor it as well.
- [chore] Add Test Optimization integration to CI by @yoannmoinet in #173
Miscelaneous
- [chore] Update rspack to 1.3.9 by @yoannmoinet in #165
- [chore] Batched updates by @yoannmoinet in #170
- [chore] Fix own monitoring by @yoannmoinet in #174
Full Changelog: v2.5.3...v2.6.0