Releases: DataDog/build-plugins
v2.6.3
What's Changed
- [fix] Do not mutate existing exports fields by @yoannmoinet in #184
- [feat] Add privacy plugin by @cy-moi in #180
- [internal] Add submit log flag to forward logs to DD by @yoannmoinet in #185
- [fix] Vite outDir for sourcemaps upload (take 2) by @yoannmoinet in #186
New Contributors
Full Changelog: v2.6.2...v2.6.3
v2.6.2
What's Changed
- [chore] add Claude Code infos by @yoannmoinet in #183
- [chore] Update to Jest 30 by @yoannmoinet in #181
- [fix] badly formed sourcemaps paths by @yoannmoinet in #182
Full Changelog: v2.6.1...v2.6.2
v2.6.1
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
v2.5.3
Highlight: Vite 6 Support
What's Changed
- [vite] Update dependencies and improve type separation for Vite and Rollup by @yoannmoinet in #162
- [fix] Vite's outDir by @yoannmoinet in #163
Full Changelog: v2.5.2...v2.5.3
v2.5.2
What's Changed
Internal improvements and refactors, there should be no change visible to end users.
What's Changed
- [logging] Add log time helper by @yoannmoinet in #146
- [feat] Custom hooks by @yoannmoinet in #137
- [iso] Move files by @yoannmoinet in #147
- [docs] Update contribution guide by @yoannmoinet in #149
- [build-report] Optimise build-report to prevent memory hog over long running builds by @yoannmoinet in #148
- [internal] Change how we initialise plugins by @yoannmoinet in #151
- [internal] Move dev server helper by @yoannmoinet in #152
- [internal] Split factory helpers by @yoannmoinet in #156
- [internal] Refactor factory plugins init by @yoannmoinet in #157
- [log] Add tags and mocks to span logger by @yoannmoinet in #158
- [internal] Update, fix and extract
cleanPluginName
by @yoannmoinet in #159 - [profiling] Auto trace plugins living in the ecosystem. by @yoannmoinet in #154
Full Changelog: v2.5.1...v2.5.2
v2.5.1
What's Changed
- [internal] Prepare internal reporting by @yoannmoinet in #143
- [logging] Add meta reporting by @yoannmoinet in #134
- [rum] Inject browser sdk by @yoannmoinet in #119
- [web-ui] Quick fixes for web-ui by @yoannmoinet in #145
Full Changelog: v2.5.0...v2.5.1
v2.5.0
What's Changed
- [sourcemaps] Move sourcemaps by @yoannmoinet in #118
- [tests] A better sandboxing of tests and builds by @yoannmoinet in #123
- [internal] Add more injection points by @yoannmoinet in #121
- [doc] Update readmes by @yoannmoinet in #120
- [tests] Add e2e testing by @yoannmoinet in #125
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
v2.4.1
What's Changed
- [types] Fix exported type of Options by @yoannmoinet in #127
Full Changelog: v2.4.0...v2.4.1