Releases: darky/backbone.linear
Releases · darky/backbone.linear
amd fix
fix incorrect global in nodejs
Drop coffeescript, camelcase, e t. c.
-
Dropped coffeescript, only js
-
Breaking change: snake_case -> camelCase
- Linear_Model -> LinearModel
- flat_options -> flatOptions
- force_array -> forceArray
-
Now
flatOptions
can be function, that should return settings object -
Upgrade flat 1.5.1 -> 1.6.0, new option
maxDepth
-
Changed source files locations:
- backbone.linear.coffee -> src/backbone.linear.js
- backbone.linear.js -> dist/backbone.linear.js
if uses commonjs environment, you can require src/backbone.linear.js and manually resolve flat npm package.
Otherwise use dist/backbone.linear.js with browserified flat package
Backbone 1.2.1 compatible
0.10.0
Backbone 1.2.0 compatible
flat engine update from 1.5.0 to 1.5.1
flat 1.5.1 works with buffer and typed arrays
fix sometime incorrect global
Update internal flat from 1.3.0 to 1.5.0
1.4.0 - fix bug, when nested empty object no flattened
Backbone.Linear_Model.flatten
hello : empty : nested : {}
# now return "hello.empty.nested" : {}
1.5.0 - added new option overwrite
, which can used in flat_options
Now you can resolve collisions by key:
Backbone.Linear_Model.unflatten
"Cats.Boris.toys" : true,
"Cats.Boris.toys.0" : "ball",
"Cats.Boris.toys.1" : "mouse"
# {
# "Cats": {
# "Boris": {
# "toys" : true
# }
# }
# }
Backbone.Linear_Model.unflatten
"Cats.Boris.toys" : true,
"Cats.Boris.toys.0" : "ball",
"Cats.Boris.toys.1" : "mouse"
,
overwrite : true
# {
# "Cats": {
# "Boris": {
# "toys" : [
# "ball",
# "mouse"
# ]
# }
# }
# }
update deps
0.6.3
update deps
0.6.2