semantic-release-bot f8b2860a74 chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.8.1...v2.0.0) (2020-06-16)

### Features

* Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata ([#178](https://github.com/react-native-community/react-native-cameraroll/issues/178)) ([#200](https://github.com/react-native-community/react-native-cameraroll/issues/200)) ([4da8310](https://github.com/react-native-community/react-native-cameraroll/commit/4da8310))

### BREAKING CHANGES

* meta data is no longer added as default. This applies to `fileName`, `fileSize` and `location`. If you need this metadata use the new `include` parameter. Adding this metadata will slow down the `getPhotos` function, so consider only retrieving this meta data for smaller sets of images as needed, instead of for all images.

* Created getPhotosFast function, fixed inconsistent getPhotos toDate logic

* Fixed wrong param name, added better typechecking

* Added example, renamed allowEmptyFilenames to skipGettingFilenames

* Removed `after` from getPhotosFast docs

* Redid implementation based on a new `include` param

* Updated API to use include parameter

* Fixed flow checking by converting index.ts to Typescript

* Unformatted README.md

* Unformatted README.md

* Unformatted README.md

* Added .prettierignore and ignored README.md for now

* Made example/index.js not checked by Flow

* Updated README.md to include notes in the outputs too

* Made inclusion of fields consistent, addressed other feedback

* Renamed GetPhotosFastParams back to GetPhotosParams

* Updated documentation to reflect nullable types

* Updated typings and documentation for fromTime, toTime

* Updated to fix `hasNextPage` being incorrectly false in some cases

Co-authored-by: Harry Yu <hy.harry.yu@gmail.com>
2020-06-16 10:24:15 +00:00

131 lines
5.1 KiB
JSON

{
"name": "@react-native-community/cameraroll",
"author": "Bartol Karuza <bartol.k@gmail.com>",
"homepage": "https://github.com/react-native-community/react-native-cameraroll#readme",
"version": "2.0.0",
"description": "React Native Camera Roll for iOS & Android",
"main": "./js/CameraRoll.js",
"types": "./typings/CameraRoll.d.ts",
"scripts": {
"start": "react-native start",
"start:android": "react-native run-android --root example/",
"start:ios": "react-native run-ios --project-path example/ios",
"test": "yarn validate:eslint && yarn validate:flow && yarn validate:typescript && yarn test:jest",
"validate:eslint": "eslint 'js/**/*.js' 'example/**/*.js'",
"validate:flow": "flow check",
"validate:typescript": "tsc --project ./",
"test:jest": "jest js/",
"test:detox:android:test:debug": "detox test -c android.emu.debug",
"test:detox:android:test:release": "detox test -c android.emu.release",
"test:detox:android:build:debug": "detox build -c android.emu.debug",
"test:detox:android:build:release": "detox build -c android.emu.release",
"test:detox:android:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file example/index.js --bundle-output .tmp/android-bundle.js",
"test:detox:ios:test:debug": "detox test -c ios.sim.debug",
"test:detox:ios:test:release": "detox test -c ios.sim.release",
"test:detox:ios:build:debug": "detox build -c ios.sim.debug",
"test:detox:ios:build:release": "detox build -c ios.sim.release",
"test:detox:ios:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform ios --dev false --entry-file example/index.js --bundle-output .tmp/ios-bundle.js",
"test:detox:clean": "rimraf example/android/build && rimraf example/android/app/build && rimraf example/android/.gradle && rimraf example/ios/build",
"ci:publish": "yarn semantic-release",
"semantic-release": "semantic-release"
},
"keywords": [
"react-native",
"react native",
"cameraroll",
"camera",
"photo gallery"
],
"license": "MIT",
"peerDependencies": {
"react": "^16.0",
"react-native": ">=0.57 <=0.62"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/runtime": "^7.9.6",
"@react-native-community/eslint-config": "^1.1.0",
"@semantic-release/git": "7.0.8",
"@types/react-native": "^0.62.10",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.0.1",
"babel-plugin-module-resolver": "^3.2.0",
"detox": "^16.5.0",
"eslint": "^7.0.0",
"eslint-plugin-prettier": "^3.0.1",
"flow-bin": "^0.113.0",
"husky": "^2.2.0",
"jest": "^26.0.1",
"metro-react-native-babel-preset": "^0.59.0",
"prettier": "^1.17.0",
"pretty-quick": "^1.10.0",
"react": "16.11.0",
"react-native": "0.62.2",
"react-test-renderer": "16.11.0",
"rimraf": "^2.6.3",
"semantic-release": "15.13.3",
"typescript": "^3.4.1"
},
"rn-docs": {
"title": "CameraRoll",
"type": "API"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"resolutions": {
"lodash": "4.17.15",
"@react-native-community/cli-platform-android": "~4.3.0"
},
"jest": {
"preset": "react-native",
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js"
]
},
"detox": {
"test-runner": "jest",
"runner-config": "example/e2e/config.json",
"configurations": {
"ios.sim.debug": {
"binaryPath": "example/ios/build/Build/Products/Debug-iphonesimulator/CameraRollExample.app",
"build": "xcodebuild -workspace example/ios/CameraRollExample.xcworkspace -configuration Debug -scheme CameraRollExample -sdk iphonesimulator -derivedDataPath example/ios/build | xcpretty -k",
"type": "ios.simulator",
"device": {
"type": "iPhone X"
}
},
"ios.sim.release": {
"binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/CameraRollExample.app",
"build": "xcodebuild -workspace example/ios/CameraRollExample.xcworkspace -configuration Release -scheme CameraRollExample -sdk iphonesimulator -derivedDataPath example/ios/build | xcpretty -k",
"type": "ios.simulator",
"device": {
"type": "iPhone X"
}
},
"android.emu.debug": {
"binaryPath": "example/android/app/build/outputs/apk/debug/app-debug.apk",
"build": "pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
"type": "android.emulator",
"device": {
"avdName": "TestingAVD"
}
},
"android.emu.release": {
"binaryPath": "example/android/app/build/outputs/apk/release/app-release.apk",
"build": "pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd",
"type": "android.emulator",
"device": {
"avdName": "TestingAVD"
}
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/react-native-community/react-native-cameraroll.git"
}
}