Skip to content

Commit 2528262

Browse files
committed
build(deps): ingest all non-breaking change version updates
- the typescript update requires typing on catch blocks now apparently - eslint-plugin-prettier required no forward port, so included here
1 parent ea6920c commit 2528262

File tree

11 files changed

+823
-526
lines changed

11 files changed

+823
-526
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,38 +47,38 @@
4747
"format:markdown": "prettier --write \"docs/**/*.md\""
4848
},
4949
"devDependencies": {
50-
"@babel/core": "^7.14.8",
51-
"@babel/preset-env": "7.15.0",
50+
"@babel/core": "^7.15.4",
51+
"@babel/preset-env": "7.15.4",
5252
"@octokit/core": "^3.5.1",
5353
"@tsconfig/node12": "^1.0.9",
5454
"@types/jest": "^27.0.1",
55-
"@types/react": "^17.0.18",
55+
"@types/react": "^17.0.19",
5656
"@types/react-native": "^0.64.13",
57-
"@typescript-eslint/eslint-plugin": "^4.29.2",
58-
"@typescript-eslint/parser": "^4.29.2",
59-
"babel-jest": "^27.0.6",
57+
"@typescript-eslint/eslint-plugin": "^4.30.0",
58+
"@typescript-eslint/parser": "^4.30.0",
59+
"babel-jest": "^27.1.0",
6060
"clang-format": "^1.4.0",
6161
"codecov": "^3.8.3",
6262
"conventional-changelog-cli": "^2.0.34",
6363
"cross-env": "^7.0.3",
6464
"eslint": "^7.32.0",
6565
"eslint-config-prettier": "^8.3.0",
6666
"eslint-plugin-mocha": "^9.0.0",
67-
"eslint-plugin-prettier": "^3.4.0",
68-
"eslint-plugin-react": "^7.24.0",
67+
"eslint-plugin-prettier": "^4.0.0",
68+
"eslint-plugin-react": "^7.25.1",
6969
"genversion": "^3.0.1",
7070
"google-java-format": "^1.0.1",
7171
"inquirer": "^8.1.2",
72-
"jest": "^27.0.6",
72+
"jest": "^27.1.0",
7373
"lerna": "4.0.0",
7474
"prettier": "^2.3.2",
7575
"rimraf": "^3.0.2",
7676
"shelljs": "^0.8.3",
7777
"ts-jest": "^27.0.5",
78-
"typescript": "^4.3.5"
78+
"typescript": "^4.4.2"
7979
},
8080
"resolutions": {
81-
"@types/react": "^17.0.18"
81+
"@types/react": "^17.0.19"
8282
},
8383
"workspaces": {
8484
"packages": [

packages/analytics/__tests__/analytics.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('Analytics', function () {
3939
// @ts-ignore test
4040
firebase.app().analytics('foo', 'arg2');
4141
return Promise.reject(new Error('Did not throw'));
42-
} catch (e) {
42+
} catch (e: any) {
4343
e.message.should.containEql('does not support multiple Firebase Apps');
4444
return Promise.resolve();
4545
}

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"react-native": "*"
5757
},
5858
"dependencies": {
59-
"@expo/config-plugins": "^3.0.7",
59+
"@expo/config-plugins": "^3.1.0",
6060
"opencollective-postinstall": "^2.0.1",
6161
"superstruct": "^0.6.2"
6262
},

packages/auth/__tests__/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('Auth', function () {
5656
try {
5757
await firebase.app().auth().setTenantId(Object());
5858
return Promise.reject('It should throw an error');
59-
} catch (e) {
59+
} catch (e: any) {
6060
expect(e.message).toBe("firebase.auth().setTenantId(*) expected 'tenantId' to be a string");
6161
return Promise.resolve('Error catched');
6262
}

packages/crashlytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@react-native-firebase/app": "12.7.4"
3333
},
3434
"dependencies": {
35-
"@expo/config-plugins": "^3.0.7",
35+
"@expo/config-plugins": "^3.1.0",
3636
"stacktrace-js": "^2.0.0"
3737
},
3838
"publishConfig": {

packages/firestore/__tests__/firestore.test.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Storage', function () {
2424
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
2525
await firebase.firestore().settings('foo');
2626
return Promise.reject(new Error('Did not throw an Error.'));
27-
} catch (e) {
27+
} catch (e: any) {
2828
return expect(e.message).toContain("'settings' must be an object");
2929
}
3030
});
@@ -34,7 +34,7 @@ describe('Storage', function () {
3434
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
3535
await firebase.firestore().settings({ foo: 'bar' });
3636
return Promise.reject(new Error('Did not throw an Error.'));
37-
} catch (e) {
37+
} catch (e: any) {
3838
return expect(e.message).toContain("'settings.foo' is not a valid settings field");
3939
}
4040
});
@@ -44,7 +44,7 @@ describe('Storage', function () {
4444
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
4545
await firebase.firestore().settings({ cacheSizeBytes: 'foo' });
4646
return Promise.reject(new Error('Did not throw an Error.'));
47-
} catch (e) {
47+
} catch (e: any) {
4848
return expect(e.message).toContain("'settings.cacheSizeBytes' must be a number value");
4949
}
5050
});
@@ -53,7 +53,7 @@ describe('Storage', function () {
5353
try {
5454
await firebase.firestore().settings({ cacheSizeBytes: 123 });
5555
return Promise.reject(new Error('Did not throw an Error.'));
56-
} catch (e) {
56+
} catch (e: any) {
5757
return expect(e.message).toContain("'settings.cacheSizeBytes' the minimum cache size");
5858
}
5959
});
@@ -69,7 +69,7 @@ describe('Storage', function () {
6969
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
7070
await firebase.firestore().settings({ host: 123 });
7171
return Promise.reject(new Error('Did not throw an Error.'));
72-
} catch (e) {
72+
} catch (e: any) {
7373
return expect(e.message).toContain("'settings.host' must be a string value");
7474
}
7575
});
@@ -78,7 +78,7 @@ describe('Storage', function () {
7878
try {
7979
await firebase.firestore().settings({ host: '' });
8080
return Promise.reject(new Error('Did not throw an Error.'));
81-
} catch (e) {
81+
} catch (e: any) {
8282
return expect(e.message).toContain("'settings.host' must not be an empty string");
8383
}
8484
});
@@ -88,7 +88,7 @@ describe('Storage', function () {
8888
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
8989
await firebase.firestore().settings({ persistence: 'true' });
9090
return Promise.reject(new Error('Did not throw an Error.'));
91-
} catch (e) {
91+
} catch (e: any) {
9292
return expect(e.message).toContain("'settings.persistence' must be a boolean value");
9393
}
9494
});
@@ -98,7 +98,7 @@ describe('Storage', function () {
9898
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
9999
await firebase.firestore().settings({ ssl: 'true' });
100100
return Promise.reject(new Error('Did not throw an Error.'));
101-
} catch (e) {
101+
} catch (e: any) {
102102
return expect(e.message).toContain("'settings.ssl' must be a boolean value");
103103
}
104104
});
@@ -108,7 +108,7 @@ describe('Storage', function () {
108108
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
109109
await firestore().settings({ ignoreUndefinedProperties: 'bogus' });
110110
return Promise.reject(new Error('Should throw'));
111-
} catch (e) {
111+
} catch (e: any) {
112112
return expect(e.message).toContain("ignoreUndefinedProperties' must be a boolean value.");
113113
}
114114
});
@@ -118,7 +118,7 @@ describe('Storage', function () {
118118
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
119119
await firestore().settings({ serverTimestampBehavior: 'bogus' });
120120
return Promise.reject(new Error('Should throw'));
121-
} catch (e) {
121+
} catch (e: any) {
122122
return expect(e.message).toContain(
123123
"serverTimestampBehavior' must be one of 'estimate', 'previous', 'none'",
124124
);
@@ -132,7 +132,7 @@ describe('Storage', function () {
132132
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
133133
await firebase.firestore().runTransaction('foo');
134134
return Promise.reject(new Error('Did not throw an Error.'));
135-
} catch (e) {
135+
} catch (e: any) {
136136
return expect(e.message).toContain("'updateFunction' must be a function");
137137
}
138138
});
@@ -149,7 +149,7 @@ describe('Storage', function () {
149149
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
150150
firebase.firestore().collectionGroup(123);
151151
return Promise.reject(new Error('Did not throw an Error.'));
152-
} catch (e) {
152+
} catch (e: any) {
153153
return expect(e.message).toContain("'collectionId' must be a string value");
154154
}
155155
});
@@ -158,7 +158,7 @@ describe('Storage', function () {
158158
try {
159159
firebase.firestore().collectionGroup('');
160160
return Promise.reject(new Error('Did not throw an Error.'));
161-
} catch (e) {
161+
} catch (e: any) {
162162
return expect(e.message).toContain("'collectionId' must be a non-empty string");
163163
}
164164
});
@@ -167,7 +167,7 @@ describe('Storage', function () {
167167
try {
168168
firebase.firestore().collectionGroup(`someCollection/bar`);
169169
return Promise.reject(new Error('Did not throw an Error.'));
170-
} catch (e) {
170+
} catch (e: any) {
171171
return expect(e.message).toContain("'collectionId' must not contain '/'");
172172
}
173173
});
@@ -179,7 +179,7 @@ describe('Storage', function () {
179179
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
180180
firebase.firestore().collection(123);
181181
return Promise.reject(new Error('Did not throw an Error.'));
182-
} catch (e) {
182+
} catch (e: any) {
183183
return expect(e.message).toContain("'collectionPath' must be a string value");
184184
}
185185
});
@@ -188,7 +188,7 @@ describe('Storage', function () {
188188
try {
189189
firebase.firestore().collection('');
190190
return Promise.reject(new Error('Did not throw an Error.'));
191-
} catch (e) {
191+
} catch (e: any) {
192192
return expect(e.message).toContain("'collectionPath' must be a non-empty string");
193193
}
194194
});
@@ -197,7 +197,7 @@ describe('Storage', function () {
197197
try {
198198
firebase.firestore().collection(`firestore/bar`);
199199
return Promise.reject(new Error('Did not throw an Error.'));
200-
} catch (e) {
200+
} catch (e: any) {
201201
return expect(e.message).toContain("'collectionPath' must point to a collection");
202202
}
203203
});
@@ -215,7 +215,7 @@ describe('Storage', function () {
215215
// @ts-ignore the type is incorrect *on purpose* to test type checking in javascript
216216
firebase.firestore().doc(123);
217217
return Promise.reject(new Error('Did not throw an Error.'));
218-
} catch (e) {
218+
} catch (e: any) {
219219
return expect(e.message).toContain("'documentPath' must be a string value");
220220
}
221221
});
@@ -224,7 +224,7 @@ describe('Storage', function () {
224224
try {
225225
firebase.firestore().doc('');
226226
return Promise.reject(new Error('Did not throw an Error.'));
227-
} catch (e) {
227+
} catch (e: any) {
228228
return expect(e.message).toContain("'documentPath' must be a non-empty string");
229229
}
230230
});
@@ -233,7 +233,7 @@ describe('Storage', function () {
233233
try {
234234
firebase.firestore().doc(`${COLLECTION}/bar/baz`);
235235
return Promise.reject(new Error('Did not throw an Error.'));
236-
} catch (e) {
236+
} catch (e: any) {
237237
return expect(e.message).toContain("'documentPath' must point to a document");
238238
}
239239
});
@@ -254,7 +254,7 @@ describe('Storage', function () {
254254
});
255255

256256
return Promise.reject(new Error('Expected set() to throw'));
257-
} catch (e) {
257+
} catch (e: any) {
258258
return expect(e.message).toEqual('Unsupported field value: undefined');
259259
}
260260
});
@@ -270,7 +270,7 @@ describe('Storage', function () {
270270
},
271271
});
272272
return Promise.reject(new Error('Expected set() to throw'));
273-
} catch (e) {
273+
} catch (e: any) {
274274
return expect(e.message).toEqual('Unsupported field value: undefined');
275275
}
276276
});
@@ -283,7 +283,7 @@ describe('Storage', function () {
283283
myArray: [{ name: 'Tim', location: { state: undefined, country: 'United Kingdom' } }],
284284
});
285285
return Promise.reject(new Error('Expected set() to throw'));
286-
} catch (e) {
286+
} catch (e: any) {
287287
return expect(e.message).toEqual('Unsupported field value: undefined');
288288
}
289289
});

packages/perf/__tests__/perf.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('Performance Monitoring', function () {
3232
// @ts-ignore
3333
perf().newTrace(1337);
3434
return Promise.reject(new Error('Did not throw'));
35-
} catch (e) {
35+
} catch (e: any) {
3636
expect(e.message).toEqual(
3737
"firebase.perf().newTrace(*) 'identifier' must be a string with a maximum length of 100 characters.",
3838
);
@@ -44,7 +44,7 @@ describe('Performance Monitoring', function () {
4444
try {
4545
perf().newTrace(new Array(101).fill('i').join(''));
4646
return Promise.reject(new Error('Did not throw'));
47-
} catch (e) {
47+
} catch (e: any) {
4848
expect(e.message).toEqual(
4949
"firebase.perf().newTrace(*) 'identifier' must be a string with a maximum length of 100 characters.",
5050
);
@@ -70,7 +70,7 @@ describe('Performance Monitoring', function () {
7070
// @ts-ignore
7171
perf().newHttpMetric(1337, 7331);
7272
return Promise.reject(new Error('Did not throw'));
73-
} catch (e) {
73+
} catch (e: any) {
7474
expect(e.message).toEqual("firebase.perf().newHttpMetric(*, _) 'url' must be a string.");
7575
return Promise.resolve();
7676
}
@@ -81,7 +81,7 @@ describe('Performance Monitoring', function () {
8181
// @ts-ignore
8282
perf().newHttpMetric('https://invertase.io', 1337);
8383
return Promise.reject(new Error('Did not throw'));
84-
} catch (e) {
84+
} catch (e: any) {
8585
expect(e.message).toEqual(
8686
"firebase.perf().newHttpMetric(_, *) 'httpMethod' must be one of CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE.",
8787
);
@@ -94,7 +94,7 @@ describe('Performance Monitoring', function () {
9494
// @ts-ignore
9595
perf().newHttpMetric('https://invertase.io', 'FIRE');
9696
return Promise.reject(new Error('Did not throw'));
97-
} catch (e) {
97+
} catch (e: any) {
9898
expect(e.message).toEqual(
9999
"firebase.perf().newHttpMetric(_, *) 'httpMethod' must be one of CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE.",
100100
);
@@ -109,7 +109,7 @@ describe('Performance Monitoring', function () {
109109
// @ts-ignore
110110
firebase.perf().setPerformanceCollectionEnabled();
111111
return Promise.reject(new Error('Did not throw'));
112-
} catch (e) {
112+
} catch (e: any) {
113113
expect(e.message).toEqual(
114114
"firebase.perf().setPerformanceCollectionEnabled(*) 'enabled' must be a boolean.",
115115
);

packages/perf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@react-native-firebase/app": "12.7.4"
3333
},
3434
"dependencies": {
35-
"@expo/config-plugins": "^3.0.7"
35+
"@expo/config-plugins": "^3.1.0"
3636
},
3737
"publishConfig": {
3838
"access": "public"

0 commit comments

Comments
 (0)