Socket
Socket
Sign inDemoInstall

lit-element

Package Overview
Dependencies
Maintainers
12
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit-element - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

9

CHANGELOG.md
# Change Log
## 3.1.2
### Patch Changes
- [#2370](https://github.com/lit/lit/pull/2370) [`7453e365`](https://github.com/lit/lit/commit/7453e365000e6a289c139cf7e175a4742296333d) - Replace square bracket links with the `linkcode` JSDoc tag.
Editors will create a jump to definition hyperlink for the linkcode tag if the identifier is in scope.
- [#2410](https://github.com/lit/lit/pull/2410) [`b9a6962b`](https://github.com/lit/lit/commit/b9a6962b84c841eaabd5c4cbf8687ff34dbfe511) - Correct the link path of CONTRIBUTING.md in README.md files
## 3.1.1

@@ -4,0 +13,0 @@

17

development/lit-element.d.ts

@@ -7,4 +7,4 @@ /**

/**
* The main LitElement module, which defines the [[`LitElement`]] base class and
* related APIs.
* The main LitElement module, which defines the {@linkcode LitElement} base
* class and related APIs.
*

@@ -15,4 +15,4 @@ * LitElement components can define a template and a set of observed

*
* Import [[`LitElement`]] and [[`html`]] from this module to create a
* component:
* Import {@linkcode LitElement} and {@linkcode html} from this module to
* create a component:
*

@@ -44,5 +44,5 @@ * ```js

*
* `LitElement` extends [[`ReactiveElement`]] and adds lit-html templating.
* The `ReactiveElement` class is provided for users that want to build
* their own custom element base classes that don't use lit-html.
* `LitElement` extends {@linkcode ReactiveElement} and adds lit-html
* templating. The `ReactiveElement` class is provided for users that want to
* build their own custom element base classes that don't use lit-html.
*

@@ -62,3 +62,4 @@ * @packageDocumentation

* `render` method to provide the component's template. Define properties
* using the [[`properties`]] property or the [[`property`]] decorator.
* using the {@linkcode LitElement.properties properties} property or the
* {@linkcode property} decorator.
*/

@@ -65,0 +66,0 @@ export declare class LitElement extends ReactiveElement {

@@ -8,4 +8,4 @@ /**

/**
* The main LitElement module, which defines the [[`LitElement`]] base class and
* related APIs.
* The main LitElement module, which defines the {@linkcode LitElement} base
* class and related APIs.
*

@@ -16,4 +16,4 @@ * LitElement components can define a template and a set of observed

*
* Import [[`LitElement`]] and [[`html`]] from this module to create a
* component:
* Import {@linkcode LitElement} and {@linkcode html} from this module to
* create a component:
*

@@ -45,5 +45,5 @@ * ```js

*
* `LitElement` extends [[`ReactiveElement`]] and adds lit-html templating.
* The `ReactiveElement` class is provided for users that want to build
* their own custom element base classes that don't use lit-html.
* `LitElement` extends {@linkcode ReactiveElement} and adds lit-html
* templating. The `ReactiveElement` class is provided for users that want to
* build their own custom element base classes that don't use lit-html.
*

@@ -80,3 +80,4 @@ * @packageDocumentation

* `render` method to provide the component's template. Define properties
* using the [[`properties`]] property or the [[`property`]] decorator.
* using the {@linkcode LitElement.properties properties} property or the
* {@linkcode property} decorator.
*/

@@ -256,3 +257,3 @@ export class LitElement extends ReactiveElement {

// This line will be used in regexes to search for LitElement usage.
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.1.1');
((_c = globalThis.litElementVersions) !== null && _c !== void 0 ? _c : (globalThis.litElementVersions = [])).push('3.1.2');
if (DEV_MODE && globalThis.litElementVersions.length > 1) {

@@ -259,0 +260,0 @@ issueWarning('multiple-versions', `Multiple versions of Lit loaded. Loading multiple versions ` +

@@ -7,4 +7,4 @@ /**

/**
* The main LitElement module, which defines the [[`LitElement`]] base class and
* related APIs.
* The main LitElement module, which defines the {@linkcode LitElement} base
* class and related APIs.
*

@@ -15,4 +15,4 @@ * LitElement components can define a template and a set of observed

*
* Import [[`LitElement`]] and [[`html`]] from this module to create a
* component:
* Import {@linkcode LitElement} and {@linkcode html} from this module to
* create a component:
*

@@ -44,5 +44,5 @@ * ```js

*
* `LitElement` extends [[`ReactiveElement`]] and adds lit-html templating.
* The `ReactiveElement` class is provided for users that want to build
* their own custom element base classes that don't use lit-html.
* `LitElement` extends {@linkcode ReactiveElement} and adds lit-html
* templating. The `ReactiveElement` class is provided for users that want to
* build their own custom element base classes that don't use lit-html.
*

@@ -62,3 +62,4 @@ * @packageDocumentation

* `render` method to provide the component's template. Define properties
* using the [[`properties`]] property or the [[`property`]] decorator.
* using the {@linkcode LitElement.properties properties} property or the
* {@linkcode property} decorator.
*/

@@ -65,0 +66,0 @@ export declare class LitElement extends ReactiveElement {

@@ -6,3 +6,3 @@ import{ReactiveElement as t}from"@lit/reactive-element";export*from"@lit/reactive-element";import{render as e,noChange as i}from"lit-html";export*from"lit-html";

* SPDX-License-Identifier: BSD-3-Clause
*/var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.1.1");export{s as LitElement,r as UpdatingElement,h as _$LE};
*/var l,o;const r=t;class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return i}}s.finalized=!0,s._$litElement$=!0,null===(l=globalThis.litElementHydrateSupport)||void 0===l||l.call(globalThis,{LitElement:s});const n=globalThis.litElementPolyfillSupport;null==n||n({LitElement:s});const h={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push("3.1.2");export{s as LitElement,r as UpdatingElement,h as _$LE};
//# sourceMappingURL=lit-element.js.map
{
"name": "lit-element",
"version": "3.1.1",
"version": "3.1.2",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -22,2 +22,2 @@ # LitElement 3.0

Please see [CONTRIBUTING.md](./CONTRIBUTING.md).
Please see [CONTRIBUTING.md](../../CONTRIBUTING.md).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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