Skip to content

Releases: darky/backbone.linear

amd fix

22 Jul 02:59
Compare
Choose a tag to compare

fix incorrect global in nodejs

21 Jul 00:04
Compare
Choose a tag to compare

Drop coffeescript, camelcase, e t. c.

18 Jul 22:22
Compare
Choose a tag to compare
  • 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

07 Jun 14:30
Compare
Choose a tag to compare

Backbone 1.2.0 compatible

14 May 22:17
Compare
Choose a tag to compare

flat engine update from 1.5.0 to 1.5.1

26 Mar 15:48
Compare
Choose a tag to compare

flat 1.5.1 works with buffer and typed arrays

fix sometime incorrect global

24 Jan 16:58
Compare
Choose a tag to compare

Update internal flat from 1.3.0 to 1.5.0

18 Jan 20:36
Compare
Choose a tag to compare

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

10 Jan 11:49
Compare
Choose a tag to compare
0.6.3

update deps

17 Dec 18:35
Compare
Choose a tag to compare
0.6.2