From 64898a0283074ef07b267f443ccc6c6ec38d0b46 Mon Sep 17 00:00:00 2001 From: Matt Gaunt Date: Tue, 14 Nov 2017 10:43:33 -0800 Subject: [PATCH 1/2] Renaming workbox-runtime-caching to workbox-strategies --- demos/functions/index.js | 2 +- ...untime-caching.hbs => workbox-strategies.hbs} | 2 +- .../sw.hbs | 16 ++++++++-------- .../cache-first.txt | 0 .../network-first.txt | 0 .../network-only.txt | 0 .../stale-while-revalidate.txt | 0 gulp-tasks/demos.js | 1 + infra/pr-bot/aggregate-size-plugin.js | 2 +- packages/workbox-build/package.json | 2 +- packages/workbox-cli/package-lock.json | 4 +--- packages/workbox-google-analytics/_default.mjs | 4 ++-- packages/workbox-google-analytics/package.json | 2 +- packages/workbox-runtime-caching/_version.mjs | 1 - .../CacheFirst.mjs | 2 +- .../CacheOnly.mjs | 2 +- .../NetworkFirst.mjs | 4 ++-- .../NetworkOnly.mjs | 2 +- .../StaleWhileRevalidate.mjs | 2 +- .../_default.mjs | 0 .../_public.mjs | 0 .../_types.mjs | 0 packages/workbox-strategies/_version.mjs | 1 + .../browser.mjs | 0 .../index.mjs | 0 .../package.json | 6 +++--- .../plugins/cacheOkAndOpaquePlugin.mjs | 0 .../utils/messages.mjs | 0 .../utils/pluginBuilder.mjs | 0 packages/workbox-sw/controllers/WorkboxSW.mjs | 2 +- test/workbox-build/node/dependency-check.js | 2 +- .../node/entry-points/generate-sw.js | 8 ++++---- .../workbox-google-analytics/node/test-index.mjs | 2 +- .../node/test-CacheFirst.mjs | 4 ++-- .../node/test-CacheOnly.mjs | 4 ++-- .../node/test-NetworkFirst.mjs | 6 +++--- .../node/test-NetworkOnly.mjs | 4 ++-- .../node/test-StaleWhileRevalidate.mjs | 4 ++-- .../node/test-UsageWithRouter.mjs | 12 ++++++------ .../node/test-cacheOkAndOpaquePlugin.mjs | 4 ++-- .../node/test-default.mjs | 6 +++--- test/workbox-sw/node/test-WorkboxSW.mjs | 2 +- 42 files changed, 57 insertions(+), 58 deletions(-) rename demos/functions/views/demo/{workbox-runtime-caching.hbs => workbox-strategies.hbs} (97%) rename demos/functions/views/demo/{workbox-runtime-caching => workbox-strategies}/sw.hbs (73%) rename demos/public/demo/{workbox-runtime-caching => workbox-strategies}/cache-first.txt (100%) rename demos/public/demo/{workbox-runtime-caching => workbox-strategies}/network-first.txt (100%) rename demos/public/demo/{workbox-runtime-caching => workbox-strategies}/network-only.txt (100%) rename demos/public/demo/{workbox-runtime-caching => workbox-strategies}/stale-while-revalidate.txt (100%) delete mode 100644 packages/workbox-runtime-caching/_version.mjs rename packages/{workbox-runtime-caching => workbox-strategies}/CacheFirst.mjs (98%) rename packages/{workbox-runtime-caching => workbox-strategies}/CacheOnly.mjs (98%) rename packages/{workbox-runtime-caching => workbox-strategies}/NetworkFirst.mjs (98%) rename packages/{workbox-runtime-caching => workbox-strategies}/NetworkOnly.mjs (98%) rename packages/{workbox-runtime-caching => workbox-strategies}/StaleWhileRevalidate.mjs (99%) rename packages/{workbox-runtime-caching => workbox-strategies}/_default.mjs (100%) rename packages/{workbox-runtime-caching => workbox-strategies}/_public.mjs (100%) rename packages/{workbox-runtime-caching => workbox-strategies}/_types.mjs (100%) create mode 100644 packages/workbox-strategies/_version.mjs rename packages/{workbox-runtime-caching => workbox-strategies}/browser.mjs (100%) rename packages/{workbox-runtime-caching => workbox-strategies}/index.mjs (100%) rename packages/{workbox-runtime-caching => workbox-strategies}/package.json (83%) rename packages/{workbox-runtime-caching => workbox-strategies}/plugins/cacheOkAndOpaquePlugin.mjs (100%) rename packages/{workbox-runtime-caching => workbox-strategies}/utils/messages.mjs (100%) rename packages/{workbox-runtime-caching => workbox-strategies}/utils/pluginBuilder.mjs (100%) diff --git a/demos/functions/index.js b/demos/functions/index.js index 369c081cc..4b4d00cf0 100644 --- a/demos/functions/index.js +++ b/demos/functions/index.js @@ -16,7 +16,7 @@ const workboxModules = [ 'workbox-precaching', 'workbox-range-requests', 'workbox-routing', - 'workbox-runtime-caching', + 'workbox-strategies', 'workbox-sw', ]; diff --git a/demos/functions/views/demo/workbox-runtime-caching.hbs b/demos/functions/views/demo/workbox-strategies.hbs similarity index 97% rename from demos/functions/views/demo/workbox-runtime-caching.hbs rename to demos/functions/views/demo/workbox-strategies.hbs index 202235d25..7fca0f01d 100644 --- a/demos/functions/views/demo/workbox-runtime-caching.hbs +++ b/demos/functions/views/demo/workbox-strategies.hbs @@ -26,7 +26,7 @@