slate 0.63.0-202147135831 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # slate
2
2
 
3
- ## 0.63.0-202147135831
3
+ ## 0.63.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,11 +8,13 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - [#4208](https://github.com/ianstormtaylor/slate/pull/4208) [`feb293aa`](https://github.com/ianstormtaylor/slate/commit/feb293aaa2c02fe3ad319bd021e66908ee770a6e) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Fix `Error: Cannot get the start point in the node at path [...] because it has no start text node` caused by normalizing a document where some elements have no children
11
+ - [#4245](https://github.com/ianstormtaylor/slate/pull/4245) [`b33a531b`](https://github.com/ianstormtaylor/slate/commit/b33a531bd0395ecb23bd9fd1ac1cd1c3b31f92ca) Thanks [@JonasKruckenberg](https://github.com/JonasKruckenberg)! - Removed lodash dependecy to reduce bundled footprint
12
12
 
13
- * [#4230](https://github.com/ianstormtaylor/slate/pull/4230) [`796389c7`](https://github.com/ianstormtaylor/slate/commit/796389c7d3d9cead1493abcba6c678cb9dfa979f) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Exceptions in `editor.apply()` and `Editor.withoutNormalizing()` will no longer leave the editor in an invalid state
13
+ * [#4208](https://github.com/ianstormtaylor/slate/pull/4208) [`feb293aa`](https://github.com/ianstormtaylor/slate/commit/feb293aaa2c02fe3ad319bd021e66908ee770a6e) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Fix `Error: Cannot get the start point in the node at path [...] because it has no start text node` caused by normalizing a document where some elements have no children
14
14
 
15
- - [#4227](https://github.com/ianstormtaylor/slate/pull/4227) [`e6413d46`](https://github.com/ianstormtaylor/slate/commit/e6413d46256f6fc60549974242d3ff6ba61e2968) Thanks [@ulion](https://github.com/ulion)! - Fixed a bug that would allow multiple changes to be scheduled at the same time.
15
+ - [#4230](https://github.com/ianstormtaylor/slate/pull/4230) [`796389c7`](https://github.com/ianstormtaylor/slate/commit/796389c7d3d9cead1493abcba6c678cb9dfa979f) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Exceptions in `editor.apply()` and `Editor.withoutNormalizing()` will no longer leave the editor in an invalid state
16
+
17
+ * [#4227](https://github.com/ianstormtaylor/slate/pull/4227) [`e6413d46`](https://github.com/ianstormtaylor/slate/commit/e6413d46256f6fc60549974242d3ff6ba61e2968) Thanks [@ulion](https://github.com/ulion)! - Fixed a bug that would allow multiple changes to be scheduled at the same time.
16
18
 
17
19
  ## 0.62.1
18
20
 
package/dist/index.es.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import isPlainObject from 'is-plain-object';
2
2
  import { reverse } from 'esrever';
3
3
  import { produce, createDraft, finishDraft, isDraft } from 'immer';
4
- import isEqual from 'lodash/isEqual';
5
- import omit from 'lodash/omit';
4
+ import isEqual from 'fast-deep-equal';
6
5
 
7
6
  function _defineProperty(obj, key, value) {
8
7
  if (key in obj) {
@@ -3502,7 +3501,14 @@ var Text = {
3502
3501
  var {
3503
3502
  loose = false
3504
3503
  } = options;
3505
- return isEqual(loose ? omit(text, 'text') : text, loose ? omit(another, 'text') : another);
3504
+
3505
+ function omitText(obj) {
3506
+ var rest = _objectWithoutProperties(obj, ["text"]);
3507
+
3508
+ return rest;
3509
+ }
3510
+
3511
+ return isEqual(loose ? omitText(text) : text, loose ? omitText(another) : another);
3506
3512
  },
3507
3513
 
3508
3514
  /**