<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 11, 2014, at 5:38 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" class="">matzew@apache.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Sounds good!<div class=""><br class=""></div><div class="">regarding&nbsp;"Pipeline" &nbsp;and "Authentication" do we have a doc that helps to migrate away?</div></div></div></blockquote><div><br class=""></div><div>currently no. &nbsp;wondering if this should just be in the blog post, &nbsp;or in something in the readme or on <a href="http://Aerogear.org" class="">Aerogear.org</a></div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Oct 11, 2014 at 4:01 AM, Lucas Holmquist <span dir="ltr" class="">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank" class="">lholmqui@redhat.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">The&nbsp;<a href="https://github.com/aerogear/aerogear-js/releases/tag/2.0.0-beta1" style="color:rgb(91,164,229)" target="_blank" class="">first beta release of AeroGear.js 2.0</a>&nbsp;is out and ready for you to test it!</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">There's been a bunch of changes that could possibly break existing code as well as some things that have been removed.</p><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Pipeline</h2><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">It was deteremined that Pipeline and pipes did not add much value since it was basically a wrapper on top of jQuery Ajax.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">So Pipeline and pipes have been completely removed in 2.0</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">If this was something that you used, they will still live on in the 1.X branch</p><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Authentication</h2><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">Similar to Pipeline, the Auth module didn't really add any value to the library, so this has also been removed.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">Again It will live on in the 1.X branch</p><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Datamanager</h2><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">One of the big things that has changed in Datamanager is that it is no longer dependent on jQuery.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">The other thing is that we have fully embraced es6 Promises. Which means we have removed callbacks.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">For the IndexedDB and WebSQL adapters, the&nbsp;<code style="font-family:Inconsolata,monospace;font-size:0.85em;white-space:pre-wrap;border:1px solid rgb(221,219,204);border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;padding:1px 3px;background:rgb(241,240,234)" class="">auto</code>&nbsp;param has now been updated to default to&nbsp;<code style="font-family:Inconsolata,monospace;font-size:0.85em;white-space:pre-wrap;border:1px solid rgb(221,219,204);border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;padding:1px 3px;background:rgb(241,240,234)" class="">true</code>. This means that you no longer have to excplitly call open.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">So instead of doing something like this:</p><pre style="font-family:Inconsolata,monospace;font-size:0.9em;margin-top:1.6em;margin-bottom:1.6em;border:1px solid rgb(221,219,204);width:700px;padding:10px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(36,38,40);line-height:27.2831993103027px;background-color:rgb(241,240,234);background-repeat:initial initial" class=""><code style="font-family:Inconsolata,monospace;font-size:inherit;white-space:pre-wrap;border:none;border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;padding:0px;background:transparent" class="">idbStore.open(...).then(function () {
    idbStore.read(...)
});
</code></pre><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">You can now just do</p><pre style="font-family:Inconsolata,monospace;font-size:0.9em;margin-top:1.6em;margin-bottom:1.6em;border:1px solid rgb(221,219,204);width:700px;padding:10px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(36,38,40);line-height:27.2831993103027px;background-color:rgb(241,240,234);background-repeat:initial initial" class=""><code style="font-family:Inconsolata,monospace;font-size:inherit;white-space:pre-wrap;border:none;border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;padding:0px;background:transparent" class="">idbStore.read(...)
</code></pre><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Ajax Promises</h2><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">We also updated the internal Ajax library to just use promises also.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">This is used by both the UnifiedPush SDK and the Authz OAuth2 module.</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">Since ES6 promises only have 1 return value we return an object with this signature:</p><pre style="font-family:Inconsolata,monospace;font-size:0.9em;margin-top:1.6em;margin-bottom:1.6em;border:1px solid rgb(221,219,204);width:700px;padding:10px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(36,38,40);line-height:27.2831993103027px;background-color:rgb(241,240,234);background-repeat:initial initial" class=""><code style="font-family:Inconsolata,monospace;font-size:inherit;white-space:pre-wrap;border:none;border-top-left-radius:2px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-bottom-left-radius:2px;padding:0px;background:transparent" class="">{
    data: dataOrError, - the data or an error
    statusText: statusText, - the status of the response
    agXHR: request - the xhr request object
};
</code></pre><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Cookbook Examples</h2><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">The cookbook examples have also been updated with the 2.0.0 beta1 version and can be found in this&nbsp;<a href="https://github.com/aerogear/aerogear-js-cookbook/tree/2-beta1" style="color:rgb(91,164,229)" target="_blank" class="">branch</a></p><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Integration Tests</h2><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">Last but not least the Integration tests have been completly reworked, thanks to lfryc!!!</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">The PR's for these are&nbsp;<a href="https://github.com/aerogear/aerogear-js-integration/pull/12" style="color:rgb(91,164,229)" target="_blank" class="">https://github.com/aerogear/aerogear-js-integration/pull/12</a></p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class="">and</p><p style="margin:1.2em 0px 1.6em;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class=""><a href="https://github.com/aerogear/aerogear-js/pull/150" style="color:rgb(91,164,229)" target="_blank" class="">https://github.com/aerogear/aerogear-js/pull/150</a></p><h3 style="color:rgb(36,38,40);line-height:1;margin-top:0px;font-size:1.8em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Release Notes - AeroGear JavaScript - Version 2.0.0</h3><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Bug</h2><ul style="margin:1.6em 0px;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class=""><li class="">[<a href="https://issues.jboss.org/browse/AGJS-184" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-184</a>] - Vertx and SimplePush integration tests execution issues</li></ul><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Feature Request</h2><ul style="margin:1.6em 0px;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class=""><li class="">[<a href="https://issues.jboss.org/browse/AGJS-201" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-201</a>] - XMLHttpRequest#response not implemented in Sinon.JS lib &amp; authentication unit tests fail</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-251" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-251</a>] - DataManager - Auto connect options should default to true</li></ul><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Task</h2><ul style="margin:1.6em 0px;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class=""><li class="">[<a href="https://issues.jboss.org/browse/AGJS-189" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-189</a>] - Review DevDependencies Versions</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-211" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-211</a>] - Rework Integration Tests from the ground up</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-228" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-228</a>] - Deprecate Pipeline</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-229" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-229</a>] - Deprecate Authentication Module</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-232" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-232</a>] - Remove AeroGear.isArray method from core</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-233" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-233</a>] - Remove pipeline integration tests</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-234" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-234</a>] - Promisify Library</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-242" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-242</a>] - Update cookbook examples with deprecation notices, etc...</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-248" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-248</a>] - Move the SimplePush and UnifiedPush examples to the real js-cookbook</li></ul><h2 style="color:rgb(36,38,40);line-height:1;margin-top:0.8em;padding-top:0.8em;border-top-color:rgb(237,236,228);border-top-width:1px;border-top-style:solid;font-size:2.2em;font-family:'Open Sans',sans-serif;background-color:rgb(255,255,255)" class="">Sub-task</h2><ul style="margin:1.6em 0px;color:rgb(36,38,40);font-family:'Open Sans',sans-serif;font-size:18px;line-height:27.2831993103027px;background-color:rgb(255,255,255)" class=""><li class="">[<a href="https://issues.jboss.org/browse/AGJS-42" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-42</a>] - Remove jQuery dependency from DataManager; embrace Promises instead</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-162" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-162</a>] - Remove jQuery Dependency from Auth</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-212" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-212</a>] - Update to express 4</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-231" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-231</a>] - Update Authz cookbook example without pipeline</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-235" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-235</a>] - Promisify Datamanager</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-236" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-236</a>] - Promisfy Crypto</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-237" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-237</a>] - Promisfy Notifier</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-238" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-238</a>] - Promisfy UnifiedPush client</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-239" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-239</a>] - Promisfy Authorization</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-240" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-240</a>] - Promisfy SimplePush</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-243" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-243</a>] - Add deprecation Notice for Pipeline Cookbook example</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-244" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-244</a>] - Add deprecation notice on Auth cookbook example</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-245" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-245</a>] - Promisify AeroGear.ajax</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-246" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-246</a>] - Update unified push example to use just promises</li><li class="">[<a href="https://issues.jboss.org/browse/AGJS-247" style="color:rgb(91,164,229)" target="_blank" class="">AGJS-247</a>] - Update Datamanager example to use promises not callbacks</li></ul><div class=""><br class=""></div></div><br class="">_______________________________________________<br class="">
aerogear-dev mailing list<br class="">
<a href="mailto:aerogear-dev@lists.jboss.org" class="">aerogear-dev@lists.jboss.org</a><br class="">
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class="">Matthias Wessendorf <br class=""><br class="">blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank" class="">http://matthiaswessendorf.wordpress.com/</a><br class="">sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank" class="">http://www.slideshare.net/mwessendorf</a><br class="">twitter: <a href="http://twitter.com/mwessendorf" target="_blank" class="">http://twitter.com/mwessendorf</a>
</div>
_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a href="mailto:aerogear-dev@lists.jboss.org" class="">aerogear-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</div></blockquote></div><br class=""></body></html>