Skip to content

Commit 59e1694

Browse files
committed
Release 1.5.0
1 parent 501e9fc commit 59e1694

File tree

3 files changed

+6
-161
lines changed

3 files changed

+6
-161
lines changed

CHANGELOG.md

Lines changed: 4 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,5 @@
1-
# New release information
2-
New releases are in Releases section of Github
3-
https://github.com/mgonto/restangular/releases
41

5-
#1.0.11
6-
* Documentation Typo fixes
7-
* errorInterceptor can now stop Restangular from rejecting the promise
8-
* Bugfix fot method override on DELETE. Now it works
9-
10-
#1.0.9
11-
* **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
12-
* Now you can configure default request parameters per method and for everything as well
13-
* Added the ability to use Cannonical IDs. They're used if you need to change Primary Key (ID) of the element (Really weird case).
14-
* 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.
15-
* Added tests
16-
* Fixed bug with ID when it was an empty string
17-
* Added missing ';'.
18-
19-
20-
#1.0.7
21-
* `baseUrl` can now be set either with or without ending `/` and it'll work
22-
23-
#1.0.5
24-
* Several bug fixes
25-
* Added `parentless` configuration to ignore nested restful URLs
26-
27-
#1.0.2
28-
* First final release
29-
* Added `one` and `all` to all collection methods
30-
* Added `fullResponse` for getting the full `$http` response in every call
31-
* Improved documentation on `addElemTransformer`
32-
* Configuration can be set globally on either `RestangularProvider` or `Restangular`
33-
34-
#0.8.9
35-
* Fix call to `isOverridenMethod` in `setMethodOverriders`.
36-
37-
#0.8.8
38-
* Removed extra trailling slash for elements without ID. Thanks @cboden
39-
40-
#0.8.7
41-
* Bugfix for Refactor
42-
43-
#0.8.6
44-
* Ditched the buggy `$resource` and using `$http` inside :D
45-
46-
#0.8.4
47-
* Fixed bug with defaultHttpFields for scoped configuration
48-
* Added `defaultHeaders`
49-
50-
#0.8.3
51-
* Fixed bug with URLHandler. Now it uses local configuration as well
52-
* Added error interceptor
53-
* Fixed minor bugs
54-
55-
56-
#0.8.0
57-
* Big refactor to use scoped configurations
58-
59-
#0.7.3
60-
* All configuration can be done via either `Restangular` or `RestangularProvider`
61-
* url field now is called getRestangularUrl
62-
* `id` configuration from `restangularFields` now accepts nested (dotted) properties
63-
64-
#0.7.1
65-
* Added `defaultRequestParams` to set default request query parameters
66-
67-
#0.7.0
68-
* RequestInterceptor wasn't being called in getList
69-
* Removed extra `/` when no restangularWhat is provided. This is fixed by Angular's team since version 1.1.5 but this fixes it for all versions including 1.0.X
70-
* Added documentation for supported AngularJS versions
71-
* Added url method to elements which returns the URL of the current object
72-
73-
# 0.6.9
74-
* Wrapping everything in an anonymous self executed function to not expose anything
75-
76-
# 0.6.7
77-
* Bug fix for a regresion error using _.omit
78-
* Added element transformers to transform any Restangularized element.
79-
* Added putElement method to collection to put a certain element at an index and return a promise of the updated array.
80-
81-
# 0.6.5
82-
* Added `Restangular.copy` for copying objects
83-
84-
# 0.6.4
85-
* added methodOverriders to override any HTTP Method
86-
* Added requestInterceptor
87-
88-
# 0.6.3
89-
* Added `defaultHttpFields` configuration property
90-
91-
# 0.6.2
92-
* URL suffix is unescaped now
93-
94-
# 0.6.1
95-
* Elements are striped from Restangular fields before being sent to the server
96-
97-
# 0.6.0
98-
* Fixed bug when adding metadata to response in ResopnseExtractor. It wasn't being added
99-
* Added enhanced promises. [Check the section in README](https://github.com/mgonto/restangular/blob/master/README.md#enhanced-promises).
100-
101-
# 0.5.5
102-
* Changed by default from Underscore to Lodash. They both can be used anyway. (thanks @pauldijou)
103-
* Added tests for both Underscore and Lodash to check it's working. (thanks @pauldijou)
104-
105-
# 0.5.4
106-
* Added onElemRestangularized hook
107-
* Added posibility to add your own Restangular methods
108-
109-
# 0.5.3
110-
* Added the posibility to do URL Building and RequestLess tree navigations
111-
* Added alias to `do[method]`. For example, Now you can do `customPOST` as well as `doPOST`
112-
113-
# 0.5.2
114-
* responseExtractor renamed to responseInterceptor. Added alias from responseExtractor to responseInterceptor to mantain backwards compatibility
115-
* responseExtractor now receives 4 parameters. Response, operation, what (path of current element) and URL
116-
* Error function for any Restangular action now receives a response to get StatusCode and other interesting stuff
117-
118-
# 0.5.1
119-
* Added listTypeIsArray property to set getList as not an array.
120-
121-
# 0.5.0
122-
* Added `requestSuffix`configuration for requests ending en .json
123-
* `what` field is now configurable and not hardcoded anymore
124-
* All instance variables from `RestangularProvider` are now local variables to reduce visibility
125-
* Fully functional version with all desired features
126-
127-
# 0.4.6
128-
* Added Custom methods to all Restangular objects. Check it out in the README
129-
130-
# 0.4.5
131-
* Fixed but that didn't let ID to be 0.
132-
* Added different Collection methods and Element methods
133-
* Added posibility po do a post in a collection to post an element to itself
134-
* Added Travis CI for build
135-
* Fixed bug with parentResource after a post of a new element
136-
* When doing a post, if no element is returned, we enhance the object received as a parameter
137-
138-
# 0.3.4
139-
* Added new HTTP methods to use: Patch, Head, Trace and Options (thanks @pauldijou)
140-
* Added tests with Karma for all functionality.
141-
142-
# 0.3.3
143-
* Restangular fields can now be configured. You can set the id, route and parentResource fields. They're not hardcoded anymore
144-
145-
# 0.3.2
146-
* Added ResponseExtractor for when the real data is wrapped in an envelope in the WebServer response.
147-
148-
# 0.3.1
149-
150-
* Now all methods accept Headers. You can query `account.getList('buildings', {query: 'param'}, {'header': 'mine'})`
151-
152-
# 0.2.1
153-
154-
* Added query params to all methods. getList, post, put, get and delete accept query params now.
155-
156-
# 0.2.0
157-
* Added post method to all elements. Now you can also create new elements by calling `account.post('buildings', {name: "gonto"})`.
158-
159-
# 0.1.1
160-
* Changed `elem.delete()` to `elem.remove()` due to errors with Closure Compiler in Play 2
2+
1.5.0 / 2015-04-03
3+
==================
4+
* Tons of bug fixes
5+
* Upgraded Lodash to 1.3.0

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "restangular",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"main": "./dist/restangular.js",
55
"description": "Restful Resources service for AngularJS apps",
66
"repository": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "restangular",
33
"description": "Restful Resources service for AngularJS apps",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"filename": "restangular.min.js",
66
"main": "./dist/restangular.min.js",
77
"homepage": "https://github.com/mgonto/restangular",

0 commit comments

Comments
 (0)