firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

Suggestion: Peer Dependencies to allow minor revisions

Open dustensalinas opened this issue 8 years ago • 3 comments

"peerDependencies": { "firebase-admin": "~6.0.0" },

Suggestion: 6.x or the like.

Reasoning: Minor incremental updates such as the current state of "firebase-admin": "^6.1.0", "firebase-functions": "^2.1.0", This is causing undo warnings and potential library conflicts.

dustensalinas avatar Nov 03 '18 16:11 dustensalinas

Example of warning omitted:

npm WARN [email protected] requires a peer of firebase-admin@~6.0.0 but none is installed. You must install peer dependencies yourself.

This is with the following package.json contents:

$ cat package.json | grep firebase-admin
    "firebase-admin": "^6.3.0",

motin avatar Dec 10 '18 11:12 motin

Hi @dustensalinas thanks for the feedback. The reason that we are using ~ instead of a ^ is because historically minor versions of firebase-admin that added new types would sometimes break the Functions SDK. I'm still digging into exactly what happened there to see if we can change this to a ^ since I don't think minor versions should be breaking. Stay tuned for updates.

thechenky avatar Dec 18 '18 06:12 thechenky

Please see updates and resolution in #354. Closing this out, thanks everyone!

thechenky avatar Dec 27 '18 21:12 thechenky