Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 96 lines (63 sloc) 4.685 kB
f105006 @benpickles Version 0.6.0.
authored
1 # Changelog
2
4c54e46 @benpickles Version 0.9.3.
authored
3 ## 0.9.3
4
5 * Add the ability to define a custom `initialize()` instance method that is called at the end of the initialization process. Thanks to Ismael Celis for the idea.
6
db6528b @benpickles Version 0.9.2.
authored
7 ## 0.9.2
8
9 * Ajax DELETE sends JSON body, including AjaxSetup data if available. [Ismael Celis]
10 * `Model.remove()` should include removed instance in event data. [Ismael Celis]
11 * Call the `Model.load()` callback with the scope of the class.
12
33c406a @benpickles Version 0.9.1.
authored
13 ## 0.9.1
14
15 * If defined, include jQuery.ajaxSetup data in REST parameters. [Ismael Celis]
16
fc2aed5 @benpickles Update CHANGELOG and README for v0.9.0.
authored
17 ## 0.9.0
18
19 * Finder methods now return `undefined` for a missing model.
20 * Remove #update method which you might guess acts like ActiveRecord's #update_attributes which is not the case - no calls are triggered on the persistence adapter.
21 * Model.RestPersistence renamed to Model.REST - Model.RestPersistence can still be used but will be removed in version 1.0.
22 * REST adapter now sends JSON instead of "application/x-www-form-urlencoded" (and so now requires the browser to be JSON-aware).
23 * Add `reverse` class method.
24 * Add Model.VERSION to allow inspection of js-model version.
25 * Add Model.localStorage persistence adapter.
26 * Stop jQuery's JSON parsing throwing an error when encountering Rails' none-empty " " JSON responses.
4a07a44 @benpickles Remove Underscore dependency. Model.remove method now takes a model i…
authored
27 * Remove Underscore dependency.
28 * `Model.remove` method now takes a model instance rather than an id.
d8932a5 @benpickles Rename `sort` to `sortBy` and add the ability to specify an attribute…
authored
29 * Rename `sort` to `sortBy` and add the ability to specify an attribute name as well as a custom function. Add `sort` method that acts on a collection just like `Array#sort`.
3d1946d @benpickles Add pluck method that takes an attribute name and returns an array of…
authored
30 * Add `pluck` method that takes an attribute name and returns an array of values.
07f790c @benpickles Fix for callbacks being wrongly called on multiple instances - they w…
authored
31 * Fix for callbacks being wrongly called on multiple instances - they were being stored on the prototype and thus being shared across instances. Thanks to Oliver Nightingale for identifying the bug and writing a test case.
32
c33ed77 @benpickles Version 0.8.4.
authored
33 ## 0.8.4
34
35 * Add named parameters to `Model.RestPersistence` so "/categories/:category_id/posts" will pick up the corresponding `category_id` attribute from your model and be converted to "/categories/2/posts". [Russell Jones]
36
86772ac @benpickles Version 0.8.3.
authored
37 ## 0.8.3
38
39 * Fix that `find`, `first`, `last` and `detect` return `null` when nothing is found.
40 * Add `unbind` method to unbind all callbacks for a particular event or a specific callback by passing a reference to the original function.
41 * Move callback functionality into a separate module and mix-in to class and instance.
42
fe28c8e @benpickles Version 0.8.2.
authored
43 ## 0.8.2
44
1d9d72a @benpickles Don't log an error when Rails returns a response of " " for a `head :…
authored
45 * Don't log an error when Rails returns a response of " " for a `head :ok` response.
fe28c8e @benpickles Version 0.8.2.
authored
46 * `jQuery.ajax` should use `dataType` "json" removing the need to set a global `beforeSend`. [Jason Lee]
1d9d72a @benpickles Don't log an error when Rails returns a response of " " for a `head :…
authored
47
c7ec181 @benpickles Version 0.8.1.
authored
48 ## 0.8.1
49
1d9d72a @benpickles Don't log an error when Rails returns a response of " " for a `head :…
authored
50 * Fix that custom class methods should be available after chaining.
578d0c1 @benpickles Custom class methods should be available after chaining.
authored
51
9123e4f @benpickles Version 0.8.0.
authored
52 ## 0.8.0
53
54 * Move model collection methods into a separate object allowing you to customise the defaults in a single place.
55 * Move model instance methods into a separate object. This allows you to redefine the defaults once rather than having to pass the same custom method to multiple models at declaration time.
56 * Defining a model now takes three arguments: name, class methods, instance methods.
57
58 ## 0.7.3
59
60 * Fix callbacks in IE.
61 * Fix broken Ajax tests in IE6 and IE7.
62
1160851 @benpickles Version 0.7.1.
authored
63 ## 0.7.1
64
65 * `Model.RestPersistence` now recognises a 422 response as validation failure and populates the model's errors object with the response data.
66 * `Model.errors` is now an object and has a similar interface to ActiveModel.
67 * Fix that `changes` should only be merged after a successful `save` (create/update).
68 * Calling Model#attr() with no arguments returns a combined object of attributes/changes.
69 * Fix that `Model.RestPersistence` Ajax failures should correctly run the supplied callback.
70 * Add `count` method to `Model.Collection`.
71 * Collection methods now access the collection through the `all` method so that `select`, `each`, etc work as expected if it's overwritten.
72
ceddb12 @benpickles Version 0.7.0.
authored
73 ## 0.7.0
74
75 * Events are now bound directly to a model rather than using jQuery `bind`. Collections also now have the concept of events with "add" and "remove" built-in.
76
77 ## 0.6.1
78
63f4a3a @benpickles `update` should trigger "update" event, add separate `merge` method.
authored
79 * `update` should trigger "update" event, add separate `merge` method.
6966778 @benpickles Fix that persistence failure should not trigger corresponding event.
authored
80 * Fix that persistence failure should not trigger corresponding event.
81
f105006 @benpickles Version 0.6.0.
authored
82 ## 0.6.0
83
84 * Pass only a single callback to save/destroy which is called with a boolean to indicate success/failure.
85 * Bundle release into a single, versioned Javascript file plus minified version.
86 * Change behaviour of `Model.Collection` and don't let duplicates (scoped by id) of the same model to be stored. [Laurie Young]
87
88 ## 0.5.1
89
90 * Fix that setting a null value with `attr` should be read back correctly from `changes`.
91 * `errors` array shouldn't have to be manually `reset` when implementing `validate`.
92
93 ## 0.5.0
94
95 * First tagged release.
Something went wrong with that request. Please try again.