Comparing version 3.2.1 to 4.0.0-beta.0
@@ -1,3 +0,3 @@ | ||
import { render, directive } from 'https://unpkg.com/lit-html@^0.14.0/lit-html.js'; | ||
export { html, render } from 'https://unpkg.com/lit-html@^0.14.0/lit-html.js'; | ||
import { render, directive } from 'https://unpkg.com/lit-html@^1.0.0-rc.2/lit-html.js'; | ||
export { html, render } from 'https://unpkg.com/lit-html@^1.0.0-rc.2/lit-html.js'; | ||
@@ -4,0 +4,0 @@ const symbolFor = typeof Symbol === 'function' ? Symbol.for : str => str; |
{ | ||
"name": "haunted", | ||
"version": "3.2.1", | ||
"version": "4.0.0-beta.0", | ||
"description": "", | ||
@@ -8,2 +8,3 @@ "main": "index.js", | ||
"build": "make", | ||
"preversion": "make", | ||
"testee": "testee --browsers firefox test/test.html", | ||
@@ -33,4 +34,4 @@ "test": "npm run build && npm run testee" | ||
"dependencies": { | ||
"lit-html": "^0.14.0" | ||
"lit-html": "1.0.0-rc.2" | ||
} | ||
} |
@@ -34,2 +34,4 @@ # Haunted 🦇 🎃 | ||
> Note that lit-html 1.0.0-rc is available as latest on npm. If you want to use this version with Haunted, install `haunted@next`. | ||
Currently __Haunted__ is available as the `haunted` package. In the future I hope to get the non-scoped name. | ||
@@ -92,2 +94,22 @@ | ||
##### Attributes | ||
In custom elements, attributes must be pre-defined. Properties, on the other hand, do not. Do define what attributes your component supports, set the `observedAttributes` property on the functional component. For example: | ||
```js | ||
const App = ({name}) => { | ||
return `Hello ${name}!`; | ||
}; | ||
App.observedAttributes = ['name']; | ||
customElements.define('hello-app', App); | ||
``` | ||
Which allows you to author (in HTML): | ||
```html | ||
<hello-app name="world"></hello-app> | ||
``` | ||
#### Virtual components | ||
@@ -94,0 +116,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
42863
373
1
+ Addedlit-html@1.0.0-rc.2(transitive)
- Removedlit-html@0.14.0(transitive)
Updatedlit-html@1.0.0-rc.2