From fceef4c31c4f01cee5140239ce813484fe7aa5d2 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 8 Dec 2021 15:06:16 +0300 Subject: [PATCH] notes and tweaks... Signed-off-by: Alex A. Naanou --- diff2.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/diff2.js b/diff2.js index 04e5da0..1a1fd4e 100644 --- a/diff2.js +++ b/diff2.js @@ -29,6 +29,10 @@ var types = require('ig-types') // - build object via spec - DONE // - update object via spec // - contextual updates +// - forward +// match context + pre state +// - reverse +// match context + post state // - subtract specs (diff) // - full // - relaxed -- ignore item order @@ -879,8 +883,7 @@ function*(A, B, options={}){ return ['+', ...change] }) // XXX add post-context... // ...if changes are adjacent, then skip context... - yield ['='] - }) } + yield ['='] }) }