Giter Site home page Giter Site logo

Comments (6)

jehna avatar jehna commented on September 21, 2024

Possible fixes:

  1. Create code that replicates the 1.x API to the 2.0 version.
    This way we can show a deprecation errors in the website (if someone monitors them) and gracefully remove the 1.x API at some later point
  2. We can create a new repository for 2.x
    This would be better, as we could have a link from the current Gtihub page to the 2.0 version repository (like UglifyJS project), and let the users upgrade at some point if they feel the need to do so. This would also make sure the old websites never break.

from ga-lite.

SimonCropp avatar SimonCropp commented on September 21, 2024

i would have assumed most people are using cdnjs https://cdnjs.com/libraries/ga-lite. so breaking APIs should only effect them when they explicitly upgrade

from ga-lite.

SimonCropp avatar SimonCropp commented on September 21, 2024

but using latest on jsDelivr people should expect the occasional api breaks and handle those. ie this is not your problem

from ga-lite.

jimaek avatar jimaek commented on September 21, 2024

I believe you are safe in this case. Because your current /latest/ problem applies to our old URL format that is not getting updated anymore.
The new version you are going to release will be available only on the new /npm/ endpoint. e.g. https://cdn.jsdelivr.net/npm/[email protected]/dist/ga-lite.min.js
So the damage should be non-existent or very limited.

from ga-lite.

MartinKolarik avatar MartinKolarik commented on September 21, 2024

but using latest on jsDelivr people should expect the occasional api breaks and handle those. ie this is not your problem

That depends - the latest link was previously in the README as the recommended way and most people are just going to copy the link you put in the docs, so it is partially a responsibility of projects authors too.

However, as @jimaek correctly pointed out, the old link won't get new versions anymore, which solves your problem in this case.

from ga-lite.

jehna avatar jehna commented on September 21, 2024

Alright, thank you for your updates. Closing this issue, as the old URL will not be affected.

from ga-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.