From b9f3946099117ce5e4306ce55ca488696adaf8cc Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Wed, 31 Aug 2016 14:56:51 -0700 Subject: [PATCH 01/27] bower updated --- bower.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 04f2c8d..d05bfd0 100644 --- a/bower.json +++ b/bower.json @@ -18,9 +18,9 @@ "/test/" ], "dependencies": { - "polymer": "Polymer/polymer#^1.2", + "polymer": "git@github.com:PolymerLabs/alacarte.git#master", "firebase": ">= 3.5.1 < 4.0", - "app-storage": "polymerelements/app-storage#^1.0.0" + "app-storage": "git@github.com:notwaldorf/app-storage.git#2.0-preview" }, "devDependencies": { "iron-component-page": "PolymerElements/iron-component-page#^1.0", From c59bf2cffbf03c8936a943081a9f50a4bb132339 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Wed, 31 Aug 2016 14:58:13 -0700 Subject: [PATCH 02/27] firebase-query test update --- test/firebase-query.html | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/test/firebase-query.html b/test/firebase-query.html index d946ff0..d3d26dc 100644 --- a/test/firebase-query.html +++ b/test/firebase-query.html @@ -33,13 +33,25 @@ - - + + + + + From fe6cec43f65af17c4dd67c0c4f8993b9755d741e Mon Sep 17 00:00:00 2001 From: Chris Joel Date: Thu, 17 Nov 2016 18:50:40 -0800 Subject: [PATCH 08/27] Lazily await app initializing when necessary. With the new order of element intialization (bottom-up), the firebase-app element is typically the last one to be initialized. This means that Polymerfire elements need to await app initialization in order to successfully create app instances for themselves. --- firebase-app.html | 1 + firebase-common-behavior.html | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/firebase-app.html b/firebase-app.html index 280823d..98a582a 100644 --- a/firebase-app.html +++ b/firebase-app.html @@ -121,6 +121,7 @@ } firebase.initializeApp.apply(firebase, init); + this.fire('firebase-app-initialized'); } else { return null; } diff --git a/firebase-common-behavior.html b/firebase-common-behavior.html index 85a75ea..4be6435 100644 --- a/firebase-common-behavior.html +++ b/firebase-common-behavior.html @@ -43,6 +43,13 @@ } } catch (e) { // appropriate app hasn't been initialized yet + var self = this; + window.addEventListener('firebase-app-initialized', + function onFirebaseAppInitialized(event) { + window.removeEventListener( + 'firebase-app-initialized', onFirebaseAppInitialized); + self.__appNameChanged(self.appName); + }); } }, From 58e3e8cc4e0a3b8a1132845b5110032e9dba7e3f Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Fri, 3 Mar 2017 19:05:06 -0800 Subject: [PATCH 09/27] fixed bower --- .gitignore | 3 ++- bower.json | 26 +++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 8d4ae25..2be39e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -bower_components +bower_components* +bower-*.json diff --git a/bower.json b/bower.json index 4d39bcc..0ecb444 100644 --- a/bower.json +++ b/bower.json @@ -23,14 +23,26 @@ "app-storage": "PolymerElements/app-storage#2.0-preview" }, "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0", - "web-component-tester": "^4.0.0", + "iron-component-page": "PolymerElements/iron-component-page#2.0-preview", "note-app-elements": "polymerlabs/note-app-elements#2.0-preview", - "test-fixture": "PolymerElements/test-fixture#custom-elements-v1" + "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.4", + "test-fixture": "PolymerElements/test-fixture#^3.0.0-rc.1", + "web-component-tester": "Polymer/web-component-tester#^6.0.0-prerelease.6" }, - "resolutions": { - "polymer": "2.0-preview", - "webcomponentsjs": "v1", - "test-fixture": "custom-elements-v1" + "variants": { + "1.x": { + "dependencies": { + "polymer": "Polymer/polymer#^1.2", + "firebase": ">= 3.5.1 < 4.0", + "app-storage": "polymerelements/app-storage#^0.9.0" + }, + "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0", + "note-app-elements": "polymerlabs/note-app-elements", + "test-fixture": "polymerelements/test-fixture#^1.0.0", + "web-component-tester": "^4.0.0", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" + } + } } } From e54cc1e9e26b618c7de5d5325396226698a346a7 Mon Sep 17 00:00:00 2001 From: Mathew Winters Date: Fri, 10 Mar 2017 08:36:21 +1300 Subject: [PATCH 10/27] Issue #170 - duplicate row data. --- firebase-query.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firebase-query.html b/firebase-query.html index 3f76333..56cfe07 100644 --- a/firebase-query.html +++ b/firebase-query.html @@ -304,6 +304,14 @@ } if (query) { + if(this._onOnce){ // remove handlers before adding again. Otherwise we get data multiplying + query.off('child_added', this.__onFirebaseChildAdded, this); + query.off('child_removed', this.__onFirebaseChildRemoved, this); + query.off('child_changed', this.__onFirebaseChildChanged, this); + query.off('child_moved', this.__onFirebaseChildMoved, this); + } + + this._onOnce = true; query.on('child_added', this.__onFirebaseChildAdded, this.__onError, this); query.on('child_removed', this.__onFirebaseChildRemoved, this.__onError, this); query.on('child_changed', this.__onFirebaseChildChanged, this.__onError, this); From 4429c2694401d68323d038f528a5e9e6936716c7 Mon Sep 17 00:00:00 2001 From: Mathew Winters Date: Fri, 10 Mar 2017 10:42:17 +1300 Subject: [PATCH 11/27] Revert "Issue #170 - duplicate row data." This reverts commit bfebfe3150e7ce6aee9955e892f3ab54e338c4cb. --- firebase-query.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/firebase-query.html b/firebase-query.html index 56cfe07..3f76333 100644 --- a/firebase-query.html +++ b/firebase-query.html @@ -304,14 +304,6 @@ } if (query) { - if(this._onOnce){ // remove handlers before adding again. Otherwise we get data multiplying - query.off('child_added', this.__onFirebaseChildAdded, this); - query.off('child_removed', this.__onFirebaseChildRemoved, this); - query.off('child_changed', this.__onFirebaseChildChanged, this); - query.off('child_moved', this.__onFirebaseChildMoved, this); - } - - this._onOnce = true; query.on('child_added', this.__onFirebaseChildAdded, this.__onError, this); query.on('child_removed', this.__onFirebaseChildRemoved, this.__onError, this); query.on('child_changed', this.__onFirebaseChildChanged, this.__onError, this); From 21e1a495723d31a40f948067b4bab4648ed60cca Mon Sep 17 00:00:00 2001 From: Mathew Winters Date: Fri, 10 Mar 2017 10:43:17 +1300 Subject: [PATCH 12/27] Issue #170 - duplicate rows. Committed with correct e-mail address --- firebase-query.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firebase-query.html b/firebase-query.html index 3f76333..0ca515c 100644 --- a/firebase-query.html +++ b/firebase-query.html @@ -304,6 +304,14 @@ } if (query) { + if(this._onOnce){ // remove handlers before adding again. Otherwise we get data multiplying + query.off('child_added', this.__onFirebaseChildAdded, this); + query.off('child_removed', this.__onFirebaseChildRemoved, this); + query.off('child_changed', this.__onFirebaseChildChanged, this); + query.off('child_moved', this.__onFirebaseChildMoved, this); + } + + this._onOnce = true; query.on('child_added', this.__onFirebaseChildAdded, this.__onError, this); query.on('child_removed', this.__onFirebaseChildRemoved, this.__onError, this); query.on('child_changed', this.__onFirebaseChildChanged, this.__onError, this); From 8f4424fff8be23bbd2c145c056dbf0a907944a13 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Wed, 31 Aug 2016 14:56:51 -0700 Subject: [PATCH 13/27] bower updated --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 0ecb444..18bc993 100644 --- a/bower.json +++ b/bower.json @@ -45,4 +45,4 @@ } } } -} +} \ No newline at end of file From 2c5cac749959a93d820aa79648f0a4d750dfb27b Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Wed, 31 Aug 2016 15:23:02 -0700 Subject: [PATCH 14/27] fixed firebase-auth tests --- test/firebase-auth.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/firebase-auth.html b/test/firebase-auth.html index 43a7060..1cae727 100644 --- a/test/firebase-auth.html +++ b/test/firebase-auth.html @@ -89,9 +89,13 @@ expect(user.email).to.be.equal(email); //Create another firebase element - var dynamicAuth = fixture("DynamicAuth"); + var dynamicAuth = document.createElement("firebase-auth"); + // observers will not be attached until ready. Ready not called until + // attached to dom. + dynamicAuth.ready(); //Verify the initial state: statusKnown = false and user is null + dynamicAuth.appName='test'; expect(dynamicAuth.user).to.be.equal(null); expect(dynamicAuth.statusKnown).to.be.equal(false); From ad8e3620bcd4fedd5ba115a2017c506c1480c995 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Wed, 31 Aug 2016 16:00:31 -0700 Subject: [PATCH 15/27] dynamic auth test now fixture --- test/firebase-auth.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/firebase-auth.html b/test/firebase-auth.html index 1cae727..5e4f5f1 100644 --- a/test/firebase-auth.html +++ b/test/firebase-auth.html @@ -52,6 +52,14 @@ + + + + From 255610531986b42ee36751f10f1e6e0c02c9e284 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Thu, 13 Apr 2017 15:10:40 -0700 Subject: [PATCH 22/27] bower fix --- bower-1.x.json | 2 -- bower.json | 2 -- 2 files changed, 4 deletions(-) diff --git a/bower-1.x.json b/bower-1.x.json index ef52ac2..68924be 100644 --- a/bower-1.x.json +++ b/bower-1.x.json @@ -26,7 +26,6 @@ "iron-component-page": "PolymerElements/iron-component-page#^1.0", "note-app-elements": "polymerlabs/note-app-elements", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", - "test-fixture": "polymerelements/test-fixture#^1.0.0", "web-component-tester": "^4.0.0" }, "variants": { @@ -39,7 +38,6 @@ "devDependencies": { "iron-component-page": "PolymerElements/iron-component-page#^1.0", "note-app-elements": "polymerlabs/note-app-elements", - "test-fixture": "polymerelements/test-fixture#^1.0.0", "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" } diff --git a/bower.json b/bower.json index c42ad5f..6ae9760 100644 --- a/bower.json +++ b/bower.json @@ -26,7 +26,6 @@ "iron-component-page": "PolymerElements/iron-component-page#2.0-preview", "note-app-elements": "polymerlabs/note-app-elements#2.0-preview", "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.4", - "test-fixture": "PolymerElements/test-fixture#^3.0.0-rc.1", "web-component-tester": "Polymer/web-component-tester#^6.0.0-prerelease.6" }, "variants": { @@ -39,7 +38,6 @@ "devDependencies": { "iron-component-page": "PolymerElements/iron-component-page#^1.0", "note-app-elements": "polymerlabs/note-app-elements", - "test-fixture": "polymerelements/test-fixture#^1.0.0", "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" } From 5083196e56e5e24b02be9c7be121b557fc227af1 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Thu, 13 Apr 2017 15:10:45 -0700 Subject: [PATCH 23/27] demo fix --- demo/firebase-messaging.html | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/demo/firebase-messaging.html b/demo/firebase-messaging.html index 4fae9ca..867ca16 100644 --- a/demo/firebase-messaging.html +++ b/demo/firebase-messaging.html @@ -61,8 +61,12 @@ if (navigator.serviceWorker) { navigator.serviceWorker.register('firebase-messaging-sw.js').then(function(sw) { var app = document.getElementById('app'); - // polymer 2.0 compatibility - app = app.$ ? app : app.parentNode; + + // Polymer 2.0 compat + if (Polymer.Element) { + app = app.parentNode; + } + app.$.messaging.activate(sw); }); } @@ -99,6 +103,12 @@

Message Log

From c0e7aed45dde802e87e6545e0e3bb96b1b15911e Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Thu, 13 Apr 2017 15:15:52 -0700 Subject: [PATCH 24/27] stop gitignoring to delete --- .gitignore | 1 - bower-1.x.json | 46 ---------------------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 bower-1.x.json diff --git a/.gitignore b/.gitignore index 2be39e4..0e054a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ bower_components* -bower-*.json diff --git a/bower-1.x.json b/bower-1.x.json deleted file mode 100644 index 68924be..0000000 --- a/bower-1.x.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "polymerfire", - "version": "2.0.0", - "authors": [ - "Firebase" - ], - "description": "Polymer Web Components for Firebase", - "keywords": [ - "web-component", - "polymer", - "firebase" - ], - "main": "polymerfire.html", - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/firebase/polymerfire", - "ignore": [ - "/.*", - "/test/" - ], - "dependencies": { - "polymer": "Polymer/polymer#^1.2", - "firebase": ">= 3.5.1 < 4.0", - "app-storage": "polymerelements/app-storage#^0.9.0" - }, - "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0", - "note-app-elements": "polymerlabs/note-app-elements", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", - "web-component-tester": "^4.0.0" - }, - "variants": { - "1.x": { - "dependencies": { - "polymer": "Polymer/polymer#^1.2", - "firebase": ">= 3.5.1 < 4.0", - "app-storage": "polymerelements/app-storage#^0.9.0" - }, - "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0", - "note-app-elements": "polymerlabs/note-app-elements", - "web-component-tester": "^4.0.0", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" - } - } - } -} From 92eed765d095987048b3e5a63ebf6ca1cb3ec808 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Thu, 13 Apr 2017 15:16:00 -0700 Subject: [PATCH 25/27] add gitignore back --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0e054a7..2be39e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bower_components* +bower-*.json From af8b1e678698d4ff433dcb9b1f23ba6faa53404c Mon Sep 17 00:00:00 2001 From: Chris Joel Date: Sat, 15 Apr 2017 09:57:59 -0700 Subject: [PATCH 26/27] Ensure RC version range accepts higher RCs. --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 6ae9760..a34d2cb 100644 --- a/bower.json +++ b/bower.json @@ -18,7 +18,7 @@ "/test/" ], "dependencies": { - "polymer": "polymer/polymer#2.0.0-rc.3", + "polymer": "polymer/polymer#^2.0.0-rc.3", "firebase": ">= 3.5.1 < 4.0", "app-storage": "PolymerElements/app-storage#2.0-preview" }, From 7b03fa9a2b2a851aa01f220a0cb342aba8d4c8f2 Mon Sep 17 00:00:00 2001 From: bartolom Date: Fri, 21 Apr 2017 17:05:35 +0200 Subject: [PATCH 27/27] Consistent use of CamelCase in bower dependencies --- bower.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index a34d2cb..8871f3f 100644 --- a/bower.json +++ b/bower.json @@ -18,13 +18,13 @@ "/test/" ], "dependencies": { - "polymer": "polymer/polymer#^2.0.0-rc.3", + "polymer": "Polymer/polymer#^2.0.0-rc.3", "firebase": ">= 3.5.1 < 4.0", "app-storage": "PolymerElements/app-storage#2.0-preview" }, "devDependencies": { "iron-component-page": "PolymerElements/iron-component-page#2.0-preview", - "note-app-elements": "polymerlabs/note-app-elements#2.0-preview", + "note-app-elements": "PolymerLabs/note-app-elements#2.0-preview", "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0-rc.4", "web-component-tester": "Polymer/web-component-tester#^6.0.0-prerelease.6" }, @@ -37,7 +37,7 @@ }, "devDependencies": { "iron-component-page": "PolymerElements/iron-component-page#^1.0", - "note-app-elements": "polymerlabs/note-app-elements", + "note-app-elements": "PolymerLabs/note-app-elements", "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }