- The bundled
eslintdependency has been upgraded from v8 to v10. - The
lint-jsscript now uses flat config (eslint.config.*) by default. Legacy.eslintrc.*files are still detected as a fallback, but this support is deprecated and will be removed in a future version. - The default config shipped with
wp-scriptshas changed fromconfig/.eslintrc.jstoconfig/eslint.config.cjs.
- The bundled
eslintdependency has been updated from^8.3.0to^8.57.1(#74316).
- The
lint-jsscript now includes.cjs,.mjs,.cts, and.mtsas default extensions to lint. This is considered a breaking change because the script may now surface lint errors in your project which would not have been previously identified.
- Remove deprecated
clean-webpack-plugindependency in favor of webpack's native cleaning functionality (#71080)
- Fix:
--blocks-manifestCLI flag doesn't work when the directory name has space (#69766).
- Add
--blocks-manifestCLI flag to generate a PHP file containing block metadata from allblock.jsonfiles in the project (#69578).
- Recommend listing JavaScript entry points as paths passed to the
startandbuildcommands (#68251). - Introduce a new option
--source-pathto customize the source directory used with thestartandbuildcommands (#68251).
- The bundled
rtlcss-webpack-plugindependency has been replaced with a modified fork of the plugin to fix issues with the original package (#68201). - The bundled
sassdependency has been updated from^1.50.0to^1.54.0(#68380).
- The bundled
sassdependency has been updated from^1.35.2to^1.50.1(#67572). - The bundled
sass-loaderdependency has been updated from^12.1.0to^16.0.3(#67572). - The bundled
mini-css-extract-plugindependency has been updated from^2.5.1to^2.9.2(#67572). - The bundled
webpackdependency has been updated from^5.95.0to^5.97.0(#67572). - The bundled
cross-spawndependency has been updated from^5.1.0to^7.0.6(#67708). - The bundled
jest-dev-serverdependency has been updated from^9.0.1to^10.1.4(#67708). - The bundled
puppeteer-coredependency has been updated from^23.1.0to^23.10.1(#67708).
- Make React Fast Refresh in the
startcommand work with multiple blocks (64924).
- Revert changes from #61121 that inlined CSS files imported from other CSS files before optimization in the
buildcommand.
- Make
startscript more resilient for developer errors (#66752).
- Add BlueOak-1.0.0 the GPLv2-compatible licenses recognized by check-licenses (#66139).
- Add an optional
--root-folderargument to theplugin-zipcommand (#61375). By default, the command will use the plugin's name as the root folder of the zip. If the change in the behavior impacted your workflow, you could pass--no-root-folderto remove the root folder.
- Refactor to extract license related logic to a reusable module (#66179).
- Add new
build-blocks-manifestcommand to generate a PHP file containing block metadata from allblock.jsonfiles in a project (#65866).
- Updated
stylelintdependency to^16.8.2(#64828). - Switched default config from
@wordpress/stylelint-config/scssto use@wordpress/stylelint-config/scss-stylisticto keep stylistic rules (#64828).
- Fixed the issue with having 5 high severity vulnerabilities by upgrading the
puppeteer-corepackage to the latest major version^23.1.0(#64597).
- Inlines CSS files imported from other CSS files before optimization in the
buildcommand (#61121).
- Added chunk filename in webpack config to avoid reading stale files (#58176).
- Update webpack configuration for the
buildandstartcommands to automatically copy PHP files listed in thevariationsfield ofblock.jsonfiles from the source to the build folder (#63098).
Note If you're using @wordpress/scripts for building JS scripts to target WordPress 6.5 or earlier, you should not upgrade to this version and continue using @wordpress/scripts@27.
- Use React's automatic runtime to transform JSX (#61692).
- Variables like
process.env.IS_GUTENBERG_PLUGINhave been replaced byglobalThis.IS_GUTENBERG_PLUGIN. Build systems usingprocess.envshould be updated (#61486). - Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Add RTL support when building CSS styles with
buildandstartscripts (#61540).
- Add experimental support for
viewScriptModulefield in block.json forbuildandstartscripts (#57437).
- Ensure that watched module builds detect block.json changes (#57927).
- Experimental support for
viewModulefield in block.json is deprecated in favor ofviewScriptModule(#57437).
- Add experimental support for
viewModulefield in block.json forbuildandstartscripts (#57461).
- Drop support for Node.js versions < 18.
- Fix CSS imports not minified (#56516).
- The bundled
jest-dev-serverdependency has been updated from^6.0.2to^9.0.1(#33287).
- The bundled
@pmmmwh/react-refresh-webpack-plugindependency has been updated from requiring^0.5.2to requiring^0.5.11(#54657). - The bundled
browserslistdependency has been updated from requiring^4.21.9to requiring^4.21.10(#54657). - The bundled
react-refreshdependency has been updated from requiring^0.10.0to requiring^0.14.0(#54657). - The bundled
webpackdependency has been updated from requiring^5.47.1to requiring^5.88.2(#54657). - The bundled
webpack-bundle-analyzerdependency has been updated from requiring^4.4.2to requiring^4.9.1(#54657). - The bundled
webpack-clidependency has been updated from requiring^4.9.1to requiring^5.1.4(#54657). - The bundled
webpack-dev-serverdependency has been updated from requiring^4.4.0to requiring^4.15.1(#54657).
- Added support for
test-playwrightscript (#53108). - The bundled
wp-prettierdependency has been upgraded from2.8.5to3.0.3(#54539).
- Correctly resolve entry points when the directory is symlinked (#54212).
- Updated
npm-package-json-lintpeer dependency to require v6.0.0 #53636. - The bundled
@svgr/webpackdependency has been updated from requiring ^6.2.1 to requiring ^8.0.1 (#53630). - The bundled
cssnanodependency has been updated from requiring ^5.07 to requiring ^6.0.1 (#53630).
- Fix prevent watch mode from aborting when encountering a
block.jsonfile that contains invalid JSON. (#51971)
- The bundled
terser-webpack-plugindependency has been updated from requiring^5.1.4to requiring^5.3.9(#50994). - Optimize updating render paths when developing blocks with the
startcommand (#51162).
- Ensure files listed in
renderfield ofblock.jsonfiles are always copied to the build folder when using thestartcommand (#50939).
- License check script supports conjunctive (AND) licenses (46801).
- The bundled
wp-prettierdependency has been upgraded from2.6.2to2.8.5(#49258).
- Started using Jest v29 instead of v27 as a dependency. See breaking changes in Jest 28 and in jest 29 (#47388)
- Fix
render.phpisn't copied in Windows OS (#48735).
- The
WP_DEVTOOLenvironment variable can now be used to set the Webpack devtool option for sourcemaps in production builds (#46812). Previously, this only worked for development builds. - Update default webpack config and lint-style script to allow PostCSS (
.pcssextension) file usage (#45352). - Add
--no-watchoption to allow creating the unminified/dev JS without starting the watcher (#44237).
- Updated dependencies to require React 18 (45235)
- Update the default webpack config to allow
webpimage format (#43880). - Update webpack configuration for the
buildandstartcommands to automatically copy PHP files listed in therenderfield ofblock.jsonfiles from the source to the build folder (#43917).
- Increase the minimum Node.js version to 14 and minimum npm version to 6.14.4 (#43141).
- The bundled
@wordpress/eslint-pluginpackage got updated to the new major version and the default linting for Jest unit tests is now handled in the default config in this package (#43272).
- Packages: Replace
is-plain-objwithis-plain-object(#43511).
- Jest Preset: Improve
is-plain-objtransformation ignore (#43271).
- Jest Preset: Ignore
is-plain-objtransformation (#43179).
- Fix the incorrect exit error code when status missing in
webpackcall forbuildandstartcommands (#42396).
- The bundled
wp-prettierdependency has been upgraded from2.2.1to2.6.2(#40542).
- Fix incorrect handling in
plugin-zipfor root-level files and some specific platform conditions (#41439).
- Enable by default code formatting for JSON files in the
formatcommand (#40994). You can opt-out of this behavior by providing a custom file matcher, example:wp-scripts format src/**/*.js. - Support tsx files in
viewScript,script,editorScript(#41068).
- Fix: env unit test fails on Windows (#41070)
- Remove
lint-md-jsscript that was broken for some time and it's extremely hard to make it work correctly with the recommended ESLint config in Markdown files (#40511). - Remove the previously deprecated and undocumented
format-jscommand (#40512). You should use theformatcommand instead.
- Add
--dist-tagflag to thepackages-updatecommand to allow specifying a custom dist-tag when updating npm packages ([#40514](https://github.com/WordPress/gutenberg/pull/
- Update
markdownlintandmarkdownlint-clito the latest versions (#40479).
- Add
--webpack-src-dirCLI flag to allow customizing the source code directory (srcby default) (#39618).
- Add
vendor/to.markdownlintignore, to matchlint-md-docsdocs (#39724). - Include files with
.jsxextension in the build process (#39613). - Ensure that the default logic for entry points in the build commands is executed only when used the default config (#39618).
- The bundled
@wordpress/eslint-pluginpackage got updated to the new major version, but the breaking changes included don't affect this package (#39244).
- Add
--webpack-copy-phpCLI flag to opt-in to copying php files fromsrcand its subfolders to the output directory (buildby default) (#39171).
- The bundled
@svgr/webpackdependency has been updated from requiring^5.5.0to requiring^6.2.1(#38866). See official migration guide to v6 for details.
- Automatically copy PHP files located in the
srcfolder and its subfolders to the output directory (buildby default) (#38715).
- Entry points are not detected in Windows OS (#38781).
- Return a default entry object in the
buildcommand when no entry files discovered in the project (#38737).
- The bundled
puppeteer-coredependency has been updated from requiring^11.0.0to requiring^13.2.0(#37078).
- Fix the handling for entry points when running
buildcommand (#38584).
- Fix the
buildcommand that does not generate assets on Windows OS (#38348). - Adds fallback to
src/index.jswhen no valid scripts discovered in metadata files when running thebuildcommand (#38367).
- Ensure that React Fast Refresh is not wired when it isn't explicitly enabled with
--hotCLI argument when running thestartcommand.
- The bundled
eslintdependency has been updated from requiring^7.17.0to requiring^8.3.0(#36283). - The
puppeteer-coredependency has been updated from requiring^10.1.0to requiring^11.0.0(see Breaking Changes, #36040). - Removed support for live reload in the
startcommand (#28273). - The bundled
webpack-clidependency has been updated to the next major version^4.9.1(#28273). - The peer
jestdependency has been updated from requiring>=26to requiring>=27(see Breaking Changes, #33287). - The bundled
jest-dev-serverdependency has been updated to the next major version^6.0.0(#33287). - The bundled
stylelintdependency has been updated from requiring^13.8.0to requiring^14.2.0(#38091).
- Added a new
plugin-zipcommand to create a zip file for a WordPress plugin (#37687). - Added optional support for React Fast Refresh in the
startcommand. It can be activated with--hotCLI argument (#28273). For now, it requires that WordPress has theSCRIPT_DEBUGflag enabled and the Gutenberg plugin installed. - Automatically copy
block.jsonfiles located in thesrcfolder and its subfolders to the output folder (buildby default) (#37612). - Scan the
srcdirectory forblock.jsonfiles to detect defined scripts to use them as entry points with thestartandbuildcommands. (#37661).
- Disable
selector-class-patternrule when linting styles until we have more flexible handling (#37531).
- Prevent the
CleanWebpackPluginplugin from deleting webpack assets during multi-configuration builds #35980. - Remove temporary workaround fixing CommonJS import for
mini-css-extract-plugin#38027.
- The bundled
read-pkg-updependency has been updated from requiring^1.0.1to requiring^7.0.1(#37395).
- Added temporary workaround to fix broken CommonJS import of
mini-css-extract-plugin#38004.
- Add basic support for TypeScript in
build,start,test-e2eandtest-unit-jscommands (#36260).
- The bundled
browserslistdependency has been updated from requiring^4.16.6to requiring^4.17.6(#36244). - Updated the default ESLint config to work correctly with the latest version of
@wordpress/eslint-plugin(#36244).
- Increase the timeout for e2e tests to 30 seconds (#35983).
- The webpack config was updated to no longer include the polyfill by default when creating the
assets.phpfile. If your usage requires thewp-polyfill, you must explicitly set it as a dependency (#34536].
- Allow customization of the
ARTIFACTS_PATHin thejest-environment-puppeteerfailed test reporter via theWP_ARTIFACTS_PATHenvironment variable (#35371).
- The bundled
jest-dev-serverdependency has been updated to the next major version^5.0.3(#34560).
- Bring back support for SVG files in CSS (#34394). It wasn't correctly migrated when integrating webpack v5.
- Convert legacy entry point arguments supported in webpack 4 for compatibility with webpack 5 (#34264).
- Increase the minimum Node.js version to v12.13 matching requirements from bundled dependencies (#33818).
- The bundled
webpackdependency has been updated to the next major version^5.47.1(see Breaking Changes, #33818). - The bundled
webpack-clidependency has been updated to the next major version^4.7.2(#33818). - The bundled
css-loaderdependency has been updated from requiring^5.1.3to requiring^6.2.0(#33818). - The bundled
file-loaderdependency has been removed (#33818). - The bundled
ignore-emit-webpack-plugindependency has been removed (#33818). - The bundled
mini-css-extract-plugindependency has been updated from requiring^1.3.9to requiring^2.1.0(#33818). - The bundled
postcss-loaderdependency has been updated from requiring^4.2.0to requiring^6.1.1(#33818). - The bundled
sass-loaderdependency has been updated from requiring^10.1.1to requiring^12.1.0(#33818). - The bundled
source-map-loaderdependency has been updated from requiring^0.2.4to requiring^3.0.0(#33818). - The bundled
thread-loaderdependency has been removed (#33818). - The bundled
terser-webpack-plugindependency has been updated from requiring^3.0.3to requiring^5.1.4(#33818). - The bundled
webpack-live-reload-plugindependency has been updated from requiring^2.3.0to requiring^3.0.1(#33818). - The bundled
webpack-sourcesdependency has been removed (#33818).
- The bundled
@svgr/webpackdependency has been updated from requiring^5.2.0to requiring^5.5.0(#33818). - The bundled
webpack-bundle-analyzerdependency has been updated from requiring^4.2.0to requiring^4.4.2(#33818).
- Add missing fallback for target in webpack 5 config (#34112),
- Update
eslint-plugin-markdownpackage to2.20.0(#33432). - Update
sasspackage to1.35.2(#33433). - Update webpack config to minimize also CSS files (#33676).
- The default PostCSS config uses cssnano to minimize CSS output (#33750).
- Upgrade
puppeteer-core(^9.0.0) to version^10.1.0. This version drops support for Node v10.
- Add .markdownlintignore config and reference from lint-md-docs script (#32633).
- The default Babel configuration has changed to respect a local Browserslist configuration.
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
- The bundled
puppeteer-core(^5.5.0) dependency has been upgraded to version^9.0.0. Puppeteer uses Chromium v91 instead of Chromium v88. See the full list of breaking changes of 9.0.0 and lower versions (#31138).
- Include a Jest Reporter that formats test results for GitHub Actions annotations (#31041).
- Have the
formatcommand ignore files listed in a.prettierignorefile, add a fallback.prettierignoreto the package (30844). - The e2e tests are now using
jest-circusas the test runner. This enable us to capture screenshots at the time the tests failed. The unit tests are also using the same test runner for consistency (#28449, #31178).
- Update
postcssdependency to the latest patch version. Versions before 8.2.10 are vulnerable to Regular Expression Denial of Service (ReDoS) during source map parsing (#31685).
- Add
postcssas a dependency to ensure that the correct version gets installed.
- Rename
format-jsscript toformat(#30240). - Include YAML files when formatting files with
format(#30240). - The bundled
css-loaderdependency has been updated from requiring^3.5.2to requiring^5.1.3(#27821). - The bundled
mini-css-extract-plugindependency has been updated from requiring^0.9.0to requiring^1.3.9(#27821). - The bundled
postcss-loaderdependency has been updated from requiring^3.0.0to requiring^4.2.0(#27821). - The bundled
sass-loaderdependency has been updated from requiring^8.0.2to requiring^10.1.1(#27821). - The bundled
thread-loaderdependency has been updated from requiring^2.1.3to requiring^3.0.1(#27821). - The bundled
url-loaderdependency has been updated from requiring^3.0.0to requiring^4.1.1(#27821).
buildandstartcommand now bundle files ending with.module.cssas CSS modules and extractsstyle.module.css(#29182).
- The bundled
webpackdependency has been updated from requiring4.42.0to requiring^4.46.0(#27821).
- The bundled
babel-loaderdependency has been updated from requiring^8.1.0to requiring^8.2.2(#30018).
- Lint TypeScript files as part of
lint-js. #27143
- Default
check-enginescommand to theenginesconfig inpackage.jsonfile of the current project (#29066).
- Make
check-licensescommand compatible with npm v7 (#28909). - Add
Python 2.0to non-GPL compatible OSS licenses allowed for development incheck-licensescommand (#29968). - Updated
check-node-versionto version^4.1.0that no longer processes unrelated engines withcheck-enginescommand (#29066). - Replace
jest-puppeteerwith the forked version ofjest-environment-puppeteerto usepuppeteer-coredirectly (#29418).
- Increase the minimum Node.js version to 12 (#27934).
- The bundled
jestdependency has been updated to the next major version^26.6.3(see Breaking Changes, #27956). - The bundled
@wordpress/eslint-plugindependency has been updated to the next major version^8.0.0. There are new ESLint rules enabled in the recommended config used bylint-jscommand. - The bundled
stylelint-config-wordpressdependency has been replaced with@wordpress/stylelint-config(#27810)[#27810]. - The bundled
puppeteer-core(3.0.0) dependency has been upgraded to version5.5.0. Puppeteer uses Chromium v88 instead of Chromium v71. See the full list of breaking changes of 4.0.0 and 5.0.0.
wordpresssubfolder is no longer ignored when detecting files for testing, linting or formatting.- The bundled
eslintdependency has been updated from requiring^7.1.0to requiring^7.17.0(#27965). - Make it possible to transpile
.jsxfiles withbuildandstartcommands (#28002). - Add support for static assets (fonts and images) for
buildandstartcommands (#28043).
- Ensure that
check-enginesuses the same default version of Node.js and npm as this package (#28143). - Prevent translation function names from being mangled to ensure stings are extracted (#28231).
- The bundled
webpack-bundle-analyzerdependency has been updated from requiring^3.6.1to requiring^4.2.0.
- Fix multiple build (
buildcommand) runtimes conflicting when using globals (#27985).
- Autoformat TypeScript files (
*.tsand*.tsx) informat-jsscript (#27138)[#27138]. - The bundled
wp-prettierdependency has been upgraded from2.0.5to2.2.1. - The bundled Babel dependency has been upgraded from
7.11to7.12.
- The bundled
ignore-emit-webpack-plugindependency has been updated from requiring2.0.3to requiring^2.0.6.
- Ignore
/vendorfolder when searching for files to lint or format.
- Temporary pin
ignore-emit-webpack-pluginto the version2.0.3to fix a known issue with version2.0.4(GitHub issue).
- Update webpack configuration to preserve translator comments in minified output.
- Allow the CSS, SVG, and Sass loaders to process files from node_modules directory.
- Improve the way licenses are validated with
check-licensesby falling back to license files verification when the entry inpackage.jsondoesn't contain an allowed match (#23550). - Fix
buildscript error when importingstyle.cssfiles (#23710). - Exclude
node_modulesfrom source map processing instartscript (#23711).
- The bundled
stylelintdependency has been updated from requiring^9.10.1to requiring^13.6.0. - The bundled
stylelint-config-wordpressdependency has been updated from requiring^13.1.0to requiring^17.0.0.
- During rebuilds, all webpack assets that are not used anymore will be removed automatically.
- The
envfamily of scripts has been removed. Finally, exceeded in functionality and replaced bywp-env. - The default Babel configuration has changed to only support stage-4 proposals. This affects the
buildandstartcommands that use the bundled Babel configuration; if a project provides its own, this change doesn't affect it (#22083). - The bundled
wp-prettierdependency has been upgraded from1.19.1to2.0.5. Refer to the Prettier 2.0 "2020" blog post for full details about the major changes included in Prettier 2.0. - The bundled
eslintdependency has been updated from requiring^6.8.0to requiring^7.1.0.
- The PostCSS loader now gives preference to a
postcss.config.jsconfiguration file if present.
- Update webpack configuration to not run the Sass loader on CSS files. It's now limited to .scss and .sass files.
- Fix broken
style.(sc|sa|c)sshandling in thebuildandstartscripts (#23127).
- New
--webpack-no-externalsflag added tobuildandstartscripts. It disables scripts' assets generation, and omits the list of default externals (#22310). - New
--webpack-bundle-analyzerflag added tobuildandstartscripts. It enables visualization for the size of webpack output files with an interactive zoomable treemap (#22310). - New
--webpack--devtoolflag added tostartscript. It controls how source maps are generated. See options at https://webpack.js.org/configuration/devtool/#devtool (#22310). - The
test-e2eandtest-unitscripts will now disambiguate custom configurations, preferring ajest-e2e.config.js,jest-e2e.config.json,jest-unit.config.js, orjest-unit.config.jsonJest configuration file if present, falling back tojest.config.jsorjest.config.json. This allows for configurations which should only apply to one or the other test variant.
- Add new capability to
buildandstartscripts that automates handling CSS, SASS or SCSS files by importing them from JavaScript code (#21730). You can find more details about CSS assets management in webpack at https://webpack.js.org/guides/asset-management/#loading-css.
- Bundle analysis in
buildscript now runs with module concatenation disabled. This represents the size of individual modules more accurately, at the cost of not providing an exact byte-for-byte match to the final size in the production chunk.
envscript was marked as deprecated. We recommend using@wordpress/envpackage instead that lets you easily set up a local WordPress environment for building and testing plugins and themes.
- The bundled
puppeteer(^2.0.0) dependency has been replaced withpuppeteer-corein version3.0.0. Puppeteer uses Chromium v81 instead of Chromium v79. See the full list of changes. It also allowed preventing Chromium installation together with@wordpress/scripts. It happens now on-demand when runningtest-e2escript, and it re-triggers only when a new version is required.
- Add support for passing node CLI options to scripts (#21631).
- Add debugging support for
test-unit-jsscript (#21631). Tests can be debugged by any inspector client that supports the Chrome DevTools Protocol using the--inspect-brkoption. - Add debugging support for
test-e2escript (#21861). Tests can be debugged by using the--inspect-brkoption and a new--puppeteer-devtoolsoption (orPUPPETEER_DEVTOOLS="true"environment variable).
- The bundled
npm-package-json-lintdependency has been updated from requiring^4.0.3to requiring^5.0.0(#21597). Breaking changes don't break anything in this package. It fixes the abrupt shutdown when"description"field inpackage.jsonis empty. - Update
check-licensesscript to parse JSON dependency tree recursively so sub-dependencies of packages passed in--ignoreflag are ignored as well.
- The bundled
jestdependency has been updated from requiring^24.9.0to requiring^25.3.0(see Breaking Changes, #20766).
- The bundled
eslintdependency has been updated from requiring^6.1.0to requiring^6.8.0(#21424).
- Incompatibility between
@svgr/webpackin version4.3.3andurl-loaderin version3.0.0was fixed by bumping@svgr/webpackto^5.2.0. - All webpack dependencies got minor version update if applicable.
- Package depends now on the shared Prettier config exposed in
@wordpress/prettier-configdependency (#20026).
- Ensure
packages-updatework whendependenciesordevDependenciesare missing in thepackage.jsonfile (#20408).
- Ensure the default Prettier config is used in the
lint-jsscript when no Prettier config is found in the project (#20071).
- This package requires now
nodev10.0.0 or later, andnpmv6.9.0 or later (#18048). - The minimum version required for
npmincheck-enginesscript was increased to6.9.0+(#18048).
- Add SVGR support to compile SVG files to React components using the
@svgr/webpackplugin (#18243). - Add
format-jsscript to format JavaScript source code, it uses thewp-prettier– Prettier fork adjusted to WordPress coding style guidelines (#18048). - Add
lint-md-jsscript to lint JavaScript source code in markdown files, uses theeslint-plugin-markdownplugin (#19518). - Add
lint-md-docsscript to lint the markup of markdown files, uses themarkdownlintmodule (#19855). - Add
packages-updatescript to update WordPress packages to the latest version automatically (#19448).
- Fixes and updates valid rc configuration filenames for Babel, ESLint, markdownlint, npmpackagejsonlint, stylelint, and Prettier (#19994).
- Update
jest-preset-defaultdependency to fix preset file extension for inclusion in NPM deployments (#19306).
- Added support to collapse or omit successful test results from Travis CI builds (#16744)
- The bundled
npm-package-json-lintdependency has been updated from requiring^3.6.0to requiring^4.0.3(#18054). Please see the migration guide. Note:npmPackageJsonLintConfigprop in thepackage.jsonfile needs to be renamed tonpmpackagejsonlint. - The bundled
puppeteerdependency has been updated from requiring^1.19.0to requiring^2.0.0(#18205). It uses Chromium v79 instead of Chromium v77. See the full list of changes.
- The bundled
webpackdependency has been updated from requiring4.8.3to requiring^4.41.0(#17746).
- Added a temporary workaround for the default config used with
lint-jscommand. It uses linting rules for both e2e and unit tests with all files until override files globbing logic is fixed when usingeslintwith--config(related issue).
- The bundled
@wordpress/dependency-extraction-webpack-plugindependency has been updated to the next major version^2.0.0.startandbuildscripts save now the generated asset file for each entry point in the new PHP output format.
- Add the new
envfamily of scripts (#17004).
- Add
wordpressfolder to the list of ignored paths in all applicable config files (#17296).
- Test files matching has changed to fix the overlap between two types of tests implemented with
test-e2eandtest-unit. Refer to the documentation of the corresponding scripts to learn about new file discovery rules.
- The bundled
puppeteerdependency has been updated from requiring1.6.1to requiring^1.19.0(#16875). It uses Chromium v77 instead of Chromium v69. - The bundled
jest-puppeteerdependency has been updated from requiring^4.0.0to requiring^4.3.0(#16875). - The bundled
eslintdependency has been updated from requiring^5.16.0to requiring^6.1.0. - The bundled
@wordpress/eslint-plugindependency has been updated to the next major version^3.0.0due to new ESLint rules enabled for all test files.
- Use the SCSS shared
stylelint-config-wordpressconfig so that both CSS and SCSS rules are used (#17060)
- The
buildandstartcommands supports simplified syntax for multiple entry points:wp-scripts build entry-one.js entry-two.js(15982).
- Added missing babel-jest dependency (#16259).
- The
lint-jscommand lints now JS files in the entire project's directories by default (15890). - The
lint-pkg-jsoncommand lints nowpackage.jsonfiles in the entire project's directories by default (15890). - The
lint-stylecommand lints now CSS and SCSS files in the entire project's directories by default (15890). - The
lint-js,lint-pkg-jsonandlint-stylecommands ignore now files located inbuildandnode_modulesfolders by default (15977).
- Leverage
@wordpress/dependency-extraction-webpack-pluginplugin to extract WordPress dependencies. - The bundled
eslintdependency has been updated from requiring^5.12.1to requiring^5.16.0.
- The default Webpack configuration uses
thread-loaderto parallelize Babel processing. - The default Webpack configuration now opts-in to the
cacheDirectoryoption for its Babel loader. - The
source-map-loaderis excluded from production builds. This serves only as an optimization and should otherwise have no impact on build results.
- The
buildandstartcommands will use a default webpack config if none is provided.
- The bundled
eslintdependency has been updated from requiring^4.19.1to requiring^5.12.1(see Migration Guide). - The bundled
jestdependency has been updated from requiring^23.6.0to requiring^24.1.0(see Breaking Changes, #13922). - The bundled
jest-puppeteerdependency has been updated from requiring3.2.1to requiring^4.0.0(#13922).
- Added support for
buildscript (#12837) - Added support for
startscript (#12837) - Updated
npm-package-json-lintdependency #14200
- Avoid inheriting from ESLint configurations in ancestor directories when using the default configuration (#13483)
- Added support for
check-enginesscript (#12721) - Added support for
lint-stylescript (#12722) - Added support for
test-e2escript (#12437) - Update default config provided for
lint-jsscript (#12845)
- Added support for
lint-jsscript (#10504)
- New flag
--ignoreforcheck-licensesscript - Try deferring to LICENSE file for
licensefields which include filename - Add "BSD-3-Clause-W3C" as GPL-compatible
- Resolves an issue where npm package lint script did not work in Windows environments (#9321
- Updated dependencies:
jest,npm-package-json-lintandread-pkg-up
- Updated code to work with Babel 7 (#7832)
- Moved
@WordPress/packagesrepository to@WordPress/gutenberg(#7805)
- Added support for
lint-pkg-jsonscript (#128)
- Fix: Standardized
package.jsonformat (#119)