-
Notifications
You must be signed in to change notification settings - Fork 325
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
refactor: necromancy to restore MV2 build #1054
Conversation
8486e8e
to
d7d99f0
Compare
- removed yarn and all the hackery around transitive dependency overrides - bumped all dependencies - switched to ipfs-core for less deps - removed unused deps - Firefox manifest fix to pass latest webext lint - removed remaining window.ipfs code that was pulling dead dependencies (ipfs/in-web-browsers#172) TODO: - fix tests - docker builds - browserAction icon
d7d99f0
to
05decab
Compare
cc @meandavejustice @SgtPooki @whizzzkid (just FYI – no immediate action needed) This PR includes a cleanup which I did not finish (mostly works, but tests do not run due to ESM). If any of you ever starts updating dependencies in this project, this PR will be useful prior art to see which dependencies and deprecated code blocks can be removed to reduce maintenance cost going forward. |
2022-10-20 chat with lidel
|
Late thought: if fixing mocha tests is a lot of work we can consider removing it and replacing it with @playwright/test runner like we did in ipfs/ipfs-webui#1983 |
@lidel #1101 fixes most of the issues, the only problem I'm facing is mozilla/webextension-polyfill#236 Which doesn't seem to be working. Will be spending some more time on this. |
* Adding esm config * Moving to import/export - it builds * Fixed tests * Fixing Test * typo * fixing breaking is-ip changes * Fixing coverage reporting * adding missing webExt config * Fixing test * Passing abort-controller as dep * Fixing Lint * chore: remove window.ipfs ACL tests * chore: bump terser deps * chore: pin all dependency versions #1101 (comment) Co-authored-by: Marcin Rataj <lidel@lidel.org>
Thanks to @whizzzkid's help in #1101 I managed to focus on closing remaining cleanup ❤️ Historical issues I was able to identify are resolved. |
this sync cleans up proxy / window.ipfs keys that were removed from english source in #1054
This PR:
npm ci
andpackage-lock.json
which should be good enough)TODO
(Remove legacy window.ipfs examples in-web-browsers#172)
jest
from ipfs-webui e2e tests and replaced it withplaywright
quick import with js-ipfs workswas broken in main – can be fixed in separate PR (or removed)swarm.peers
don't fail on webtransport – a96cf20debug
is initialized, so namespaces are applied before companion is initialized – a96cf20