Releases: DataDog/build-plugins
v2.4.0
What's Changed
Rspack support and DX improvements.
Full list of changes:
- [bundling] Change bundling by @yoannmoinet in #106
- [refactor] Re-organise project files. by @yoannmoinet in #107
- [refactor] Better integrate new internal plugins by @yoannmoinet in #108
- [refactor] Better integrated logger. by @yoannmoinet in #109
- [logger] Simplify how we instantiate the logger in plugins by @yoannmoinet in #110
- [bundler] Rspack by @yoannmoinet in #111
- [perf] Use Set instead of arrays for metrics aggregation by @yoannmoinet in #112
- [dx] Add dev mode by @yoannmoinet in #113
- [fix] Small fixes by @yoannmoinet in #114
Full Changelog: v2.3.2...v2.4.0
v2.3.2
What's Changed
- [fix] Remove webpack-sources from externals by @yoannmoinet in #105
Full Changelog: v2.3.1...v2.3.2
v2.3.1
What's Changed
Mostly DX related changes, nothing should impact the end-user experience.
- [DX] Improve tests experience by @yoannmoinet in #99
- [Internal] Injection plugin by @yoannmoinet in #100
- [DX] Improve contribution experience by @yoannmoinet in #101
- [CLI] Fix create plugin wizard by @yoannmoinet in #103
- [testing] More testing by @yoannmoinet in #104
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- Fix README TOC generation by @yoannmoinet in #95
- [Internal] Build report internal plugin by @yoannmoinet in #92
- [Telemetry] Refactor telemetry with build report by @yoannmoinet in #93
- Custom Plugins by @yoannmoinet in #96
- Performance improvements for the build report by @yoannmoinet in #97
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
What's Changed
- [vite] Remove leaking dependencies by @yoannmoinet in #94, fixes #91
Full Changelog: v2.2.0...v2.2.1
v2.2.0
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
- [bundle] Add vite and rollup by @yoannmoinet in #86
- [rum] Change how we handle errors in sourcemaps upload by @yoannmoinet in #89
Full Changelog: v2.1.0...v2.2.0
v2.1.0
New RUM plugin
Automatically upload your sourcemaps to Datadog after your build.
What's Changed
- [plugin] RUM plugin by @yoannmoinet in #78
- [dependencies] Fix dependencies by @yoannmoinet in #75
- [integrity] add more integrity checks by @yoannmoinet in #70
- [create-plugin] Better bootstrapping by @yoannmoinet in #76
- [tests] Move existing mocks by @yoannmoinet in #77
- [dx] Add global context, test helpers and better docs by @yoannmoinet in #80
- [telemetry] Move telemetry plugins by @yoannmoinet in #81
- [core] core plugins update by @yoannmoinet in #82
- [testing] Refactor testing telemetry by @yoannmoinet in #85
- [core] More global contexts by @yoannmoinet in #84
- [rum] Use context for sourcemaps instead of
basePath
. by @yoannmoinet in #87
Full Changelog: v2.0.1...v2.1.0
v2.0.1
Full Changelog: v2.0.0...v2.0.1
v2.0.0
This is a complete rewrite of the plugin.
Check the guide for migrating from v1
here.
What's Changed
- [peerDependencies] mark as optional by @Ayc0 in #52
- Node: bump to 18 & 20 by @Ayc0 in #54
- Upgrade yarn by @Ayc0 in #55
- v2.0.0 by @yoannmoinet in #62
- [v2.0.0] Re design of the plugin by @yoannmoinet in #61
- [v2.0.0] Use unplugin by @yoannmoinet in #64
- [v2.0.0] Package the plugins by @yoannmoinet in #65
- [v2.0.0] Onboarding and documentation by @yoannmoinet in #67
- [v2.0.0] Issue fixes by @yoannmoinet in #68
Full Changelog: v1.0.4...v2.0.0
v1.0.4
What's Changed
- [yarn] enable node-module linker by @Ayc0 in #49
- Fix loaders reporting by @yoannmoinet in #48
Full Changelog: v1.0.3...v1.0.4