Split package into Dart-only package and Flutter-dependent package? #438
Unanswered
MarcelGarus
asked this question in
Feature Request
Replies: 1 comment 2 replies
-
Sure. I only want to maintain one repo. So that means you can maintain and publish the second repo for dartonly |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're planning to use this package for our app platform. Our frontend uses Flutter and the backend Dart. It would be nice if we could use the data structures provided by this package on both systems, but the entire package is Flutter-dependent. Would it be possible to split this package into the following two parts?
I see two ways to go ahead with this proposal:
Depend on one of the other available packages that contain an abstraction for Delta data classes. This would basically remove all the Delta data classes from this package and instead use the data classes of the other package.
While this would increase interoperability in the Dart ecosystem, it also presents a breaking change to the users of this package – if they used the data classes exported by it, they now have to migrate to the newly chosen package. Of course, a breaking change would also enable cleaning up some legacy code that this package contains, like the verbose
export
files.For reference, here are the most prominent Dart packages that provide Delta classes:
(thanks to @JonasWanke for creating this table)
Just split this package into a Dart-only package and a Flutter-dependent package. The package name
dart_quill
is still free, so a consistent naming scheme for the package is possible to achieve. The Flutter package could still export all the classes from the Dart package, so this is a non-breaking change.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions