Skip to content

Commit

Permalink
fix: use lodash-es dep instead of lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCQL committed Jul 13, 2023
1 parent 368996b commit 466c52b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## `v0.0.27`

### Miscellaneous

- Changed `lodash` dependency to `lodash-es`

## `v0.0.26`

### Breaking Changes
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmes",
"version": "0.0.26",
"version": "0.0.27",
"private": false,
"packageManager": "[email protected]",
"sideEffects": false,
Expand Down Expand Up @@ -30,7 +30,7 @@
"@bufbuild/protobuf": "^1.2.0",
"@walletconnect/legacy-client": "^2.0.0",
"@walletconnect/sign-client": "^2.8.0",
"lodash": "^4.17.21"
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@bufbuild/buf": "1.18.0-1",
Expand All @@ -39,7 +39,7 @@
"@bufbuild/protoplugin": "^1.2.0",
"@keplr-wallet/types": "^0.11.62",
"@types/degit": "^2.8.3",
"@types/lodash": "^4.14.195",
"@types/lodash-es": "^4.17.7",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@walletconnect/legacy-client": "^2.0.0",
Expand All @@ -52,6 +52,7 @@
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"glob": "^10.2.3",
"lodash-es": "^4.17.21",
"postcss": "^8.4.23",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
Expand Down
24 changes: 17 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions scripts/gen-protobufs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { spawnSync } from "child_process";
import degit from "degit";
import { mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
import { globSync } from "glob";
import _ from "lodash";
import { capitalize } from "lodash-es";
import { dirname, join } from "path";
import { fileURLToPath } from "url";

Expand Down Expand Up @@ -92,10 +92,7 @@ function generateIndexExports(dir) {
.split("/")
.map((name) =>
// convert name to PascalCase
name
.split("-")
.map((str) => _.capitalize(str))
.join("")
name.split("-").map(capitalize).join("")
)
.join("");
for (const file of files) {
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/walletconnect/WalletConnectV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SignClient from "@walletconnect/sign-client";
import debounce from "lodash/debounce";
import { debounce } from "lodash-es";

import { StdSignDoc } from "@keplr-wallet/types";
import { isAndroid, isMobile } from "../utils/os";
Expand Down

0 comments on commit 466c52b

Please sign in to comment.