Skip to content

v5.58.1 proposal #6062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

v5.58.1 proposal #6062

wants to merge 6 commits into from

Conversation

dd-trace-js[bot]
Copy link

@dd-trace-js dd-trace-js bot commented Jul 9, 2025

  • [b4edcab2a2] - (SEMVER-PATCH) test: remove get-port usage from inferred proxy test (Roch Devost) #6054
  • [f2f650b528] - (SEMVER-PATCH) ESLint: Require 'use strict' header (Thomas Watson) #5334
  • [1f4d857a96] - (SEMVER-PATCH) chore: update dependencies & dependabot & less cache lookups (Ruben Bridgewater) #6041
  • [e7cf286691] - (SEMVER-PATCH) Enable recommended rules for eslint-plugin-n (Thomas Watson) #5216
  • [9ff794ccfc] - (SEMVER-PATCH) perf: improve algorithm for getting callsites in AppSec (Thomas Watson) #6044

watson and others added 6 commits July 9, 2025 05:09
Use the `Error.captureStackTrace` API when triggering
`Error.prepareStackTrace` in order to be able to provide a constructor
function. This is used to reduce the number of unnecessary frames being
generated.
Enables all recommended rules from the `eslint-plugin-n` ESLint plugin that can
reasonably be enabled without too much work. The following rules have been
disabled as they cause too many errors:

- `n/hashbang`
- `n/no-process-exit`
- `n/no-missing-require` (only disabled in benchmarks and tests)

All `eslint-plugin-n` rules are also disabled for `**/*.mjs` files as these for
some reason resulting in parsing errors.

Finally a select list of experimental Node.js APIs have been allowed in
`n/no-unsupported-features/node-builtins`, so that we can use them without
having to add ESLint comments all over the place:

- `Response`
- `async_hooks.createHook`
- `async_hooks.executionAsyncId`
- `async_hooks.executionAsyncResource`
- `fetch`
- `fs/promises.cp`
* chore: update lru-cache, less lookups, dependabot ignore update

This updates the lru-cache to the latest version that supports
Node.js 18. The version above is ignored in dependabot. It also
ignores path-to-regexp, since that has to stay aligned with the
one used in express.js v4.
Express itself is updated as dev dependencies. That way we should
notice earlier in case more things break.
The cache lookups got a bit optimized to not have to check multiple
times if an entry exists or not.

* chore: outcommend alternative in docker-compose

Only one should be used per port.
* Fix issues related to adding strict-mode

These issues are either just a different behavior in strict-mode,
changes to tests that expect specific lines, or hiding real errors.
Copy link

github-actions bot commented Jul 9, 2025

Overall package size

Self size: 9.61 MB
Deduped: 108.62 MB
No deduping: 109.01 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | @datadog/libdatadog | 0.7.0 | 35.02 MB | 35.02 MB | | @datadog/native-appsec | 9.0.0 | 19.6 MB | 19.61 MB | | @datadog/native-iast-taint-tracking | 4.0.0 | 11.72 MB | 11.73 MB | | @datadog/pprof | 5.9.0 | 9.77 MB | 10.14 MB | | @opentelemetry/core | 1.30.1 | 908.66 kB | 7.16 MB | | protobufjs | 7.5.3 | 2.95 MB | 5.6 MB | | @datadog/wasm-js-rewriter | 4.0.1 | 2.85 MB | 3.58 MB | | @datadog/native-metrics | 3.1.1 | 1.02 MB | 1.43 MB | | @opentelemetry/api | 1.8.0 | 1.21 MB | 1.21 MB | | jsonpath-plus | 10.3.0 | 617.18 kB | 1.08 MB | | import-in-the-middle | 1.14.2 | 122.36 kB | 850.93 kB | | lru-cache | 10.4.3 | 804.3 kB | 804.3 kB | | source-map | 0.7.4 | 226 kB | 226 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | limiter | 3.0.0 | 157.92 kB | 157.92 kB | | pprof-format | 2.1.0 | 111.69 kB | 111.69 kB | | @datadog/sketches-js | 2.1.1 | 109.9 kB | 109.9 kB | | lodash.sortby | 4.7.0 | 75.76 kB | 75.76 kB | | ignore | 7.0.5 | 63.38 kB | 63.38 kB | | istanbul-lib-coverage | 3.2.2 | 34.37 kB | 34.37 kB | | rfdc | 1.4.1 | 27.15 kB | 27.15 kB | | @isaacs/ttlcache | 1.4.1 | 25.2 kB | 25.2 kB | | dc-polyfill | 0.1.9 | 25.11 kB | 25.11 kB | | tlhunter-sorted-set | 0.1.0 | 24.94 kB | 24.94 kB | | shell-quote | 1.8.3 | 23.74 kB | 23.74 kB | | retry | 0.13.1 | 18.85 kB | 18.85 kB | | semifies | 1.0.0 | 15.84 kB | 15.84 kB | | jest-docblock | 29.7.0 | 8.99 kB | 12.76 kB | | crypto-randomuuid | 1.0.0 | 11.18 kB | 11.18 kB | | ttl-set | 1.0.0 | 4.61 kB | 9.69 kB | | mutexify | 1.4.0 | 5.71 kB | 8.74 kB | | path-to-regexp | 0.1.12 | 6.6 kB | 6.6 kB | | koalas | 1.0.2 | 6.47 kB | 6.47 kB | | module-details-from-path | 1.0.4 | 3.96 kB | 3.96 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v5.x@c646449). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             v5.x    #6062   +/-   ##
=======================================
  Coverage        ?   81.84%           
=======================================
  Files           ?      470           
  Lines           ?    19403           
  Branches        ?        0           
=======================================
  Hits            ?    15881           
  Misses          ?     3522           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link

pr-commenter bot commented Jul 9, 2025

Benchmarks

Benchmark execution time: 2025-07-09 05:17:10

Comparing candidate commit edc1655 in PR branch v5.58.1-proposal with baseline commit c646449 in branch v5.x.

Found 60 performance improvements and 0 performance regressions! Performance is the same for 1123 metrics, 45 unstable metrics.

scenario:shimmer-startup-arrow-wrap-18

  • 🟩 cpu_user_time [-50.691ms; -40.655ms] or [-10.270%; -8.237%]
  • 🟩 execution_time [-55.743ms; -49.368ms] or [-9.949%; -8.812%]
  • 🟩 instructions [-178.2M instructions; -140.5M instructions] or [-8.403%; -6.624%]
  • 🟩 max_rss_usage [-17.446MB; -16.135MB] or [-13.206%; -12.213%]

scenario:shimmer-startup-arrow-wrap-20

  • 🟩 cpu_user_time [-57.076ms; -45.981ms] or [-13.214%; -10.646%]
  • 🟩 execution_time [-67.044ms; -57.253ms] or [-13.416%; -11.457%]
  • 🟩 instructions [-212.3M instructions; -173.4M instructions] or [-9.899%; -8.087%]
  • 🟩 max_rss_usage [-20.835MB; -19.801MB] or [-15.852%; -15.066%]

scenario:shimmer-startup-arrow-wrap-22

  • 🟩 cpu_user_time [-40.584ms; -30.560ms] or [-10.038%; -7.559%]
  • 🟩 execution_time [-48.348ms; -39.828ms] or [-10.278%; -8.467%]
  • 🟩 instructions [-194.5M instructions; -164.4M instructions] or [-9.633%; -8.143%]
  • 🟩 max_rss_usage [-17.185MB; -15.884MB] or [-12.678%; -11.718%]

scenario:shimmer-startup-arrow-wrapfn-18

  • 🟩 instructions [-64.4M instructions; -61.1M instructions] or [-6.058%; -5.749%]

scenario:shimmer-startup-arrow-wrapfn-20

  • 🟩 instructions [-62.3M instructions; -57.7M instructions] or [-6.330%; -5.864%]

scenario:shimmer-startup-arrow-wrapfn-22

  • 🟩 instructions [-57.8M instructions; -53.4M instructions] or [-6.184%; -5.718%]

scenario:shimmer-startup-asyncarrow-wrap-18

  • 🟩 cpu_user_time [-49.353ms; -40.569ms] or [-9.448%; -7.766%]
  • 🟩 execution_time [-55.140ms; -49.237ms] or [-9.373%; -8.369%]
  • 🟩 instructions [-179.9M instructions; -136.3M instructions] or [-8.071%; -6.116%]
  • 🟩 max_rss_usage [-17.281MB; -16.267MB] or [-13.114%; -12.345%]

scenario:shimmer-startup-asyncarrow-wrap-20

  • 🟩 cpu_user_time [-52.748ms; -38.906ms] or [-11.805%; -8.707%]
  • 🟩 execution_time [-64.727ms; -50.758ms] or [-12.570%; -9.857%]
  • 🟩 instructions [-224.0M instructions; -175.3M instructions] or [-9.961%; -7.797%]
  • 🟩 max_rss_usage [-20.837MB; -19.856MB] or [-15.848%; -15.102%]

scenario:shimmer-startup-asyncarrow-wrap-22

  • 🟩 cpu_user_time [-35.085ms; -24.545ms] or [-8.317%; -5.818%]
  • 🟩 execution_time [-45.052ms; -35.531ms] or [-9.201%; -7.257%]
  • 🟩 instructions [-199.5M instructions; -160.1M instructions] or [-9.378%; -7.524%]
  • 🟩 max_rss_usage [-16.823MB; -15.589MB] or [-12.455%; -11.541%]

scenario:shimmer-startup-asyncdeclared-wrap-18

  • 🟩 cpu_user_time [-44.788ms; -36.040ms] or [-8.616%; -6.933%]
  • 🟩 execution_time [-54.179ms; -48.978ms] or [-9.209%; -8.325%]
  • 🟩 instructions [-177.9M instructions; -139.5M instructions] or [-8.013%; -6.283%]
  • 🟩 max_rss_usage [-17.582MB; -16.518MB] or [-13.359%; -12.551%]

scenario:shimmer-startup-asyncdeclared-wrap-20

  • 🟩 cpu_user_time [-51.791ms; -29.341ms] or [-11.493%; -6.511%]
  • 🟩 execution_time [-65.630ms; -41.974ms] or [-12.668%; -8.102%]
  • 🟩 instructions [-270.7M instructions; -205.3M instructions] or [-12.048%; -9.136%]
  • 🟩 max_rss_usage [-20.823MB; -19.675MB] or [-15.830%; -14.957%]

scenario:shimmer-startup-asyncdeclared-wrap-22

  • 🟩 cpu_user_time [-42.995ms; -32.451ms] or [-10.019%; -7.562%]
  • 🟩 execution_time [-54.002ms; -42.652ms] or [-10.837%; -8.560%]
  • 🟩 instructions [-206.5M instructions; -178.0M instructions] or [-9.659%; -8.323%]
  • 🟩 max_rss_usage [-17.649MB; -16.349MB] or [-12.986%; -12.030%]

scenario:shimmer-startup-declared-wrap-18

  • 🟩 cpu_user_time [-44.765ms; -35.022ms] or [-9.127%; -7.141%]
  • 🟩 execution_time [-52.213ms; -46.720ms] or [-9.319%; -8.338%]
  • 🟩 instructions [-159.1M instructions; -123.0M instructions] or [-7.526%; -5.819%]
  • 🟩 max_rss_usage [-18.051MB; -16.803MB] or [-13.649%; -12.705%]

scenario:shimmer-startup-declared-wrap-20

  • 🟩 cpu_user_time [-57.217ms; -41.112ms] or [-13.165%; -9.459%]
  • 🟩 execution_time [-69.870ms; -52.692ms] or [-13.897%; -10.480%]
  • 🟩 instructions [-189.9M instructions; -157.7M instructions] or [-8.863%; -7.361%]
  • 🟩 max_rss_usage [-20.482MB; -19.441MB] or [-15.627%; -14.833%]

scenario:shimmer-startup-declared-wrap-22

  • 🟩 cpu_user_time [-40.646ms; -28.838ms] or [-9.991%; -7.089%]
  • 🟩 execution_time [-48.384ms; -36.371ms] or [-10.238%; -7.696%]
  • 🟩 instructions [-199.8M instructions; -155.9M instructions] or [-9.866%; -7.699%]
  • 🟩 max_rss_usage [-17.517MB; -15.740MB] or [-12.904%; -11.595%]

scenario:shimmer-startup-declared-wrapfn-18

  • 🟩 cpu_user_time [-27.902ms; -22.626ms] or [-7.153%; -5.801%]
  • 🟩 execution_time [-24.609ms; -21.290ms] or [-6.000%; -5.191%]
  • 🟩 instructions [-165.2M instructions; -154.6M instructions] or [-8.324%; -7.791%]

scenario:shimmer-startup-declared-wrapfn-20

  • 🟩 cpu_user_time [-34.654ms; -25.476ms] or [-10.321%; -7.588%]
  • 🟩 execution_time [-33.827ms; -25.090ms] or [-9.536%; -7.072%]
  • 🟩 instructions [-149.6M instructions; -141.2M instructions] or [-8.446%; -7.973%]

scenario:shimmer-startup-declared-wrapfn-22

  • 🟩 cpu_user_time [-22.768ms; -17.815ms] or [-7.374%; -5.770%]
  • 🟩 execution_time [-21.909ms; -18.475ms] or [-6.659%; -5.616%]
  • 🟩 instructions [-142.1M instructions; -132.9M instructions] or [-8.479%; -7.932%]

Copy link
Author

dd-trace-js bot commented Jul 10, 2025

Superseded by #6069.

@dd-trace-js dd-trace-js bot closed this Jul 10, 2025
@dd-trace-js dd-trace-js bot deleted the v5.58.1-proposal branch July 10, 2025 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants