-
Notifications
You must be signed in to change notification settings - Fork 934
Split storage and storage-compat #5271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4713a38
separate storage-compat from storage
Feiyang1 46a8d8c
commit
Feiyang1 c2fcd73
fix tests
Feiyang1 af627d2
wat?
Feiyang1 d2941ba
build storage-compat
Feiyang1 40dbf77
save
Feiyang1 6d99fb4
fixing some compat tests
Feiyang1 0a1d781
format
Feiyang1 af3dd18
update import path
Feiyang1 fe25775
format
Feiyang1 63c20ae
get compat tests to work
Feiyang1 c47721f
format
Feiyang1 56aa473
update package json
Feiyang1 307ca6c
cleanup
Feiyang1 d627474
Merge branch 'master' into fei-v9-main-storage
Feiyang1 3097128
format
Feiyang1 d3723ad
address comments
Feiyang1 53d6a7c
Merge branch 'master' into fei-v9-main-storage
Feiyang1 e82142d
Merge branch 'master' into fei-v9-main-storage
Feiyang1 fb7e7c6
Update packages/storage-compat/test/unit/service.test.ts
Feiyang1 572294d
add missing dev dep
Feiyang1 37fba27
Update packages/storage-compat/package.json
hsubox76 a55f49c
Merge branch 'master' into fei-v9-main-storage
Feiyang1 04d73ad
Merge branch 'fei-v9-main-storage' of https://github.com/firebase/fir…
Feiyang1 5afdd50
Update packages/storage-compat/package.json
hsubox76 6c2ddcb
Update deps after v8 release
hsubox76 5abbf4a
Merge branch 'master' into fei-v9-main-storage
Feiyang1 773f579
update compat version
Feiyang1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @firebase/storage | ||
|
||
This is the Cloud Storage component of the Firebase JS SDK. | ||
|
||
**This package is not intended for direct usage, and should only be used via the officially supported [firebase](https://www.npmjs.com/package/firebase) package.** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* @license | ||
* Copyright 2017 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
const karmaBase = require('../../config/karma.base'); | ||
const { argv } = require('yargs'); | ||
|
||
module.exports = function (config) { | ||
const karmaConfig = Object.assign({}, karmaBase, { | ||
// files to load into karma | ||
files: getTestFiles(argv), | ||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['mocha'] | ||
}); | ||
|
||
config.set(karmaConfig); | ||
}; | ||
|
||
function getTestFiles(argv) { | ||
let unitTestFiles = ['test/unit/*']; | ||
let integrationTestFiles = ['test/integration/*']; | ||
|
||
if (argv.unit) { | ||
return unitTestFiles; | ||
} else if (argv.integration) { | ||
return integrationTestFiles; | ||
} else { | ||
return [...unitTestFiles, ...integrationTestFiles]; | ||
} | ||
} | ||
|
||
module.exports.files = getTestFiles(argv); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "@firebase/storage-compat", | ||
"version": "0.1.0", | ||
"description": "The Firebase Firestore compatibility package", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "./dist/index.cjs.js", | ||
"browser": "./dist/index.esm2017.js", | ||
"module": "./dist/index.esm2017.js", | ||
"esm5": "./dist/index.esm5.js", | ||
"license": "Apache-2.0", | ||
"typings": "./dist/src/index.d.ts", | ||
"scripts": { | ||
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", | ||
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", | ||
"build": "rollup -c rollup.config.js && yarn add-compat-overloads", | ||
"build:deps": "lerna run --scope @firebase/storage-compat --include-dependencies build", | ||
"dev": "rollup -c -w", | ||
"test": "run-p test:browser test:node lint", | ||
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser test:node", | ||
"test:browser:unit": "karma start --single-run --unit", | ||
"test:browser:integration": "karma start --single-run --integration", | ||
"test:browser": "karma start --single-run", | ||
"test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.ts --config ../../config/mocharc.node.js", | ||
"test:debug": "karma start --browser=Chrome", | ||
"prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'", | ||
"add-compat-overloads": "ts-node-script ../../scripts/exp/create-overloads.ts -i ../storage/dist/storage-public.d.ts -o dist/src/index.d.ts -a -r FirebaseStorage:types.FirebaseStorage -r StorageReference:types.Reference -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/storage" | ||
}, | ||
"peerDependencies": { | ||
"@firebase/app-compat": "0.x" | ||
}, | ||
"dependencies": { | ||
"@firebase/storage": "0.6.2", | ||
hsubox76 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"@firebase/storage-types": "0.4.1", | ||
"@firebase/util": "1.2.0", | ||
"@firebase/component": "0.5.5", | ||
"tslib": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app-compat": "0.x", | ||
"@firebase/auth-compat": "0.x", | ||
"rollup": "2.52.2", | ||
"@rollup/plugin-json": "4.1.0", | ||
"rollup-plugin-typescript2": "0.30.0", | ||
"typescript": "4.2.2" | ||
}, | ||
"files": [ | ||
"dist" | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.