Wednesday, May 2nd, 2007
Prototype 1.5.1 Released
The full release of Prototype 1.5.1 has been released, and if you are on the 1.5 branch you should upgrade.
Features
- Incredible Selector speedup and full CSS3 support (read about it in the original post).
- Full JSON encoding and decoding support and options for improved security.
- Optimized
Element#get/setStylefor cross-browser compatibility and speed. - Various
Stringmethod enhancements and fixes. - The new
Form#requestmethod simplifies the common case of submitting a serialized form with XMLHttpRequest. - Many form serialization fixes—if you had troubles before, now they’ve been squashed.
For more info view the Change Log, or Download away.












Compressed and Gzipped versions can be found at:
http://groups.google.com/group/prototype-core/files
ProtoPacked v2.12.zip
I just looked at a project I’ve been working on, and it’s using 1.5.0 rc1. O_O
What will break if I upgrade now? Is 1.5.1 backwards compatible with code written for 1.5.0 rc1? I know I can read the change log but I’m hoping someone else has already done this and might save me the trouble by relating their experiences.
Thanks!
the use of $continue is no longer recommended and you will get an error msg telling you to use “return” instead.
Other than that, you should be fine, all the probs I have found have been worked out in the RC releases.
You no longer need json.js because Prototype has all the JSON methods you need.
http://www.prototypejs.org/learn/json
supports JSON security measures too.
Ohh, one thing I did find is that Element.toggle( el1, el2, el3):
no longer works.
From their site:
In previous versions of Prototype, you could pass an arbitrary number of elements to Element.toggle, Element.show, and Element.hide, for consistency, this is no longer possible in version 1.5!
You can use:
$(’content’, ‘navigation’, ‘footer’).invoke(’hide’);
Great, thanks. Looks like I’ll have no problem at all migrating. :)
Great news. Prototype is great library