From f4b809098e9d20c6df63261490e24db2e8003844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kadir=20Yaz=C4=B1c=C4=B1?= <47540799+kadiryazici@users.noreply.github.com> Date: Sat, 22 Apr 2023 21:59:13 +0300 Subject: [PATCH] v1.0.0 (#37) --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a11d2a..9b5d174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,27 @@ +# 1.0.0 +### Features + - Now `items` prop supports nested array of items like Vue/React render function, nested arrays are converted to `vNode[]` in render phase. + + ```ts + const items = [ + item(...), + + users.map((user) => item(user)), // Item[], + + itemGroup({ + key: '__', + items: [ + item(...), + [ + customItem(...) + ] + ] + }) + ] + ``` + +
+ # 0.5.0 ### Features - Now `itemDefaults` prop accepts a function that has `item` passed as parameter, for type safety `createItemDefaults` is updated as well.