Socket
Socket
Sign inDemoInstall

prosemirror-transform

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-transform - npm Package Versions

23
8

1.10.0

Diff

Changelog

Source

1.10.0 (2024-08-13)

New features

setBlockType can now take a function that computes attributes for the new nodes, instead of a static attribute object.

marijn
published 1.9.0 •

Changelog

Source

1.9.0 (2024-05-06)

Bug fixes

Fix an issue in ReplaceAroundStep.map that broke mapping steps that wrapped content over steps that inserted content at the start of the step.

New features

setBlockMarkup now uses the linebreak equivalent node defined in the schema.

marijn
published 1.8.0 •

Changelog

Source

1.8.0 (2023-10-01)

New features

The new DocAttrStep can be used to set attributes on the document's top node.

Transform.setDocAttribute can be used to create a DocAttrStep in a transform.

marijn
published 1.7.5 •

Changelog

Source

1.7.5 (2023-08-22)

Bug fixes

Fix a failure in replaceRange to drop wrapper nodes when the same wrapper is already present.

marijn
published 1.7.4 •

Changelog

Source

1.7.4 (2023-07-28)

Bug fixes

When using setBlockType to convert a code block to a type of node that doesn't contain code, replace newlines with spaces.

marijn
published 1.7.3 •

Changelog

Source

1.7.3 (2023-06-01)

Bug fixes

Fix a bug in canSplit that made it interpret the typesAfter argument incorrectly on splits of depth greater than 1.

marijn
published 1.7.2 •

Changelog

Source

1.7.2 (2023-05-17)

Bug fixes

Include CommonJS type declarations in the package to please new TypeScript resolution settings.

marijn
published 1.7.1 •

Changelog

Source

1.7.1 (2023-01-20)

Bug fixes

Keep content in isolating nodes inside their parent when fitting a replace step.

Transform.setNodeMarkup will no longer clear the node's marks when it isn't given an array of marks.

marijn
published 1.7.0 •

Changelog

Source

1.7.0 (2022-08-16)

New features

The new AttrStep (and Transform.setNodeAttribute) can be used to set individual attributes on a node.

AddNodeMarkStep and RemoveNodeMarkStep can now be used to add and remove marks on individual nodes. Transform.addNodeMark/removeNodeMark provide an interface to these in transform objects.

marijn
published 1.6.0 •

Changelog

Source

1.6.0 (2022-06-01)

Bug fixes

Allow replace steps to be mapped through changes that delete content next to their start and end points, as long as no delete spans across those points.

New features

MapResult objects now provide information about whether the tokens before, after, and around the position were deleted.

23
8
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