Skip to content

Commit

Permalink
refactor: remove babel-plugin-lodash (#3404)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored Jul 7, 2023
1 parent fa9c5b5 commit c704218
Show file tree
Hide file tree
Showing 218 changed files with 2,741 additions and 1,471 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["@typescript-eslint", "jest", "import", "react"],
plugins: ["@typescript-eslint", "jest", "import", "react", "lodash"],
env: {
jest: true,
commonjs: true,
Expand All @@ -44,7 +44,8 @@ module.exports = {
// This rule raises an error when you do that, so we disabled it.
"jest/no-conditional-expect": 0,
"jest/no-commented-out-tests": 0,
"jest/no-disabled-tests": 0
"jest/no-disabled-tests": 0,
"lodash/import-scope": [2, "method"]
},
settings: {
react: {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"devDependencies": {
"@4tw/cypress-drag-drop": "^1.4.0",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@deploysentinel/cypress-debugger": "^0.7.4",
Expand All @@ -45,7 +45,6 @@
"@typescript-eslint/parser": "^5.5.0",
"adio": "^1.0.1",
"amazon-cognito-identity-js": "^4.5.3",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.5.0",
"babel-plugin-dynamic-import-node": "^2.0.0",
Expand All @@ -68,6 +67,7 @@
"eslint-import-resolver-babel-module": "^5.3.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.2.0",
"eslint-plugin-react": "^7.27.1",
Expand Down Expand Up @@ -99,10 +99,10 @@
"load-json-file": "^6.2.0",
"lodash": "^4.17.11",
"longest": "^2.0.1",
"minimatch": "^3.0.4",
"minimatch": "^5.1.0",
"node-fetch": "^2.6.1",
"pm2": "^4.5.4",
"prettier": "^2.3.2",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"rxjs": "^6.5.5",
"semver": "^6.3.0",
Expand Down
4 changes: 3 additions & 1 deletion packages-v6/pulumi-sdk/src/Pulumi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os from "os";
import execa from "execa";
import * as path from "path";
import { merge, kebabCase, set } from "lodash";
import merge from "lodash/merge";
import kebabCase from "lodash/kebabCase";
import set from "lodash/set";
import downloadBinaries from "./downloadBinaries";

type Command = string | string[];
Expand Down
8 changes: 4 additions & 4 deletions packages/api-aco-so-ddb-es/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
],
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@babel/runtime": "^7.19.0",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@babel/runtime": "^7.22.6",
"@webiny/api": "0.0.0",
"@webiny/api-aco": "0.0.0",
"@webiny/api-dynamodb-to-elasticsearch": "0.0.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/api-aco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"lodash": "^4.4.2"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.19.0",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@babel/runtime": "^7.22.6",
"@types/ungap__structured-clone": "^0.3.0",
"@webiny/api-i18n-ddb": "0.0.0",
"@webiny/api-security-so-ddb": "0.0.0",
Expand All @@ -50,8 +50,8 @@
"@webiny/handler-aws": "0.0.0",
"@webiny/plugins": "0.0.0",
"@webiny/project-utils": "0.0.0",
"graphql": "^16.6.0",
"prettier": "^2.8.8",
"graphql": "^15.8.0",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"ttypescript": "^1.5.13",
"typescript": "^4.7.4"
Expand Down
11 changes: 5 additions & 6 deletions packages/api-admin-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@
],
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@webiny/api-tenancy": "0.0.0",
"@webiny/db-dynamodb": "0.0.0",
"@webiny/error": "0.0.0",
"@webiny/handler": "0.0.0",
"dynamodb-toolbox": "^0.3.4"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@babel/preset-flow": "^7.16.0",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@webiny/cli": "0.0.0",
"@webiny/handler-aws": "0.0.0",
"@webiny/handler-db": "0.0.0",
Expand All @@ -38,7 +37,7 @@
"get-yarn-workspaces": "^1.0.2",
"jest": "^29.5.0",
"jest-dynalite": "^3.6.1",
"prettier": "^2.3.2",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"sinon": "^9.0.2",
"ttypescript": "^1.5.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-admin-users-cognito-so-ddb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"dynamodb-toolbox": "^0.3.5"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"jest": "^29.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-admin-users-cognito/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"md5": "^2.3.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@types/jsonwebtoken": "8.5.1",
"@types/md5": "^2.3.2",
"@webiny/api-i18n": "0.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/api-apw-scheduler-so-ddb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"description": "The DynamoDB storage operations for scheduler action feature in the Webiny APW API.",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@webiny/api-apw": "0.0.0",
"@webiny/db-dynamodb": "0.0.0",
"@webiny/error": "0.0.0",
"@webiny/plugins": "0.0.0",
"dynamodb-toolbox": "^0.3.5"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@webiny/api-security": "0.0.0",
"@webiny/api-tenancy": "0.0.0",
"@webiny/cli": "0.0.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/api-apw/__tests__/utils/graphql/cms.entry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { CmsModel } from "@webiny/api-headless-cms/types";
import lodash from "lodash";
import camelCase from "lodash/camelCase";
import upperFirst from "lodash/upperFirst";

const createModelTypeName = (model: CmsModel): string => {
return lodash.upperFirst(lodash.camelCase(model.modelId));
return upperFirst(camelCase(model.modelId));
};

const createErrorFields = (): string => {
Expand Down
10 changes: 5 additions & 5 deletions packages/api-apw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"dependencies": {
"@aws-sdk/client-cloudwatch-events": "3.54.1",
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@commodo/fields": "1.1.2-beta.20",
"@webiny/api": "0.0.0",
"@webiny/api-admin-settings": "0.0.0",
Expand All @@ -41,17 +41,17 @@
"lodash": "^4.5.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/preset-env": "^7.19.4",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/preset-env": "^7.22.7",
"@webiny/cli": "0.0.0",
"@webiny/handler-aws": "0.0.0",
"@webiny/project-utils": "0.0.0",
"@webiny/wcp": "0.0.0",
"get-yarn-workspaces": "^1.0.2",
"graphql": "^15.7.2",
"jest": "^29.5.0",
"prettier": "^2.3.2",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"sinon": "^9.0.2",
"ttypescript": "^1.5.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-authentication-cognito/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@webiny/api-cognito-authenticator": "0.0.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"rimraf": "^3.0.2",
Expand Down
14 changes: 7 additions & 7 deletions packages/api-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
"author": "Webiny Ltd.",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@webiny/api": "0.0.0",
"@webiny/handler": "0.0.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"jest-dynalite": "^3.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-cognito-authenticator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"node-fetch": "^2.6.1"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@types/jsonwebtoken": "8.5.1",
"@types/jwk-to-pem": "^2.0.1",
"@types/node-fetch": "^2.6.1",
Expand Down
14 changes: 7 additions & 7 deletions packages/api-dynamodb-to-elasticsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"author": "Webiny Ltd.",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@webiny/api-elasticsearch": "0.0.0",
"@webiny/error": "0.0.0",
"@webiny/handler-aws": "0.0.0",
Expand All @@ -20,12 +20,12 @@
"p-retry": "^4.6.2"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@webiny/cli": "0.0.0",
"@webiny/plugins": "0.0.0",
"@webiny/project-utils": "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-elasticsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"elastic-ts": "^0.8.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
"rimraf": "^3.0.2",
Expand Down
14 changes: 7 additions & 7 deletions packages/api-file-manager-ddb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@webiny/api-file-manager": "0.0.0",
"@webiny/db-dynamodb": "0.0.0",
"@webiny/error": "0.0.0",
Expand All @@ -30,12 +30,12 @@
"dynamodb-toolbox": "^0.3.5"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@webiny/cli": "0.0.0",
"jest": "^29.5.0",
"jest-dynalite": "^3.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-file-manager-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"sanitize-filename": "^1.6.3"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@types/node-fetch": "^2.6.1",
"@webiny/cli": "0.0.0",
"@webiny/project-utils": "0.0.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/api-file-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@babel/runtime": "^7.22.6",
"@commodo/fields": "1.1.2-beta.20",
"@webiny/api": "0.0.0",
"@webiny/api-headless-cms": "0.0.0",
Expand All @@ -38,12 +38,12 @@
"object-hash": "^2.1.1"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/cli": "^7.22.6",
"@babel/core": "^7.22.8",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@babel/preset-typescript": "^7.22.5",
"@webiny/api-i18n": "0.0.0",
"@webiny/cli": "0.0.0",
"@webiny/utils": "0.0.0",
Expand Down
Loading

0 comments on commit c704218

Please sign in to comment.