Skip to content

Migrate to 1.0.28 - Problem with CoreStoreSembastImp #478

Closed
@RodrigoSMarques

Description

@RodrigoSMarques

@phillwiggins and @fischerscode

I received the messages that the package had several changes, but I was unable to follow and perform tests.

I went to do a migration and found a BREAKING CHANGE problem using CoreStoreSembastImp and it is not documented.

Before in Version 1.0.27

class CoreStoreSembastImp implements CoreStore {
  CoreStoreSembastImp._internal(this._database, this._store);

  static CoreStoreSembastImp _instance;

  static Future<CoreStore> getInstance(
      {DatabaseFactory factory, String password = 'flutter_sdk'}) async {

After in Version 1.0.28

class CoreStoreSembastImp implements CoreStore {
  CoreStoreSembastImp._internal(this._database, this._store);

  static CoreStoreSembastImp _instance;

  static Future<CoreStore> getInstance(String dbPath,
      {DatabaseFactory factory, String password = 'flutter_sdk'}) async {

What dbPath parameter is this? Can't it have a default value?

Another question. Who uses the package with Flutter and does not migrate to the new package, what problems will they have?

If we have other BREAKING CHANGES, the package version should be 2.0.0 to indicate that there is incompatibility (Semantic Versioning https://semver.org/spec/v2.0.0-rc.1.html)

If the goal of separating a pure dart package was to be compatible with Flutter Web, this was not necessary.

Search for Federative Plugins
https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions