From 5e32afd9b5d74e31315289fcdd4999632ea71407 Mon Sep 17 00:00:00 2001 From: Lahiru Maramba Date: Thu, 16 Jun 2022 16:26:24 -0400 Subject: [PATCH] [chore] Release 11.0.0 (#1770) Breaking change: Dropped support for Node.js 12. Developers should use Node.js 14 or higher when deploying the Admin SDK. Breaking change: Upgraded TypeScript to v4.6.4. Breaking change: Upgraded the @google-cloud/firestore package to v5. This contains breaking changes. Refer to the Cloud Firestore release notes for more details. Breaking change: Upgraded the @google-cloud/storage package to v6. This contains breaking changes. Refer to the Cloud Storage release notes for more details. --- .github/workflows/ci.yml | 3 +-- package.json | 2 +- test/unit/machine-learning/machine-learning.spec.ts | 12 ++++-------- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 667cd3558d..d901385c60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [14.x, 16.x] steps: - uses: actions/checkout@v1 @@ -27,7 +27,6 @@ jobs: - name: Run api-extractor run: npm run api-extractor - name: Run emulator-based integration tests - if: matrix.node-version == '14.x' run: | npm install -g firebase-tools firebase emulators:exec --project fake-project-id --only auth,database,firestore \ diff --git a/package.json b/package.json index d84bde18d8..edfcb946f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "firebase-admin", - "version": "10.3.0", + "version": "11.0.0", "description": "Firebase admin SDK for Node.js", "author": "Firebase (https://firebase.google.com/)", "license": "Apache-2.0", diff --git a/test/unit/machine-learning/machine-learning.spec.ts b/test/unit/machine-learning/machine-learning.spec.ts index 8791ca9c87..58e424484d 100644 --- a/test/unit/machine-learning/machine-learning.spec.ts +++ b/test/unit/machine-learning/machine-learning.spec.ts @@ -581,8 +581,7 @@ describe('MachineLearning', () => { .resolves(null as any); stubs.push(stub); return machineLearning.createModel(MODEL_OPTIONS_WITH_GCS) - .should.eventually.be.rejected.and.have.property( - 'message', 'Cannot read property \'done\' of null'); + .should.eventually.be.rejected; }); it('should reject when API response does not contain a name', () => { @@ -698,8 +697,7 @@ describe('MachineLearning', () => { .resolves(null as any); stubs.push(stub); return machineLearning.updateModel(MODEL_ID, MODEL_OPTIONS_WITH_GCS) - .should.eventually.be.rejected.and.have.property( - 'message', 'Cannot read property \'done\' of null'); + .should.eventually.be.rejected; }); it('should reject when API response does not contain a name', () => { @@ -802,8 +800,7 @@ describe('MachineLearning', () => { .resolves(null as any); stubs.push(stub); return machineLearning.publishModel(MODEL_ID) - .should.eventually.be.rejected.and.have.property( - 'message', 'Cannot read property \'done\' of null'); + .should.eventually.be.rejected; }); it('should reject when API response does not contain a name', () => { @@ -906,8 +903,7 @@ describe('MachineLearning', () => { .resolves(null as any); stubs.push(stub); return machineLearning.unpublishModel(MODEL_ID) - .should.eventually.be.rejected.and.have.property( - 'message', 'Cannot read property \'done\' of null'); + .should.eventually.be.rejected; }); it('should reject when API response does not contain a name', () => {