From 990e0262eb106ae239d4efc816d6518fbf0676f3 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 3 Jul 2024 16:32:18 +0200 Subject: [PATCH 1/5] Scripts: Include variations paths in build --- packages/scripts/config/webpack.config.js | 19 +++++++----- packages/scripts/utils/config.js | 38 +++++++++++++++++------ packages/scripts/utils/index.js | 2 ++ 3 files changed, 41 insertions(+), 18 deletions(-) diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index f306fbd54a8a6b..b3b8af22b58127 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -31,7 +31,7 @@ const { hasPostCSSConfig, getWordPressSrcDirectory, getWebpackEntryPoints, - getRenderPropPaths, + getPhpFilePaths, getAsBooleanFromENV, getBlockJsonModuleFields, getBlockJsonScriptFields, @@ -50,23 +50,26 @@ const hasExperimentalModulesFlag = getAsBooleanFromENV( ); /** - * The plugin recomputes the render paths once on each compilation. It is necessary to avoid repeating processing + * The plugin recomputes PHP file paths once on each compilation. It is necessary to avoid repeating processing * when filtering every discovered PHP file in the source folder. This is the most performant way to ensure that * changes in `block.json` files are picked up in watch mode. */ -class RenderPathsPlugin { +class PhpFilePathsPlugin { /** - * Paths with the `render` props included in `block.json` files. + * PHP file paths from `render` and `variations` props found in `block.json` files. * * @type {string[]} */ - static renderPaths; + static paths; apply( compiler ) { const pluginName = this.constructor.name; compiler.hooks.thisCompilation.tap( pluginName, () => { - this.constructor.renderPaths = getRenderPropPaths(); + this.constructor.paths = getPhpFilePaths( [ + 'render', + 'variations', + ] ); } ); } } @@ -321,7 +324,7 @@ const scriptConfig = { cleanStaleWebpackAssets: false, } ), - new RenderPathsPlugin(), + new PhpFilePathsPlugin(), new CopyWebpackPlugin( { patterns: [ { @@ -371,7 +374,7 @@ const scriptConfig = { filter: ( filepath ) => { return ( process.env.WP_COPY_PHP_FILES_TO_DIST || - RenderPathsPlugin.renderPaths.includes( + PhpFilePathsPlugin.paths.includes( realpathSync( filepath ).replace( /\\/g, '/' ) ) ); diff --git a/packages/scripts/utils/config.js b/packages/scripts/utils/config.js index 8b1bbb1ca50590..44bcfb916b1f19 100644 --- a/packages/scripts/utils/config.js +++ b/packages/scripts/utils/config.js @@ -354,6 +354,16 @@ function getWebpackEntryPoints( buildType ) { * @return {Array} The list of all the `render` prop paths included in `block.json` files. */ function getRenderPropPaths() { + return getPhpFilePaths( [ 'render' ] ); +} + +/** + * Returns the list of PHP file paths found in `block.json` files for the given props. + * + * @param {string[]} props The props to search for in the `block.json` files. + * @return {string[]} The list of PHP file paths. + */ +function getPhpFilePaths( props ) { // Continue only if the source directory exists. if ( ! hasProjectFile( getWordPressSrcDirectory() ) ) { return []; @@ -367,20 +377,29 @@ function getRenderPropPaths() { const srcDirectory = fromProjectRoot( getWordPressSrcDirectory() + sep ); - const renderPaths = blockMetadataFiles.map( ( blockMetadataFile ) => { - const { render } = JSON.parse( readFileSync( blockMetadataFile ) ); - if ( render && render.startsWith( 'file:' ) ) { + return blockMetadataFiles.flatMap( ( blockMetadataFile ) => { + const blockJson = JSON.parse( readFileSync( blockMetadataFile ) ); + + const paths = []; + for ( const prop of props ) { + if ( + typeof blockJson?.[ prop ] !== 'string' || + ! blockJson[ prop ]?.startsWith( 'file:' ) + ) { + continue; + } + // Removes the `file:` prefix. const filepath = join( dirname( blockMetadataFile ), - render.replace( 'file:', '' ) + blockJson[ prop ].replace( 'file:', '' ) ); // Takes the path without the file extension, and relative to the defined source directory. if ( ! filepath.startsWith( srcDirectory ) ) { log( chalk.yellow( - `Skipping "${ render.replace( + `Skipping "${ blockJson[ prop ].replace( 'file:', '' ) }" listed in "${ blockMetadataFile.replace( @@ -389,14 +408,12 @@ function getRenderPropPaths() { ) }". File is located outside of the "${ getWordPressSrcDirectory() }" directory.` ) ); - return false; + continue; } - return filepath.replace( /\\/g, '/' ); + paths.push( filepath.replace( /\\/g, '/' ) ); } - return false; + return paths; } ); - - return renderPaths.filter( ( renderPath ) => renderPath ); } module.exports = { @@ -404,6 +421,7 @@ module.exports = { getWebpackArgs, getWordPressSrcDirectory, getWebpackEntryPoints, + getPhpFilePaths, getRenderPropPaths, hasBabelConfig, hasCssnanoConfig, diff --git a/packages/scripts/utils/index.js b/packages/scripts/utils/index.js index 148895ecbc4edf..7c2a3d5ea34254 100644 --- a/packages/scripts/utils/index.js +++ b/packages/scripts/utils/index.js @@ -16,6 +16,7 @@ const { getWebpackArgs, getWordPressSrcDirectory, getWebpackEntryPoints, + getPhpFilePaths, getRenderPropPaths, hasBabelConfig, hasCssnanoConfig, @@ -43,6 +44,7 @@ module.exports = { getWebpackArgs, getWordPressSrcDirectory, getWebpackEntryPoints, + getPhpFilePaths, getRenderPropPaths, getBlockJsonModuleFields, getBlockJsonScriptFields, From c1c30eb6ebee846955485e1904aed371e4d4d8ef Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 3 Jul 2024 16:55:30 +0200 Subject: [PATCH 2/5] Add Changelog entry --- packages/scripts/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index 4c1d8fa0d1ef32..0155cc24c1051c 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### New Features + +- Update webpack configuration for the `build` and `start` commands to automatically copy PHP files listed in the `variations` field of `block.json` files from the source to the build folder ([#63098](https://github.com/WordPress/gutenberg/pull/63098)). + ## 28.3.0 (2024-07-10) ## 28.2.0 (2024-06-26) From 9c48c06d67d7c4e257fc6179cc5aa262343b0d43 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 3 Jul 2024 16:58:49 +0200 Subject: [PATCH 3/5] Mention variations field in README --- packages/scripts/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/scripts/README.md b/packages/scripts/README.md index af892293e00eb2..9973090a3e11e4 100644 --- a/packages/scripts/README.md +++ b/packages/scripts/README.md @@ -97,7 +97,7 @@ This is how you execute the script with presented setup: - `npm run build` - builds the code for production. - `npm run build:custom` - builds the code for production with two entry points and a custom output directory. Paths for custom entry points are relative to the project root. -- `npm run build:copy-php` - builds the code for production and opts into copying all PHP files from the `src` directory and its subfolders to the output directory. By default, only PHP files listed in the `render` field in the detected `block.json` files get copied. +- `npm run build:copy-php` - builds the code for production and opts into copying all PHP files from the `src` directory and its subfolders to the output directory. By default, only PHP files listed in the `render` and `variations` fields in the detected `block.json` files get copied. - `npm run build:custom-directory` - builds the code for production using the `custom-directory` as the source code directory. This script automatically use the optimized config but sometimes you may want to specify some custom options: @@ -382,7 +382,7 @@ This is how you execute the script with presented setup: - `npm start` - starts the build for development. - `npm run start:hot` - starts the build for development with "Fast Refresh". The page will automatically reload if you make changes to the files. - `npm run start:custom` - starts the build for development which contains two entry points and a custom output directory. Paths for custom entry points are relative to the project root. -- `npm run start:copy-php` - starts the build for development and opts into copying all PHP files from the `src` directory and its subfolders to the output directory. By default, only PHP files listed in the `render` field in the detected `block.json` files get copied. +- `npm run start:copy-php` - starts the build for development and opts into copying all PHP files from the `src` directory and its subfolders to the output directory. By default, only PHP files listed in the `render` and `variations` fields in the detected `block.json` files get copied. - `npm run start:custom-directory` - builds the code for production using the `custom-directory` as the source code directory. This script automatically use the optimized config but sometimes you may want to specify some custom options: From 5fca20b257e320493b65e8ad3c5e5bbdbe09ec96 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Tue, 16 Jul 2024 10:58:32 +0200 Subject: [PATCH 4/5] Make path props configurable --- packages/scripts/config/webpack.config.js | 29 +++++++++++++++++++---- packages/scripts/package.json | 1 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index b3b8af22b58127..508d4d262942d1 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -13,6 +13,7 @@ const RtlCssPlugin = require( 'rtlcss-webpack-plugin' ); const TerserPlugin = require( 'terser-webpack-plugin' ); const { realpathSync } = require( 'fs' ); const { sync: glob } = require( 'fast-glob' ); +const { validate } = require( 'schema-utils' ); /** * WordPress dependencies @@ -49,6 +50,18 @@ const hasExperimentalModulesFlag = getAsBooleanFromENV( 'WP_EXPERIMENTAL_MODULES' ); +const phpFilePathsPluginSchema = { + type: 'object', + properties: { + props: { + type: 'array', + items: { + type: 'string', + }, + }, + }, +}; + /** * The plugin recomputes PHP file paths once on each compilation. It is necessary to avoid repeating processing * when filtering every discovered PHP file in the source folder. This is the most performant way to ensure that @@ -62,14 +75,20 @@ class PhpFilePathsPlugin { */ static paths; + constructor( options = {} ) { + validate( phpFilePathsPluginSchema, options, { + name: 'PHP File Paths Plugin', + baseDataPath: 'options', + } ); + + this.options = options; + } + apply( compiler ) { const pluginName = this.constructor.name; compiler.hooks.thisCompilation.tap( pluginName, () => { - this.constructor.paths = getPhpFilePaths( [ - 'render', - 'variations', - ] ); + this.constructor.paths = getPhpFilePaths( this.options.props ); } ); } } @@ -324,7 +343,7 @@ const scriptConfig = { cleanStaleWebpackAssets: false, } ), - new PhpFilePathsPlugin(), + new PhpFilePathsPlugin( { props: [ 'render', 'variations' ] } ), new CopyWebpackPlugin( { patterns: [ { diff --git a/packages/scripts/package.json b/packages/scripts/package.json index 6d735745977daa..6f5218f7978f01 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -82,6 +82,7 @@ "rtlcss-webpack-plugin": "^4.0.7", "sass": "^1.35.2", "sass-loader": "^12.1.0", + "schema-utils": "^4.2.0", "source-map-loader": "^3.0.0", "stylelint": "^14.2.0", "terser-webpack-plugin": "^5.3.9", From 7f0d50c3a805a21bc89108139ecc6fbe50913cda Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Tue, 16 Jul 2024 15:56:24 +0200 Subject: [PATCH 5/5] Update package lock --- package-lock.json | 184 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 157 insertions(+), 27 deletions(-) diff --git a/package-lock.json b/package-lock.json index a2ccc632899f35..f30c5826851ffc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27447,6 +27447,13 @@ "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, + "node_modules/fast-uri": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", + "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", + "dev": true, + "license": "MIT" + }, "node_modules/fast-xml-parser": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.4.tgz", @@ -55654,6 +55661,7 @@ "rtlcss-webpack-plugin": "^4.0.7", "sass": "^1.35.2", "sass-loader": "^12.1.0", + "schema-utils": "^4.2.0", "source-map-loader": "^3.0.0", "stylelint": "^14.2.0", "terser-webpack-plugin": "^5.3.9", @@ -55677,15 +55685,16 @@ } }, "packages/scripts/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" }, "funding": { "type": "github", @@ -55723,6 +55732,49 @@ "webpack": ">=2" } }, + "packages/scripts/node_modules/babel-loader/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "packages/scripts/node_modules/babel-loader/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "packages/scripts/node_modules/babel-loader/node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "packages/scripts/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -55809,6 +55861,13 @@ "@sideway/pinpoint": "^2.0.0" } }, + "packages/scripts/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, "packages/scripts/node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -55903,23 +55962,38 @@ } }, "packages/scripts/node_modules/schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", "dev": true, + "license": "MIT", "dependencies": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" }, "engines": { - "node": ">= 8.9.0" + "node": ">= 12.13.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/webpack" } }, + "packages/scripts/node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, "packages/scripts/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -70325,6 +70399,7 @@ "rtlcss-webpack-plugin": "^4.0.7", "sass": "^1.35.2", "sass-loader": "^12.1.0", + "schema-utils": "^4.2.0", "source-map-loader": "^3.0.0", "stylelint": "^14.2.0", "terser-webpack-plugin": "^5.3.9", @@ -70336,15 +70411,15 @@ }, "dependencies": { "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" } }, "axios": { @@ -70368,6 +70443,37 @@ "loader-utils": "^2.0.0", "make-dir": "^3.1.0", "schema-utils": "^2.6.5" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + } + } } }, "chalk": { @@ -70435,6 +70541,12 @@ "@sideway/pinpoint": "^2.0.0" } }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -70502,14 +70614,26 @@ } }, "schema-utils": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", - "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.2.0.tgz", + "integrity": "sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==", "dev": true, "requires": { - "@types/json-schema": "^7.0.5", - "ajv": "^6.12.4", - "ajv-keywords": "^3.5.2" + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "dependencies": { + "ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.3" + } + } } }, "semver": { @@ -77842,6 +77966,12 @@ "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, + "fast-uri": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.1.tgz", + "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", + "dev": true + }, "fast-xml-parser": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.4.tgz",