@fruit-ui/core 1.2.0 → 1.2.2

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 CHANGED
@@ -64,9 +64,9 @@ Smaller apps don't always warrant heavyweight frameworks, but interfacing with t
64
64
  ## Getting started
65
65
 
66
66
  There are three ways to use FRUIT in your projects:
67
- - Download and copy the [Terser-compressed JS file](https://github.com/asantagata/fruit-ui/blob/main/dist/index.js) file into your project. (This is a compressed version built with Terser; you can just as well use the [non-compressed version](https://github.com/asantagata/fruit-ui/blob/main/src/index.js) which uses JSDoc annotations.) Then you can use `import \* as fruit from "./modules/fruit.js"` or `<script type="module" src="./modules/fruit.js">` to access FRUIT in your JS apps.
68
- - Access via browser loading, i.e., `import \* as fruit from "https://cdn.jsdelivr.net/npm/@fruit-ui/core@latest/src/index.js"`.
69
- - With NPM installed, run `npm install @fruit-ui/core`. Then use `import \* as fruit from "@fruit-ui/core"`.
67
+ - Download and copy the [Terser-compressed JS file](https://github.com/asantagata/fruit-ui/blob/main/dist/index.js) file into your project. (This is a compressed version built with Terser; you can just as well use the [non-compressed version](https://github.com/asantagata/fruit-ui/blob/main/src/index.js) which uses JSDoc annotations.) Then you can use `import * as fruit from "./modules/fruit.js"` or `<script type="module" src="./modules/fruit.js">` to access FRUIT in your JS apps.
68
+ - Access via browser loading, i.e., `import * as fruit from "https://cdn.jsdelivr.net/npm/@fruit-ui/core@latest/src/index.js"`.
69
+ - With NPM installed, run `npm install @fruit-ui/core`. Then use `import * as fruit from "@fruit-ui/core"`.
70
70
 
71
71
  ## Contributing
72
72
 
@@ -75,4 +75,4 @@ Ongoing development on FRUIT focuses on:
75
75
  - Benchmarks against other JS frameworks
76
76
  - Basic built-in components
77
77
 
78
- This project's initial release is currently not yet finished, so contributions aren't currently being sought out.
78
+ Contributions aren't currently being sought out. Please feel free to open an issue or reach out to [asantagata225@gmail.com](mailto:asantagata225@gmail.com) with any suggestions etc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fruit-ui/core",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A vanilla JS toolkit for reactive UI",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://asantagata.github.io/fruit-ui/",
package/src/index.js CHANGED
@@ -210,7 +210,7 @@ function createElementFromTemplate(template, onMounts, producer = null) {
210
210
  }
211
211
  if (template.innerHTML) {
212
212
  element.innerHTML = template.innerHTML;
213
- } else if ('children' in template) {
213
+ } else if (template.children !== undefined) {
214
214
  if (Array.isArray(template.children)) {
215
215
  element.replaceChildren(
216
216
  ...template.children.map(ct => createElementFromElementable.call(this, ct, onMounts))