Repository navigation
Getting started instructions unclear on CDN usage #6659
Unanswered
dave-kennedy
asked this question in
Q&A
Replies: 1 comment
|
For RxJS 7, use the unscoped <script src="https://unpkg.com/rxjs@7.8.2/dist/bundles/rxjs.umd.min.js"></script>
<script>
rxjs.of(1, 2, 3)
.pipe(rxjs.operators.map(x => x * 2))
.subscribe(console.log); // 2, 4, 6
</script>There are two separate problems in those links:
The same raw path works with You don't need to revert to 6.3.3 for this. The 7.8.2 installation guide documents the corrected CDN path. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Seems pretty simple. But how does one find the current version? I'd suspect the GitHub releases/tags, the last of which is 7.4.0. But https://unpkg.com/@reactivex/rxjs@7.4.0/dist/global/rxjs.umd.js returns 404.
Next, I'd check the npm site. It also reports 7.4.0 is the current version.
What about the official documentation? Nothing on the front page of https://rxjs.dev shows the current version, unless it's this in the footer: "Version 7.1.1-local+sha.5de9e1b35." Too bad https://unpkg.com/@reactivex/rxjs@7.1.1/dist/global/rxjs.umd.js also returns 404.
In the left sidebar of the installation guide is a dropdown that allows you to select "v6" or "stable (v7.1.0)". But https://unpkg.com/@reactivex/rxjs@7.1.0/dist/global/rxjs.umd.js returns 404 as well.
I finally found this comment which suggests another URL altogether:
Okay, then I should be able to use https://unpkg.com/browse/rxjs@7.4.0/dist/bundles/rxjs.umd.min.js, right?
Grasping at straws, let's see what's in the source code of the official documentation:
It appears the site isn't actually using the latest version. That's surprising! Should we stick with the old version then?
All reactions