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

@polymer/lit-element

Package Overview
Dependencies
Maintainers
12
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymer/lit-element - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

tsconfig_apidoc.json

10

CHANGELOG.md

@@ -13,4 +13,2 @@ # Change Log

<!-- ## Unreleased -->
<!-- ### Changed -->

@@ -21,2 +19,10 @@ <!-- ### Added -->

## [0.6.5] - 2018-12-13
### Changed:
* Use lit-html 1.0 release candidate.
### Fixed
* Types for the `property` and `customElement` decorators updated ([#288](https://github.com/Polymer/lit-element/issues/288) and [#291](https://github.com/Polymer/lit-element/issues/291)).
* Docs updated.
## [0.6.4] - 2018-11-30

@@ -23,0 +29,0 @@ ### Changed

6

lib/decorators.d.ts

@@ -23,3 +23,3 @@ /**

*
* In TypeScript, the `tagName` passed to `customElement` must be a key of the
* In TypeScript, the `tagName` passed to `customElement` should be a key of the
* `HTMLElementTagNameMap` interface. To add your element to the interface,

@@ -38,3 +38,3 @@ * declare the interface in this module:

*/
export declare const customElement: (tagName: "object" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dir" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "font" | "footer" | "form" | "frame" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "map" | "mark" | "marquee" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr") => (clazz: Constructor<HTMLElement>) => any;
export declare const customElement: (tagName: string) => (clazz: Constructor<HTMLElement>) => any;
/**

@@ -45,3 +45,3 @@ * A property decorator which creates a LitElement property which reflects a

*/
export declare const property: (options?: PropertyDeclaration<any> | undefined) => (proto: Object, name: string) => void;
export declare const property: (options?: PropertyDeclaration<any> | undefined) => (proto: Object, name: string | number | symbol) => void;
/**

@@ -48,0 +48,0 @@ * A property decorator that converts a class property into a getter that

@@ -19,3 +19,3 @@ /**

*
* In TypeScript, the `tagName` passed to `customElement` must be a key of the
* In TypeScript, the `tagName` passed to `customElement` should be a key of the
* `HTMLElementTagNameMap` interface. To add your element to the interface,

@@ -22,0 +22,0 @@ * declare the interface in this module:

{
"name": "@polymer/lit-element",
"version": "0.6.4",
"version": "0.6.5",
"description": "Polymer based lit-html custom element",

@@ -14,3 +14,3 @@ "license": "BSD-3-Clause",

"build": "tsc",
"gen-docs": "typedoc --readme none --mode modules --excludeNotExported --excludePrivate --exclude **/*_test.ts --out ./docs/api .",
"gen-docs": "typedoc --readme none --tsconfig tsconfig_apidoc.json --mode modules --theme minimal --excludeNotExported --excludePrivate --ignoreCompilerErrors --exclude '{**/*test*,**/node_modules/**,**/test/**}' --out ./docs/api src/**/*.ts",
"test": "npm run build && wct",

@@ -44,3 +44,3 @@ "checksize": "rollup -c ; rm lit-element.bundled.js",

"dependencies": {
"lit-html": "^0.14.0"
"lit-html": "^1.0.0-rc.1"
},

@@ -47,0 +47,0 @@ "publishConfig": {

@@ -15,3 +15,3 @@ > ## 🛠 Status: In Development

and adds API to help manage element properties and attributes. LitElement reacts to changes in properties
and renders declaratively using `lit-html`. See the [lit-html guide](https://polymer.github.io/lit-html/guide)
and renders declaratively using `lit-html`. See the [lit-html guide](https://lit-html.polymer-project.org/guide)
for additional information on how to create templates for lit-element.

@@ -18,0 +18,0 @@

@@ -29,3 +29,3 @@

*
* In TypeScript, the `tagName` passed to `customElement` must be a key of the
* In TypeScript, the `tagName` passed to `customElement` should be a key of the
* `HTMLElementTagNameMap` interface. To add your element to the interface,

@@ -44,3 +44,3 @@ * declare the interface in this module:

*/
export const customElement = (tagName: keyof HTMLElementTagNameMap) =>
export const customElement = (tagName: string) =>
(clazz: Constructor<HTMLElement>) => {

@@ -61,3 +61,3 @@ window.customElements.define(tagName, clazz);

export const property = (options?: PropertyDeclaration) => (proto: Object,
name: string) => {
name: PropertyKey) => {
(proto.constructor as typeof UpdatingElement).createProperty(name, options);

@@ -64,0 +64,0 @@ };

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