Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

fix(deprecation): #2343 Check for deprecated APIs #2347

Merged
merged 2 commits into from
Mar 16, 2018

Conversation

deeptibaghel
Copy link
Contributor

fix(deprecation): #2343 Check for deprecated APIs

@ghost ghost assigned deeptibaghel Mar 14, 2018
@ghost ghost added the waffle:active label Mar 14, 2018
@deeptibaghel deeptibaghel force-pushed the deprecation branch 2 times, most recently from debd77a to 91c48e5 Compare March 14, 2018 13:02
@deeptibaghel
Copy link
Contributor Author

r? @vladikoff

.eslintrc Outdated
@@ -1,7 +1,18 @@
extends:
- plugin:fxa/server
- plugin:node/recommended
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deeptibaghel we would need to add this here: mozilla/eslint-plugin-fxa#9 then plugin:fxa/server should have the new rules automatically and can be reused in other repositories.

.eslintrc Outdated
strict: 2
node/no-missing-require: off
node/no-unpublished-require: off
node/shebang: off
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as comment above, let's make changes in eslint-plugin-fxa, land those as a pull request, then change this Git SHA in this pull request: https://github.com/mozilla/fxa-auth-server/blob/master/npm-shrinkwrap.json#L338

package.json Outdated
@@ -71,6 +71,7 @@
"otplib": "7.0.0",
"po2json": "0.4.5",
"poolee": "1.0.1",
"punycode": "^2.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the ^ before the 2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to change this as well , if yes what all we need to do ?

"punycode": {

"punycode": {
"version": "1.4.1",
"from": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz"
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would have to run npm run shrink for that to regenerate that file

@deeptibaghel
Copy link
Contributor Author

deeptibaghel commented Mar 15, 2018

@vladikoff when i run "npm run shrink", it creates a file which is having just around 5000 lines instead of current 10000 lines
when i run "npm shrink --dev" it creates a file which is having around 12000 lines.
So i think i am missing something.
I have just changed the SHA of eslint plugin in npm-shrinkwrap.json file as of now and the tests have passed.

@deeptibaghel deeptibaghel force-pushed the deprecation branch 2 times, most recently from 95166db to 028f175 Compare March 15, 2018 16:37
@deeptibaghel
Copy link
Contributor Author

@vladikoff , punycode.js is done.

@vladikoff
Copy link
Contributor

@pdehaan @deeptibaghel does this work for you?

I Get:

 ᐅ grunt lint
Running "eslint:app" (eslint) task
Warning: Failed to load plugin node: Cannot find module 'eslint-plugin-node'
Referenced from: plugin:fxa/server
Referenced from: /Users/vladikoff/mozilla/fxa-local-dev/fxa-auth-server/.eslintrc Use --force to continue.

@vladikoff
Copy link
Contributor

I wonder if this is because of npm2 vs npm3-5

@deeptibaghel
Copy link
Contributor Author

I wonder if this is because of npm2 vs npm3-5

@vladikoff yeah i am using npm3

@vladikoff vladikoff merged commit 2262ce8 into mozilla:master Mar 16, 2018
@ghost ghost removed the waffle:active label Mar 16, 2018
@vladikoff
Copy link
Contributor

@deeptibaghel Thank you!!! 🎁

@deeptibaghel deeptibaghel deleted the deprecation branch March 17, 2018 04:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants