[aerogear-dev] AeroGear.js 2.0.0-beta1
Lucas Holmquist
lholmqui at redhat.com
Fri Oct 10 22:01:41 EDT 2014
The first beta release of AeroGear.js 2.0 is out and ready for you to test it!
There's been a bunch of changes that could possibly break existing code as well as some things that have been removed.
Pipeline
It was deteremined that Pipeline and pipes did not add much value since it was basically a wrapper on top of jQuery Ajax.
So Pipeline and pipes have been completely removed in 2.0
If this was something that you used, they will still live on in the 1.X branch
Authentication
Similar to Pipeline, the Auth module didn't really add any value to the library, so this has also been removed.
Again It will live on in the 1.X branch
Datamanager
One of the big things that has changed in Datamanager is that it is no longer dependent on jQuery.
The other thing is that we have fully embraced es6 Promises. Which means we have removed callbacks.
For the IndexedDB and WebSQL adapters, the auto param has now been updated to default to true. This means that you no longer have to excplitly call open.
So instead of doing something like this:
idbStore.open(...).then(function () {
idbStore.read(...)
});
You can now just do
idbStore.read(...)
Ajax Promises
We also updated the internal Ajax library to just use promises also.
This is used by both the UnifiedPush SDK and the Authz OAuth2 module.
Since ES6 promises only have 1 return value we return an object with this signature:
{
data: dataOrError, - the data or an error
statusText: statusText, - the status of the response
agXHR: request - the xhr request object
};
Cookbook Examples
The cookbook examples have also been updated with the 2.0.0 beta1 version and can be found in this branch
Integration Tests
Last but not least the Integration tests have been completly reworked, thanks to lfryc!!!
The PR's for these are https://github.com/aerogear/aerogear-js-integration/pull/12
and
https://github.com/aerogear/aerogear-js/pull/150
Release Notes - AeroGear JavaScript - Version 2.0.0
Bug
[AGJS-184] - Vertx and SimplePush integration tests execution issues
Feature Request
[AGJS-201] - XMLHttpRequest#response not implemented in Sinon.JS lib & authentication unit tests fail
[AGJS-251] - DataManager - Auto connect options should default to true
Task
[AGJS-189] - Review DevDependencies Versions
[AGJS-211] - Rework Integration Tests from the ground up
[AGJS-228] - Deprecate Pipeline
[AGJS-229] - Deprecate Authentication Module
[AGJS-232] - Remove AeroGear.isArray method from core
[AGJS-233] - Remove pipeline integration tests
[AGJS-234] - Promisify Library
[AGJS-242] - Update cookbook examples with deprecation notices, etc...
[AGJS-248] - Move the SimplePush and UnifiedPush examples to the real js-cookbook
Sub-task
[AGJS-42] - Remove jQuery dependency from DataManager; embrace Promises instead
[AGJS-162] - Remove jQuery Dependency from Auth
[AGJS-212] - Update to express 4
[AGJS-231] - Update Authz cookbook example without pipeline
[AGJS-235] - Promisify Datamanager
[AGJS-236] - Promisfy Crypto
[AGJS-237] - Promisfy Notifier
[AGJS-238] - Promisfy UnifiedPush client
[AGJS-239] - Promisfy Authorization
[AGJS-240] - Promisfy SimplePush
[AGJS-243] - Add deprecation Notice for Pipeline Cookbook example
[AGJS-244] - Add deprecation notice on Auth cookbook example
[AGJS-245] - Promisify AeroGear.ajax
[AGJS-246] - Update unified push example to use just promises
[AGJS-247] - Update Datamanager example to use promises not callbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20141010/929b94a0/attachment-0001.html
More information about the aerogear-dev
mailing list