Skip to content

Commit

Permalink
1.7.0: Upgrade to Polymer 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Download committed Oct 14, 2016
1 parent ea4293d commit 944491a
Show file tree
Hide file tree
Showing 268 changed files with 26,144 additions and 27,451 deletions.
1,615 changes: 820 additions & 795 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polymer-cdn",
"version": "1.6.1",
"version": "1.7.0",
"main": "polymer.js",
"homepage": "https://github.com/Download/polymer-cdn",
"authors": [
Expand Down
10 changes: 5 additions & 5 deletions lib/app-storage/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"authors": [
"The Polymer Authors"
],
"version": "0.9.5",
"version": "0.9.7",
"description": "Web Components for managing user data in web apps",
"main": [
"app-storage-behavior.html",
Expand All @@ -12,7 +12,7 @@
"app-indexeddb-mirror/app-indexeddb-mirror.html"
],
"moduleType": [],
"license": "MIT",
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "https://github.com/PolymerElements/app-storage",
"private": true,
"dependencies": {
Expand All @@ -33,11 +33,11 @@
"platinum-sw": "polymerelements/platinum-sw#^1.3.0"
},
"ignore": [],
"_release": "0.9.5",
"_release": "0.9.7",
"_resolution": {
"type": "version",
"tag": "v0.9.5",
"commit": "498a32135fc661102e30f345498268c2efd303ae"
"tag": "v0.9.7",
"commit": "3a2284d09f6abb40832b8f8c4847ec27456e056b"
},
"_source": "git://github.com/PolymerElements/app-storage.git",
"_target": "^0.9.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
* the session has been validated.
*/
validateSession: function(session) {
if (session === undefined) {
// Ignore session `undefined` conventionally, as it means the session
// (such as the user ID) has not been initialized yet.
return;
}

return this.post({
type: 'app-mirror-validate-session',
session: session
Expand Down
8 changes: 7 additions & 1 deletion lib/app-storage/app-indexeddb-mirror/common-worker.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
var WEB_WORKERS = {};
var HAS_SHARED_WORKER = typeof SharedWorker !== 'undefined';
var HAS_WEB_WORKER = typeof Worker !== 'undefined';
var BASE_URI = document._currentScript.ownerDocument.baseURI;
// NOTE(cdata): see http://www.2ality.com/2014/05/current-script.html
var currentScript = document._currentScript || document.currentScript ||
(function() {
var scripts = document.getElementsByTagName('script');
return scripts[scripts.length - 1];
})();
var BASE_URI = currentScript.ownerDocument.baseURI;
var WORKER_SCOPE_URL =
Polymer.ResolveUrl.resolveUrl('common-worker-scope.js', BASE_URI);

Expand Down
4 changes: 2 additions & 2 deletions lib/app-storage/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"authors": [
"The Polymer Authors"
],
"version": "0.9.5",
"version": "0.9.7",
"description": "Web Components for managing user data in web apps",
"main": [
"app-storage-behavior.html",
Expand All @@ -12,7 +12,7 @@
"app-indexeddb-mirror/app-indexeddb-mirror.html"
],
"moduleType": [],
"license": "MIT",
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@
<template>
<app-indexeddb-mirror
session="test"
key="basic-mirror" log>
key="basic-mirror">
</app-indexeddb-mirror>
</template>
</test-fixture>

<test-fixture id="NoSessionMirror">
<template>
<app-indexeddb-mirror
key="basic-mirror">
</app-indexeddb-mirror>
</template>
</test-fixture>
Expand Down Expand Up @@ -113,6 +121,32 @@
});
});

suite('when session is set lazily', function() {
var secondMirror;

setup(function() {
mirror.data = {
foo: 'bar'
};
secondMirror = fixture('NoSessionMirror');
return Promise.all([
mirror.transactionsComplete,
secondMirror.transactionsComplete
]);
});

test('the data is preserved', function() {
if (!mirror.client.supportsMirroring) {
return;
}

secondMirror.session = 'test';
return secondMirror.transactionsComplete.then(function() {
return expectPersistedValue('basic-mirror', mirror.data);
});
});
});

suite('when offline', function() {
test('boots up with persisted value', function() {
if (!mirror.client.supportsMirroring) {
Expand Down
9 changes: 5 additions & 4 deletions lib/firebase-element/.bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "firebase-element",
"description": "An element that makes it easy to declaratively use the powerful firebase backend",
"version": "1.0.15",
"version": "1.0.16",
"private": true,
"main": [
"firebase-collection.html",
"firebase-document.html",
"firebase-auth.html",
"firebase-query-behavior.html"
],
"license": "http://polymer.github.io/LICENSE.txt",
"dependencies": {
"polymer": "polymer/polymer#^1.0.0",
"firebase": "^2.3.1"
Expand All @@ -29,11 +30,11 @@
"web-component-tester": "*"
},
"homepage": "https://github.com/GoogleWebComponents/firebase-element",
"_release": "1.0.15",
"_release": "1.0.16",
"_resolution": {
"type": "version",
"tag": "1.0.15",
"commit": "210a8bbce8ed80fc71a2f57b9ae1fffdd2a12bae"
"tag": "v1.0.16",
"commit": "3d2495b40868108ca70993b202e899492ae619fb"
},
"_source": "git://github.com/GoogleWebComponents/firebase-element.git",
"_target": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion lib/firebase-element/bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "firebase-element",
"description": "An element that makes it easy to declaratively use the powerful firebase backend",
"version": "1.0.15",
"version": "1.0.16",
"private": true,
"main": ["firebase-collection.html","firebase-document.html","firebase-auth.html","firebase-query-behavior.html"],
"license": "http://polymer.github.io/LICENSE.txt",
"dependencies": {
"polymer": "polymer/polymer#^1.0.0",
"firebase": "^2.3.1"
Expand Down
8 changes: 4 additions & 4 deletions lib/firebase/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase",
"version": "3.4.0",
"version": "3.4.1",
"homepage": "https://firebase.google.com",
"authors": [
"Firebase <firebase-support@google.com>"
Expand All @@ -23,11 +23,11 @@
"test",
"tests"
],
"_release": "3.4.0",
"_release": "3.4.1",
"_resolution": {
"type": "version",
"tag": "v3.4.0",
"commit": "255097a09f8f2ab9a1e6f903ebf68a6b9eb8c3cf"
"tag": "v3.4.1",
"commit": "82b24fbe04b115ac21348302ed323fbb19644056"
},
"_source": "https://github.com/firebase/firebase-bower.git",
"_target": "^3.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/firebase/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase",
"version": "3.4.0",
"version": "3.4.1",
"homepage": "https://firebase.google.com",
"authors": [
"Firebase <firebase-support@google.com>"
Expand Down
Loading

0 comments on commit 944491a

Please sign in to comment.