Commit Graph

28 Commits

Author SHA1 Message Date
Jeff Stieler 17514872ad Decouple currency and numbers packages from `wcSettings`. (https://github.com/woocommerce/woocommerce-admin/pull/3277)
* Remove wcSettings dependency from currency and number packages.

Either take a configuration object in function calls or in a new class constructor.

* Use new Currency class and number format methods in client/.

Compose with store settings to keep the same API.

* Don't reintroduce lodash dependency to currency package.

* Add changelog entries to currency and number packages.

* Update docs, example, and changelog for AdvancedFilters component.

* Use precision-less formatValue() for integer report values.

* Make Currency instance immutable.
2019-11-21 16:51:52 -05:00
renovate[bot] faf4e7e6e4 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/3177) 2019-11-11 11:05:50 +01:00
renovate[bot] 9e149f4ad1 Update babel monorepo to v7.6.3 (https://github.com/woocommerce/woocommerce-admin/pull/3013) 2019-10-09 09:28:27 -04:00
renovate[bot] 891823c576 Update babel monorepo to v7.6.2 (https://github.com/woocommerce/woocommerce-admin/pull/2910) 2019-10-07 10:45:00 -04:00
Albert Juhé Lluveras db4328acb8 Use native Number.isFinite() instead of lodash isFinite (https://github.com/woocommerce/woocommerce-admin/pull/2977) 2019-10-01 10:02:53 +02:00
Darren Ethier d728d38219 Refactor: Alternative approach to implementing extendable settings from the server (https://github.com/woocommerce/woocommerce-admin/pull/2917)
* integrate with new asset data registration (php side)

- includes back-compatibility.

* update js configuration and implement settings alias

- this aliases `@woocommerce/wc-admin-settings` to the settings api exposed via blocks (either the blocks plugin or core) and all the settings provided via the server.
- Adds fallback for back-compat if `wc.wcSettings` is not available in the environment (fallsback to `wcSettings`).

* initial pass to update all wcSettings direct usage to the new api

- this is just an initial pass, more can be done in separate pulls.

* missed one spot for adding new filter implementation

* fix incorrect jest config

* Avoid unnecessary assignment and directly return.

* Remove unnecessary defaults

* Fix inline comment text case.

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* Remove unnecessary inline comment.

* use @todo instead of TODO

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* fix incorrect reference in webpack config.

* add missing import and slightly delay dependency injection for scripts

* update get-setting and set-setting callbacks

* disable lint rule for console.error on dev doc builds
2019-09-23 17:47:08 -04:00
Paul Sealock 5b3ecb186c components: update package.jsons 2019-08-16 10:20:54 +12:00
Paul Sealock dd948051cb Components: prepare changelogs for release 2019-08-16 10:08:29 +12:00
renovate[bot] e1e9b556b6 Update dependency lodash to v4.17.15 (https://github.com/woocommerce/woocommerce-admin/pull/2722) 2019-07-31 11:55:19 -04:00
renovate[bot] aa45022256 Update babel monorepo to v7.5.5 (https://github.com/woocommerce/woocommerce-admin/pull/2691) 2019-07-29 13:29:52 -04:00
renovate[bot] 4b7bac3327 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/2623) 2019-07-15 16:25:15 +02:00
renovate[bot] 2c6c7671e2 Update dependency lodash to v4.17.13 [SECURITY] (https://github.com/woocommerce/woocommerce-admin/pull/2639) 2019-07-15 11:19:37 +02:00
Mike Jolley a89716296c license typo 2019-07-05 11:26:12 +01:00
Paul Sealock 1108d327be Packages: prepare for release 2019-07-04 13:30:25 +12:00
renovate[bot] d52a32692c Update dependency locutus to v2.0.11 (https://github.com/woocommerce/woocommerce-admin/pull/2515) 2019-07-01 17:26:35 -07:00
Ron Rennick 08f542de3f Merge pull request woocommerce/woocommerce-admin#2263 from woocommerce/consistent-licenses
include license.txt and update component package.json files
2019-05-24 23:29:41 -03:00
renovate[bot] 8b5681c466 Update babel monorepo to v7.4.5 (https://github.com/woocommerce/woocommerce-admin/pull/2273) 2019-05-22 10:31:29 +02:00
Ron Rennick 69e8f5151f include license.txt and update component package.json files 2019-05-18 01:19:20 -03:00
Renovate Bot 20fd6abf4c Update babel monorepo to v7.4.4 2019-05-01 00:39:50 +00:00
Kelly Dwan 754c2a07eb Update changelogs with latest versions, bump package versions where outdated (https://github.com/woocommerce/woocommerce-admin/pull/2039) 2019-04-11 14:43:45 -04:00
renovate[bot] 4c018efc7a Update babel monorepo to v7.4.3 (https://github.com/woocommerce/woocommerce-admin/pull/1987) 2019-04-03 08:48:52 -04:00
renovate[bot] 702156b6de Update dependency @babel/runtime-corejs2 to v7.4.2 (https://github.com/woocommerce/woocommerce-admin/pull/1922) 2019-03-27 09:40:55 +01:00
renovate[bot] 8e5b75dd08 Update babel monorepo to v7.4.0 (https://github.com/woocommerce/woocommerce-admin/pull/1853) 2019-03-20 12:51:21 -04:00
Jeff Stieler bfe5a75e98 Update text domain. (https://github.com/woocommerce/woocommerce-admin/pull/1795)
* Translation call text domain change from “wc-admin” to “woocommerce-admin”.

* Fix .pot file generation.

* Fix errantly closed array item in /revenue/stats controller.

* Rename plugin zip, main file, and repo name to "woocommerce-admin".
2019-03-13 11:14:02 -06:00
renovate[bot] 89138520e1 Update babel monorepo to v7.3.4 (https://github.com/woocommerce/woocommerce-admin/pull/1700) 2019-02-27 14:42:32 -05:00
renovate[bot] f128716d28 Update babel monorepo (https://github.com/woocommerce/woocommerce-admin/pull/1373) 2019-01-30 15:46:29 -05:00
Timmy Crawford 88ea613627 Build: Updates from latest npm publish (https://github.com/woocommerce/woocommerce-admin/pull/1409)
* remove unreleased tags from changelogs

* chore(release): publish

 - @woocommerce/components@1.4.1
 - @woocommerce/csv-export@1.0.3
 - @woocommerce/currency@1.1.0
 - @woocommerce/date@1.0.6
 - @woocommerce/navigation@1.1.1
 - @woocommerce/number@1.0.1
2019-01-29 15:37:25 -08:00
Timmy Crawford e136036ef9 Build: Create new number package (https://github.com/woocommerce/woocommerce-admin/pull/1399)
* Create new number package

* Updates per feedback.

* Update README.
2019-01-28 15:34:56 -08:00