Skip to content

Commit da9ff20

Browse files
committed
docs: no longer recommend polyfill.io
1 parent 1c8338b commit da9ff20

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Browser-ready versions of this module are available via [jsdelivr][], [unpkg][],
8383
This is the solution for you if you're just using `<script>` tags everywhere!
8484

8585
```html
86-
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
86+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
8787
<script src="https://cdn.jsdelivr.net/npm/superagent"></script>
8888
<!-- if you wish to use unpkg.com instead: -->
8989
<!-- <script src="https://unpkg.com/superagent"></script> -->
@@ -155,10 +155,10 @@ If you are using [browserify][], [webpack][], [rollup][], or another bundler, th
155155

156156
### Required Browser Features
157157

158-
We recommend using <https://polyfill.io> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
158+
We recommend using <https://cdnjs.cloudflare.com/polyfill/> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
159159

160160
```html
161-
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
161+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
162162
```
163163

164164
* WeakRef is not supported in Opera 85, iOS Safari 12.2-12.5

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -868,10 +868,10 @@ Libraries like [co](https://github.com/tj/co) or a web framework like [koa](http
868868

869869
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.
870870

871-
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>:
871+
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/>:
872872

873873
```html
874-
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
874+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
875875
```
876876

877877
## Browser and node versions

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ <h2 id="promise-and-generator-support">Promise and Generator support</h2>
623623
const res = yield req;
624624
</code></pre>
625625
<p>Note that SuperAgent expects the global <code>Promise</code> object to be present. You&#39;ll need to use v7 and a polyfill to use promises in Internet Explorer or Node.js 0.10.</p>
626-
<p>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 <a href="https://polyfill.io">https://polyfill.io</a>:</p>
627-
<pre><code class="language-html">&lt;script src=&quot;https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt&quot;&gt;&lt;/script&gt;
626+
<p>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 <a href="https://cdnjs.cloudflare.com/polyfill/">https://cdnjs.cloudflare.com/polyfill/</a>:</p>
627+
<pre><code class="language-html">&lt;script src=&quot;https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=WeakRef,BigInt&quot;&gt;&lt;/script&gt;
628628
</code></pre>
629629
<h2 id="browser-and-node-versions">Browser and node versions</h2>
630630
<p>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.</p>

0 commit comments

Comments
 (0)