@cocreate/render 1.15.11 → 1.16.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.16.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.15.11...v1.16.0) (2022-10-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * render Array will convert an object to array ([85bc9bd](https://github.com/CoCreate-app/CoCreate-render/commit/85bc9bd21040f5e75f63cc16f7002796a53f114a))
7
+
1
8
  ## [1.15.11](https://github.com/CoCreate-app/CoCreate-render/compare/v1.15.10...v1.15.11) (2022-10-02)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/render",
3
- "version": "1.15.11",
3
+ "version": "1.16.0",
4
4
  "description": "A simple render component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "render",
package/src/index.js CHANGED
@@ -163,6 +163,9 @@ const CoCreateRender = {
163
163
  template.insertAdjacentElement('beforebegin', cloneEl);
164
164
  }
165
165
 
166
+ if (!Array.isArray(arrayData))
167
+ arrayData = [arrayData]
168
+
166
169
  if(type && Array.isArray(arrayData)) {
167
170
  arrayData.forEach((item) => {
168
171
  if (!template.renderedKeys.has(item)){