File tree 8 files changed +24
-8
lines changed
8 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 12
12
" node_modules/typescript/lib/lib.es2015.core.d.ts" ,
13
13
" node_modules/typescript/lib/lib.es2017.object.d.ts" ,
14
14
" node_modules/typescript/lib/lib.es2017.string.d.ts" ,
15
+ " node_modules/typescript/lib/lib.es2019.array.d.ts" ,
15
16
" node_modules/re2js/build/index.esm.d.ts" ,
16
17
" packages/app-types/index.d.ts" ,
17
18
" packages/app-types/private.d.ts" ,
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
- import { PipelineSource , Pipeline } from '../dist/pipelines' ;
17
+ import { PipelineSource , Pipeline , RealtimePipeline } from '../dist/pipelines' ;
18
18
19
19
// Augument the Firestore and Query classes with the pipeline() method.
20
20
// This is stripped from dist/lite/pipelines.d.ts during the build
21
21
// so it needs to be re-added here.
22
22
declare module '@firebase/firestore' {
23
23
interface Firestore {
24
24
pipeline ( ) : PipelineSource < Pipeline > ;
25
+ realtimePipeline ( ) : PipelineSource < RealtimePipeline > ;
25
26
}
26
27
}
27
28
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const browserPlugins = [
56
56
transformers : [ util . removeAssertAndPrefixInternalTransformer ]
57
57
} ) ,
58
58
json ( { preferConst : true } ) ,
59
- terser ( util . manglePrivatePropertiesOptions )
59
+ // terser(util.manglePrivatePropertiesOptions)
60
60
] ;
61
61
62
62
const allBuilds = [
Original file line number Diff line number Diff line change @@ -108,6 +108,12 @@ const publicIdentifiers = extractPublicIdentifiers(externsPaths);
108
108
// manually add `_delegate` because we don't have typings for the compat package
109
109
publicIdentifiers . add ( '_delegate' ) ;
110
110
111
+ // TODO these should not have to be added manually
112
+ publicIdentifiers . add ( 'pipeline' ) ;
113
+ publicIdentifiers . add ( 'realtimePipeline' ) ;
114
+ publicIdentifiers . add ( 'CorePipeline' ) ;
115
+ publicIdentifiers . add ( 'Constant' ) ;
116
+
111
117
/**
112
118
* Transformers that remove calls to `debugAssert` and messages for 'fail` and
113
119
* `hardAssert`.
@@ -125,10 +131,10 @@ exports.removeAssertTransformer = removeAssertTransformer;
125
131
const removeAssertAndPrefixInternalTransformer = service => ( {
126
132
before : [
127
133
removeAsserts ( service . getProgram ( ) ) ,
128
- renameInternals ( service . getProgram ( ) , {
129
- publicIdentifiers,
130
- prefix : '__PRIVATE_'
131
- } )
134
+ // renameInternals(service.getProgram(), {
135
+ // publicIdentifiers,
136
+ // prefix: '__PRIVATE_'
137
+ // })
132
138
] ,
133
139
after : [ ]
134
140
} ) ;
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { debugAssert } from '../util/assert';
30
30
import { PipelineFlavor , PipelineSourceType } from './pipeline-util' ;
31
31
32
32
export class CorePipeline {
33
+ isCorePipeline = true ;
33
34
constructor (
34
35
readonly serializer : JsonProtoSerializer ,
35
36
readonly stages : Stage [ ]
Original file line number Diff line number Diff line change @@ -221,11 +221,12 @@ export function targetIsPipelineTarget(
221
221
target : TargetOrPipeline
222
222
) : target is CorePipeline {
223
223
// Workaround for circular dependency
224
- return target . constructor . name === ' CorePipeline' ;
224
+ return ! ! ( target as CorePipeline ) . isCorePipeline ;
225
225
}
226
226
227
227
export function targetIsDocumentTarget ( target : Target ) : boolean {
228
228
return (
229
+ ! ! target . path &&
229
230
DocumentKey . isDocumentKey ( target . path ) &&
230
231
target . collectionGroup === null &&
231
232
target . filters . length === 0
Original file line number Diff line number Diff line change @@ -27,9 +27,15 @@ import { LiteUserDataWriter } from './reference_impl';
27
27
import { Stage } from './stage' ;
28
28
import { newUserDataReader } from './user_data_reader' ;
29
29
30
+ // TODO should not be in lite
31
+ import { RealtimePipeline } from "../api/realtime_pipeline" ;
32
+
30
33
declare module './database' {
31
34
interface Firestore {
32
35
pipeline ( ) : PipelineSource < Pipeline > ;
36
+
37
+ // TODO should not be in lite
38
+ realtimePipeline ( ) : PipelineSource < RealtimePipeline > ;
33
39
}
34
40
}
35
41
Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ export function parseData(
712
712
input = getModularInstance ( input ) ;
713
713
714
714
// Workaround for circular dependency
715
- if ( ( input as Constant ) . constructor . name === 'Constant' ) {
715
+ if ( ( input as Constant ) . exprType === 'Constant' ) {
716
716
return ( input as Constant ) . _getValue ( ) ;
717
717
}
718
718
You can’t perform that action at this time.
0 commit comments