diff --git a/packages/rxfire/.gitignore b/packages/rxfire/.gitignore index dc713b656b4..65d29598535 100644 --- a/packages/rxfire/.gitignore +++ b/packages/rxfire/.gitignore @@ -5,12 +5,15 @@ # generated declaration files # declaration files currently break testing builds -# TODO: Fix TypeScript build setup before release auth/index.d.ts firestore/collection/index.d.ts firestore/document/index.d.ts firestore/fromRef.d.ts firestore/index.d.ts +database/fromRef.d.ts +database/interfaces.d.ts +database/utils.d.ts +database/list/audit-trail.d.ts functions/index.d.ts index.d.ts storage/index.d.ts diff --git a/packages/rxfire/package.json b/packages/rxfire/package.json index deefae6f660..7645bec0c6e 100644 --- a/packages/rxfire/package.json +++ b/packages/rxfire/package.json @@ -31,10 +31,12 @@ "browser": "dist/index.cjs.js", "module": "dist/index.esm.js", "peerDependencies": { - "firebase": "5.2.0", - "rxjs": "6.2.0" + "firebase": "^5.3.0", + "rxjs": "^6.2.2" }, "devDependencies": { + "firebase": "^5.3.0", + "rxjs": "^6.2.2", "rollup": "0.57.1", "rollup-plugin-commonjs": "9.1.0", "rollup-plugin-node-resolve": "3.3.0", diff --git a/packages/rxfire/test/firestore.test.ts b/packages/rxfire/test/firestore.test.ts index e496363b505..46e9f6bc0f1 100644 --- a/packages/rxfire/test/firestore.test.ts +++ b/packages/rxfire/test/firestore.test.ts @@ -18,7 +18,7 @@ import { initializeApp, firestore, app } from 'firebase/app'; import 'firebase/firestore'; import { collection, - docChanges, + collectionChanges, sortedChanges, auditTrail, docData, @@ -112,7 +112,7 @@ describe('RxFire Firestore', () => { }); }); - describe('docChanges', () => { + describe('collectionChanges', () => { /** * The `stateChanges()` method emits a stream of events as they * occur rather than in sorted order. @@ -124,8 +124,8 @@ describe('RxFire Firestore', () => { const { colRef, davidDoc } = seedTest(firestore); davidDoc.set({ name: 'David' }); - const firstChange = docChanges(colRef).pipe(take(1)); - const secondChange = docChanges(colRef).pipe(skip(1)); + const firstChange = collectionChanges(colRef).pipe(take(1)); + const secondChange = collectionChanges(colRef).pipe(skip(1)); firstChange.subscribe(change => { expect(change[0].type).to.eq('added'); @@ -141,7 +141,7 @@ describe('RxFire Firestore', () => { describe('sortedChanges', () => { /** - * The `sortedChanges()` method reduces the stream of `docChanges()` to + * The `sortedChanges()` method reduces the stream of `collectionChanges()` to * a sorted array. This test seeds two "people" and checks to make sure * the 'added' change type exists. Afterwards, one "person" is modified. * The test then checks that the person is modified and in the proper sorted