Comparing version 2.1.0 to 2.1.1
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
## 2.1.0 - 2020-06-14 | ||
## 2.1.1 - 2020-06-14 | ||
- Read the blog post: https://kea.js.org/blog/kea-2.1 | ||
@@ -6,0 +6,0 @@ - Simplified the syntax even more! You don't need to pass `() => ({ ... })` |
{ | ||
"name": "kea", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Smart front-end architecture", | ||
@@ -5,0 +5,0 @@ "author": "Marius Andra", |
@@ -155,3 +155,3 @@ import { getContext } from '../context' | ||
if (plugin.defaults) { | ||
const fields = Object.keys(plugin.defaults()) | ||
const fields = Object.keys(typeof plugin.defaults === 'function' ? plugin.defaults() : plugin.defaults) | ||
for (const key of fields) { | ||
@@ -158,0 +158,0 @@ if (process.env.NODE_ENV !== 'production') { |
Sorry, the diff of this file is too big to display
431802