Skip to content

Latest commit

 

History

History
269 lines (152 loc) · 10.7 KB

CHANGELOG.md

File metadata and controls

269 lines (152 loc) · 10.7 KB

1.0.1 (2014-09-11)

Bug Fixes

  • gruntfile: fixes non bundled library distributable (2ca6bfb6, closes #125)

1.0.0 (2014-09-10)

Bug Fixes

  • common: removes promise clearing in $cancel (7cb4ad5b)
  • tests: changes old notation (8c4c9d48, closes #33)

Features

  • creates the extended api module that is included in collections and records. (c05a7b3c, closes #78, #115)
  • builder:
    • define accepts individual implementations for record/collection/type. (2966a46d)
    • changes the way property renaming is configured, adds the setRenamer method. (91ab4a33, closes #111)
  • common:
    • improves promise chaining using the $then method. (aab2e309)
    • adds the $asPromise method (3e0dc98d)
  • model:
    • adds $mix method to extend a model after being created (8fce2ec9)
    • makes $inferKey public so it can be overriden. (22900b4d, closes #113)
  • plugins.debounced: changes use of classDefine variables by configuration variables (14f76cff)
  • plugins.paged: changes use of classDefine variables by configuration variables (5ddc1904)
  • utils:
    • overhaul extendOverriden to be used in factory (7b309652)
    • adds assertion method and integrates it (badc381a)

Breaking Changes

  • $then and $asPromise callbacks arguments have changed, $promise as public property is deprecated.

$then and $asPromise callbacks will now always receive the related resource as first parameter. Last promise result/rejection reason will be located in the $last property of the resource.

Replace references to $promise by calls to $asPromise(). (aab2e309)

  • CommonApi methods are no longer available at static (class) level (52b2591f)
  • define and classDefine no longer accept types other than functions.

Replace calls to define({ /* various methods */ }) by various calls to define, same for classDefine.

Replace usage of classDefine for type level config variables by proper configuration variables set using setProperty. (2966a46d)

  • Renaming has been disabled by default, removed setNameEncoder/setNameDecoder/disableRenaming methods

You must provide a custom renamer if you need renaming now, the idea is use a style.

Replace setNameEncoder/setNameDecoder/disableRenaming methods usage setRenamer method.

Closes #111 (91ab4a33)

0.18.2 (2014-08-30)

Bug Fixes

  • utils: fixes iframe array type hijack for IE9-IE10 (ce553426)

0.18.1 (2014-08-30)

Features

  • tests: adds separate karma configuration for sauce (32d8f815)
  • utils: improves array type creation, prefers prototype replacement strategy before ifra (0b35aa04, closes #89)

0.18.0 (2014-08-26)

Features

  • removes trailing slashes from generated urls (188a7f75)
  • collection: unifies interface with record api. (7fa0b64c, closes #63)

Breaking Changes

  • collection.$feed is called collection.$decode now.

Closes #63 (7fa0b64c)

0.17.0 (2014-08-25)

Bug Fixes

  • Gruntfile: couple of syntax errors (e5c3da47)
  • default_packer: changes default links property to li linked (ad3fa2f9)
  • relations: fixes default belongsToMany key property to use singularized attribute name (2d474dea)

Features

  • adds the default packer! (e790ef0b, closes #62)
  • adds PackerCache service. (99d7639f)
  • builder:
    • changes the var format for model config to all caps VAR format (decb21e0)
    • makes packer a configuration option settable as packer (fc12bd9d)
    • changes model configuration variables name format. (b0b87e22)
  • docs: adds the integration guide! (153caf8e, closes #101)
  • factory: adds default value fallback to $getProperty (da283132)
  • model:
    • adds model name inference from url. (c3ab4819)
    • changes baseUrl property name to url (e654176a)
  • packer_cache: changed to expect plural resource names (59305f5f)

Breaking Changes

  • renames restmodProvider.pushModelBase method to restmodProvider.rebase

0.16.3 (2014-08-19)

Bug fixes

serializer

  • moves the check for the $ prefix to after the nameDecoder is called. (c0c0f65)

0.16.2 (2014-08-18)

Features

builder

  • adds the belongsToMany relation. (8c368ff)

Bug fixes

serializer

  • fixes wildcard mapping for decoding and adds missing test (db27cf1)

  • encoding failing for null values (4d515c8)

0.16.0 (2014-08-14)

Features

Builder

  • Adds attribute mapping support

Model

  • Adds packer support

  • Adds $wrap/$unwrap methods

Breaking Changes

  • Adds query parameter support to $find (193dedc)

  • Changes module name to 'restmod'

  • Changes service name to 'restmod' and provider name to 'restmodProvider'

0.14.0 (2014-05-19)

Features

Model

  • Adds the $reveal method, this methods allows to display before a call to $save succeds.

  • Adds the $moveTo method, this method is used to change the item position in parent collection even before it is revealed.

Breaking Changes

  • changes the way creation of object in collection work. (7803c90)

  • makes $inferKey only be called for raw data. (58a2378)

  • changes $extend to only copy non-private properties. (5172aa9)

  • makes $build use $extend. (c00ea92)

0.13.0 (2014-03-14)

Breaking Changes

  • replaces SyncMask by string mask. Use attr: { ignore: 'CRU' } in an attribute definition to specify if it should be considered when Creating, Updating or Reading (d6b39e2)

  • makes properties that start with $ private. Private properties are not consideren when encoding/decoding an object (2549845)

  • makes $each method skip private properties (9d36bdd)

0.12.0 (2014-01-24)

Features

ModelBuilder

  • adds the setUrlPrefix builder method. (1cce503)

  • adds setPrimaryKey function. (59bc815)

Breaking Changes

  • $build, it no longer allows a private key to be passed directly, for that use $new or $build({ id: X })

0.11.1 (2014-01-22)

Features

Model

  • adds the after-init hook. (f761fec)

0.11.0 (2014-01-22)

Breaking Changes

  • removes build hook shorcut methods (afterCreate, afterFeed, etc ...). Use on('hook-name', function() {}) instead.

0.10.2 (2014-01-22)

Features

DirtyModel

  • Adds $restore method (652620e)

Builder

  • adds ability to define class methods and hooks in the object definition using special prefixes. (7c26ed5)

0.10.1 (2014-01-16)

Features

Collection

  • adds $indexOf method and makes $remove actually remove something. (0175ae8)

0.10.0 (2014-01-15)

Features

  • adds belongsTo relation and improves url generation. (f3bb097)

Breaking Changes

  • replaces the hasMany/hasOne modifiers parameter alias by path.
  • removes the restUrlBuilder and all related functions.

0.1.1

  • Initial prototype.