Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 58a8e1d
Choose a base ref
...
head repository: nodejs/node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e0c9637
Choose a head ref
  • 4 commits
  • 39 files changed
  • 3 contributors

Commits on Apr 19, 2026

  1. debugger: add edit-free runtime expression probes to node inspect

    Add a non-interactive probe mode to `node inspect` for inspecting
    runtime values in a run-to-completion application. This allows
    users to perform printf-style debugging without having to modify
    the application code and clean up afterwards, it also supports
    structured output to be consumed by tools.
    
    Probe mode launches the application, sets one or more source
    breakpoints, evaluates one expression at each hit, and prints a
    single text or JSON report when execution ends.
    
    Interface:
    
    node inspect [--json] [--preview] [--timeout=<ms>] [--port=<port>]
      --probe <file>:<line>[:<col>] --expr <expr> ...
      [--] <script> [args...]
    
    Example:
    
    ```js
    // cli.js
    let maxRSS = 0;
    for (let i = 0; i < 2; i++) {
      const { rss } = process.memoryUsage();
      maxRSS = Math.max(maxRSS, rss);
    }
    ```
    
    ```
    $ node inspect --probe cli.js:5 --expr 'rss' cli.js
    Hit 1 at cli.js:5
      rss = 54935552
    Hit 2 at cli.js:5
      rss = 55083008
    Completed
    ```
    
    (Prettified JSON to fit in commit message restrictions).
    
    ```js
    $ node inspect --json --probe cli.js:5 --expr 'rss' cli.js
    {"v":1,"probes":[{"expr":"rss","target":["cli.js",5]}],
    "results":[
      {"probe":0,"event":"hit","hit":1,
       "result":{"type":"number","value":55443456,
                 "description":"55443456"}},
      {"probe":0,"event":"hit","hit":2,
       "result":{"type":"number","value":55574528,
                 "description":"55574528"}},
      {"event":"completed"}]}
    ```
    
    Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
    PR-URL: #62713
    Reviewed-By: Jan Martin <jan.krems@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    joyeecheung authored Apr 19, 2026
    Configuration menu
    Copy the full SHA
    a79e224 View commit details
    Browse the repository at this point in the history
  2. lib: add new methods and error codes

    Signed-off-by: Paolo Insogna <paolo@cowtech.it>
    PR-URL: #62762
    Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Bryan English <bryan@bryanenglish.com>
    ShogunPanda authored Apr 19, 2026
    Configuration menu
    Copy the full SHA
    14e16db View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2026

  1. build: add --enable-all-experimentals build flag

    Signed-off-by: Paolo Insogna <paolo@cowtech.it>
    PR-URL: #62755
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
    ShogunPanda authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    7560670 View commit details
    Browse the repository at this point in the history
  2. tools: exclude @node-core/doc-kit from dependabot cooldown

    `@node-core/doc-kit` is an internal package maintained within the nodejs
    organization, which is unlikely to be a direct source of supply-chain
    attack. The cooldown only slow down the propagation of new improvements
    from doc-kit to Node.js repo and causes surprises.
    
    The cooldown should be configured in the `doc-kit` repository instead.
    Currently there is a 3-day cooldown. Maybe we need to increase that to
    match the 5-day cooldown used in this repository.
    
    This patch excludes `@node-core/doc-kit` from the cooldown.
    Note that `@node-core/doc-kit` is the only dependency in `tools/doc`.
    But to be future proof, I did't remove the cooldown directly.
    
    PR-URL: #62775
    Reviewed-By: Claudio Wunder <cwunder@gnome.org>
    Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
    Reviewed-By: Aviv Keller <me@aviv.sh>
    Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
    kxxt authored Apr 20, 2026
    Configuration menu
    Copy the full SHA
    e0c9637 View commit details
    Browse the repository at this point in the history
Loading