@lwc/synthetic-shadow
Synthetic Shadow Root for LWC
Last updated 10 days ago by diervo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lwc/synthetic-shadow 
SYNC missed versions from official npm registry.

Synthetic Shadow Root

Summary

This is a polyfill for ShadowRoot that was tailor-made for LWC in order to meet the performance goals of the Lightning Platform. This doesn't mean that it cannot be used with any other framework, but we took shortcuts and made compromises that might not align well with other frameworks.

Compromises

  • Default content for <slot> elements is always empty.
  • slotchange is only available directly on the slot (it doesn't bubble as in the case of the native implementation)
  • Dispatching events directly on the ShadowRoot instance isn't allowed because the events will always leak into the host, and we have no way to contain them.
  • If you use MutationObserver to watch changes in a DOM tree, disconnect it or you will cause a memory leak. Note that a component can observe mutations only in its own template. It can't observe mutations within the shadow tree of other custom elements.

Missing features

TBD

Current Tags

  • 1.7.15-alpha3                                ...           canary (a month ago)
  • 1.8.6                                ...           latest (10 days ago)
  • 1.8.6-alpha.0                                ...           next (10 days ago)
  • 1.1.13-224.8                                ...           spring20 (9 months ago)
  • 1.3.7-226.7                                ...           summer20 (3 months ago)
  • 0.40.1-222.1                                ...           winter19 (a year ago)
  • 1.0.2-222.26                                ...           winter20 (a year ago)
  • 1.7.10-228.5                                ...           winter21 (a month ago)

386 Versions

  • 1.8.6-alpha.0                                ...           10 days ago
  • 1.8.6                                ...           10 days ago
  • 1.8.5                                ...           13 days ago
  • 1.8.4                                ...           21 days ago
  • 1.7.10-228.5                                ...           a month ago
  • 1.7.10-228.4                                ...           a month ago
  • 1.8.3                                ...           a month ago
  • 1.7.10-228.3                                ...           a month ago
  • 1.7.10-228.2                                ...           a month ago
  • 1.8.2                                ...           a month ago
  • 1.8.1                                ...           a month ago
  • 1.8.0                                ...           a month ago
  • 1.7.15-alpha3                                ...           a month ago
  • 1.7.15-alpha2                                ...           a month ago
  • 1.7.15-alpha1                                ...           a month ago
  • 1.7.14-alpha4                                ...           2 months ago
  • 1.7.14-alpha3                                ...           2 months ago
  • 1.7.14-alpha2                                ...           2 months ago
  • 1.7.14                                ...           2 months ago
  • 1.7.14-alpha1                                ...           2 months ago
  • 1.7.13                                ...           2 months ago
  • 1.7.13-alpha1                                ...           2 months ago
  • 1.7.12                                ...           2 months ago
  • 1.7.11                                ...           2 months ago
  • 1.7.11-locker-alpha1                                ...           2 months ago
  • 1.7.10-228.1                                ...           3 months ago
  • 1.7.10                                ...           3 months ago
  • 1.3.7-226.7                                ...           3 months ago
  • 1.7.9                                ...           3 months ago
  • 1.7.9-alpha2                                ...           3 months ago
  • 1.7.9-alpha1                                ...           3 months ago
  • 1.7.8                                ...           3 months ago
  • 1.7.7                                ...           3 months ago
  • 1.7.6                                ...           3 months ago
  • 1.7.5                                ...           4 months ago
  • 1.7.5-alpha1                                ...           4 months ago
  • 1.7.4                                ...           4 months ago
  • 1.7.3-lockerpreview-alpha1                                ...           4 months ago
  • 1.7.3                                ...           4 months ago
  • 1.7.3-alpha4                                ...           4 months ago
  • 1.7.3-alpha1                                ...           4 months ago
  • 1.7.2                                ...           4 months ago
  • 1.3.7-226.6                                ...           4 months ago
  • 1.3.7-226.5                                ...           4 months ago
  • 1.7.1                                ...           4 months ago
  • 1.7.0                                ...           5 months ago
  • 1.6.9                                ...           5 months ago
  • 1.6.9-alpha1                                ...           5 months ago
  • 1.7.0-alpha1                                ...           5 months ago
  • 1.6.8                                ...           5 months ago
  • 1.6.7                                ...           5 months ago
  • 1.6.7-alpha1                                ...           5 months ago
  • 1.6.6                                ...           5 months ago
  • 1.6.6-alpha1                                ...           5 months ago
  • 1.6.5                                ...           5 months ago
  • 1.6.4                                ...           5 months ago
  • 1.16.4                                ...           5 months ago
  • 1.6.3                                ...           5 months ago
  • 1.6.3-alpha1                                ...           5 months ago
  • 1.6.2-alpha4                                ...           5 months ago
  • 1.6.2                                ...           5 months ago
  • 1.6.2-alpha3                                ...           5 months ago
  • 1.6.2-alpha2                                ...           5 months ago
  • 1.6.2-alpha1                                ...           5 months ago
  • 1.6.1                                ...           5 months ago
  • 1.6.1-alpha4                                ...           5 months ago
  • 1.6.1-alpha3                                ...           5 months ago
  • 1.6.1-alpha2                                ...           5 months ago
  • 1.6.1-alpha1                                ...           5 months ago
  • 1.6.0                                ...           6 months ago
  • 1.5.4                                ...           6 months ago
  • 1.5.3                                ...           6 months ago
  • 1.5.3-alpha5                                ...           6 months ago
  • 1.5.3-alpha4                                ...           6 months ago
  • 1.5.3-alpha3                                ...           6 months ago
  • 1.5.2-alpha5                                ...           6 months ago
  • 1.5.2-alpha4                                ...           6 months ago
  • 1.5.3-alpha2                                ...           6 months ago
  • 1.5.3-alpha1                                ...           6 months ago
  • 1.5.2                                ...           6 months ago
  • 1.5.2-alpha3                                ...           6 months ago
  • 1.5.2-alpha2                                ...           6 months ago
  • 0.228.7                                ...           6 months ago
  • 0.228.7-alpha1                                ...           6 months ago
  • 0.228.7-alpha0                                ...           6 months ago
  • 0.228.6                                ...           6 months ago
  • 0.228.6-alpha0                                ...           6 months ago
  • 1.5.2-alpha1                                ...           6 months ago
  • 1.5.1                                ...           6 months ago
  • 0.228.5                                ...           6 months ago
  • 0.228.5-alpha0                                ...           6 months ago
  • 1.5.0                                ...           6 months ago
  • 1.5.0-alpha5                                ...           6 months ago
  • 1.5.0-alpha0                                ...           6 months ago
  • 1.5.0-alpha4                                ...           6 months ago
  • 1.3.7-228.4                                ...           6 months ago
  • 1.3.7-226.5-alpha3                                ...           6 months ago
  • 1.3.7-226.5-alpha2                                ...           6 months ago
  • 1.3.7-228.3                                ...           6 months ago
  • 1.3.7-228.2                                ...           6 months ago
  • 1.3.7-228.1                                ...           6 months ago
  • 1.5.0-alpha3                                ...           6 months ago
  • 1.3.7-226.5-alpha1                                ...           7 months ago
  • 1.3.7-226.4                                ...           7 months ago
  • 1.3.7-226.3                                ...           7 months ago
  • 1.3.7-226.3-alpha0                                ...           7 months ago
  • 1.4.0                                ...           7 months ago
  • 1.3.7-226.2                                ...           7 months ago
  • 1.3.7-226.1                                ...           7 months ago
  • 1.3.7-226.1-alpha1                                ...           7 months ago
  • 1.3.7-226.1-alpha0                                ...           7 months ago
  • 1.5.0-alpha2                                ...           7 months ago
  • 1.5.0-alpha1                                ...           7 months ago
  • 1.4.0-alpha3                                ...           7 months ago
  • 1.3.13-alpha1                                ...           7 months ago
  • 1.3.12                                ...           7 months ago
  • 1.3.12-alpha2                                ...           7 months ago
  • 1.3.12-alpha1                                ...           7 months ago
  • 1.4.0-alpha2                                ...           7 months ago
  • 1.4.0-alpha1                                ...           7 months ago
  • 1.3.11                                ...           7 months ago
  • 1.3.11-alpha1                                ...           7 months ago
  • 1.3.10                                ...           7 months ago
  • 1.3.9                                ...           7 months ago
  • 1.3.8                                ...           7 months ago
  • 1.3.8-alpha2                                ...           7 months ago
  • 1.3.8-alpha1                                ...           7 months ago
  • 1.3.7-226.0                                ...           7 months ago
  • 1.3.7                                ...           7 months ago
  • 1.3.7-alpha2                                ...           7 months ago
  • 1.3.7-alpha1                                ...           7 months ago
  • 1.3.6                                ...           7 months ago
  • 1.3.6-alpha4                                ...           7 months ago
  • 1.3.6-alpha3                                ...           8 months ago
  • 1.3.6-alpha2                                ...           8 months ago
  • 1.3.6-alpha1                                ...           8 months ago
  • 1.3.5                                ...           8 months ago
  • 1.3.4-alpha0                                ...           8 months ago
  • 1.3.4                                ...           8 months ago
  • 1.3.3                                ...           8 months ago
  • 1.3.3-alpha1                                ...           8 months ago
  • 1.3.2                                ...           8 months ago
  • 1.3.2-alpha1                                ...           8 months ago
  • 1.3.1                                ...           8 months ago
  • 1.3.1-alpha1                                ...           8 months ago
  • 1.3.0                                ...           8 months ago
  • 1.2.5                                ...           8 months ago
  • 1.2.5-alpha21                                ...           8 months ago
  • 1.2.5-alpha20 [deprecated]           ...           8 months ago
  • 1.2.5-alpha19 [deprecated]           ...           8 months ago
  • 1.2.5-alpha18 [deprecated]           ...           8 months ago
  • 1.2.5-alpha17 [deprecated]           ...           8 months ago
  • 1.2.5-alpha16 [deprecated]           ...           8 months ago
  • 1.2.5-alpha13 [deprecated]           ...           8 months ago
  • 1.2.5-alpha12 [deprecated]           ...           8 months ago
  • 1.2.5-alpha11 [deprecated]           ...           8 months ago
  • 1.2.5-alpha10 [deprecated]           ...           8 months ago
  • 1.2.5-alpha9 [deprecated]           ...           8 months ago
  • 1.2.5-alpha8 [deprecated]           ...           8 months ago
  • 1.2.5-alpha7 [deprecated]           ...           8 months ago
  • 1.2.5-alpha6 [deprecated]           ...           8 months ago
  • 1.2.5-alpha5 [deprecated]           ...           8 months ago
  • 1.2.5-alpha4 [deprecated]           ...           8 months ago
  • 1.2.5-alpha3 [deprecated]           ...           8 months ago
  • 1.2.5-alpha2 [deprecated]           ...           8 months ago
  • 1.2.5-alpha1 [deprecated]           ...           8 months ago
  • 1.3.0-alpha6                                ...           8 months ago
  • 1.2.4                                ...           8 months ago
  • 1.2.3                                ...           8 months ago
  • 1.3.0-alpha5                                ...           8 months ago
  • 1.3.0-alpha4                                ...           8 months ago
  • 1.3.0-alpha3                                ...           8 months ago
  • 1.2.2                                ...           9 months ago
  • 1.3.0-alpha2                                ...           9 months ago
  • 1.2.2-alpha2                                ...           9 months ago
  • 1.1.13-224.8                                ...           9 months ago
  • 1.1.13-224.8-alpha4                                ...           9 months ago
  • 1.1.13-224.8-alpha3                                ...           9 months ago
  • 1.1.13-224.8-alpha2                                ...           9 months ago
  • 1.1.13-224.8-alpha1                                ...           9 months ago
  • 1.2.2-alpha1                                ...           9 months ago
  • 1.1.13-224.7                                ...           9 months ago
  • 1.1.13-224.6                                ...           9 months ago
  • 1.1.13-224.5                                ...           9 months ago
  • 1.1.13-224.5-alpha1                                ...           9 months ago
  • 1.2.1                                ...           9 months ago
  • 1.2.1-alpha1                                ...           9 months ago
  • 1.3.0-alpha1                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.2.0-alpha15                                ...           9 months ago
  • 1.2.0-alpha14                                ...           9 months ago
  • 1.2.0-alpha13                                ...           9 months ago
  • 1.2.0-alpha12                                ...           9 months ago
  • 1.2.0-alpha10                                ...           9 months ago
  • 1.1.17-alpha1                                ...           9 months ago
  • 1.2.0-alpha9                                ...           9 months ago
  • 1.2.0-alpha8                                ...           9 months ago
  • 1.2.0-alpha6                                ...           9 months ago
  • 1.2.0-alpha5                                ...           9 months ago
  • 1.1.16                                ...           10 months ago
  • 1.1.16-alpha2                                ...           10 months ago
  • 1.1.16-alpha1                                ...           10 months ago
  • 1.1.13-224.4                                ...           10 months ago
  • 1.1.13-224.4alpha2                                ...           10 months ago
  • 1.1.13-224.4-alpha1                                ...           10 months ago
  • 1.1.15                                ...           10 months ago
  • 1.1.15-alpha1                                ...           10 months ago
  • 1.0.2-222.26                                ...           a year ago
  • 1.1.14                                ...           a year ago
  • 1.0.2-222.25                                ...           a year ago
  • 1.1.13-224.3                                ...           a year ago
  • 1.1.14-alpha5                                ...           a year ago
  • 1.1.14-alpha4                                ...           a year ago
  • 1.1.14-alpha3                                ...           a year ago
  • 1.1.14-alpha2                                ...           a year ago
  • 1.1.13-224.2                                ...           a year ago
  • 1.1.13-224.1                                ...           a year ago
  • 1.1.14-alpha1                                ...           a year ago
  • 1.1.13                                ...           a year ago
  • 1.1.12                                ...           a year ago
  • 1.1.12-alpha2                                ...           a year ago
  • 1.1.12-alpha1                                ...           a year ago
  • 1.1.11                                ...           a year ago
  • 1.1.11-alpha2                                ...           a year ago
  • 1.1.11-alpha1                                ...           a year ago
  • 1.1.11-alpha                                ...           a year ago
  • 1.1.10                                ...           a year ago
  • 1.1.10-alpha2                                ...           a year ago
  • 1.1.10-alpha1                                ...           a year ago
  • 1.1.9                                ...           a year ago
  • 1.1.9-alpha1                                ...           a year ago
  • 1.1.8                                ...           a year ago
  • 1.1.8-alpha1                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.7-alpha.0                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4-alpha7                                ...           a year ago
  • 1.1.4-alpha6                                ...           a year ago
  • 1.1.4-alpha5                                ...           a year ago
  • 1.1.4-alpha4                                ...           a year ago
  • 1.2.0-alpha4                                ...           a year ago
  • 1.1.4-alpha891                                ...           a year ago
  • 1.1.4-alpha890                                ...           a year ago
  • 1.1.4-alpha889                                ...           a year ago
  • 1.1.4-alpha888                                ...           a year ago
  • 1.1.4-alpha3                                ...           a year ago
  • 1.2.0-alpha3                                ...           a year ago
  • 1.1.4-alpha2                                ...           a year ago
  • 1.1.4-alpha1                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2-alpha1                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.1-alpha6                                ...           a year ago
  • 1.1.1-alpha5                                ...           a year ago
  • 1.1.1-alpha4                                ...           a year ago
  • 1.2.0-alpha2                                ...           a year ago
  • 1.2.0-alpha1                                ...           a year ago
  • 1.1.1-alpha3                                ...           a year ago
  • 1.1.1-alpha2                                ...           a year ago
  • 1.1.1-alpha1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.1.0-beta8                                ...           a year ago
  • 1.0.2-222.24                                ...           a year ago
  • 1.0.2-222.23                                ...           a year ago
  • 1.1.0-beta7                                ...           a year ago
  • 1.1.0-beta6                                ...           a year ago
  • 1.1.0-beta5                                ...           a year ago
  • 1.1.0-beta4                                ...           a year ago
  • 1.1.0-beta3                                ...           a year ago
  • 1.1.0-beta2                                ...           a year ago
  • 1.1.0-beta1                                ...           a year ago
  • 1.0.3-alpha.74                                ...           a year ago
  • 1.0.3-alpha.73                                ...           a year ago
  • 1.0.2-222.1000                                ...           a year ago
  • 1.1.0-alpha1000                                ...           a year ago
  • 1.0.3-beta.67                                ...           a year ago
  • 1.0.2-test6                                ...           a year ago
  • 1.0.2-test5                                ...           a year ago
  • 1.0.2-test4                                ...           a year ago
  • 1.0.2-test3                                ...           a year ago
  • 1.0.2-test2                                ...           a year ago
  • 1.0.2-222.22                                ...           a year ago
  • 1.1.0-alpha19                                ...           a year ago
  • 1.1.0-alpha18                                ...           a year ago
  • 1.1.0-alpha17                                ...           a year ago
  • 1.1.0-alpha13                                ...           a year ago
  • 1.1.0-alpha16                                ...           a year ago
  • 1.1.0-alpha15                                ...           a year ago
  • 1.1.0-alpha14                                ...           a year ago
  • 1.0.2-222.21-revert-test                                ...           a year ago
  • 1.0.2-222.21                                ...           a year ago
  • 1.0.2-222.20                                ...           a year ago
  • 1.0.2-222.19                                ...           a year ago
  • 1.1.0-alpha12                                ...           a year ago
  • 1.1.0-alpha11                                ...           a year ago
  • 1.1.0-alpha10                                ...           a year ago
  • 1.1.0-alpha9                                ...           a year ago
  • 1.0.2-222.18                                ...           a year ago
  • 1.1.0-alpha8                                ...           a year ago
  • 1.1.0-alpha7                                ...           a year ago
  • 1.1.0-alpha6                                ...           a year ago
  • 1.1.0-alpha5                                ...           a year ago
  • 1.1.0-alpha4                                ...           a year ago
  • 1.1.0-alpha3                                ...           a year ago
  • 1.1.0-alpha2                                ...           a year ago
  • 1.1.0-alpha1                                ...           a year ago
  • 1.1.0-alpha0                                ...           a year ago
  • 1.0.2-222.17                                ...           a year ago
  • 1.0.2-222.16                                ...           a year ago
  • 1.0.2-222.15                                ...           a year ago
  • 1.0.2-222.14                                ...           a year ago
  • 1.0.2-222.13                                ...           a year ago
  • 1.0.2-222.13-alpha1                                ...           a year ago
  • 1.0.2-222.13-alpha0                                ...           a year ago
  • 1.0.2-222.12                                ...           a year ago
  • 1.0.2-222.12-alpha2                                ...           a year ago
  • 1.0.2-222.12-alpha1                                ...           a year ago
  • 1.0.2-222.11                                ...           a year ago
  • 1.0.2-222.10                                ...           a year ago
  • 1.0.2-222.9                                ...           a year ago
  • 1.0.2-222.9-alpha1                                ...           a year ago
  • 1.0.2-222.9-canary                                ...           a year ago
  • 1.0.2-222.8                                ...           a year ago
  • 1.0.2-222.7                                ...           a year ago
  • 1.0.2-222.6                                ...           a year ago
  • 1.0.2-222.5                                ...           a year ago
  • 1.0.2-222.4                                ...           a year ago
  • 1.0.2-222.3                                ...           a year ago
  • 1.0.2-222.2                                ...           a year ago
  • 1.0.2-222.1                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0-alpha5                                ...           a year ago
  • 1.0.1-alpha03                                ...           a year ago
  • 1.0.0-alpha2                                ...           a year ago
  • 1.0.0-alpha.2                                ...           a year ago
  • 0.40.1-222.8                                ...           a year ago
  • 1.0.1-alpha0                                ...           a year ago
  • 0.40.1-222.7                                ...           a year ago
  • 0.40.1-222.6                                ...           a year ago
  • 0.40.1-222.5                                ...           a year ago
  • 0.40.1-222.4                                ...           a year ago
  • 0.40.1-222.3                                ...           a year ago
  • 0.40.1-222.2                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-alpha.0                                ...           a year ago
  • 0.41.0                                ...           a year ago
  • 0.40.2-alpha1                                ...           a year ago
  • 0.40.1-ekashida1                                ...           a year ago
  • 0.40.1-222.1                                ...           a year ago
  • 0.40.1                                ...           a year ago
  • 0.40.1-alpha2                                ...           a year ago
  • 0.40.1-alpha1                                ...           a year ago
  • 0.40.0                                ...           a year ago
  • 0.39.1-222.4                                ...           a year ago
  • 0.39.1-222.3                                ...           a year ago
  • 0.39.2-alpha6                                ...           a year ago
  • 0.39.1-222.2                                ...           a year ago
  • 0.39.1-222.1                                ...           a year ago
  • 0.39.2-alpha2                                ...           a year ago
  • 0.39.2-alpha5                                ...           a year ago
  • 0.39.2-alpha1                                ...           a year ago
  • 0.37.4-alpha2                                ...           a year ago
  • 0.37.4-alpha1                                ...           a year ago
  • 0.39.1                                ...           a year ago
  • 0.38.2                                ...           a year ago
  • 0.38.2-alpha1                                ...           a year ago
  • 0.39.0                                ...           a year ago
  • 0.38.1-alpha1                                ...           a year ago
  • 0.38.1                                ...           a year ago
  • 0.38.0                                ...           a year ago
  • 0.38.0-alpha3                                ...           a year ago
  • 0.38.0-alpha2                                ...           a year ago
  • 0.38.0-alpha1                                ...           a year ago
  • 0.37.3-alpha10                                ...           a year ago
  • 0.37.3-alpha9                                ...           a year ago
  • 0.37.3-alpha8                                ...           a year ago
  • 0.37.3-alpha7                                ...           a year ago
  • 0.37.3-alpha6                                ...           a year ago
  • 0.37.3-alpha5                                ...           2 years ago
  • 0.37.3-alpha4                                ...           2 years ago
  • 0.37.3-alpha3                                ...           2 years ago
  • 0.37.3-alpha2                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |