nbhi 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ No build step is needed. Map the package in an import map and import it in a mod
|
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<script type="importmap">
|
|
22
|
-
{ "imports": { "nbhi": "https://cdn.jsdelivr.net/npm/nbhi@1
|
|
22
|
+
{ "imports": { "nbhi": "https://cdn.jsdelivr.net/npm/nbhi@1/javascript/index.js" } }
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
<script type="module">
|
|
@@ -28,6 +28,8 @@ No build step is needed. Map the package in an import map and import it in a mod
|
|
|
28
28
|
</script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
`nbhi@1` loads the latest 1.x release. To stay on one version, pin it, for example `nbhi@1.0.2`.
|
|
32
|
+
|
|
31
33
|
Or install it with `npm install nbhi`.
|
|
32
34
|
|
|
33
35
|
## Defining components
|
|
@@ -89,7 +91,7 @@ The script's default export runs with the element. Its imports go through the pa
|
|
|
89
91
|
<script type="importmap">
|
|
90
92
|
{
|
|
91
93
|
"imports": {
|
|
92
|
-
"nbhi": "https://cdn.jsdelivr.net/npm/nbhi@1
|
|
94
|
+
"nbhi": "https://cdn.jsdelivr.net/npm/nbhi@1/javascript/index.js",
|
|
93
95
|
"date-fns": "https://esm.sh/date-fns@4.1.0",
|
|
94
96
|
"articles": "/javascript/articles.js"
|
|
95
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nbhi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Web components from plain HTML templates, without build tools. Bindings in a template become properties, rows() renders lists, and a component with a form field is a real form control.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|