mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +02:00
Upgrade is-plain-object
to v5.0.0 (#4500)
* Upgrade `is-plain-object` to v5.0.0 The `is-plain-object` package recently had a major version upgrade that broke libraries which import its default export, such as this one. This causes issues when other packages in the same application require a higher version of `is-plain-object`, resulting in an error originating in Slate's codebase. To remedy this, Slate is now depending on `is-plain-object@^5.0.0` and its import references across the codebase have been updated. Fixes #4499 * Add changeset Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
This commit is contained in:
8
.changeset/gold-planets-pump.md
Normal file
8
.changeset/gold-planets-pump.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
'slate-history': patch
|
||||||
|
'slate-hyperscript': patch
|
||||||
|
'slate-react': patch
|
||||||
|
'slate': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Upgrade `is-plain-object` to v5.0.0
|
@@ -14,7 +14,7 @@
|
|||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-plain-object": "^3.0.0"
|
"is-plain-object": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/runtime": "^7.7.4",
|
"@babel/runtime": "^7.7.4",
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
import { Operation } from 'slate'
|
import { Operation } from 'slate'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"is-plain-object": "^3.0.0"
|
"is-plain-object": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/runtime": "^7.7.4",
|
"@babel/runtime": "^7.7.4",
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
import { Element } from 'slate'
|
import { Element } from 'slate'
|
||||||
import {
|
import {
|
||||||
createAnchor,
|
createAnchor,
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
"@types/lodash": "^4.14.149",
|
"@types/lodash": "^4.14.149",
|
||||||
"direction": "^1.0.3",
|
"direction": "^1.0.3",
|
||||||
"is-hotkey": "^0.1.6",
|
"is-hotkey": "^0.1.6",
|
||||||
"is-plain-object": "^3.0.0",
|
"is-plain-object": "^5.0.0",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"scroll-into-view-if-needed": "^2.2.20",
|
"scroll-into-view-if-needed": "^2.2.20",
|
||||||
"tiny-invariant": "1.0.6"
|
"tiny-invariant": "1.0.6"
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"immer": "^8.0.1",
|
"immer": "^8.0.1",
|
||||||
"is-plain-object": "^3.0.0",
|
"is-plain-object": "^5.0.0",
|
||||||
"tiny-warning": "^1.0.3"
|
"tiny-warning": "^1.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Ancestor,
|
Ancestor,
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
import { Editor, Node, Path, Descendant, ExtendedType, Ancestor } from '..'
|
import { Editor, Node, Path, Descendant, ExtendedType, Ancestor } from '..'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { ExtendedType, Node, Path, Range } from '..'
|
import { ExtendedType, Node, Path, Range } from '..'
|
||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
|
|
||||||
export type BaseInsertNodeOperation = {
|
export type BaseInsertNodeOperation = {
|
||||||
type: 'insert_node'
|
type: 'insert_node'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
import { produce } from 'immer'
|
import { produce } from 'immer'
|
||||||
import { ExtendedType, Operation, Path } from '..'
|
import { ExtendedType, Operation, Path } from '..'
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { produce } from 'immer'
|
import { produce } from 'immer'
|
||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
import { ExtendedType, Operation, Path, Point, PointEntry } from '..'
|
import { ExtendedType, Operation, Path, Point, PointEntry } from '..'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
import { Range } from '..'
|
import { Range } from '..'
|
||||||
import { ExtendedType } from './custom-types'
|
import { ExtendedType } from './custom-types'
|
||||||
import { isDeepEqual } from '../utils/deep-equal'
|
import { isDeepEqual } from '../utils/deep-equal'
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import isPlainObject from 'is-plain-object'
|
import { isPlainObject } from 'is-plain-object'
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Custom deep equal comparison for Slate nodes.
|
Custom deep equal comparison for Slate nodes.
|
||||||
|
15
yarn.lock
15
yarn.lock
@@ -9191,13 +9191,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"is-plain-object@npm:^3.0.0":
|
|
||||||
version: 3.0.1
|
|
||||||
resolution: "is-plain-object@npm:3.0.1"
|
|
||||||
checksum: d13fe75db350d4ac669595cdfe0242ae87fcecddf2bca858d2dd443a6ed6eb1f69951fac8c2fa85b16106c6b0d7738fea86c2aca2ecee7fd61de15c1574f2cc5
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"is-plain-object@npm:^5.0.0":
|
"is-plain-object@npm:^5.0.0":
|
||||||
version: 5.0.0
|
version: 5.0.0
|
||||||
resolution: "is-plain-object@npm:5.0.0"
|
resolution: "is-plain-object@npm:5.0.0"
|
||||||
@@ -14316,7 +14309,7 @@ resolve@^2.0.0-next.3:
|
|||||||
resolution: "slate-history@workspace:packages/slate-history"
|
resolution: "slate-history@workspace:packages/slate-history"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime": ^7.7.4
|
"@babel/runtime": ^7.7.4
|
||||||
is-plain-object: ^3.0.0
|
is-plain-object: ^5.0.0
|
||||||
lodash: ^4.17.21
|
lodash: ^4.17.21
|
||||||
slate: ^0.65.3
|
slate: ^0.65.3
|
||||||
slate-hyperscript: ^0.62.0
|
slate-hyperscript: ^0.62.0
|
||||||
@@ -14331,7 +14324,7 @@ resolve@^2.0.0-next.3:
|
|||||||
resolution: "slate-hyperscript@workspace:packages/slate-hyperscript"
|
resolution: "slate-hyperscript@workspace:packages/slate-hyperscript"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime": ^7.7.4
|
"@babel/runtime": ^7.7.4
|
||||||
is-plain-object: ^3.0.0
|
is-plain-object: ^5.0.0
|
||||||
slate: ^0.65.3
|
slate: ^0.65.3
|
||||||
source-map-loader: ^0.2.4
|
source-map-loader: ^0.2.4
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -14429,7 +14422,7 @@ resolve@^2.0.0-next.3:
|
|||||||
"@types/react-dom": ^16.9.4
|
"@types/react-dom": ^16.9.4
|
||||||
direction: ^1.0.3
|
direction: ^1.0.3
|
||||||
is-hotkey: ^0.1.6
|
is-hotkey: ^0.1.6
|
||||||
is-plain-object: ^3.0.0
|
is-plain-object: ^5.0.0
|
||||||
jsdom: ^16.6.0
|
jsdom: ^16.6.0
|
||||||
lodash: ^4.17.4
|
lodash: ^4.17.4
|
||||||
react: ">=16.8.0"
|
react: ">=16.8.0"
|
||||||
@@ -14453,7 +14446,7 @@ resolve@^2.0.0-next.3:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime": ^7.7.4
|
"@babel/runtime": ^7.7.4
|
||||||
immer: ^8.0.1
|
immer: ^8.0.1
|
||||||
is-plain-object: ^3.0.0
|
is-plain-object: ^5.0.0
|
||||||
lodash: ^4.17.21
|
lodash: ^4.17.21
|
||||||
slate-hyperscript: ^0.62.0
|
slate-hyperscript: ^0.62.0
|
||||||
source-map-loader: ^0.2.4
|
source-map-loader: ^0.2.4
|
||||||
|
Reference in New Issue
Block a user