Skip to content

Releases: platanus/angular-restmod

v1.1.0

26 Nov 19:29
Compare
Choose a tag to compare

Bug Fixes

  • test: fixes the preload plugin spec (502358d4)

Features

  • common:
    • adds the $action method that allows creation of cancelable actions. (8808e119)
    • prevents $then to wait for a digest cycle when last promise is resolved. (faafeb80)
  • docs: adds section about $resolve (036f9f7d)
  • model: adds the dummy method to generate dummy resources. (a072ad32)
  • plugins:
  • plugins.dirty: makes $restore use $action (c704f425)
  • plugins.shared: Adds the SharedModel plugin (a09888af, closes #124)
  • record:
    • makes destroy immediately remove revealed item from owner collection if not save (e8408381, closes #146)
    • makes $extend execute in the promise chain. (c7a692cf)
    • enables PATCH operations on $save (b8370417, closes #98)
  • serializer:

Breaking Changes

  • Actions will now be chained and may not execute inmediatelly if called after an async action.

Affected actions:

  • Record.$fetch
  • Record.$extend
  • Record.$save
  • Record.$destroy
  • Collection.$fetch
  • Collection.$add
  • Collection.$remove
  • Record/Collection.$resolve
  • Record/Collection.$reset
    (e5942d0e)

v1.0.3

26 Nov 19:30
Compare
Choose a tag to compare

Bug Fixes

  • common: fixes $send registering callback only to previous promise success. (4a4c6bc1, closes #135)

v1.0.2

26 Nov 19:30
Compare
Choose a tag to compare

Bug fixes

  • ams: fixes call to setPacker.

v1.0.1

26 Nov 19:30
Compare
Choose a tag to compare

Bug Fixes

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

v1.0.0

26 Nov 19:31
Compare
Choose a tag to compare

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)

v0.16.0

16 Aug 23:24
Compare
Choose a tag to compare
bumps v0.16.0

v0.14.0

16 Aug 23:25
Compare
Choose a tag to compare
bumps v0.14.0

v0.13.0

16 Aug 23:25
Compare
Choose a tag to compare
bumps v0.13.0