Upstream FluffyBox patches#956
Conversation
|
Thank you for the contribution! Not gonna lie there's lots of changes and it scares me a bit 😅 So I'm gonna ask a few questions before reviewing it.
Again sorry for requesting additional stuff, but the proposed changes are a bit bigger than what we usually get, so I want to make sure it won't break anything unintentionally. |
|
Thanks for the review.
|
|
In regard of the failing tests, honestly no idea, locally, they pass for me. Maybe we can investigate this together? Test outputs |
No problem, don't worry I'll take a look into it. I thought maybe it's because of that required manual build step. |
|
Hi there :) I'm just curious if there are any news on this, as it would mean that I can finally ditch FluffyBox |
|
At the moment, the test behavior is somehow unexpected: Running the JS-specific tests (e.g. on BackendManager) perfectly works without any error reports, anyway, when running all tests, the majority is failing. |
- add `BoxCollection` - prepare support for other web backends Fixes: #939 Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
That's very strange.. Let's merge it, and then see if we can find what causes tests to break, maybe it's some sort of dart test runner related issue. |
|
I think it's related to the way the tests access the |
|
Could these changes be published to pub.dev? |
Done! |
|
I think we should've updated the docs before publishing 😕 |
Afaik this patch doesn't changes any exists APIs so existing docs should be fine for new version, and we can document new features. |
- add `BoxCollection` - prepare support for other web backends Fixes: isar#939 Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
Regression was caused in isar#956 (4dbcd76) where `HiveImpl` no longer called `_registerDefaultAdapters`, assuming that it would happen in `init`, which is not necessary for web. Also remove `HiveImpl.debug` and `HiveImpl.test`. `HiveImpl.test` was masking some odd legacy behavior in tests, so this fixes the test. `HiveImpl.debug` is not used anywhere, and its funcationality can be accomplished using `init`
Regression was caused in #956 (4dbcd76) where `HiveImpl` no longer called `_registerDefaultAdapters`, assuming that it would happen in `init`, which is not necessary for web. Also remove `HiveImpl.debug` and `HiveImpl.test`. `HiveImpl.test` was masking some odd legacy behavior in tests, so this fixes the test. `HiveImpl.debug` is not used anywhere, and its funcationality can be accomplished using `init`
Somehow reached at not making this a breaking change...
Fixes: #939