Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 637c9e3

Browse files
authored
Merge pull request #252 from ckeditor/t/251
Other: Removed `lodash` library from this package. Closes #251.
2 parents 98508b0 + a7efdd7 commit 637c9e3

File tree

592 files changed

+10
-20245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

592 files changed

+10
-20245
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"ckeditor5-lib"
1010
],
1111
"dependencies": {
12-
"ckeditor5": "^11.0.1"
12+
"ckeditor5": "^11.0.1",
13+
"lodash-es": "^4.17.10"
1314
},
1415
"devDependencies": {
1516
"@ckeditor/ckeditor5-core": "^11.0.0",

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @module utils/config
88
*/
99

10-
import isPlainObject from './lib/lodash/isPlainObject';
10+
import { isPlainObject } from 'lodash-es';
1111

1212
/**
1313
* Handles a configuration dictionary.

src/dom/createelement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* @module utils/dom/createelement
88
*/
99

10-
import isString from '../lib/lodash/isString';
1110
import isIterable from '../isiterable';
11+
import { isString } from 'lodash-es';
1212

1313
/**
1414
* Creates element with attributes and children.

src/dom/emittermixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
import { default as EmitterMixin, _getEmitterListenedTo, _setEmitterId } from '../emittermixin';
1111
import uid from '../uid';
12-
import extend from '../lib/lodash/extend';
1312
import isNode from './isnode';
1413
import isWindow from './iswindow';
14+
import { extend } from 'lodash-es';
1515

1616
/**
1717
* Mixin that injects the DOM events API into its host. It provides the API

src/dom/position.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import global from './global';
1111
import Rect from './rect';
1212
import getPositionedAncestor from './getpositionedancestor';
1313
import getBorderWidths from './getborderwidths';
14-
import isFunction from '../lib/lodash/isFunction';
14+
import { isFunction } from 'lodash-es';
1515

1616
/**
1717
* Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the

src/dom/rect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
import isRange from './isrange';
1111
import isWindow from './iswindow';
12-
import isElement from '../lib/lodash/isElement';
1312
import getBorderWidths from './getborderwidths';
1413
import log from '../log';
1514
import isText from './istext';
15+
import { isElement } from 'lodash-es';
1616

1717
/**
1818
* A helper class representing a `ClientRect` object, e.g. value returned by

src/lib/lodash/_DataView.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/lib/lodash/_Hash.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/lib/lodash/_LazyWrapper.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/lib/lodash/_ListCache.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)