Skip to content

Commit

Permalink
fix(utils): remove moment.js and delete datetime.utils BREAKING CHANG…
Browse files Browse the repository at this point in the history
…E- This file was added in the v16 but was not documented. Maybe we could mute this one
  • Loading branch information
alecarn committed Apr 16, 2024
1 parent de1fa78 commit c08cdd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import {
mapExtentStrategyActiveToolTip,
noElementSelected
} from '@igo2/geo';
import { dateTransform } from '@igo2/utils';

import * as jsPDF from 'jspdf';
import 'jspdf-autotable';
import moment from 'moment';
import { BehaviorSubject, map } from 'rxjs';

import { ToolState } from '../../tool';
Expand Down Expand Up @@ -227,3 +227,7 @@ export function getWorkspaceActions(
: actions.filter((action) => action.id !== 'print');
return returnActions;
}

function dateTransform(date: Date, format: string): string {
return moment(date).format(format);
}
5 changes: 0 additions & 5 deletions packages/utils/src/lib/datetime.utils.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/utils/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export * from './clipboard';
export * from './compression';
export * from './change';
export * from './change.interface';
export * from './datetime.utils';
export * from './dom.utils';
export * from './file';
export * from './object-utils';
Expand Down

0 comments on commit c08cdd1

Please sign in to comment.