Releases: DataDog/build-plugins
Releases · DataDog/build-plugins
v3.0.8
What's Changed
- Update RUM Browser SDK to 6.24.0 by @yoannmoinet in #248
- Chain the input source map in the RUM privacy plugin on rspack and webpack by @sethfowler-datadog in #251
New Contributors
- @sethfowler-datadog made their first contribution in #251
Full Changelog: v3.0.7...v3.0.8
v3.0.7
What's Changed
- Update yarn to 4.10.3 by @yoannmoinet in #242
- [fix] Patch privacy plugin with two minor changes by @cy-moi in #233
Full Changelog: v3.0.6...v3.0.7
v3.0.6
What's Changed
- Gate reports behind BUILD_PLUGINS_DEBUG by @yoannmoinet in #240
v3.0.5 got a MASSIVE size bump from ~600kb to ~3.5mb 😱
v3.0.6 fixes it.
Full Changelog: v3.0.5...v3.0.6
v3.0.5
What's Changed
- [test] Refactor testing infrastructure and add CSS support by @yoannmoinet in #235
- [fix] prevent injection in unsupported file types by @yoannmoinet in #234
- [debug] Enable build reports output in CI and improve logging by @yoannmoinet in #236
Full Changelog: v3.0.4...v3.0.5
v3.0.4
What's Changed
- [doc] Update the publishing documentation by @yoannmoinet in #228
- [security] Make bump action allowed on the
v2branch by @yoannmoinet in #223 - [deps] Upgrade js-instrumentation-wasm version by @cy-moi in #231
Full Changelog: v3.0.3...v3.0.4
v3.0.3
What's Changed
- [bot] Bump versions to
v3.0.2by @dd-octo-sts[bot] in #225 - [fix] Gate banner and footer injections to only supported file types for esbuild by @yoannmoinet in #227
- [rum-privacy] Add info log on dictionary size and upgrade to the latest dep by @cy-moi in #226
Full Changelog: v3.0.2...v3.0.3
v3.0.2
v3.0.1
v3.0.0
What's Changed
- [infra] Create a new branch when bumping from action
- [chore] Upgrade to node 20
- [chore] Drop webpack 4 support
- [chore] Unplugin v2
- [chore] Update bundlers
- [refactor] Rename disable/disableGit to enable/enableGit pattern
- [metrics] Add static prefix configuration to telemetry plugin
- [refactor] Rename telemetry into metrics
- [auth] Unify site configuration used for API requests
- [refactor] Change cwd to buildRoot
Breaking changes
A lot of them, refer to the migration guide for the full list and their migration.
- Dropped support for Node 18.
- Dropped support for webpack 4.
- Renamed
disabledtoenableanddisableGittoenableGit. - Removed
options.errorTracking.sourcemaps.disableGit. - Renamed
cwdtobuildRoot. - Renamed
telemetryintometrics. - Changed
telemetry.filtersAPI on theMetricobject, replacedmetric.value: numberformetric.points: [timestamp, value][]. - Added a new default prefix to all metrics sent, use
enableDefaultPrefix: falseto keep previous behavior (no default prefix). - Unified
siteconfiguration, removedtelemetry.endPointanderrorTracking.sourcemaps.intakeUrl.
Full migration diff
// Renamed `telemetry` to `metrics`
-import type { TelemetryTypes } from '@datadog/webpack-plugin';
-type MyOptions = TelemetryTypes.TelemetryOptions;
+import type { MetricsTypes } from '@datadog/webpack-plugin';
+type MyOptions = MetricsTypes.MetricsOptions;
import { datadogWebpackPlugin, helpers } from '@datadog/webpack-plugin';
// Renamed `telemetry` to `metrics`
-const defaultFilters = helpers.telemetry.filters;
+const defaultFilters = helpers.metrics.filters;
const myFilter = (metric: Metric): Metric | null => {
// New API
- const value = metric.value;
+ const value = metric.points[0]?.[1] || 0;
return value > 100 ? metric : null;
};
const plugin = datadogWebpackPlugin({
auth: {
apiKey: '<my-api-key>',
// Centralized `site` configuration
+ site: 'datadoghq.eu'
},
// Removed `disableGit` option in favor of `enableGit`
+ enableGit: false,
// Renamed `telemetry` to `metrics`
- telemetry: {
+ metrics: {
// Renamed `disabled` to `enable`
- disabled: true,
+ enable: false,
// Centralized `site` configuration
- endPoint: 'https://app.datadoghq.eu'
// New `output` plugin
- output: './metrics-debug',
// Default static prefix
+ enableDefaultPrefix: true,
filters: [...defaultFilters, myFilter],
// ... other configuration
},
errorTracking: {
sourcemaps: {
// Centralized `site` configuration
- intakeUrl: 'https://sourcemap-intake.datadoghq.eu/api/v2/srcmap',
// Removed `disableGit` option in favor of root's `enableGit`
- disableGit: true,
// ... other options
}
},
// New `output` plugin
+ output: {
+ path: './metrics-debug',
+ files: {
+ metrics: true,
+ },
+ }
});Full Changelog: v2.6.4...v3.0.0
v2.6.4
What's Changed
- [rum] add sourcemaps and telemetry by @cy-moi in #187
- [fix] Vite / Rollup configuration hook by @yoannmoinet in #198
- [fix] Remove uniqueId from the stub injection files by @yoannmoinet in #204
- [e2e] Fix e2e flakiness by @yoannmoinet in #205
- [chore] Create self.bump.sts.yaml by @yoannmoinet in #208
- [chore] Claude configuration update by @yoannmoinet in #188
- [chore] Update bump.yaml by @yoannmoinet in #195
Full Changelog: v2.6.3...v2.6.4