From e39a5fde67b74bc939d0cbe11cd02fec2a891adb Mon Sep 17 00:00:00 2001 From: Emmanuel Mahuni Date: Sat, 17 Jul 2021 08:56:19 +0200 Subject: [PATCH 1/4] feat(options): add custom lodash in options --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 07a5074..c587366 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,7 +4,8 @@ import filters from './filters' export default function install(Vue, options = { alias: false, - filters: true + filters: true, + lodash: lodash }) { // Register lodash to vue instance From c95f810991f11499da49bafdf531da8d7532168f Mon Sep 17 00:00:00 2001 From: Emmanuel Mahuni Date: Sat, 17 Jul 2021 08:59:19 +0200 Subject: [PATCH 2/4] docs: add custom lodash options documentation. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9dcce16..37ee666 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,12 @@ Vue.use(VueLodash, { The filter groups mirror the [official documentation groups](https://lodash.com/docs/). +#### lodash + +Type: `object` + +Use a custom specific lodash instead of the default version of lodash packed with the lib. + --- ## License @@ -91,4 +97,4 @@ Released with [MIT License](./LICENSE) © [codekraft-studio](https://github.com/ [daviddm-url]: https://david-dm.org/codekraft-studio/vue-lodash [license-url]: https://github.com/codekraft-studio/vue-lodash/blob/master/LICENSE -[license-image]: https://img.shields.io/badge/license-MIT-blue.svg \ No newline at end of file +[license-image]: https://img.shields.io/badge/license-MIT-blue.svg From ed4093240e9159643d924d8aca1915e0cc173920 Mon Sep 17 00:00:00 2001 From: Emmanuel Mahuni Date: Sat, 17 Jul 2021 09:02:16 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 37ee666..1e76937 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ Type: `object` Use a custom specific lodash instead of the default version of lodash packed with the lib. --- +## Contributors +[Emmanuel Mahuni](https://github.com/emahuni) ## License From e443e2fbd6cdf259c403f4fe4403b2fa89734060 Mon Sep 17 00:00:00 2001 From: Emmanuel Mahuni Date: Sun, 18 Jul 2021 14:45:35 +0200 Subject: [PATCH 4/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e907dfd..bd0b1c5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@codekraft-studio/vue-lodash", + "name": "vue-lodash", "description": "Lodash integration and filters for Vue", "version": "0.2.0", "main": "dist/VueLodash.umd.js",