Skip to content

Fix Regression #977 - Web not registering DateTimeAdapter#983

Merged
themisir merged 1 commit into
isar:masterfrom
shroff:master
May 27, 2022
Merged

Fix Regression #977 - Web not registering DateTimeAdapter#983
themisir merged 1 commit into
isar:masterfrom
shroff:master

Conversation

@shroff

@shroff shroff commented May 27, 2022

Copy link
Copy Markdown
Contributor

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

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`
@shroff

shroff commented May 27, 2022

Copy link
Copy Markdown
Contributor Author

@themisir @TheOneWithTheBraid Would be good to send out a patch to pub.dev as the last usable version on web is 2.0.6
This is also the issue mentioned here: #970 (comment)

@themisir

Copy link
Copy Markdown
Contributor

Hey @shroff thanks for the contribution and I'm very sorry for breaking stability of hive 🙁

@themisir

Copy link
Copy Markdown
Contributor

cc @TheOneWithTheBraid: do you have any comments on this? I'm not sure if this change would conflict with your changes or not, so wanted to check with you before merging.

@TheOneWithTheBraid

Copy link
Copy Markdown

Indeed, this makes sense. Sorry for breaking this.

@TheOneWithTheBraid

Copy link
Copy Markdown

Let me quickly check whether it interferes with backend overrides...

@themisir

Copy link
Copy Markdown
Contributor

Let me quickly check whether it interferes with backend overrides...

Sure, no need to rush.

@TheOneWithTheBraid

Copy link
Copy Markdown

LGTM

@themisir

Copy link
Copy Markdown
Contributor

LGTM

Cool, thanks!

@themisir themisir merged commit 579c341 into isar:master May 27, 2022
@shroff

shroff commented May 29, 2022

Copy link
Copy Markdown
Contributor Author

No worries! Thanks for your great work on maintaining hive and keeping it going.

If possible, it would be great to publish a hotfix soon.

@pynner pynner mentioned this pull request Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants