Make WordPress Core


Ignore:
Timestamp:
01/27/2026 07:04:01 PM (6 weeks ago)
Author:
westonruter
Message:

External Libraries: Upgrade CodeMirror to latest v5 in addition to updating CSSLint, Esprima, HTMLHint, and JSONLint.

This installs npm packages for codemirror, csslint, esprima, htmlhint, and jsonlint to replace the libraries which had been copied into SVN. A new grunt build:codemirror task is responsible for building CodeMirror as part of the build process. This finally revisits the original CodeMirror integration which was originally developed in the Better Code Editing feature plugin in 2017.

Package Old Version New Version
codemirror 5.29.1-alpha-ee20357 5.65.20
esprima 4.0.0 4.0.1
jsonlint 1.6.2 1.6.3
htmlhint 0.9.14-xwp 1.8.0

Follow-up to [41376].

Props westonruter, jonsurrell, tobiasbg, desrosj, adamsilverstein, WraithKenny, rafa8626, netweb.
See #12423.
Fixes #48456, #41870.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r61526 r61539  
    38393839            'backbone'                         => array( 'backbone' ),
    38403840            'clipboard'                        => array( 'clipboard' ),
     3841            'codemirror'                       => array( 'codemirror', 'wp-codemirror' ),
    38413842            'core-js-url-browser'              => array( 'core-js-url-browser', 'wp-polyfill-url' ),
     3843            'csslint'                          => array( 'csslint' ),
    38423844            'element-closest'                  => array( 'element-closest', 'wp-polyfill-element-closest' ),
     3845            'esprima'                          => array( 'esprima' ),
    38433846            'formdata-polyfill'                => array( 'formdata-polyfill', 'wp-polyfill-formdata' ),
    38443847            'imagesloaded'                     => array( 'imagesloaded' ),
     
    38473850            'jquery-form'                      => array( 'jquery-form' ),
    38483851            'jquery-hoverintent'               => array( 'jquery-hoverintent', 'hoverIntent' ),
     3852            'htmlhint'                         => array( 'htmlhint' ),
     3853            'jsonlint'                         => array( 'jsonlint' ),
    38493854            'lodash'                           => array( 'lodash' ),
    38503855            'masonry'                          => array( 'masonry-layout', 'masonry' ),
Note: See TracChangeset for help on using the changeset viewer.