Coder Social home page Coder Social logo

Comments (7)

atn832 avatar atn832 commented on July 23, 2024

The steps would be:

  1. publish a last update on the old pub.dev project to mention it's deprecated, and include a link to the new project, as per dart-lang/sdk#12094.
  2. rename the classes from Mock to Fake, eg from FirestoreMock to FakeFirestore. In this repo there's only 9 of them. There are even fewer in the other projects.
  3. update the yaml and publish under the new name. Bump the version up to notify of the API change.
  4. rename the GitHub repository.

Rinse and repeat for all 4 libraries, then finally update blog posts or GitHub comments with the new urls.

Since most of these steps are mostly administrative and don't require coding, I'll do them all myself.

@suztomo what do you think of this process?

from fake_cloud_firestore.

suztomo avatar suztomo commented on July 23, 2024

I would do the followings (I have never published a library in pub.dev, nor renaming GitHub repository):

  1. Fork (not rename) GitHub repository with new name.
  2. In new repo, rename the class from Mock to Fake ...
  3. In new repo, update yaml and publish ...
  4. With the old repo, publish a last update ...
    This needs a link to a new pub.dev page
  5. Archive the old repo. This old GitHub repository serves to redirect users to new repository.

Alternatively, (1) rename GitHub repository and (2) then fork as old name are also good.

I do not have opinion on other libraries than cloud_firestore_mocks.

from fake_cloud_firestore.

atn832 avatar atn832 commented on July 23, 2024

It turns out, renaming the repository is much more powerful than I thought. It will also handle web redirections and even git push redirects. So I can safely rename the repo.

https://help.github.com/en/github/administering-a-repository/renaming-a-repository

from fake_cloud_firestore.

suztomo avatar suztomo commented on July 23, 2024

Nice. Good to know. Thanks.

from fake_cloud_firestore.

atn832 avatar atn832 commented on July 23, 2024

Renamed this repository, discontinued the old package and published the new one at https://pub.dev/packages/fake_cloud_firestore.

from fake_cloud_firestore.

suztomo avatar suztomo commented on July 23, 2024

Thank you.

from fake_cloud_firestore.

atn832 avatar atn832 commented on July 23, 2024

Thank you for your advice :)

from fake_cloud_firestore.

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.