diff --git a/libs/ngfire/firestore/src/firestore.ts b/libs/ngfire/firestore/src/firestore.ts index b746111..8f8edfd 100644 --- a/libs/ngfire/firestore/src/firestore.ts +++ b/libs/ngfire/firestore/src/firestore.ts @@ -1,10 +1,9 @@ -import { inject, Injectable, InjectFlags, Injector, PLATFORM_ID } from "@angular/core"; +import { inject, Injectable, InjectFlags, Injector, PLATFORM_ID, makeStateKey, TransferState } from "@angular/core"; import { collection, doc, DocumentData, DocumentSnapshot, query, queryEqual, QuerySnapshot, runTransaction, writeBatch } from 'firebase/firestore'; import type { Transaction, CollectionReference, DocumentReference, Query, QueryConstraint } from 'firebase/firestore'; import { FIRESTORE } from "./tokens"; import { shareWithDelay, assertCollection, assertPath, isCollectionRef, isDocPath, isQuery } from "ngfire/core"; import { fromRef } from "./operators"; -import { makeStateKey, TransferState } from "@angular/platform-browser"; import { isPlatformBrowser, isPlatformServer } from "@angular/common"; import { Observable } from "rxjs"; import { stringifyQuery } from "./query"; @@ -138,7 +137,7 @@ export class FirestoreService { if (Array.isArray(paths)) { return paths.map((path) => this.getRef(path) as DocumentReference); } - + const hasContraints = Array.isArray(constraints); if (hasContraints) { assertPath(paths); diff --git a/libs/ngfire/package.json b/libs/ngfire/package.json index b4aeebe..3f37840 100644 --- a/libs/ngfire/package.json +++ b/libs/ngfire/package.json @@ -1,11 +1,11 @@ { "name": "ngfire", - "version": "0.0.50", + "version": "0.0.53", "homepage": "https://github.com/dappsnation/ngfire", "peerDependencies": { - "@angular/common": ">12.2.0", - "@angular/core": ">12.2.0", - "@angular/platform-browser": ">12.2.0", + "@angular/common": ">17.3.12", + "@angular/core": ">17.3.12", + "@angular/platform-browser": ">17.3.12", "@nrwl/devkit": ">13.0.0", "firebase": ">9.0.0", "rxjs": ">7.0.0"