Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#8594) - plugin override built-in methods #8648

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

funblaster22
Copy link

I added some test cases for the issue. I implemented the solution by storing the prototype of PouchDB at the start of the constructor, and then redeclaring the plugin methods from the stored prototype at the end of the constructor.

This resolves #8594

This is the continuation of #8631 which was accidently closed when I rebased. I rebased from a commit that didn't have CI errors. However, local npm test still throws errors when running from master. 馃し

@garethbowen
Copy link
Member

@funblaster22 The build is failing consistently with this change. Can you have another look?

@louwers
Copy link
Contributor

louwers commented Aug 28, 2023

@garethbowen The problem is probably that the plugin override is globally registered.

Let me open a new PR with another test.

@garethbowen
Copy link
Member

@louwers That'd be my guess too. It may need an after/aftereach to unregister the plugin after the test.

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.

Cannot override bulkDocs anymore in custom Plugin with version 8.0.0
3 participants