diff --git a/files/NEXT_VERSION_CHECKLIST.md b/files/NEXT_VERSION_CHECKLIST.md index 4440bd1f..6eb63699 100644 --- a/files/NEXT_VERSION_CHECKLIST.md +++ b/files/NEXT_VERSION_CHECKLIST.md @@ -11,7 +11,7 @@ rambdax export file should include js extension https://github.com/ramda/types/pull/127/files https://github.com/ramda/types/pull/122/files - +release string.fn --- ## ABOVE IS IN PROGRESS @@ -61,6 +61,10 @@ chech in to read for examples } }, +--- +https://zuplo.com/blog/2024/10/10/unlocking-the-power-of-json-patch +--- +bench against https://romgrk.com/posts/optimizing-javascript#3-avoid-arrayobject-methods --- export const getTestData = (key: K) => { diff --git a/source/assocPath.spec.js b/source/assocPath.spec.js index 6adecc67..1dcc5615 100644 --- a/source/assocPath.spec.js +++ b/source/assocPath.spec.js @@ -1,6 +1,6 @@ import { assocPathFn } from './assocPath.js' -test.only('happy', () => { +test('happy', () => { const path = 'a.c.1' const input = { a : { @@ -41,7 +41,7 @@ test('string can be used as path input', () => { test('difference with ramda - doesn\'t overwrite primitive values with keys in the path', () => { const obj = { a : 'str' } - const result = assocPath( + const result = assocPathFn( [ 'a', 'b' ], 42, obj ) @@ -55,7 +55,18 @@ test('difference with ramda - doesn\'t overwrite primitive values with keys in t }) }) -test('bug', () => { +test('bug 748', () => { + /* + https://github.com/selfrefactor/rambda/issues/748 + */ + const obj = {}; + let result = assocPathFn(['a', '2'], 3, obj) + let result1 = assocPath(['a', '2'], 3, obj) + console.log({result}) + console.log(result1) +}) + +test('bug 524', () => { /* https://github.com/selfrefactor/rambda/issues/524 */