1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 19:01:54 +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:
Tom Scott
2021-09-09 15:55:13 -04:00
committed by GitHub
parent 2065c5bdfd
commit 50bb3d7e32
15 changed files with 25 additions and 24 deletions

View File

@@ -14,7 +14,7 @@
"dist/"
],
"dependencies": {
"is-plain-object": "^3.0.0"
"is-plain-object": "^5.0.0"
},
"devDependencies": {
"@babel/runtime": "^7.7.4",

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import { Operation } from 'slate'
/**

View File

@@ -14,7 +14,7 @@
"dist/"
],
"dependencies": {
"is-plain-object": "^3.0.0"
"is-plain-object": "^5.0.0"
},
"devDependencies": {
"@babel/runtime": "^7.7.4",

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import { Element } from 'slate'
import {
createAnchor,

View File

@@ -18,7 +18,7 @@
"@types/lodash": "^4.14.149",
"direction": "^1.0.3",
"is-hotkey": "^0.1.6",
"is-plain-object": "^3.0.0",
"is-plain-object": "^5.0.0",
"lodash": "^4.17.4",
"scroll-into-view-if-needed": "^2.2.20",
"tiny-invariant": "1.0.6"

View File

@@ -15,7 +15,7 @@
],
"dependencies": {
"immer": "^8.0.1",
"is-plain-object": "^3.0.0",
"is-plain-object": "^5.0.0",
"tiny-warning": "^1.0.3"
},
"devDependencies": {

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import {
Ancestor,

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import { Editor, Node, Path, Descendant, ExtendedType, Ancestor } from '..'
/**

View File

@@ -1,5 +1,5 @@
import { ExtendedType, Node, Path, Range } from '..'
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
export type BaseInsertNodeOperation = {
type: 'insert_node'

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import { produce } from 'immer'
import { ExtendedType, Operation, Path } from '..'

View File

@@ -1,5 +1,5 @@
import { produce } from 'immer'
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import { ExtendedType, Operation, Path, Point, PointEntry } from '..'
/**

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
import { Range } from '..'
import { ExtendedType } from './custom-types'
import { isDeepEqual } from '../utils/deep-equal'

View File

@@ -1,4 +1,4 @@
import isPlainObject from 'is-plain-object'
import { isPlainObject } from 'is-plain-object'
/*
Custom deep equal comparison for Slate nodes.