Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parchment

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parchment - npm Package Versions

1345

2.0.1

Diff

Changelog

Source

2.0.1

  • Registry.find() handles restricted nodes on Firefox.
luin
published 2.0.0 •

Changelog

Source

2.0.0

  • Add ParentBlot. ContainerBlot now inherits ParentBlot.
  • Add UI node support with ParentBlot#attachUI().
  • Fix compatibility with TypeScript 3.7.
  • Ensure Scroll#find() does not return blots in child scrolls.

Breaking Changes

  • The default export is removed. Use named exports instead:

    Before:

    import Parchment from 'parchment';
    const blot = Parchment.create(/* ... */);
    class MyContainer extends Parchment.Container {}
    

    After:

    import { Registry, ContainerBlot } from 'parchment';
    const blot = Registry.create(/* ... */);
    class MyContainer extends Parchment.ContainerBlot {}
    
  • ParentBlot.defaultChild requires a blot constructor instead of a string.

  • Blot#replace() is removed. Use Blot#replaceWith() instead.

  • Blot#insertInto() is removed. Use Parent#insertBefore() instead.

  • FormatBlot is removed. Now BlockBlot and InlineBlot implement Formattable interface directly.

  • Typing: Blot#prev, Blot#next and Blot#split() may return null.

  • Typing: Other misc type declaration changes.

jhchen
published 2.0.0-dev.3 •

jhchen
published 2.0.0-dev.2 •

jhchen
published 2.0.0-dev.1 •

dgreensp
published 2.0.0-dev.0 •

jhchen
published 1.1.4 •

jhchen
published 1.1.3 •

jhchen
published 1.1.2 •

jhchen
published 1.1.1 •

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