From 9e15a1e5fe5535e7e917df32f4db0d114ee2a598 Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Wed, 13 Nov 2019 12:51:00 -0800 Subject: [PATCH] deps(vx-text): lodash => lodash.memoize with types --- packages/vx-text/package.json | 3 ++- packages/vx-text/src/util/getStringWidth.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vx-text/package.json b/packages/vx-text/package.json index 995c81d803..90933c8166 100644 --- a/packages/vx-text/package.json +++ b/packages/vx-text/package.json @@ -32,9 +32,10 @@ "homepage": "https://github.com/hshoff/vx#readme", "dependencies": { "@types/classnames": "^2.2.9", + "@types/lodash.memoize": "^4.1.6", "@types/react": "*", "classnames": "^2.2.5", - "lodash": "^4.17.15", + "lodash.memoize": "^4.1.2", "prop-types": "^15.7.2", "reduce-css-calc": "^1.3.0" }, diff --git a/packages/vx-text/src/util/getStringWidth.ts b/packages/vx-text/src/util/getStringWidth.ts index 0fc97464bf..7b6ab104bf 100644 --- a/packages/vx-text/src/util/getStringWidth.ts +++ b/packages/vx-text/src/util/getStringWidth.ts @@ -1,4 +1,4 @@ -import memoize from 'lodash/memoize'; +import memoize from 'lodash.memoize'; const MEASUREMENT_ELEMENT_ID = '__react_svg_text_measurement_id';