Search code examples
firebasefirepad

How do I get the latest Firebase and Firepad version from Firebase cdn?


The firebase CDN does not appear to have an API or a "latest" tag. The suggestion is:

<script src="https://cdn.firebase.com/js/client/2.2.9/firebase.js"></script>

A quick google shows that different sites have a lot of different version loading. I know I forget to update when I am forced to ask for a specific version.

The question is how can I infer the versions for firebase.js and firepad.(js|css) from a browser request?


Some examples...

enter image description here

enter image description here

enter image description here


Solution

  • In general we recommend just picking the latest version and using it. We don't provide a "latest" version that you can include. This insulates you if we ever accidentally introduce a bug or change a behavior that you rely on.

    Then if/when you want to upgrade, you can do so and make sure everything still works before releasing it to your users. People tend to do the same thing (pin their app to a specific version) with jQuery and other libraries.