Releases: mgonto/restangular
Releases · mgonto/restangular
1.1.9
1.1.8
1.1.7
fullRequestInterceptor
receives an extra parameter calledhttpConfig
where you can configure the$http
configuration object to add a timeout, cache or something.- Updated
patch
documentation - Fixed bug with trailling slash when using
allUrl
oroneUrl
- Added method
withHttpConfig
to add$http
local configuration to any Restangular call. For exampleaccount.withHttpConfig({timeout : 100}).put()
- Configuration object is now exposed at
Restangular.configuration
andRestangularProvider.configuration
- Fixed bug with duplicate Suffix in some cases
1.1.6
1.1.4
- IDs are encoded by default and you can modify that property.
- Strip restangular stuff from any element that's being pushed to the server
- ETag now works for ALL HTTP methods
- Added clone method to elements and collections. A shortcut to Restangular.copy
- Fix error when selfLink was set to a nested property
- List elements now have a function that returns parent list.
- Other bug fixes
1.1.1
1.1.0
- Added self linking ability to elements. Now you can use the URL to self returned in the elements from the server to query or modify stuff in the server!! Check out https://github.com/mgonto/restangular#using-self-reference-resources
- Fix for Cannonical URL building. Thanks @nl0
- Added ETag support. Now every request sent and received with Restangular can handle ETag and If-None-Match headers
- Added getter for defaultHeaders in the configuration. You can just do
RestangularProvider.defaultHeaders
- Implemented FullResponseInterceptor. Take a look at https://github.com/mgonto/restangular#setfullresponseinterceptor. Thanks @robschley.
- Fixed Karma Build. Thanks @jlleblanc
1.0.9
- BREAKING CHANGE: Restangular methods created with
addRestangularMethod
will change its signature depending on the opreation. If the operation is safe (GET, OPTIONS, etc.), the signature is methodName(params, headers, elemForBody). If it's not safe (POST, PUT, etc.), the signature is methodName(elemForBody, params, headers). This is to facilitate using them as when it's not safe, you're usually going to set a body - Now you can configure default request parameters per method and for everything as well
- Added the ability to use Cannonical IDs. They're used if you need to change Primary Key (ID) of the element (Really weird case).
- If response is null or undefined, the element sent in the request ISN'T used anymore. This is to have clarity of what's returned by the server and also to fix one bug.
- Added tests
- Fixed bug with ID when it was an empty string
- Added missing ';'.