Skip to content

Commit 372693f

Browse files
refactor: remove momentjs dependency
1 parent dce0e3a commit 372693f

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"packageManager": "yarn@3.2.4",
6868
"resolutions": {
6969
"@types/react": "^17",
70-
"moment": "2.29.2",
7170
"canvas": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.2.1.tgz",
7271
"react-virtualized@^9.22.3": "patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch",
7372
"eslint-plugin-only-ascii@^0.0.0": "patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch"

client/packages/lowcoder-dev-utils/external.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ export const libs = [
1818
"@dnd-kit/modifiers",
1919
"@dnd-kit/sortable",
2020
"@dnd-kit/utilities",
21-
{
22-
name: "moment",
23-
extractDefault: true,
24-
},
2521
{
2622
name: "dayjs",
2723
extractDefault: true,

client/packages/lowcoder/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"lowcoder-core": "workspace:^",
5858
"lowcoder-design": "workspace:^",
5959
"mime": "^3.0.0",
60-
"moment": "^2.29.4",
6160
"numbro": "^2.3.6",
6261
"papaparse": "^5.3.2",
6362
"qrcode.react": "^3.1.0",

client/packages/lowcoder/src/comps/hooks/hookComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const HookMap: HookCompMapRawType = {
8585
currentTime: CurrentTimeHookComp,
8686
lodashJsLib: LodashJsLib,
8787
dayJsLib: DayJsLib,
88-
momentJsLib: DayJsLib,
88+
momentJsLib: DayJsLib, // old components use this hook
8989
utils: UtilsComp,
9090
message: MessageComp,
9191
localStorage: LocalStorageComp,

client/yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11743,7 +11743,6 @@ __metadata:
1174311743
lowcoder-design: "workspace:^"
1174411744
lowcoder-dev-utils: "workspace:^"
1174511745
mime: ^3.0.0
11746-
moment: ^2.29.4
1174711746
numbro: ^2.3.6
1174811747
papaparse: ^5.3.2
1174911748
qrcode.react: ^3.1.0

0 commit comments

Comments
 (0)