[aerogear-dev] AeroGear.js 2.0.0-beta1

Lucas Holmquist lholmqui at redhat.com
Mon Oct 20 10:36:34 EDT 2014


> On Oct 11, 2014, at 5:38 AM, Matthias Wessendorf <matzew at apache.org> wrote:
> 
> Sounds good!
> 
> regarding "Pipeline"  and "Authentication" do we have a doc that helps to migrate away?

currently no.  wondering if this should just be in the blog post,  or in something in the readme or on Aerogear.org

> 
> On Sat, Oct 11, 2014 at 4:01 AM, Lucas Holmquist <lholmqui at redhat.com <mailto:lholmqui at redhat.com>> wrote:
> The first beta release of AeroGear.js 2.0 <https://github.com/aerogear/aerogear-js/releases/tag/2.0.0-beta1> 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 <https://github.com/aerogear/aerogear-js-cookbook/tree/2-beta1>
> 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 <https://github.com/aerogear/aerogear-js-integration/pull/12>
> and
> 
> https://github.com/aerogear/aerogear-js/pull/150 <https://github.com/aerogear/aerogear-js/pull/150>
> Release Notes - AeroGear JavaScript - Version 2.0.0
> 
> Bug
> 
> [AGJS-184 <https://issues.jboss.org/browse/AGJS-184>] - Vertx and SimplePush integration tests execution issues
> Feature Request
> 
> [AGJS-201 <https://issues.jboss.org/browse/AGJS-201>] - XMLHttpRequest#response not implemented in Sinon.JS lib & authentication unit tests fail
> [AGJS-251 <https://issues.jboss.org/browse/AGJS-251>] - DataManager - Auto connect options should default to true
> Task
> 
> [AGJS-189 <https://issues.jboss.org/browse/AGJS-189>] - Review DevDependencies Versions
> [AGJS-211 <https://issues.jboss.org/browse/AGJS-211>] - Rework Integration Tests from the ground up
> [AGJS-228 <https://issues.jboss.org/browse/AGJS-228>] - Deprecate Pipeline
> [AGJS-229 <https://issues.jboss.org/browse/AGJS-229>] - Deprecate Authentication Module
> [AGJS-232 <https://issues.jboss.org/browse/AGJS-232>] - Remove AeroGear.isArray method from core
> [AGJS-233 <https://issues.jboss.org/browse/AGJS-233>] - Remove pipeline integration tests
> [AGJS-234 <https://issues.jboss.org/browse/AGJS-234>] - Promisify Library
> [AGJS-242 <https://issues.jboss.org/browse/AGJS-242>] - Update cookbook examples with deprecation notices, etc...
> [AGJS-248 <https://issues.jboss.org/browse/AGJS-248>] - Move the SimplePush and UnifiedPush examples to the real js-cookbook
> Sub-task
> 
> [AGJS-42 <https://issues.jboss.org/browse/AGJS-42>] - Remove jQuery dependency from DataManager; embrace Promises instead
> [AGJS-162 <https://issues.jboss.org/browse/AGJS-162>] - Remove jQuery Dependency from Auth
> [AGJS-212 <https://issues.jboss.org/browse/AGJS-212>] - Update to express 4
> [AGJS-231 <https://issues.jboss.org/browse/AGJS-231>] - Update Authz cookbook example without pipeline
> [AGJS-235 <https://issues.jboss.org/browse/AGJS-235>] - Promisify Datamanager
> [AGJS-236 <https://issues.jboss.org/browse/AGJS-236>] - Promisfy Crypto
> [AGJS-237 <https://issues.jboss.org/browse/AGJS-237>] - Promisfy Notifier
> [AGJS-238 <https://issues.jboss.org/browse/AGJS-238>] - Promisfy UnifiedPush client
> [AGJS-239 <https://issues.jboss.org/browse/AGJS-239>] - Promisfy Authorization
> [AGJS-240 <https://issues.jboss.org/browse/AGJS-240>] - Promisfy SimplePush
> [AGJS-243 <https://issues.jboss.org/browse/AGJS-243>] - Add deprecation Notice for Pipeline Cookbook example
> [AGJS-244 <https://issues.jboss.org/browse/AGJS-244>] - Add deprecation notice on Auth cookbook example
> [AGJS-245 <https://issues.jboss.org/browse/AGJS-245>] - Promisify AeroGear.ajax
> [AGJS-246 <https://issues.jboss.org/browse/AGJS-246>] - Update unified push example to use just promises
> [AGJS-247 <https://issues.jboss.org/browse/AGJS-247>] - Update Datamanager example to use promises not callbacks
> 
> 
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org <mailto:aerogear-dev at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/aerogear-dev <https://lists.jboss.org/mailman/listinfo/aerogear-dev>
> 
> 
> 
> -- 
> Matthias Wessendorf 
> 
> blog: http://matthiaswessendorf.wordpress.com/ <http://matthiaswessendorf.wordpress.com/>
> sessions: http://www.slideshare.net/mwessendorf <http://www.slideshare.net/mwessendorf>
> twitter: http://twitter.com/mwessendorf <http://twitter.com/mwessendorf>_______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20141020/47703955/attachment-0001.html 


More information about the aerogear-dev mailing list