Commit cf483fb358 for wordpress.org

commit cf483fb358ab71e2c085798e537d349b4600b418
Author: westonruter <westonruter@git.wordpress.org>
Date:   Tue Nov 10 19:27:59 2026 +0000

    Build/Test Tools: Make the file watcher pick up changes reliably.

    The `npm run dev` watcher often missed changes entirely, such as edits to `src/js/_enqueues/lib/emoji-loader.js`. The causes lay in grunt-contrib-watch and its gaze dependency, so they could not be fixed through configuration:
    * Gaze enumerated every file under a pattern before applying exclusions, including every installed plugin and bundled `node_modules` directory, which could block the watcher for minutes.
    * Each file was then polled every two seconds.
    * The watchers were recreated after each run, missing changes made in the meantime.

    The watch task is therefore replaced with one built on chokidar, which uses native file system events, skips ignored directories, and keeps a single watcher for the session. Polling remains available via `CHOKIDAR_USEPOLLING=1` for network drives and Windows drives accessed from WSL. Version 4 of chokidar is used, matching `@wordpress/build` in Gutenberg, since version 5 is ESM-only.

    The new watch task also changes what is rebuilt:
    * Only the files that the build uses are now watched, and the `all` target copies the same files that `copy:files` does instead of everything in `src`.
    * The `:dynamic` task configuration is now built from all files changed together and reset on each run. Previously only the last changed file was rebuilt, and a stale `clean:dynamic` list could delete uploaded files.
    * Changed scripts are minified by the same uglify target as in the build.
    * When the Gruntfile changes, the watcher restarts in a new process, and the previous one keeps watching until the new one is ready, so edits made during the restart are still built.

    A new opt-in `--symlink` option for `npm run build:dev` and `npm run dev` symlinks the scripts copied unchanged from `src/js/_enqueues`, so edits take effect without the watcher. It is opt-in because Docker Desktop's file sharing can fail to read a path that switches between a file and a symlink until the environment is restarted.

    Developed in https://github.com/WordPress/wordpress-develop/pull/15863.
    Follow-up to r43309, r43324, r43327, r44359, r56461, r61475.

    Props westonruter, lancewillett, siliconforks, sirlouen.
    See #44271, #63606, #64563.
    Fixes #66638, #63605.

    Built from https://develop.svn.wordpress.org/trunk@65396


    git-svn-id: http://core.svn.wordpress.org/trunk@64535 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/version.php b/wp-includes/version.php
index 1492d479dc..c1c83deb26 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-beta5-65395';
+$wp_version = '7.2-beta5-65396';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.