- Builder: fixes
mask
modifier being removed by mistake (dc498735)
- CommonApi: makes canceled request promises resolve to error (afcde0b4, closes #288)
- DefaultPacker: fixes plural name not being infered from name. (e4c02a13, closes #224)
- Relations: fixes hasMany and hasOne failing when inline property is null. (05ab5479)
- Serializer: fixes decoder being called on mapped properties even if the parent object was nu (e8041b8d)
- CommonApi: adds $off method to unregister callbacks (591db81b, closes #257)
- ModelApi: makes identity do the pluralizing if plural is not defined (b94b349b)
- RecordApi:
- Serializer:
- CommonApi: makes canceled request promises resolve to error (0b8f21c5, closes #288)
- DefaultPacker: fixes plural name not being infered from name. (ddad7e44, closes #224)
- CommonApi: adds $off method to unregister callbacks (59fd3b84, closes #257)
- ModelApi: makes identity do the pluralizing if plural is not defined (d2f0c0c3)
- adds package.json to release task (f7875766)
- factory: fixes typo in call to canonicalUrlFor. (5bfa439a, closes #227)
- fastq: adds missing 'catch' method to promises (1fea426a, closes #183)
- nesteddirty: adds NestedDirtyModel plugin (04b6178f)
- plugin.nested_dirty:
- service: adds support for custom relation url name transformation. (5a080925, closes #159)
- guides.integration: fixes deprecated notation references (7bdb2569, closes #215)
- service: fixes wrong warning message refering to
$mix
instead ofmix
(09b1f352, closes #178)
- adds the List type and namespace. (7ee7b9ce, closes #169)
- improves PATCH logic, now refering to an object containing property will automatically include it's subproperties.
- common_api: Adds the posibility to override the cannonical url for nested resources. (db47f98c)
- computed: Adds compute properties. (9a015311)
- relations: adds hasMany and hasOne hooks. (fc2a8059, closes #35, #28)
- default_packer: adds support for explicitly setting links and metadata properties to extract. (dcfd37be, closes #153)
- find_many: adds posibility to include additional parameters in populate request (bf05802b)
- preload: adds support for query parameters. (62f1dcb1, closes #152)
- test: fixes the preload plugin spec (502358d4)
- common:
- 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:
- serializer:
- 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)
- ams: fixes call to setPacker.
- common: removes promise clearing in
$cancel
(7cb4ad5b) - tests: changes old notation (8c4c9d48, closes #33)
- creates the extended api module that is included in collections and records. (c05a7b3c, closes #78, #115)
- builder:
- common:
- model:
- plugins.debounced: changes use of classDefine variables by configuration variables (14f76cff)
- plugins.paged: changes use of classDefine variables by configuration variables (5ddc1904)
- utils:
$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)
- utils: fixes iframe array type hijack for IE9-IE10 (ce553426)
- tests: adds separate karma configuration for sauce (32d8f815)
- utils: improves array type creation, prefers prototype replacement strategy before ifra (0b35aa04, closes #89)
- removes trailing slashes from generated urls (188a7f75)
- collection: unifies interface with record api. (7fa0b64c, closes #63)
- collection.$feed is called collection.$decode now.
Closes #63 (7fa0b64c)
- 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)
- adds the default packer! (e790ef0b, closes #62)
- adds PackerCache service. (99d7639f)
- builder:
- docs: adds the integration guide! (153caf8e, closes #101)
- factory: adds default value fallback to $getProperty (da283132)
- model:
- packer_cache: changed to expect plural resource names (59305f5f)
- renames restmodProvider.pushModelBase method to restmodProvider.rebase
- moves the check for the $ prefix to after the nameDecoder is called. (c0c0f65)
- adds the belongsToMany relation. (8c368ff)
-
fixes wildcard mapping for decoding and adds missing test (db27cf1)
-
encoding failing for null values (4d515c8)
- Adds attribute mapping support
-
Adds packer support
-
Adds $wrap/$unwrap methods
-
Adds query parameter support to $find (193dedc)
-
Changes module name to 'restmod'
-
Changes service name to 'restmod' and provider name to 'restmodProvider'
-
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.
-
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)
-
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)
-
adds the setUrlPrefix builder method. (1cce503)
-
adds setPrimaryKey function. (59bc815)
- $build, it no longer allows a private key to be passed directly, for that use $new or $build({ id: X })
- adds the after-init hook. (f761fec)
- removes build hook shorcut methods (
afterCreate
,afterFeed
, etc ...). Useon('hook-name', function() {})
instead.
- Adds $restore method (652620e)
- adds ability to define class methods and hooks in the object definition using special prefixes. (7c26ed5)
- adds $indexOf method and makes $remove actually remove something. (0175ae8)
- adds belongsTo relation and improves url generation. (f3bb097)
- replaces the hasMany/hasOne modifiers parameter
alias
bypath
. - removes the restUrlBuilder and all related functions.
- Initial prototype.