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

preact-render-to-string

Package Overview
Dependencies
Maintainers
6
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact-render-to-string - npm Package Versions

1
12

6.2.1

Diff

Changelog

Source

6.2.1

Patch Changes

marvinhagemeister
published 6.2.0 •

Changelog

Source

6.2.0

Minor Changes

  • #305 568f139 Thanks @marvinhagemeister! - Add support for error boundaries via componentDidCatch and getDerivedStateFromError

    This feature is disabled by default and can be enabled by toggling the errorBoundaries option:

    import { options } from 'preact';
    
    // Enable error boundaries
    options.errorBoundaries = true;
    
marvinhagemeister
published 6.1.0 •

Changelog

Source

6.1.0

Minor Changes

  • #301 659b456 Thanks @marvinhagemeister! - Add experimental ability to render HTML comments via <Fragment UNSTABLE_comment="my-comment" />. When the UNSTABLE_comment prop is present all children of that Fragment will be ignored and a HTML comment will be rendered instead. This feature is added to allow framework authors to experiment with marking DOM for hydration in the client. Note that it's marked as unstable and might change in the future.
marvinhagemeister
published 6.0.3 •

Changelog

Source

6.0.3

Patch Changes

marvinhagemeister
published 6.0.2 •

Changelog

Source

6.0.2

Patch Changes

marvinhagemeister
published 6.0.1 •

Changelog

Source

6.0.1

Patch Changes

jdecroock
published 6.0.0 •

Changelog

Source

6.0.0

Major Changes

  • #241 e8cbf66 Thanks @developit! - Improve performance by another 5-10% using switch and short-circuiting, and move pretty-printing from into preact-render-to-string/jsx.
  • #282 6376f62 Thanks @JoviDeCroock! - Remove trailing space for void_elements, this could fail some test_assertions as <img /> will become <img/>, the other VOID_ELEMENTS this will be applied for can be found here

Patch Changes

  • #288 0b04860 Thanks @glenchao! - Enumerate draggable attribute, so the output isn't draggable but draggable="true"
  • #278 8cf7cef Thanks @JoviDeCroock! - Improve performance by

    • storing the void_elements in a Set
    • hoisting the x-link regex
    • remove case-insensitive from regexes and calling .toLowerCase() instead
    • caching suffixes for css-props
marvinhagemeister
published 5.2.6 •

Changelog

Source

5.2.6

Patch Changes

marvinhagemeister
published 5.2.5 •

Changelog

Source

5.2.5

Patch Changes

jdecroock
published 5.2.4 •

Changelog

Source

5.2.4

Patch Changes

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