Skip to content

Releases: mgonto/restangular

1.1.9

09 Dec 14:25
Compare
Choose a tag to compare
  • Fix bug with Santize helper
  • Fix bug with stripRestangular for objects

1.1.8

11 Nov 06:19
Compare
Choose a tag to compare
  • Regression bug fixes

1.1.7

09 Nov 20:33
Compare
Choose a tag to compare
  • fullRequestInterceptor receives an extra parameter called httpConfig 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 or oneUrl
  • Added method withHttpConfig to add $http local configuration to any Restangular call. For example account.withHttpConfig({timeout : 100}).put()
  • Configuration object is now exposed at Restangular.configuration and RestangularProvider.configuration
  • Fixed bug with duplicate Suffix in some cases

1.1.6

09 Oct 04:54
Compare
Choose a tag to compare
  • Regression bugs: setBaseUrl not working. Posting not objects not working

1.1.4

03 Oct 20:47
Compare
Choose a tag to compare
  • 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

15 Aug 15:11
Compare
Choose a tag to compare
  • BREAKING CHANGE: customPUT and customPOST now accept the element as the first parameter. The syntax is (elem, path, params, headers)

1.1.0

14 Aug 20:28
Compare
Choose a tag to compare

1.0.9

27 Jul 22:19
Compare
Choose a tag to compare
  • 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 ';'.

1.0.6

13 Jul 05:19
Compare
Choose a tag to compare
  • Now you can set baseUrl with either ending / or without. It'll work anyway.