Socket
Socket
Sign inDemoInstall

lit

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit - npm Package Compare versions

Comparing version 2.0.0-pre.2 to 2.0.0-rc.1

experimental-hydrate-support.d.ts

6

CHANGELOG.md

@@ -20,2 +20,8 @@ # Change Log

## [2.0.0-rc.1] - 2021-04-20
### Changed
- (Since 2.0.0-pre.1) Renamed `hydrate` and `hydrate-support` modules to `experimental-hydrate` and `experimental-hydrate-support`, respectively, to reflect their experimental nature. Experimental modules may undergo breaking changes within otherwise non-major releases.
## [2.0.0-pre.2] - 2021-03-31

@@ -22,0 +28,0 @@

29

package.json
{
"name": "lit",
"version": "2.0.0-pre.2",
"version": "2.0.0-rc.1",
"publishConfig": {

@@ -9,5 +9,8 @@ "access": "public"

"license": "BSD-3-Clause",
"repository": "Polymer/lit-html",
"repository": {
"type": "git",
"url": "https://github.com/lit/lit.git"
},
"author": "Google LLC",
"homepage": "https://github.com/Polymer/lit-html/tree/lit-next",
"homepage": "https://lit.dev/",
"main": "index.js",

@@ -41,7 +44,7 @@ "module": "index.js",

},
"./hydrate-support.js": {
"default": "./hydrate-support.js"
"./experimental-hydrate-support.js": {
"default": "./experimental-hydrate-support.js"
},
"./hydrate.js": {
"default": "./hydrate.js"
"./experimental-hydrate.js": {
"default": "./experimental-hydrate.js"
},

@@ -60,3 +63,3 @@ "./polyfill-support.js": {

"build:ts:watch": "tsc --build --watch",
"clean": "rm -rf {async-directive,decorators,directive-helpers,directive,html,hydrate-support,hydrate,index,polyfill-support,static-html}.{d.ts.map,d.ts,js.map,js} test/ decorators/ directives/ development/ *.tsbuildinfo",
"clean": "rm -rf {async-directive,decorators,directive-helpers,directive,html,experimental-hydrate-support,experimental-hydrate,index,polyfill-support,static-html}.{d.ts.map,d.ts,js.map,js} test/ decorators/ directives/ development/ *.tsbuildinfo",
"publish-dev": "VERSION=${npm_package_version%-*}-dev.`git rev-parse --short HEAD` && npm version --no-git-tag-version $VERSION && npm publish --tag dev",

@@ -72,4 +75,4 @@ "regen-package-lock": "rm -rf node_modules package-lock.json; npm install",

"/html.{d.ts.map,d.ts,js.map,js}",
"/hydrate-support.{d.ts.map,d.ts,js.map,js}",
"/hydrate.{d.ts.map,d.ts,js.map,js}",
"/experimental-hydrate-support.{d.ts.map,d.ts,js.map,js}",
"/experimental-hydrate.{d.ts.map,d.ts,js.map,js}",
"/index.{d.ts.map,d.ts,js.map,js}",

@@ -85,5 +88,5 @@ "/polyfill-support.{d.ts.map,d.ts,js.map,js}",

"dependencies": {
"@lit/reactive-element": "^1.0.0-pre.3",
"lit-element": "^3.0.0-pre.4",
"lit-html": "^2.0.0-pre.7"
"@lit/reactive-element": "^1.0.0-rc.1",
"lit-element": "^3.0.0-rc.1",
"lit-html": "^2.0.0-rc.1"
},

@@ -90,0 +93,0 @@ "devDependencies": {

@@ -13,3 +13,3 @@ !function(i){"function"==typeof define&&define.amd?define(i):i()}((function(){"use strict";var i;i=function(){var i,n,o;i=function(){

*/
var i,n,o=new Set,t=new Map;null!==(i=(n=globalThis).litHtmlPlatformSupport)&&void 0!==i||(n.litHtmlPlatformSupport=function(i,n){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var d=function(i){var n=t.get(i);return void 0===n&&t.set(i,n=[]),n},e=new Map,v=i.createElement;i.createElement=function(n,o){var t=v.call(i,n,o),e=null==o?void 0:o.scope;if(void 0!==e){window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(t,e);var u=d(e),f=t.content.querySelectorAll("style");u.push.apply(u,Array.from(f).map((function(i){var n;return null===(n=i.parentNode)||void 0===n||n.removeChild(i),i.textContent})))}return t};var u=document.createDocumentFragment(),f=document.createComment(""),r=n.prototype,w=r.I;r.I=function(i,n){var e,v,r;void 0===n&&(n=this);var s,a=this.A.parentNode,l=null===(e=this.options)||void 0===e?void 0:e.scope;if(a instanceof ShadowRoot&&void 0!==(s=l)&&!o.has(s)){var h=this.A,c=this.B;u.appendChild(f),this.A=f,this.B=null,w.call(this,i,n);var p=(null===(v=i)||void 0===v?void 0:v._$litType$)?this.H.D.el:document.createElement("template");if(function(i,n){var e=d(i);if(e.length){var v=document.createElement("style");v.textContent=e.join("\n"),n.content.appendChild(v)}o.add(i),t.delete(i),window.ShadyCSS.prepareTemplateStyles(n,i)}(l,p),u.removeChild(f),null===(r=window.ShadyCSS)||void 0===r?void 0:r.nativeShadow){var y=p.content.querySelector("style");null!==y&&u.appendChild(y.cloneNode(!0))}a.insertBefore(u,c),this.A=h,this.B=c}else w.call(this,i,n)},r.C=function(n){var o,t=null===(o=this.options)||void 0===o?void 0:o.scope,d=e.get(t);void 0===d&&e.set(t,d=new Map);var v=d.get(n.strings);return void 0===v&&d.set(n.strings,v=new i(n,this.options)),v}}})})),null!==(n=(o=globalThis).litElementPlatformSupport)&&void 0!==n||(o.litElementPlatformSupport=function(i){var n=i.LitElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){n.J=!0;var o=n.prototype,t=o.createRenderRoot;o.createRenderRoot=function(){return this.renderOptions.scope=this.localName,t.call(this)}}})},"function"==typeof define&&define.amd?define(i):i()}));
var i,n,o=new Set,t=new Map;null!==(i=(n=globalThis).litHtmlPlatformSupport)&&void 0!==i||(n.litHtmlPlatformSupport=function(i,n){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var d=function(i){var n=t.get(i);return void 0===n&&t.set(i,n=[]),n},e=new Map,v=i.createElement;i.createElement=function(n,o){var t=v.call(i,n,o),e=null==o?void 0:o.scope;if(void 0!==e){window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(t,e);var u=d(e),f=t.content.querySelectorAll("style");u.push.apply(u,Array.from(f).map((function(i){var n;return null===(n=i.parentNode)||void 0===n||n.removeChild(i),i.textContent})))}return t};var u=document.createDocumentFragment(),f=document.createComment(""),r=n.prototype,w=r.I;r.I=function(i,n){var e,v,r;void 0===n&&(n=this);var s,a=this.A.parentNode,l=null===(e=this.options)||void 0===e?void 0:e.scope;if(a instanceof ShadowRoot&&void 0!==(s=l)&&!o.has(s)){var h=this.A,c=this.B;u.appendChild(f),this.A=f,this.B=null,w.call(this,i,n);var y=(null===(v=i)||void 0===v?void 0:v._$litType$)?this.H.D.el:document.createElement("template");if(function(i,n){var e=d(i),v=0!==e.length;if(v){var u=document.createElement("style");u.textContent=e.join("\n"),n.content.appendChild(u)}o.add(i),t.delete(i),window.ShadyCSS.prepareTemplateStyles(n,i),v&&window.ShadyCSS.nativeShadow&&n.content.appendChild(n.content.querySelector("style"))}(l,y),u.removeChild(f),null===(r=window.ShadyCSS)||void 0===r?void 0:r.nativeShadow){var p=y.content.querySelector("style");null!==p&&u.appendChild(p.cloneNode(!0))}a.insertBefore(u,c),this.A=h,this.B=c}else w.call(this,i,n)},r.C=function(n){var o,t=null===(o=this.options)||void 0===o?void 0:o.scope,d=e.get(t);void 0===d&&e.set(t,d=new Map);var v=d.get(n.strings);return void 0===v&&d.set(n.strings,v=new i(n,this.options)),v}}})})),null!==(n=(o=globalThis).litElementPlatformSupport)&&void 0!==n||(o.litElementPlatformSupport=function(i){var n=i.LitElement;if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){n.J=!0;var o=n.prototype,t=o.createRenderRoot;o.createRenderRoot=function(){return this.renderOptions.scope=this.localName,t.call(this)}}})},"function"==typeof define&&define.amd?define(i):i()}));
//# sourceMappingURL=polyfill-support.js.map

@@ -1,12 +0,16 @@

# Lit 2.0
# Lit
Fast, lightweight web components
## Simple. Fast. Web Components.
Lit is a simple library for building fast, lightweight web components.
At Lit's core is a boilerplate-killing component base class that provides reactive state, scoped styles, and a declarative template system that's tiny, fast and expressive.
## About this package
The `lit` package contains everything needed to build Lit components with the LitElement base class, lit-html templates, and all first-party lit-html directives.
The `lit` package contains everything needed to build Lit components: the LitElement base class, Lit templates, and all first-party Lit directives.
Modules:
- `lit`: The main module exports the core pieces needed for component development: `LitElement`, `html`, `css`, and the most
- `lit`: The main module exports the core pieces needed for component development, including `LitElement`, `html`, and `css`
- `lit/decorators.js`: Exports all the TypeScript/Babel decorators from one module.

@@ -21,2 +25,3 @@ - `lit/decorators/...`: The `decorators/` folder contains a module for each decorator (`@customElement()`, `@property()`, etc.) for optimal pay-as-you-go module loading.

- `lit/polyfill-support.js`: A module that connects Lit to the web components polyfills where necessary to support older browsers.
- `lit/hydrate-support.js`: A module that add hydration support to LitElement.
- `lit/experimental-hydrate.js`: A module for hydrating `lit-html` templates that were server-rendered with `@lit-labs/ssr`. Note this module is experimental and subject to breaking changes.
- `lit/experimental-hydrate-support.js`: A module that adds hydration support to LitElement. Note this module is experimental and subject to breaking changes.

Sorry, the diff of this file is not supported yet

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