From b8f1a6fbc05c2a271502276667d829cc5346098e Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Jul 2024 14:09:32 +0530 Subject: [PATCH 01/13] update the ai generated product page to woocommerce page --- includes/Services/SiteGenService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 67a94d2..62872be 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -940,9 +940,12 @@ public static function publish_sitemap_pages( $site_description, $content_style, 'nf_dc_page' => $page['slug'], ) ); - if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); + if( $page['slug'] == 'products' || $page['slug'] == 'shop' ){ + update_option( 'woocommerce_shop_page_id', $post_id ); + update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); + } } } From e5c9e5240ef0bde02b2ed704188578e1e54aa5a3 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Jul 2024 14:38:09 +0530 Subject: [PATCH 02/13] linting fixes --- composer.lock | 89 ++++++++++++++++------------ includes/Services/SiteGenService.php | 2 +- 2 files changed, 51 insertions(+), 40 deletions(-) diff --git a/composer.lock b/composer.lock index 0abd6cb..9d1ac77 100644 --- a/composer.lock +++ b/composer.lock @@ -345,16 +345,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.5.3", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "6c0941bc9ac3d18820f924de8c4afe58bb421782" + "reference": "6af57da8765a4db2d89e7ee737726f797945de0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/6c0941bc9ac3d18820f924de8c4afe58bb421782", - "reference": "6c0941bc9ac3d18820f924de8c4afe58bb421782", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/6af57da8765a4db2d89e7ee737726f797945de0b", + "reference": "6af57da8765a4db2d89e7ee737726f797945de0b", "shasum": "" }, "require": { @@ -373,6 +373,7 @@ "kporras07/composer-symlinks": "^1.2", "lucatume/wp-browser": "^3", "newfold-labs/wp-php-standards": "^1.2", + "phpunit/phpcov": "^5.0", "wpackagist-plugin/woocommerce": "*" }, "type": "library", @@ -413,6 +414,16 @@ "create-symlinks": [ "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks" ], + "test": [ + "phpunit --bootstrap tests/phpunit/bootstrap.php", + "codecept run wpunit" + ], + "test-coverage": [ + "phpunit --bootstrap tests/phpunit/bootstrap.php --coverage-php tests/_output/unit.cov --coverage-text", + "codecept run wpunit --coverage wpunit.cov", + "phpcov merge --php tests/_output/merged.cov --html tests/_output/html tests/_output;", + "echo \"open tests/_output/html/index.html\" to view the report" + ], "post-install-cmd": [ "@create-symlinks" ], @@ -425,10 +436,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.5.3", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.0", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-06-19T17:34:08+00:00" + "time": "2024-07-16T23:30:45+00:00" }, { "name": "newfold-labs/wp-module-features", @@ -616,16 +627,16 @@ }, { "name": "newfold-labs/wp-module-patterns", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "383fccab930655790d149e17987ef450265b5c3b" + "reference": "dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/383fccab930655790d149e17987ef450265b5c3b", - "reference": "383fccab930655790d149e17987ef450265b5c3b", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c", + "reference": "dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c", "shasum": "" }, "require": { @@ -663,10 +674,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.1.0", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.2.0", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-06-26T15:45:31+00:00" + "time": "2024-07-24T11:13:40+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -1367,16 +1378,16 @@ }, { "name": "mck89/peast", - "version": "v1.16.2", + "version": "v1.16.3", "source": { "type": "git", "url": "https://github.com/mck89/peast.git", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe" + "reference": "645ec21b650bc2aced18285c85f220d22afc1430" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mck89/peast/zipball/2791b08ffcc1862fe18eef85675da3aa58c406fe", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe", + "url": "https://api.github.com/repos/mck89/peast/zipball/645ec21b650bc2aced18285c85f220d22afc1430", + "reference": "645ec21b650bc2aced18285c85f220d22afc1430", "shasum": "" }, "require": { @@ -1389,7 +1400,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.16.2-dev" + "dev-master": "1.16.3-dev" } }, "autoload": { @@ -1410,22 +1421,22 @@ "description": "Peast is PHP library that generates AST for JavaScript code", "support": { "issues": "https://github.com/mck89/peast/issues", - "source": "https://github.com/mck89/peast/tree/v1.16.2" + "source": "https://github.com/mck89/peast/tree/v1.16.3" }, - "time": "2024-03-05T09:16:03+00:00" + "time": "2024-07-23T14:00:32+00:00" }, { "name": "newfold-labs/wp-php-standards", - "version": "1.2.3", + "version": "1.2.4", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-php-standards.git", - "reference": "a486fb541e890ee87dc387eaea0644101e728464" + "reference": "7ef8833b93f8bcdf52c6006f3adb53972d0799a6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-php-standards/zipball/a486fb541e890ee87dc387eaea0644101e728464", - "reference": "a486fb541e890ee87dc387eaea0644101e728464", + "url": "https://api.github.com/repos/newfold-labs/wp-php-standards/zipball/7ef8833b93f8bcdf52c6006f3adb53972d0799a6", + "reference": "7ef8833b93f8bcdf52c6006f3adb53972d0799a6", "shasum": "" }, "require": { @@ -1446,10 +1457,10 @@ ], "description": "PHP Code Sniffer Standards for Newfold WordPress projects.", "support": { - "source": "https://github.com/newfold-labs/wp-php-standards/tree/1.2.3", + "source": "https://github.com/newfold-labs/wp-php-standards/tree/1.2.4", "issues": "https://github.com/newfold-labs/wp-php-standards/issues" }, - "time": "2024-04-22T20:09:45+00:00" + "time": "2024-07-22T23:16:21+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -1823,16 +1834,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.1", + "version": "3.10.2", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877" + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", "shasum": "" }, "require": { @@ -1899,27 +1910,27 @@ "type": "open_collective" } ], - "time": "2024-05-22T21:24:41+00:00" + "time": "2024-07-21T23:26:44+00:00" }, { "name": "symfony/finder", - "version": "v6.4.8", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "3ef977a43883215d560a2cecb82ec8e62131471c" + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/3ef977a43883215d560a2cecb82ec8e62131471c", - "reference": "3ef977a43883215d560a2cecb82ec8e62131471c", + "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.2" }, "require-dev": { - "symfony/filesystem": "^6.0|^7.0" + "symfony/filesystem": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -1947,7 +1958,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.8" + "source": "https://github.com/symfony/finder/tree/v7.1.1" }, "funding": [ { @@ -1963,7 +1974,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "wp-cli/i18n-command", @@ -2292,5 +2303,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 62872be..af33e46 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,7 +942,7 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if( $page['slug'] == 'products' || $page['slug'] == 'shop' ){ + if ( 'products' === $page['slug'] || 'shop' === $page['slug'] ) { update_option( 'woocommerce_shop_page_id', $post_id ); update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); } From c72eafda0415642ad0dddd3b96e4222b483f01cc Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Jul 2024 14:44:27 +0530 Subject: [PATCH 03/13] linting fixes --- includes/Services/SiteGenService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 62872be..af33e46 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,7 +942,7 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if( $page['slug'] == 'products' || $page['slug'] == 'shop' ){ + if ( 'products' === $page['slug'] || 'shop' === $page['slug'] ) { update_option( 'woocommerce_shop_page_id', $post_id ); update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); } From 9de1712100ed97abd1df1e56cf67e061be1ce73c Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Jul 2024 15:26:02 +0530 Subject: [PATCH 04/13] addressed the comments --- includes/Services/SiteGenService.php | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index af33e46..6a65433 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,9 +942,8 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if ( 'products' === $page['slug'] || 'shop' === $page['slug'] ) { - update_option( 'woocommerce_shop_page_id', $post_id ); - update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); + if ( self::is_products_or_shop_page( $page['slug'] ) ) { + self::set_woo_shop_page( $post_id ); } } } @@ -972,6 +971,29 @@ public static function publish_sitemap_pages( $site_description, $content_style, return true; } + /** + * Checks if it is a products or shop slug + * + * @param string $slug Slug of the page being generated. + * @return boolean + */ + public static function is_products_or_shop_page( $slug ) { + return ( 'products' === $slug || 'shop' === $slug ); + } + + /** + * Sets the products page generated by AI to woocommerce shop page + * + * @param integer $page_id Id of the page + */ + public static function set_woo_shop_page( $page_id ) { + $prev_page_id = Options::get_option_name( 'woocommerce_shop_page_id', false ); + if ( $prev_page_id !== $page_id ) { + update_option( 'woocommerce_shop_page_id', $page_id ); + update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); + } + } + /** * Trash the "Sample Page" generated for all new sites. * From b17026861d27891fa142064470e42e1ee51e1e9b Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Jul 2024 17:30:55 +0530 Subject: [PATCH 05/13] add the woocommerce shop page id to options --- includes/Options.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Options.php b/includes/Options.php index b554f07..552450e 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -57,6 +57,7 @@ final class Options { 'filter_active_plugins' => 'filter_active_plugins', 'sitegen_regenerated_homepages' => 'sitegen_regenerated_homepages', 'status' => 'status', + 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', ); /** From 43f35dfdd815b60c029e289ee48ef011932b23b5 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Jul 2024 17:33:01 +0530 Subject: [PATCH 06/13] linting fixes --- includes/Options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Options.php b/includes/Options.php index 552450e..07c03ec 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -57,7 +57,7 @@ final class Options { 'filter_active_plugins' => 'filter_active_plugins', 'sitegen_regenerated_homepages' => 'sitegen_regenerated_homepages', 'status' => 'status', - 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', + 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', ); /** From fb8e1b5383949a7dfeb62f0d5b48bb5390bec9d3 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Jul 2024 12:49:01 +0530 Subject: [PATCH 07/13] changes --- includes/Options.php | 3 ++- includes/Services/SiteGenService.php | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Options.php b/includes/Options.php index 07c03ec..0d631a0 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -57,7 +57,8 @@ final class Options { 'filter_active_plugins' => 'filter_active_plugins', 'sitegen_regenerated_homepages' => 'sitegen_regenerated_homepages', 'status' => 'status', - 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', + 'wc_shop_page_id' => 'woocommerce_shop_page_id', + 'wc_queue_flush_rewrite_rules' => 'woocommerce_queue_flush_rewrite_rules', ); /** diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 6a65433..0e679d1 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -987,11 +987,10 @@ public static function is_products_or_shop_page( $slug ) { * @param integer $page_id Id of the page */ public static function set_woo_shop_page( $page_id ) { - $prev_page_id = Options::get_option_name( 'woocommerce_shop_page_id', false ); - if ( $prev_page_id !== $page_id ) { - update_option( 'woocommerce_shop_page_id', $page_id ); - update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); - } + $option_shop_page_id = Options::get_option_name( 'wc_shop_page_id', false ); + $option_wc_queue_flush_rewrite_rules = Options::get_option_name( 'wc_queue_flush_rewrite_rules', false ); + update_option( $option_shop_page_id, $page_id ); + update_option( $option_wc_queue_flush_rewrite_rules, 'yes' ); } /** From ee38cdda5f3bde7aec0b2cb9cf2240f0a1a2025e Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Jul 2024 16:26:33 +0530 Subject: [PATCH 08/13] `menu` added --- includes/Services/SiteGenService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 0e679d1..e4b2a88 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -978,7 +978,7 @@ public static function publish_sitemap_pages( $site_description, $content_style, * @return boolean */ public static function is_products_or_shop_page( $slug ) { - return ( 'products' === $slug || 'shop' === $slug ); + return ( 'products' === $slug || 'shop' === $slug || 'menu' === $slug ); } /** From 734b0d206206125c4af95dbd6f164640e6d0d9a8 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Jul 2024 16:42:47 +0530 Subject: [PATCH 09/13] changes --- includes/Services/SiteGenService.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index e4b2a88..fde2d88 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -978,7 +978,12 @@ public static function publish_sitemap_pages( $site_description, $content_style, * @return boolean */ public static function is_products_or_shop_page( $slug ) { - return ( 'products' === $slug || 'shop' === $slug || 'menu' === $slug ); + $product_page_slug = array( + 'products' => true, + 'shop' => true, + 'menu' => true, + ); + return array_key_exists( $slug, $product_page_slug ); } /** @@ -989,8 +994,8 @@ public static function is_products_or_shop_page( $slug ) { public static function set_woo_shop_page( $page_id ) { $option_shop_page_id = Options::get_option_name( 'wc_shop_page_id', false ); $option_wc_queue_flush_rewrite_rules = Options::get_option_name( 'wc_queue_flush_rewrite_rules', false ); - update_option( $option_shop_page_id, $page_id ); - update_option( $option_wc_queue_flush_rewrite_rules, 'yes' ); + update_option( $option_shop_page_id, $page_id ); + update_option( $option_wc_queue_flush_rewrite_rules, 'yes' ); } /** From 3ab9c302b501097dc91524a654878f73209e2983 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Tue, 30 Jul 2024 10:16:11 +0530 Subject: [PATCH 10/13] removing menu --- includes/Services/SiteGenService.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index fde2d88..74adbf4 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -981,7 +981,6 @@ public static function is_products_or_shop_page( $slug ) { $product_page_slug = array( 'products' => true, 'shop' => true, - 'menu' => true, ); return array_key_exists( $slug, $product_page_slug ); } From 0ea406b805b7831df00f13febb03dcbe016f420c Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Tue, 30 Jul 2024 12:54:14 +0530 Subject: [PATCH 11/13] moving it outside of nav menu logic --- includes/Services/SiteGenService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 74adbf4..acf06fb 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,9 +942,9 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if ( self::is_products_or_shop_page( $page['slug'] ) ) { - self::set_woo_shop_page( $post_id ); - } + } + if ( ! is_wp_error( $post_id ) && self::is_products_or_shop_page( $page['slug'] ) ) { + self::set_woo_shop_page( $post_id ); } } From 3f6ddb36cd7d193ed031e3d18a69917435309cad Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Tue, 24 Sep 2024 12:28:16 +0530 Subject: [PATCH 12/13] lock files updated --- composer.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index 2631af1..68cd88a 100644 --- a/composer.lock +++ b/composer.lock @@ -192,16 +192,16 @@ }, { "name": "newfold-labs/wp-module-ai", - "version": "1.1.11", + "version": "1.1.12", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ai.git", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761" + "reference": "3836a576e83e068b53de1d850bcb60aac471656d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/523fe373a723b2336e3043cbcaeac058734ed761", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/3836a576e83e068b53de1d850bcb60aac471656d", + "reference": "3836a576e83e068b53de1d850bcb60aac471656d", "shasum": "" }, "require": { @@ -231,10 +231,10 @@ ], "description": "A module for providing artificial intelligence capabilities.", "support": { - "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.11", + "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.12", "issues": "https://github.com/newfold-labs/wp-module-ai/issues" }, - "time": "2024-08-28T15:18:10+00:00" + "time": "2024-09-19T07:47:50+00:00" }, { "name": "newfold-labs/wp-module-coming-soon", @@ -1835,16 +1835,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.2", + "version": "3.10.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", "shasum": "" }, "require": { @@ -1911,7 +1911,7 @@ "type": "open_collective" } ], - "time": "2024-07-21T23:26:44+00:00" + "time": "2024-09-18T10:38:58+00:00" }, { "name": "symfony/finder", @@ -2304,5 +2304,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } From cb8197921717fe01721153786898d0c591495fbd Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 25 Sep 2024 12:13:53 +0530 Subject: [PATCH 13/13] Update Packages --- composer.json | 6 +- composer.lock | 211 +++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 184 insertions(+), 33 deletions(-) diff --git a/composer.json b/composer.json index 71bfd0d..df663ad 100644 --- a/composer.json +++ b/composer.json @@ -26,13 +26,13 @@ }, "require": { "newfold-labs/wp-module-installer": "^1.1", - "newfold-labs/wp-module-patterns": "^2.0", + "newfold-labs/wp-module-patterns": "^2.4", "newfold-labs/wp-module-ai": "^1.1", "wp-forge/wp-upgrade-handler": "^1.0", "mustache/mustache": "^2.14", - "newfold-labs/wp-module-data": "^2.0", + "newfold-labs/wp-module-data": "^2.6", "newfold-labs/wp-module-coming-soon": "^1.2", - "newfold-labs/wp-module-performance": "^1.4", + "newfold-labs/wp-module-performance": "^2.0", "newfold-labs/wp-module-install-checker": "^1.0", "newfold-labs/wp-module-survey": "^1.0" }, diff --git a/composer.lock b/composer.lock index 2631af1..cdc5347 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2d41d466ff3bc1d1e41ba66ccf71bf00", + "content-hash": "0a9f8fb749a3f28acf8597c3525fa01b", "packages": [ { "name": "doctrine/inflector", @@ -192,16 +192,16 @@ }, { "name": "newfold-labs/wp-module-ai", - "version": "1.1.11", + "version": "1.1.12", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ai.git", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761" + "reference": "3836a576e83e068b53de1d850bcb60aac471656d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/523fe373a723b2336e3043cbcaeac058734ed761", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/3836a576e83e068b53de1d850bcb60aac471656d", + "reference": "3836a576e83e068b53de1d850bcb60aac471656d", "shasum": "" }, "require": { @@ -231,10 +231,10 @@ ], "description": "A module for providing artificial intelligence capabilities.", "support": { - "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.11", + "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.12", "issues": "https://github.com/newfold-labs/wp-module-ai/issues" }, - "time": "2024-08-28T15:18:10+00:00" + "time": "2024-09-19T07:47:50+00:00" }, { "name": "newfold-labs/wp-module-coming-soon", @@ -682,23 +682,27 @@ }, { "name": "newfold-labs/wp-module-performance", - "version": "1.4.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-performance.git", - "reference": "5e4c87d404788c61ea55e3c62e29e5df48c36340" + "reference": "ed7db2ce699d1ab6c61db28080b4f13f8511cc0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-performance/zipball/5e4c87d404788c61ea55e3c62e29e5df48c36340", - "reference": "5e4c87d404788c61ea55e3c62e29e5df48c36340", + "url": "https://api.github.com/repos/newfold-labs/wp-module-performance/zipball/ed7db2ce699d1ab6c61db28080b4f13f8511cc0d", + "reference": "ed7db2ce699d1ab6c61db28080b4f13f8511cc0d", "shasum": "" }, "require": { "newfold-labs/wp-module-context": "^1.0", - "wp-forge/collection": "^1.0", + "newfold-labs/wp-module-features": "^1.3", + "wp-forge/collection": "^1.0.2", "wp-forge/wp-htaccess-manager": "^1.0", - "wpscholar/url": "^1.2" + "wpscholar/url": "^1.2.2" + }, + "require-dev": { + "newfold-labs/wp-php-standards": "^1.2.3" }, "type": "library", "autoload": { @@ -706,6 +710,7 @@ "NewfoldLabs\\WP\\Module\\Performance\\": "includes" }, "files": [ + "includes/PerformanceFeature.php", "includes/functions.php", "bootstrap.php" ] @@ -721,10 +726,10 @@ ], "description": "A module for managing caching functionality.", "support": { - "source": "https://github.com/newfold-labs/wp-module-performance/tree/1.4.1", + "source": "https://github.com/newfold-labs/wp-module-performance/tree/2.0.1", "issues": "https://github.com/newfold-labs/wp-module-performance/issues" }, - "time": "2024-04-22T22:30:42+00:00" + "time": "2024-08-15T22:17:47+00:00" }, { "name": "newfold-labs/wp-module-survey", @@ -1835,16 +1840,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.2", + "version": "3.10.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", "shasum": "" }, "require": { @@ -1911,27 +1916,93 @@ "type": "open_collective" } ], - "time": "2024-07-21T23:26:44+00:00" + "time": "2024-09-18T10:38:58+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-24T14:02:46+00:00" }, { "name": "symfony/finder", - "version": "v7.1.4", + "version": "v5.4.43", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823" + "reference": "ae25a9145a900764158d439653d5630191155ca0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d95bbf319f7d052082fb7af147e0f835a695e823", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823", + "url": "https://api.github.com/repos/symfony/finder/zipball/ae25a9145a900764158d439653d5630191155ca0", + "reference": "ae25a9145a900764158d439653d5630191155ca0", "shasum": "" }, "require": { - "php": ">=8.2" - }, - "require-dev": { - "symfony/filesystem": "^6.4|^7.0" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -1959,7 +2030,87 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.4" + "source": "https://github.com/symfony/finder/tree/v5.4.43" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-08-13T14:03:51+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" }, "funding": [ { @@ -1975,7 +2126,7 @@ "type": "tidelift" } ], - "time": "2024-08-13T14:28:19+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "wp-cli/i18n-command",