[WEB-5027] fix: replace lodash package with lodash-es (#7856)
* fix: replace lodash pacakge with lodash-es * fix: lint errors * fix: import fixes
This commit is contained in:
parent
c05a5eb5ee
commit
bedc1fae1f
199 changed files with 261 additions and 396 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { FC, useCallback } from "react";
|
||||
import cloneDeep from "lodash/cloneDeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/navigation";
|
||||
// hooks
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { FC, useCallback } from "react";
|
||||
import cloneDeep from "lodash/cloneDeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { observer } from "mobx-react";
|
||||
import { useRouter } from "next/navigation";
|
||||
// constants
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { useCallback, useMemo, useRef } from "react";
|
||||
import debounce from "lodash/debounce";
|
||||
import { debounce } from "lodash-es";
|
||||
import { observer } from "mobx-react";
|
||||
// types
|
||||
import { IIssueDisplayProperties } from "@plane/types";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { MutableRefObject } from "react";
|
||||
import isNil from "lodash/isNil";
|
||||
import { isNil } from "lodash-es";
|
||||
import { observer } from "mobx-react";
|
||||
// types
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import isNil from "lodash/isNil";
|
||||
import { isNil } from "lodash-es";
|
||||
import { ContrastIcon } from "lucide-react";
|
||||
// types
|
||||
import { EIconSize, ISSUE_PRIORITIES } from "@plane/constants";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
import concat from "lodash/concat";
|
||||
import get from "lodash/get";
|
||||
import set from "lodash/set";
|
||||
import uniq from "lodash/uniq";
|
||||
import update from "lodash/update";
|
||||
import { concat, get, set, uniq, update } from "lodash-es";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// plane imports
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { InstanceService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import isEmpty from "lodash/isEmpty";
|
||||
import set from "lodash/set";
|
||||
import { isEmpty, set } from "lodash-es";
|
||||
import { makeObservable, observable, action, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import cloneDeep from "lodash/cloneDeep";
|
||||
import isEqual from "lodash/isEqual";
|
||||
import set from "lodash/set";
|
||||
import { cloneDeep, isEqual, set } from "lodash-es";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// plane internal
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { SitesLabelService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { SitesMemberService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { SitesModuleService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { UserService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { makeObservable, observable, runInAction, action } from "mobx";
|
||||
// plane imports
|
||||
import { SitesProjectPublishService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import clone from "lodash/clone";
|
||||
import { clone } from "lodash-es";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { SitesStateService } from "@plane/services";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { AxiosError } from "axios";
|
||||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// plane imports
|
||||
import { UserService } from "@plane/services";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue