From d09580683053da09a90d7c1927b8b55a2c4b163a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dumont?= Date: Fri, 26 Jul 2024 20:49:38 +0200 Subject: [PATCH] v1.0.7 release --- Gruntfile.js | 23 +++++++++++++++-------- cocart-cors.php | 4 +++- includes/class-cocart-cors.php | 2 +- package.json | 8 +++++--- readme.txt | 2 +- 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7886d0d..a9e53a4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -37,6 +37,14 @@ module.exports = function(grunt) { from: /WC tested up to:.*$/m, to: "WC tested up to: <%= pkg.wc_tested_up_to %>" }, + { + from: /CoCart requires at least:.*$/m, + to: 'CoCart requires at least: <%= pkg.cocart_requires %>' + }, + { + from: /CoCart tested up to:.*$/m, + to: 'CoCart tested up to: <%= pkg.cocart_tested_up_to %>' + }, { from: /Version:.*$/m, to: "Version: <%= pkg.version %>" @@ -77,14 +85,6 @@ module.exports = function(grunt) { from: /Tested up to:(\*\*|)(\s*?)[0-9.-]+(\s*?)$/mi, to: 'Tested up to:$1$2<%= pkg.tested_up_to %>$3' }, - { - from: /WC requires at least:(\*\*|)(\s*?)[0-9.-]+(\s*?)$/mi, - to: 'WC requires at least:$1$2<%= pkg.wc_requires %>$3' - }, - { - from: /WC tested up to:(\*\*|)(\s*?)[a-zA-Z0-9.-]+(\s*?)$/mi, - to: 'WC tested up to:$1$2<%= pkg.wc_tested_up_to %>$3' - }, ] }, stable: { @@ -163,4 +163,11 @@ module.exports = function(grunt) { * and install on a WordPress installation. */ grunt.registerTask( 'zip', [ 'copy:build', 'compress', 'clean:build' ] ); + + // Build Plugin. + grunt.registerTask( 'build', [ 'version', 'zip' ] ); + + // Ready for release. + grunt.registerTask( 'ready', [ 'version', 'stable', 'zip' ] ); + }; diff --git a/cocart-cors.php b/cocart-cors.php index e727b50..c7fa197 100644 --- a/cocart-cors.php +++ b/cocart-cors.php @@ -5,11 +5,13 @@ * Description: Enables support for CORS to allow CoCart API to work across multiple domains. * Author: CoCart Headless, LLC * Author URI: https://cocartapi.com - * Version: 1.0.6 + * Version: 1.0.7 * Text Domain: cocart-cors * Requires at least: 5.6 * Requires PHP: 7.4 * Requires Plugins: cart-rest-api-for-woocommerce + * CoCart requires at least: 4.2 + * CoCart tested up to: 4.3 * * @package CoCart CORS */ diff --git a/includes/class-cocart-cors.php b/includes/class-cocart-cors.php index fe84466..086ab1d 100644 --- a/includes/class-cocart-cors.php +++ b/includes/class-cocart-cors.php @@ -29,7 +29,7 @@ final class Plugin { * * @var string */ - public static $version = '1.0.6'; + public static $version = '1.0.7'; /** * Initiate CoCart CORS. diff --git a/package.json b/package.json index 63aef74..eb40e97 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "title": "CoCart CORS Support", "name": "cocart-cors", - "version": "1.0.6", + "version": "1.0.7", "private": false, "contributors": [ "cocartforwc", @@ -21,8 +21,10 @@ "requires": "5.6", "requires_php": "7.4", "tested_up_to": "6.5", - "wc_requires": "6.3", - "wc_tested_up_to": "8.8", + "wc_requires": "6.4", + "wc_tested_up_to": "9.1", + "cocart_requires": "4.2", + "cocart_tested_up_to": "4.3", "license": "GPL-3.0", "copyright": "Copyright (c) 2024, CoCart Headless, LLC", "description": "Enables support for CORS to allow CoCart API to work across multiple domains.", diff --git a/readme.txt b/readme.txt index 2fb95a1..7cd990d 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: woocommerce, rest-api, decoupled, headless, cors Requires at least: 5.6 Requires PHP: 7.4 Tested up to: 6.5 -Stable tag: 1.0.6 +Stable tag: 1.0.7 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html