From da9ff20b11efa24c3e21ad36d14fb76c53940733 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Fri, 1 Mar 2024 18:57:01 +0800 Subject: [PATCH] docs: no longer recommend `polyfill.io` --- README.md | 6 +++--- docs/index.md | 4 ++-- index.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aac2e0223..289933199 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Browser-ready versions of this module are available via [jsdelivr][], [unpkg][], This is the solution for you if you're just using ` + @@ -155,10 +155,10 @@ If you are using [browserify][], [webpack][], [rollup][], or another bundler, th ### Required Browser Features -We recommend using (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above): +We recommend using (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above): ```html - + ``` * WeakRef is not supported in Opera 85, iOS Safari 12.2-12.5 diff --git a/docs/index.md b/docs/index.md index 7c85b2677..b148cee8e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -868,10 +868,10 @@ Libraries like [co](https://github.com/tj/co) or a web framework like [koa](http Note that SuperAgent expects the global `Promise` object to be present. You'll need to use v7 and a polyfill to use promises in Internet Explorer or Node.js 0.10. -We have dropped support in v8 for IE. You must add a polyfill for WeakRef and BigInt if you wish to support Opera 85, iOS Safari 12.2-12.5, for example using : +We have dropped support in v8 for IE. You must add a polyfill for WeakRef and BigInt if you wish to support Opera 85, iOS Safari 12.2-12.5, for example using : ```html - + ``` ## Browser and node versions diff --git a/index.html b/index.html index ed2417ed4..42d3f3eb3 100644 --- a/index.html +++ b/index.html @@ -623,8 +623,8 @@

Promise and Generator support

const res = yield req;

Note that SuperAgent expects the global Promise object to be present. You'll need to use v7 and a polyfill to use promises in Internet Explorer or Node.js 0.10.

-

We have dropped support in v8 for IE. You must add a polyfill for WeakRef and BigInt if you wish to support Opera 85, iOS Safari 12.2-12.5, for example using https://polyfill.io:

-
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
+

We have dropped support in v8 for IE. You must add a polyfill for WeakRef and BigInt if you wish to support Opera 85, iOS Safari 12.2-12.5, for example using https://cdnjs.cloudflare.com/polyfill/:

+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
 

Browser and node versions

SuperAgent has two implementations: one for web browsers (using XHR) and one for Node.JS (using core http module). By default Browserify and WebPack will pick the browser version.