From 90e50a7fb82b73a0d66ffee2145cb3ccb10614b5 Mon Sep 17 00:00:00 2001 From: mattallan Date: Fri, 28 Oct 2022 16:10:31 +1000 Subject: [PATCH 1/2] Bump subscriptions-core version in WCPay and attach changelog entries --- changelog/subscriptions-core-2.4.0 | 4 ++++ changelog/subscriptions-core-2.4.0-2 | 4 ++++ changelog/subscriptions-core-2.4.0-3 | 4 ++++ changelog/subscriptions-core-2.4.0-4 | 4 ++++ changelog/subscriptions-core-2.4.0-5 | 4 ++++ composer.json | 2 +- composer.lock | 16 ++++++++-------- 7 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 changelog/subscriptions-core-2.4.0 create mode 100644 changelog/subscriptions-core-2.4.0-2 create mode 100644 changelog/subscriptions-core-2.4.0-3 create mode 100644 changelog/subscriptions-core-2.4.0-4 create mode 100644 changelog/subscriptions-core-2.4.0-5 diff --git a/changelog/subscriptions-core-2.4.0 b/changelog/subscriptions-core-2.4.0 new file mode 100644 index 00000000000..d8cbb5dfc63 --- /dev/null +++ b/changelog/subscriptions-core-2.4.0 @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +The subscription creation function `wcs_create_subscription` has been updated to use WooCommerce CRUD methods in preparation for supporting High Performance Order Storage (HPOS). diff --git a/changelog/subscriptions-core-2.4.0-2 b/changelog/subscriptions-core-2.4.0-2 new file mode 100644 index 00000000000..e7528e7eb0e --- /dev/null +++ b/changelog/subscriptions-core-2.4.0-2 @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +ImImprove wcs_copy_order_address() to use modern APIs for setting address fields. diff --git a/changelog/subscriptions-core-2.4.0-3 b/changelog/subscriptions-core-2.4.0-3 new file mode 100644 index 00000000000..998d3aedba9 --- /dev/null +++ b/changelog/subscriptions-core-2.4.0-3 @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +woocommerce_new_subscription_data hook will only work with CPT datastore and so has been deprecated. diff --git a/changelog/subscriptions-core-2.4.0-4 b/changelog/subscriptions-core-2.4.0-4 new file mode 100644 index 00000000000..3836b92d35b --- /dev/null +++ b/changelog/subscriptions-core-2.4.0-4 @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +i18n usage of strftime has been deprecated for subscription titles. Date is now formatted using woocommerce standard date formatting. diff --git a/changelog/subscriptions-core-2.4.0-5 b/changelog/subscriptions-core-2.4.0-5 new file mode 100644 index 00000000000..df88f8b33ec --- /dev/null +++ b/changelog/subscriptions-core-2.4.0-5 @@ -0,0 +1,4 @@ +Significance: minor +Type: dev + +Update subscriptions-core to 2.4.0. diff --git a/composer.json b/composer.json index 0b6be28ff17..027e687f952 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "automattic/jetpack-sync": "1.30.5", "automattic/jetpack-tracking": "1.14.5", "myclabs/php-enum": "1.7.7", - "woocommerce/subscriptions-core": "2.3.0" + "woocommerce/subscriptions-core": "2.4.0" }, "require-dev": { "composer/installers": "1.10.0", diff --git a/composer.lock b/composer.lock index 75defdf5b26..8a441d1eedc 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": "90f58d3cd4e9aee92e9c3b2035ba7658", + "content-hash": "f545845c79fc028c20fcfb386cb7a889", "packages": [ { "name": "automattic/jetpack-a8c-mc-stats", @@ -1060,16 +1060,16 @@ }, { "name": "woocommerce/subscriptions-core", - "version": "2.3.0", + "version": "2.4.0", "source": { "type": "git", "url": "https://github.com/Automattic/woocommerce-subscriptions-core.git", - "reference": "8017438f8e0cfc16494344f783fb134f77284d58" + "reference": "c4a90a83dcd876633589f6a159dae654fc4d123a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/woocommerce-subscriptions-core/zipball/8017438f8e0cfc16494344f783fb134f77284d58", - "reference": "8017438f8e0cfc16494344f783fb134f77284d58", + "url": "https://api.github.com/repos/Automattic/woocommerce-subscriptions-core/zipball/c4a90a83dcd876633589f6a159dae654fc4d123a", + "reference": "c4a90a83dcd876633589f6a159dae654fc4d123a", "shasum": "" }, "require": { @@ -1110,10 +1110,10 @@ "description": "Sell products and services with recurring payments in your WooCommerce Store.", "homepage": "https://github.com/Automattic/woocommerce-subscriptions-core", "support": { - "source": "https://github.com/Automattic/woocommerce-subscriptions-core/tree/2.3.0", + "source": "https://github.com/Automattic/woocommerce-subscriptions-core/tree/2.4.0", "issues": "https://github.com/Automattic/woocommerce-subscriptions-core/issues" }, - "time": "2022-10-07T03:45:34+00:00" + "time": "2022-10-28T05:47:16+00:00" } ], "packages-dev": [ @@ -5836,5 +5836,5 @@ "platform-overrides": { "php": "7.3" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } From 032217ce4539037ae2f47c3e3a2ab843bbef289b Mon Sep 17 00:00:00 2001 From: Matt Allan Date: Fri, 28 Oct 2022 16:26:01 +1000 Subject: [PATCH 2/2] Update changelog/subscriptions-core-2.4.0-2 Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com> --- changelog/subscriptions-core-2.4.0-2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/subscriptions-core-2.4.0-2 b/changelog/subscriptions-core-2.4.0-2 index e7528e7eb0e..75afae4eeba 100644 --- a/changelog/subscriptions-core-2.4.0-2 +++ b/changelog/subscriptions-core-2.4.0-2 @@ -1,4 +1,4 @@ Significance: minor Type: update -ImImprove wcs_copy_order_address() to use modern APIs for setting address fields. +Improve wcs_copy_order_address() to use modern APIs for setting address fields.