woocommerce/plugins/woocommerce-blocks/src
Mike Jolley 171642b8a5 Rest API batching support (2) (https://github.com/woocommerce/woocommerce-blocks/pull/4075)
* Add batch route

* Register batch route

* Allow batching on writable endpoints

* Batch in client

* Batch non-GET requests

* Batching support with typescript defs

* Remove unused hook

* Prevent multiple fragment updates

* Only use batch route if detected

* Correct var name

* Move nonce check to validate_callback so it runs before requests are completed

* remove unused imports

* updateCartFragments function as const

* Add phpunit tests for batching functionality

* Reduce batch delay

* increase timeout

* Update isCartUpdatePostRequest for batch support

* Update Endpoint used in test

* Move nonce check back inline - custom headers are not returned otherwise

* Fix error handling

* Back to 30s

* Update assets/js/middleware/cart-update.ts

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* whitespace

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2021-04-20 16:44:49 +01:00
..
Assets Remove BackCompatAssetDataRegistry (https://github.com/woocommerce/woocommerce-blocks/pull/4054) 2021-04-12 14:17:20 +01:00
BlockTypes unqeueue scripts (https://github.com/woocommerce/woocommerce-blocks/pull/4034) 2021-04-08 13:44:17 +01:00
Domain Remove BackCompatAssetDataRegistry (https://github.com/woocommerce/woocommerce-blocks/pull/4054) 2021-04-12 14:17:20 +01:00
Integrations Refactor block types to include script registration and integration classes (https://github.com/woocommerce/woocommerce-blocks/pull/3829) 2021-02-17 14:18:35 +01:00
Payments Check if Cart and Checkout are registered before removing payment methods so it won't break Elementor (https://github.com/woocommerce/woocommerce-blocks/pull/4056) 2021-04-13 14:27:05 +01:00
Registry Fix PHP 8 error when argument is not invocable in AssetsDataRegistry::add_data (https://github.com/woocommerce/woocommerce-blocks/pull/3315) 2020-10-26 13:28:25 -04:00
StoreApi Rest API batching support (2) (https://github.com/woocommerce/woocommerce-blocks/pull/4075) 2021-04-20 16:44:49 +01:00
Utils Replace uppercase Translators with translators & make comment style consistent (https://github.com/woocommerce/woocommerce-blocks/pull/3869) 2021-02-19 11:58:44 +00:00
Assets.php Load translation file for JS files (https://github.com/woocommerce/woocommerce-blocks/pull/4050) 2021-04-12 12:05:26 +02:00
Installer.php Replace uppercase Translators with translators & make comment style consistent (https://github.com/woocommerce/woocommerce-blocks/pull/3869) 2021-02-19 11:58:44 +00:00
Library.php Refactor block types to include script registration and integration classes (https://github.com/woocommerce/woocommerce-blocks/pull/3829) 2021-02-17 14:18:35 +01:00
Package.php Update version to 5.0.0-dev 2021-04-12 15:31:49 +02:00
RestApi.php Support for multiple fee rows in the cart (https://github.com/woocommerce/woocommerce-blocks/pull/3678) 2021-01-13 16:57:42 +00:00