From 3b2ec0582646b37c1ec196f5d58981b1a81f7c77 Mon Sep 17 00:00:00 2001 From: Huei Tan Date: Fri, 16 Aug 2024 18:33:35 +0800 Subject: [PATCH 1/2] T369118 docs: Update README to warn about Wikipedia Preview 1.9.0+ Unpkg issue --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7fc1904b..923135e2 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ A WordPress plugin providing a thin wrapper around Wikipedia Preview to simplify wikipediaPreview.init() ``` -You can serve the file yourself or include it from [unpkg](https://unpkg.com/browse/wikipedia-preview@latest/dist/wikipedia-preview.umd.cjs). +You can serve the file yourself or include it from [unpkg](https://unpkg.com/browse/wikipedia-preview@latest/dist/wikipedia-preview.umd.cjs) (The library version 1.9.0 and later cannot be loaded from Unpkg due to a [MIME type mismatch issue](https://github.com/mjackson/unpkg/issues/355)). ### NPM ```bash From 0d97f57badf4dade049fbebe932a78b3158f043d Mon Sep 17 00:00:00 2001 From: Huei Tan Date: Tue, 20 Aug 2024 18:40:02 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 923135e2..f4979b94 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ A WordPress plugin providing a thin wrapper around Wikipedia Preview to simplify wikipediaPreview.init() ``` -You can serve the file yourself or include it from [unpkg](https://unpkg.com/browse/wikipedia-preview@latest/dist/wikipedia-preview.umd.cjs) (The library version 1.9.0 and later cannot be loaded from Unpkg due to a [MIME type mismatch issue](https://github.com/mjackson/unpkg/issues/355)). +You can serve the file yourself or include it from [unpkg](https://unpkg.com/browse/wikipedia-preview@latest/dist/wikipedia-preview.umd.cjs) (The library version 1.9.0 and later cannot be loaded from Unpkg due to a [MIME type mismatch issue](https://github.com/mjackson/unpkg/issues/355), the current [workaround solution](https://github.com/mjackson/unpkg/issues/355#issuecomment-1541524887) is adding the `?module` parameter to get the correct content-type). ### NPM ```bash