You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pouchdb.apache.org by ja...@apache.org on 2026/06/03 14:17:09 UTC

(pouchdb) 05/12: refactor: self-host pouchdb.min.js instead of pulling from CDN

This is an automated email from the ASF dual-hosted git repository.

janl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git

commit 004d892b3c7d5320c29fc15bdea220ab77804ae3
Author: Alex Feyerke <al...@neighbourhood.ie>
AuthorDate: Wed May 13 15:31:06 2026 +0200

    refactor: self-host pouchdb.min.js instead of pulling from CDN
---
 docs/_includes/default.html   | 2 +-
 docs/manifest.appcache.liquid | 2 +-
 docs/serviceWorker.js.liquid  | 2 +-
 docs/static/js/pouchdb.min.js | 8 ++++++++
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/docs/_includes/default.html b/docs/_includes/default.html
index d914f8745..bcda870c2 100644
--- a/docs/_includes/default.html
+++ b/docs/_includes/default.html
@@ -204,7 +204,7 @@
     <script type="text/javascript" src="{{ site.baseurl }}/static/js/jquery.min.js"></script>
     <script type="text/javascript" src="{{ site.baseurl }}/static/js/bootstrap.min.js"></script>
     <script type="text/javascript" src="{{ site.baseurl }}/static/js/code.min.js"></script>
-    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js"></script>
+    <script type="text/javascript" src="{{ site.baseurl }}/pouchdb.min.js"></script>
     <script type="text/javascript">
       $('[data-toggle="tooltip"]').tooltip();
       function onCached(e) {
diff --git a/docs/manifest.appcache.liquid b/docs/manifest.appcache.liquid
index 3feb0ad02..bc5c3931e 100644
--- a/docs/manifest.appcache.liquid
+++ b/docs/manifest.appcache.liquid
@@ -20,7 +20,7 @@ CACHE:
 
 /static/js/jquery.min.js
 /static/js/bootstrap.min.js
-https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js
+/static/js/pouchdb.min.js
 
 /static/fonts/LatoLatin-Medium.woff2
 /static/fonts//open-sans-v44-latin_latin-ext-regular.woff2
diff --git a/docs/serviceWorker.js.liquid b/docs/serviceWorker.js.liquid
index ec6d01e87..04d5aff52 100644
--- a/docs/serviceWorker.js.liquid
+++ b/docs/serviceWorker.js.liquid
@@ -35,7 +35,7 @@ var nonCriticalAssets =
     '/static/js/code.min.js',
     '/static/js/jquery.min.js',
     '/static/js/bootstrap.min.js',
-    'https://cdn.jsdelivr.net/npm/pouchdb/dist/pouchdb.min.js',
+    '/static/js/pouchdb.min.js',
   ]
   .concat(pages)
   .filter(function (file) {
diff --git a/docs/static/js/pouchdb.min.js b/docs/static/js/pouchdb.min.js
new file mode 100644
index 000000000..46a93c62c
--- /dev/null
+++ b/docs/static/js/pouchdb.min.js
@@ -0,0 +1,8 @@
+// PouchDB 9.0.0
+// 
+// (c) 2012-2024 Dale Harvey and the PouchDB team
+// PouchDB may be freely distributed under the Apache license, version 2.0.
+// For all details and documentation:
+// http://pouchdb.com
+!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PouchDB=e()}}((function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MO [...]
+//# sourceMappingURL=pouchdb.min.js.map
\ No newline at end of file