Skip to content

Commit 5bb40f0

Browse files
committed
Merge remote-tracking branch 'origin/feat/pipelines' into new-types
2 parents cbba951 + 41bde42 commit 5bb40f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+21405
-385
lines changed

common/api-review/firestore-lite-pipelines.api.md

Lines changed: 1315 additions & 0 deletions
Large diffs are not rendered by default.

common/api-review/firestore-pipelines.api.md

Lines changed: 1299 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"postinstall-postinstall": "2.1.0",
144144
"prettier": "2.8.8",
145145
"protractor": "5.4.2",
146+
"protobufjs-cli": "^1.1.3",
146147
"request": "2.88.2",
147148
"semver": "7.7.1",
148149
"simple-git": "3.27.0",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2024 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
export * from '@firebase/firestore/pipelines';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase/firestore/pipelines",
3+
"main": "dist/pipelines.cjs.js",
4+
"browser": "dist/esm/pipelines.esm.js",
5+
"module": "dist/esm/pipelines.esm.js",
6+
"typings": "dist/firestore/lite/pipelines.d.ts"
7+
}

packages/firebase/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@
131131
},
132132
"default": "./firestore/dist/esm/index.esm.js"
133133
},
134+
"./firestore/pipelines": {
135+
"types": "./firestore/dist/firestore/pipelines.d.ts",
136+
"node": {
137+
"require": "./firestore/dist/pipelines.cjs.js",
138+
"import": "./firestore/dist/pipelines.mjs"
139+
},
140+
"browser": {
141+
"require": "./firestore/dist/pipelines.cjs.js",
142+
"import": "./firestore/dist/esm/pipelines.esm.js"
143+
},
144+
"default": "./firestore/dist/esm/pipelines.esm.js"
145+
},
134146
"./firestore/lite": {
135147
"types": "./firestore/lite/dist/firestore/lite/index.d.ts",
136148
"node": {

packages/firestore/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
tsconfigRootDir: __dirname
2525
},
2626
plugins: ['import'],
27-
ignorePatterns: ['compat/*'],
27+
ignorePatterns: ['compat/*', 'pipelines.d.ts'],
2828
rules: {
2929
'no-console': ['error', { allow: ['warn', 'error'] }],
3030
'@typescript-eslint/no-unused-vars': [

packages/firestore/externs.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"packages/app-check-interop-types/index.d.ts",
1818
"packages/auth-interop-types/index.d.ts",
1919
"packages/firestore/dist/lite/internal.d.ts",
20+
"packages/firestore/dist/lite/internal.pipelines.d.ts",
2021
"packages/firestore/dist/internal.d.ts",
22+
"packages/firestore/dist/internal.pipelines.d.ts",
2123
"packages/firestore-types/index.d.ts",
2224
"packages/firebase/compat/index.d.ts",
2325
"packages/component/dist/src/component.d.ts",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "@firebase/firestore-lite-pipelines",
3+
"description": "Pipelines for the lite Firestore SDK",
4+
"main": "../../dist/lite/pipelines.node.cjs.js",
5+
"main-esm": "../../dist/lite/pipelines.node.mjs",
6+
"module": "../../dist/lite/pipelines.browser.esm2017.js",
7+
"browser": "../../dist/lite/pipelines.browser.esm2017.js",
8+
"react-native": "../../dist/lite/pipelines.rn.esm2017.js",
9+
"typings": "./pipelines.d.ts",
10+
"private": true,
11+
"engines": {
12+
"node": ">=18.0.0"
13+
}
14+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* @license
3+
* Copyright 2024 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
import { PipelineSource, Pipeline } from '../../dist/lite/pipelines';
18+
19+
// Augument the Firestore class with the pipeline() method.
20+
// This is stripped from dist/lite/pipelines.d.ts during the build
21+
// so it needs to be re-added here.
22+
declare module '@firebase/firestore/lite' {
23+
interface Firestore {
24+
pipeline(): PipelineSource<Pipeline>;
25+
}
26+
}
27+
28+
export * from '../../dist/lite/pipelines';

0 commit comments

Comments
 (0)