-
Notifications
You must be signed in to change notification settings - Fork 331
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
fix: Fixed "web-ext run" regression on Firefox 60 #1284
Conversation
@chrmod Thanks a lot for working on a fix for this issue, this is basically the approach that we were already going to follow as a first step (fixing the regression in a minor release by publishing a namespaced version of the package with the fix applied). Do you mind to also push the changes applied to both these npm packages into the related github forked repos? I'm pretty sure that they are composed by a bump of the package version and the dependency firefox-client on node-firefox-connect, and the fix and bump of the package version on firefox-client but, while we prepare to migrate away from these deprecated dependencies, it would still be better if we could also keep track of the fixes we needed and applied on their forked version. |
@kumar303 I just looked into the diff between the old "node-firefox-connect / firefox-client" dependencies and the new "@cliqz-oss/node-firefox-connect / @cliqz-oss/firefox-client" and the following are the actual differences:
The Travis Job is currently failing because of the commit message which doesn't pass the changelog-lint rules, but besides that all the tests are passing as expected. 👍 from me on merging this PR and release a minor bugfix release. |
@rpl I've pushed code to forked repos (forgot to that in the earlier, have just pushed the tags). The commit message is also updated so linter check should pass this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for working on this. I just have a clean-up related change request.
package.json
Outdated
@@ -104,7 +104,7 @@ | |||
"eslint-plugin-async-await": "0.0.0", | |||
"eslint-plugin-flowtype": "2.46.1", | |||
"eslint-plugin-import": "2.8.0", | |||
"firefox-client": "0.3.0", | |||
"@cliqz-oss/firefox-client": "0.3.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to dependencies
and re-enable the lint check by removing /* eslint-disable-line import/no-extraneous-dependencies */
?
I know it's not your fault 👻 but I just noticed it -- I think that lint rule was skipped by mistake. It only works by chance because of how npm/yarn flattens modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do an update, but I don't think it is a mistake. firefox-client
is a devDependency as it is only imported for flow to figure out the types. As flow syntax gets removed during build so is the import and the firefox-client
is not required by web-ext
directly. Does this explanation make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrmod yeah, you are right, the historical reasons are definitely that:
- we started to use the flow "import types" feature to have an higher coverage of the flow type checks
- later (in a different pull request) we added the additional eslint rules that checks the imports, eslint started to complain about that import and the 'eslint-disable-line' has been used as a workaround
Anyway, I agree with Kumar, I would probably prefer an additional direct dependency (in any case the dependency is already there, even if it is not currently used directly) and avoid the eslint-disable-line workaround if possible.
Do you mind to also move the new namespaced dependencies on the top of the dependencies?
"dependencies": {
"@cliqz-oss/firefox-client": "0.3.1",
"@cliqz-oss/node-firefox-connect": "1.2.1",
"adbkit": "2.11.0",
...
(so that the next 'npm install --save/--save-dev is not going to have to reorder them in an unrelated change)
Thanks again for your help on quickly fixing this regression.
closes: mozilla#1282 by implementing: mozilla#1282 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again! I'll publish a release asap
closes: #1282
by implementing:
#1282 (comment)
cc: @rpl