mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 02:50:10 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
356f0702c0
commit
50b381600d
15
diff2.js
15
diff2.js
@ -18,8 +18,9 @@ var types = require('ig-types')
|
|||||||
// - generate a spec - DONE
|
// - generate a spec - DONE
|
||||||
// - serializable
|
// - serializable
|
||||||
// - support props
|
// - support props
|
||||||
// - build object via spec
|
// - build object via spec - DONE
|
||||||
// - update object via spec
|
// - update object via spec
|
||||||
|
// - contextual updates
|
||||||
// - subtract specs (diff)
|
// - subtract specs (diff)
|
||||||
// - full
|
// - full
|
||||||
// - relaxed -- ignore item order
|
// - relaxed -- ignore item order
|
||||||
@ -454,15 +455,23 @@ function(...attrs){
|
|||||||
// NOTE: to set this needs the full basepath to exist...
|
// NOTE: to set this needs the full basepath to exist...
|
||||||
//
|
//
|
||||||
// XXX need to write a map key to an item that does not exist...
|
// XXX need to write a map key to an item that does not exist...
|
||||||
// XXX for arrays ans sets need a way to insert values after a specific
|
// XXX need a way to insert values after a specific index/key, this
|
||||||
// index, this would require:
|
// would require:
|
||||||
// - indicated this in spec:
|
// - indicated this in spec:
|
||||||
// a) AFTER/BEFORE symbol(s) in path (???)
|
// a) AFTER/BEFORE symbol(s) in path (???)
|
||||||
|
// here there are two ways to think about this:
|
||||||
|
// - AFTER means *replace* the item after
|
||||||
|
// - AFTER means *between* this and the item after
|
||||||
// b) context (a-la diff)
|
// b) context (a-la diff)
|
||||||
// - insert to array:
|
// - insert to array:
|
||||||
// .splice(i, 0, <value>)
|
// .splice(i, 0, <value>)
|
||||||
// - insert into set:
|
// - insert into set:
|
||||||
|
// .splice(..)
|
||||||
|
// - insert into map
|
||||||
// ???
|
// ???
|
||||||
|
// - insert into object
|
||||||
|
// ???
|
||||||
|
// ...revise...
|
||||||
// XXX str2path and passing in a list path produce different results...
|
// XXX str2path and passing in a list path produce different results...
|
||||||
var atPath =
|
var atPath =
|
||||||
module.atPath =
|
module.atPath =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user