Comparing version 2.5.8 to 2.5.9
@@ -5,2 +5,6 @@ # Change Log | ||
## 2.5.9 - 2022-03-14 | ||
- In keyed logics, `path: ['without', 'key']` now expands to `path: (key) => ['without', 'key', key]`. | ||
## 2.5.8 - 2022-01-25 | ||
@@ -7,0 +11,0 @@ |
@@ -1627,3 +1627,3 @@ 'use strict'; | ||
if (input.path) { | ||
return typeof input.path === 'function' ? input.path(key) : input.path; | ||
return typeof input.path === 'function' ? input.path(key) : input.key ? [].concat(input.path, [key]) : input.path; | ||
} | ||
@@ -1630,0 +1630,0 @@ |
@@ -1599,3 +1599,3 @@ import { createSelector } from 'reselect'; | ||
if (input.path) { | ||
return typeof input.path === 'function' ? input.path(key) : input.path; | ||
return typeof input.path === 'function' ? input.path(key) : input.key ? [].concat(input.path, [key]) : input.path; | ||
} | ||
@@ -1602,0 +1602,0 @@ |
{ | ||
"name": "kea", | ||
"version": "2.5.8", | ||
"version": "2.5.9", | ||
"description": "Smart front-end architecture", | ||
@@ -5,0 +5,0 @@ "author": "Marius Andra", |
@@ -7,7 +7,7 @@ [](https://www.npmjs.com/package/kea) | ||
 | ||
 | ||
# Kea v2 | ||
Open the [documentation](https://kea.js.org/) and read from there. | ||
Open the [documentation](https://keajs.org/) and read from there. | ||
@@ -14,0 +14,0 @@ ## Thank you to our backers! |
@@ -8,3 +8,3 @@ import { getContext } from '../context' | ||
if (input.path) { | ||
return typeof input.path === 'function' ? input.path(key) : input.path | ||
return typeof input.path === 'function' ? input.path(key) : input.key ? [...input.path, key] : input.path | ||
} | ||
@@ -11,0 +11,0 @@ |
300709