Commit Graph

271 Commits

Author SHA1 Message Date
Renovate Bot bfbf556c96
Update dependency automattic/jetpack-autoloader to v2.6.0 2020-11-25 03:08:35 +00:00
Fernando Marichal 83c170b88e Version bump wc-admin 1.7.2 2020-11-24 17:10:48 -08:00
Darren Ethier 8ffa39b78f
bump wc-blocks package to 3.8.1 2020-11-23 16:09:57 -05:00
Christopher Allford 591491dd4c Fixed the broken vendor autoloads 2020-11-18 15:38:05 -08:00
Christopher Allford e9dfe64f9f Replaced the local repository with root autoload definitions
Since Composer can't recursively use repositories, we can't actually use a local package to deal with this. We're going to keep the local package to separate the dependencies but we need to add autoload keys in the root package's `composer.json`
2020-11-18 15:31:54 -08:00
Christopher Allford c9f413d297 Created dummy `woocommerce/woocommerce-lib` package to contain dependencies
In order to avoid problems posed by potentially including the unconverted dependencies in the root autoloader, this package will hold all dependencies that require conflict avoidance.
2020-11-18 13:54:20 -08:00
Nestor Soriano 556ea1ecfa Merge branch 'master' into use-mozart-to-renamespace-dependencies 2020-11-18 09:05:11 +01:00
Christopher Allford 84c8bc4afa Corrected `composer.json` PHP minimums to 7.0 to ensure compatibility in Travis 2020-11-12 12:25:52 -08:00
Christopher Allford 1041c8d238 Updated WooCommerce Admin 2020-11-12 11:22:39 -08:00
Christopher Allford b22268c754 Updated to Composer v2
This also updates the woocommerce/woocommerce-admin and woocommerce/woocommerce-blocks packages as their dependence on `composer/installers` precludes update otherwise
2020-11-11 13:45:51 -08:00
Nestor Soriano 8bb0f196e6 Change the strategy for moving packages
Since the Mozart package requires PHP 7.2, and we need to support 7.0
and 7.1, the moving step has been removed from the composer install
stage. Instead, now it has to be triggered manually via
`composer run move-vendor-namespaces`, and the moved package must be
added to source control. See the updated src/Internal/Vendor/REAMDE.md
for details.
2020-11-05 17:19:14 +01:00
Nestor Soriano 96fce186e7 Use Mozart instead of a script to renamespace packages.
A custom fork of the coenjacobs/mozart package is now used to change
the namespace of the appropriate packages (only league/container
for now) instead of the previously used prefix-vendor-namespaces script.

The packages are now moved to the src/Internal/Vendor namespace instead
of being modified in-place in the vendor directory. The namespaces
are thus now prefixed with Automattic\WooCommerce\Internal\Vendor
(previously it was just Automattic\WooCommerce\Vendor).
2020-10-30 12:28:26 +01:00
Timmy Crawford 0c40758f5e Updates wc-admin to 1.6.3 2020-10-26 13:35:24 -07:00
Rodrigo Primo d0576a2a17 Merge branch 'master' into update/woocommerce-admin/1.6.2 2020-10-20 10:43:52 -03:00
Claudio Sanches f349a70618 Merge branch 'master' into update/woocommerce-blocks-3.6.0 2020-10-19 23:40:52 -03:00
Timmy Crawford 8641ec6135 Update woocommerce-admin to 1.6.2 2020-10-19 10:39:15 -07:00
Renovate Bot a7696c7392
Update dependency automattic/jetpack-constants to v1.5.0 2020-10-16 10:31:13 +00:00
Albert Juhé Lluveras b02f4ec62b Update WooCommerce Blocks package to 3.6.0 2020-10-15 10:46:20 +02:00
Renovate Bot e3f91ef4ec
Update dependency league/container to v3.3.3 2020-10-14 16:24:37 +00:00
Timmy Crawford 729086a583 Update woocommerce-admin to 1.6.1 2020-10-13 15:42:09 -07:00
Timmy Crawford 58f181e351 Update WooCommerce Admin to 1.6.0 2020-10-09 14:15:42 -07:00
Nestor Soriano d083a08a1f Fix "bin not installed" error on "composer install no-dev"
We introduced the Composer Bin package as a dev dependency, and this
required a "composer bin install" post-install/update Composer command.
However when doing "composer install no-dev" this throws a
"Command 'bin' is not defined" error.

The solution is to add a dummy "bin" command in composer.json that
will run in lieu of the Composer Bin one when doing a no-dev install.
2020-10-09 08:21:57 +02:00
Nestor Soriano a621f07a96 Merge branch 'master' into add/composer-bin-plugin 2020-10-08 12:27:28 +02:00
Nestor Soriano 97618d8fad Reintroduce the League's Container package, and prefix it.
All the classes in the package are re-namespaced from
"Leage\Container" to "Automattic\WooCommerce\Vendor\League\Container"
to prevent conflicts with extensions using the same plugin.

The re-namespacing is done by using a simple text substitution
on all the code files (see prefix-vendor-namespaces.sh), for this
particular case this approach is enough.
2020-10-08 09:28:01 +02:00
Christopher Allford b3da18a14b Merge branch 'master' into add/composer-bin-plugin 2020-10-06 10:13:47 -07:00
Timmy Crawford 7efccce126 Update woocommerce-admin to 1.6.0-rc.3 2020-10-01 06:39:57 -07:00
Christopher Allford ef612f60e5 Moved the PHP code sniffs into a bin folder 2020-09-22 11:55:24 -07:00
Christopher Allford f81a25c398 Moved all of the composer binary commands into the `composer-bin-plugin` to avoid version compatibility errors 2020-09-22 11:44:27 -07:00
Timmy Crawford 7d6ad8045b Bump woocommerce-admin to 1.6.0-beta.1 2020-09-18 08:30:35 -07:00
Darren Ethier aeeee93e4b
update woo-blocks to 3.4.0 2020-09-15 09:39:41 -04:00
Rebecca Scott 1f42f0f487 Bump WooCommerce Admin version to 1.5.0 2020-09-08 10:56:31 -05:00
Bec Scott 6eb65cb40c
Merge pull request #27573 from woocommerce/bump-woocommerce-admin-version-to-1.5.0-rc.5
Bump woocommerce admin version to 1.5.0-rc.5
2020-09-07 16:57:02 +10:00
Renovate Bot debe085284
Pin dependencies 2020-09-05 13:43:24 +00:00
Rebecca Scott b92149f94e Bump woocommerce admin version to 1.5.0-rc.5 2020-09-03 14:46:35 +10:00
Jonathan Sadowski a70cef214a Bump WooCommerce Admin to 1.5.0-rc.4 2020-09-02 16:33:26 -05:00
Jonathan Sadowski 456851c827 Bump wc-admin to 1.5.0-rc.3 2020-09-01 13:50:02 -05:00
Rebecca Scott 97902b00cd Bump wc-admin to 1.5.0-rc.2 2020-08-25 08:49:50 +10:00
Christopher Allford 358db5dc3e Removed the internals of the Container pending package conflict resolution
Since reverting the PR at this point would be a mess I've gone ahead and removed the internals of the container. We should aim to keep the class since it's now part of our public API but it won't work as expected anymore. This is fine for now since we don't actually have anything in it!
2020-08-18 20:39:48 -07:00
Jonathan Sadowski 163bb51089 Resolved composer conflict 2020-08-18 10:46:41 -05:00
Timmy Crawford ac905d830a Update WooCommerce Admin to 1.4.0 for 4.4 2020-08-17 17:22:14 -07:00
Christopher Allford b80341a360 Updated the `automattic/jetpack-autoloader` package to 2.2.0 2020-08-17 11:32:45 -07:00
Christopher Allford eb65252ba8 Merge branch 'master' into feature/container-injection-change 2020-08-07 14:35:44 -07:00
Christopher Allford 025751dc47 Updated the woocommerce/woocommerce-sniffs package to include the new PHPCS rule 2020-08-06 11:31:30 -07:00
vedanshujain 55a9687e6d Make api included structure more linear. 2020-08-06 14:34:02 +05:30
vedanshujain d5bf302994 Add API UT helpers to autoload so that individual tests can run in isolation. 2020-08-06 14:34:02 +05:30
vedanshujain 5b32ec3755 Remove REST API package because its added directly. 2020-08-06 14:34:02 +05:30
Christopher Allford dda2f3b405 Pinned the dependencies that were not already pinned 2020-08-05 14:19:43 -07:00
Timmy Crawford d55fa5ea0a Update woocommerce-admin to 1.4.0-rc.3 2020-08-03 23:35:10 -07:00
Albert Juhé Lluveras ba4afe633c Update woocommerce/woocommerce-blocks to v3.1.0 2020-07-30 11:07:19 +02:00
Timmy Crawford 5e787f836b Update woocommerce-admin package to 1.4.0-beta.2 2020-07-28 09:58:07 +02:00
Christopher Allford 77eee6d92d Updated the REST API to 1.0.11 2020-07-27 09:40:55 +02:00
Christopher Allford 3e6c4dd14a Updated WooCommerce Admin to 1.4.0-beta.1
The official PR for 1.4.0-beta.2 will be arriving next week and so I've included the first beta here in order to complete the autoloader update.
2020-07-27 09:40:55 +02:00
Renovate Bot 0897ed68fc Update dependency automattic/jetpack-autoloader to v2 2020-07-27 09:40:55 +02:00
Darren Ethier 3dafe70257 update woo blocks to 3.0.0 2020-07-27 09:40:55 +02:00
Nestor Soriano 312383ae47 First steps towards introducing a dependency injection framework.
- Add PHP League's Container package via Composer.
- Add an ObjectContainer class that encapsulates all the configuration
  and insulates the codebase from the concrete DI engine used.
- Add an improved ReflectionContainer class that will allow to
  register individual classes as singletons while autowiring.
- Use ObjectContainer to resolve the WooCommerce class, everything
  instantiated with "new" inside it, and all singletons that are
  usually obtained via WC() function.
- Introduce the CustomerProvider class.
- Introduce a service provider to resolve WC_Queue_Interface,
  this replaces the WC_Queue class.
- Mark as obsolete all the replaced "instance()" methods,
  and the entire WC_Queue class.
2020-07-24 09:20:21 +02:00
Timmy Crawford 000e695a34 [4.3.1] Update WooCommerce Admin Package. 2020-07-20 16:57:57 -07:00
Christopher Allford fdee8dceaf Moved test to correct directory 2020-07-15 07:08:09 -07:00
Timmy Crawford 1fb700486b Update WooCommerce Admin to 1.3.0 2020-07-08 09:51:54 -07:00
Timmy Crawford bb32e4a557 Update woocommerce-admin to 1.3.0-rc.3 2020-07-06 15:15:15 -07:00
Paul Sealock 75cd74fe24 Bump wc-admin version 1.3.0-rc.2 2020-06-25 15:23:50 +12:00
Paul Sealock 7ae8bd53d0 Bump wc-admin to 1.3.0-rc.1 2020-06-23 21:49:59 +12:00
IanDelMar bff2cab4c0
Fix typo 2020-06-21 13:26:51 +02:00
Albert Juhé Lluveras 55fba0e79b Update woocommerce/woocommerce-blocks to v2.7.1 2020-06-16 16:24:40 +02:00
Peter Fabian 418d95298a Merge branch 'master' into update/wc-admin-1.3.0-beta-1
# Conflicts:
#	composer.lock
2020-06-16 14:58:43 +02:00
vedanshujain ff18dfccc9 Update rest API to 1.0.10 2020-06-16 15:30:37 +05:30
Paul Sealock 3c83db4c4a Version bump wc-admin 1.3.0-beta.1 2020-06-16 19:52:36 +12:00
Albert Juhé Lluveras 0bd26f3615 Update woocommerce/woocommerce-blocks to v2.7.0 2020-06-09 12:19:29 +02:00
Claudio Sanches 4922c34180
Merge pull request #26136 from woocommerce/feature/code-hacker-for-unit-tests
Code hacker for unit tests
2020-06-03 08:41:28 -03:00
Nestor Soriano 32dac2486f Update autoload-dev in composer.json to add tests/tools directory
The mapping of the "Automattic\WooCommerce\Testing\Tools\" namespace
to the "tests/tools" directory is moved from manual registration
inside the tests bootstrap constructor to a declaration inside the
autload-dev section in composer.json.
2020-06-03 09:28:54 +02:00
Renovate Bot 4d4e327df6
Update dependency woocommerce/woocommerce-admin to v1.2.3 2020-05-22 19:24:14 +00:00
Christopher Allford 326d8feb92 Updated the Jetpack Autoloader
Jetpack made a change that requires some extra ignore entries from the latest release of the autoloader, otherwise debug logging warnings are thrown.
2020-05-19 16:16:50 -07:00
Claudio Sanches eea062f9fa
Merge pull request #26519 from woocommerce/fix/csv-import-special-columns
Fixed the case conversion for meta key column mapping in product CSV imports
2020-05-18 11:33:50 -03:00
Néstor Soriano eab8920a07
Merge pull request #26314 from woocommerce/add/build-workflow
Build release workflow
2020-05-15 10:36:34 +02:00
Christopher Allford 63ba6f7ee0 Moved the PSR-4 namespaced test directory to the correct folder
I know this probably doesn't belong in this PR, but it has been thoroughly discussed and I don't think anyone will mind :)
2020-05-14 21:20:47 -07:00
Ron Rennick 229841b9b5 fix merge conflicts take 2 2020-05-12 14:32:59 -03:00
Ron Rennick db7d86f4f5 fix merge conflicts 2020-05-12 13:46:10 -03:00
Ron Rennick f5a7f727f3 update Action Scheduler to 3.1.6 2020-05-12 13:41:13 -03:00
Renovate Bot c4bb82eafc
Update dependency woocommerce/woocommerce-admin to v1.2.0 2020-05-12 16:24:15 +00:00
vedanshujain 253cf5b5d9 Update WC-REST API version to 1.0.8 2020-05-11 23:54:19 +05:30
Ron Rennick 0f2fb4f8d5 fix merge conflicts 2020-05-06 14:05:00 -03:00
Christopher Allford c0ecb79ba2
Merge pull request #26345 from woocommerce/refactor/phpunit-suite
Restructure PHPUnit Suite
2020-04-30 13:51:16 -07:00
Ron Rennick 105cea27c5 fix merge conflicts 2020-04-30 13:34:29 -03:00
Renovate Bot 276c293edc
Update dependency woocommerce/woocommerce-admin to v1.1.1 2020-04-29 18:04:08 +00:00
Renovate Bot 70ad0d0954
Update dependency woocommerce/action-scheduler to v3.1.5 2020-04-29 16:50:56 +00:00
Christopher Allford 04ec11e90b Added a PSR-4 namespaced tests/php folder for tests written against new code in the src directory 2020-04-28 15:41:04 -07:00
Ron Rennick da494be615 merge master 2020-04-28 16:13:30 -03:00
Claudio Sanches 7750a44da0 Allow generate pot as a root user 2020-04-27 20:08:08 -03:00
vedanshu.jain 894f26b39c Update wc-adminv version to 1.1.0 2020-04-21 16:16:33 +05:30
Christopher Allford caa1a6d475 Merge remote-tracking branch 'origin/master' into fix/update-minimum-version 2020-04-16 14:46:17 -07:00
Jeff Stieler dfb3057d12 Update woocommerce-admin to latest 1.1.0 version. 2020-04-15 11:18:08 -06:00
Renovate Bot 65ae94bd4d
Update dependency woocommerce/woocommerce-sniffs to v0.0.10 2020-04-09 13:01:24 +00:00
vedanshu.jain a47c02678a Bump wc-admin version to use latest 1.1.0.
Using commit to force travis to clear build cache.
2020-04-09 16:08:37 +05:30
Peter Fabian 2de06827e6 Updated jetpack-autoloader and woocommerce-blocks
Dependencies updated in one go as Blocks bumped version for JP autoloader.
2020-04-07 14:19:35 +02:00
Christopher Allford 09df1205de Updated the minimum PHP version to 7.0 2020-04-06 17:07:33 -07:00
Renovate Bot 69256e7b89
Update dependency woocommerce/woocommerce-admin to v1.1.0 2020-04-06 20:40:26 +00:00
Renovate Bot c2002976af
Update dependency woocommerce/woocommerce-blocks to v2.5.15 2020-03-31 14:12:53 +00:00
Renovate Bot 2a7cb16ab6
Update dependency woocommerce/woocommerce-admin to v1.0.3 2020-03-19 17:40:15 +00:00
Renovate Bot 75d07e9064
Update dependency woocommerce/action-scheduler to v3.1.4 2020-03-18 15:23:38 +00:00
Paul Sealock 7213ddb3f7 wc-admin: bump version to 1.0.2 2020-03-18 11:58:14 +13:00
Peter Fabian 968e9c6527 Update Action Scheduler to version 3.1.2
This is a trick to avoid function conflict with MailChimp 2.3.4 and how it hooks its own version of Action Scheduler during the autoloader function.
2020-03-10 16:02:37 +01:00