Skip to content

ObjectWithScore class not exported #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
davidmigloz opened this issue May 22, 2024 · 3 comments
Closed
1 task done

ObjectWithScore class not exported #637

davidmigloz opened this issue May 22, 2024 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@davidmigloz
Copy link

Is there an existing issue?

Build info

  • objectbox version: 4.0.0
  • Dart version: 3.4.0

Steps to reproduce

The ObjectWithScore class doesn't seem to be exported in package:objectbox/objectbox.dart.

Expected behavior

The class should be exported from the public library.

Actual behavior

Currently, you can only access ObjectWithScore if you import the private library:

import 'package:objectbox/src/native/query/vector_search_results.dart' show ObjectWithScore;
@davidmigloz davidmigloz added the bug Something isn't working label May 22, 2024
@greenrobot-team
Copy link
Member

Thank you so much! Totally missed this because I postponed writing the example project.

A fix is available internally (objectbox/objectbox-dart!85), will ship with the next release.

@greenrobot-team greenrobot-team added this to the 4.0.1 milestone May 27, 2024
@greenrobot-team greenrobot-team self-assigned this May 27, 2024
greenrobot-team added a commit that referenced this issue May 27, 2024
Regression: export with score wrapper classes GH#637

See merge request objectbox/objectbox-dart!85
@greenrobot-team
Copy link
Member

Release 4.0.1 is available which fixes this issue.

To update to this release, for a Flutter project run flutter pub upgrade or for a Dart Native project dart pub upgrade.

@davidmigloz
Copy link
Author

Awesome, thanks for the quick fix.

I'll update it at davidmigloz/langchain_dart#438 (we plan to release it this week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants