Comments (7)
The steps would be:
- 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.
- rename the classes from Mock to Fake, eg from
FirestoreMock
toFakeFirestore
. In this repo there's only 9 of them. There are even fewer in the other projects. - update the yaml and publish under the new name. Bump the version up to notify of the API change.
- 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.
I would do the followings (I have never published a library in pub.dev, nor renaming GitHub repository):
- Fork (not rename) GitHub repository with new name.
- In new repo, rename the class from Mock to Fake ...
- In new repo, update yaml and publish ...
- With the old repo, publish a last update ...
This needs a link to a new pub.dev page - 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.
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.
Nice. Good to know. Thanks.
from fake_cloud_firestore.
Renamed this repository, discontinued the old package and published the new one at https://pub.dev/packages/fake_cloud_firestore.
from fake_cloud_firestore.
Thank you.
from fake_cloud_firestore.
Thank you for your advice :)
from fake_cloud_firestore.
Related Issues (20)
- Support for flutter web HOT 1
- mergeFields ignored in mock "set" method HOT 2
- Batch failure is different compared to real firestore
- Transaction does not revert if an error occurs HOT 1
- Cannot throw exception on DocumentReference.get() call (#get) HOT 1
- Please update dependancies HOT 3
- Throwing exceptions with Queries do not work when using different references
- Collection.get does not support throwing Exceptions
- StreamSubscription<QuerySnapshot<Map<String, dynamic>>> fails to capture data if the query is filtered using .where(field, arrayContains: Map<String, String>)
- type 'MethodChannelFieldValue' is not a subtype of type 'MockFieldValuePlatform' in type cast HOT 1
- add option to dump/load database to/from file HOT 1
- Add support for `cloud_firestore: ^4.14.0` HOT 5
- Support for Firestore OR queries HOT 2
- listeners not updating with #284 fix
- Error with type mismatch in Query.startAt
- throws null value with composite key query on null data document HOT 1
- Cannot use `whereIn` operator on map
- Stream is not updated when using map
- Add `pauseNetwork`, `unpauseNetwork`, `stopNetwork`
- Fix incompatibility with cloud_firestore 4.17.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fake_cloud_firestore.