Socket
Socket
Sign inDemoInstall

prosemirror-model

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-model - npm Package Compare versions

Comparing version 1.18.0 to 1.18.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.18.1 (2022-06-15)
### Bug fixes
Upgrade to orderedmap 2.0.0 to avoid around a TypeScript compilation issue.
## 1.18.0 (2022-06-07)

@@ -2,0 +8,0 @@

7

dist/index.d.ts

@@ -753,2 +753,7 @@ import OrderedMap from 'orderedmap';

/**
Indicates whether this node allows some of the same content as
the given node type.
*/
compatibleContent(other: NodeType): boolean;
/**
Create a `Node` of this type. The given attributes are

@@ -1151,3 +1156,3 @@ checked and defaulted (you can pass `null` to use the type's

*/
nodeFromJSON(json: any): any;
nodeFromJSON(json: any): Node;
/**

@@ -1154,0 +1159,0 @@ Deserialize a mark from its JSON representation. This method is

4

package.json
{
"name": "prosemirror-model",
"version": "1.18.0",
"version": "1.18.1",
"description": "ProseMirror's document model",

@@ -27,3 +27,3 @@ "type": "module",

"dependencies": {
"orderedmap": "^1.1.0"
"orderedmap": "^2.0.0"
},

@@ -30,0 +30,0 @@ "devDependencies": {

@@ -119,3 +119,4 @@ import OrderedMap from "orderedmap"

/// @internal
/// Indicates whether this node allows some of the same content as
/// the given node type.
compatibleContent(other: NodeType) {

@@ -602,3 +603,3 @@ return this == other || this.contentMatch.compatible(other.contentMatch)

/// bound.
nodeFromJSON(json: any) {
nodeFromJSON(json: any): Node {
return Node.fromJSON(this, json)

@@ -609,3 +610,3 @@ }

/// bound.
markFromJSON(json: any) {
markFromJSON(json: any): Mark {
return Mark.fromJSON(this, json)

@@ -612,0 +613,0 @@ }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc