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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: Dropped Node 8 support and upgraded Firestore/Storage dependencies #934

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Jul 8, 2020

Building on top of #739 this PR:

  1. Upgrades @google-cloud/firestore to latest major version.
  2. Adds Node 12 and 14 to CI matrix.
  3. Bumped some typing dependencies to make the compiler happy.

API CHANGE: Admin SDK now requires Node.js 10 or higher. Node.js 8 support has been terminated.
API CHANGE: Upgraded dependency on the @google-cloud/firestore package to v4.
API CHANGE: Upgraded dependency on the @google-cloud/storage package to v5.

Resolves #934

Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

LGTM.

Why is the engines field already at Node 10? Did you just merge this into master?

package.json Outdated
@@ -61,15 +61,15 @@
"node-forge": "^0.7.6"
},
"optionalDependencies": {
"@google-cloud/firestore": "^3.0.0",
"@google-cloud/firestore": "^4.0.0",
"@google-cloud/storage": "^4.1.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update to 5.x as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@hiranya911
Copy link
Contributor Author

Engines field was updated in #739

@hiranya911 hiranya911 changed the title change: Upgraded Firestore dependency to v4 change: Dropped Node 8 support and upgraded Firestore/Storage dependencies Jul 8, 2020
@@ -61,15 +61,15 @@
"node-forge": "^0.7.6"
Copy link
Contributor

Choose a reason for hiding this comment

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

@hiranya911 Given that you are already updating the dependencies, could you update this one to 0.9.1. Given that it is a 0.x version, npm considers it to be a breaking change, and hence not compatible with the current requirement.

node-forge is also transitively being used by firestore (direct dependency is google-p12-pem), and requiring version ^0.9.0, which means two copies of the library are currently needed. Switching to just one dependency would save 1.7Mib.

@hiranya911
Copy link
Contributor Author

Good point @sk-. I'll send a separate PR for that. Feel free to beat me to it :)

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thanks, Hiranya! LGTM!

@lahirumaramba lahirumaramba removed their assignment Jul 9, 2020
@hiranya911 hiranya911 merged commit 489d78a into master Jul 9, 2020
@hiranya911 hiranya911 deleted the hkj-firestore-upgrade branch July 9, 2020 17:59
sk- pushed a commit to sk-/firebase-admin-node that referenced this pull request Jul 10, 2020
As commnented on firebase#934 (comment)

Given that node-forge is a 0.x version, npm considers it to be a breaking change, and hence not compatible with the current requirement.

node-forge is also transitively being used by firestore (direct dependency is google-p12-pem), and requiring version ^0.9.0, which means two copies of the library are currently needed. Switching to just one dependency would save 1.7Mib.
hiranya911 pushed a commit that referenced this pull request Jul 10, 2020
As commnented on #934 (comment)

Given that node-forge is a 0.x version, npm considers it to be a breaking change, and hence not compatible with the current requirement.

node-forge is also transitively being used by firestore (direct dependency is google-p12-pem), and requiring version ^0.9.0, which means two copies of the library are currently needed. Switching to just one dependency would save 1.7Mib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants