From 25e1d3d5a1a8311588938dc9d8fdf71d11cd9963 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Fri, 29 Oct 2021 18:00:06 -0500 Subject: [PATCH] fix: rename default branch to main --- .github/workflows/linting.yml | 2 +- .github/workflows/publish.yml | 4 +- .github/workflows/tests_e2e_android.yml | 2 +- .github/workflows/tests_e2e_ios.yml | 2 +- .github/workflows/tests_jest.yml | 2 +- CONTRIBUTING.md | 10 ++--- README.md | 6 +-- docs/auth/social-auth.md | 2 +- docs/messaging/usage/index.md | 2 +- docs/ml/usage/index.md | 2 +- docs/releases/index.md | 38 +++++++++---------- docs/releases/v6.1.0.md | 4 +- docs/releases/v6.2.0.md | 2 +- docs/sidebar.yaml | 2 +- docs/typescript.md | 2 +- lerna.json | 2 +- packages/analytics/package.json | 2 +- packages/app-check/package.json | 2 +- packages/app-distribution/package.json | 2 +- packages/app/CHANGELOG.md | 2 +- .../firebase/common/RCTConvertFirebase.java | 6 +-- packages/app/package.json | 2 +- packages/auth/package.json | 2 +- packages/crashlytics/package.json | 2 +- .../ReactNativeFirebaseDatabaseQuery.java | 2 +- packages/database/package.json | 2 +- packages/dynamic-links/package.json | 2 +- packages/firestore/package.json | 2 +- packages/functions/package.json | 2 +- packages/in-app-messaging/package.json | 2 +- packages/installations/package.json | 2 +- packages/messaging/package.json | 2 +- packages/ml/CHANGELOG.md | 2 +- packages/ml/package.json | 2 +- packages/perf/package.json | 2 +- packages/remote-config/package.json | 2 +- packages/storage/package.json | 2 +- scripts/_TEMPLATE_/package.json | 2 +- scripts/version.js | 2 +- website/src/components/Footer.tsx | 2 +- website/src/templates/documentation.tsx | 2 +- website/src/templates/json-config.tsx | 2 +- 42 files changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index bdb7b7523b..23bd84421a 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,7 +6,7 @@ on: - '**' push: branches: - - master + - main jobs: linting: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 15827e4c21..b7983bcdc3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - master + - main jobs: publish_npm: @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 with: - ref: 'master' + ref: 'main' fetch-depth: 0 - name: Yarn Install uses: nick-invision/retry@v2 diff --git a/.github/workflows/tests_e2e_android.yml b/.github/workflows/tests_e2e_android.yml index ba70001317..4bc264ab67 100644 --- a/.github/workflows/tests_e2e_android.yml +++ b/.github/workflows/tests_e2e_android.yml @@ -12,7 +12,7 @@ on: push: branches: - - master + - main paths-ignore: - 'docs/**' - 'website/**' diff --git a/.github/workflows/tests_e2e_ios.yml b/.github/workflows/tests_e2e_ios.yml index e373f5c181..134e98504f 100644 --- a/.github/workflows/tests_e2e_ios.yml +++ b/.github/workflows/tests_e2e_ios.yml @@ -12,7 +12,7 @@ on: push: branches: - - master + - main paths-ignore: - 'docs/**' - 'website/**' diff --git a/.github/workflows/tests_jest.yml b/.github/workflows/tests_jest.yml index 01c811dc2e..847bbc56ed 100644 --- a/.github/workflows/tests_jest.yml +++ b/.github/workflows/tests_jest.yml @@ -11,7 +11,7 @@ on: - '**/*.md' push: branches: - - master + - main paths-ignore: - 'docs/**' - 'website/**' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c1b9db5724..f05a44a36e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ We welcome any type of contribution, not just code. You can help with; - **QA**: file bug reports, the more details you can give the better (e.g. platform versions, screenshots SDK versions & logs) - **Docs**: improve reference coverage, add more examples, fix typos or anything else you can spot. - - At the top of every page on our docs site you can click the `Edit Page` button to go to that pages markdown file or TypeScript definition file, or view the [documents](https://github.com/invertase/react-native-firebase/tree/master/docs) directly + - At the top of every page on our docs site you can click the `Edit Page` button to go to that pages markdown file or TypeScript definition file, or view the [documents](https://github.com/invertase/react-native-firebase/tree/main/docs) directly - **Community**: presenting the project at meetups, organizing a dedicated meetup for the local community, ... - **Code**: take a look at the [open issues](issues). Even if you can't write code, commenting on them, showing that you care about a given issue matters. @@ -133,14 +133,14 @@ To run end-to-end tests for `iOS`, please run: - `yarn tests:emulator:start` - runs Firestore emulator for Firestore tests. - `yarn tests:ios:test` - runs tests using Detox library. Tests for each package can be found in the `e2e` directory (i.e. `[PACKAGE]/e2e/*.e2e.js`) -See it's local testing guide [here](https://github.com/invertase/react-native-firebase/blob/master/tests/README.md) to get started +See it's local testing guide [here](https://github.com/invertase/react-native-firebase/blob/main/tests/README.md) to get started with `e2e` testing this project. --- ## Submitting code for review -All code changes should be submitted as a pull request to the master branch. +All code changes should be submitted as a pull request to the main branch. The bigger the pull request, the longer it will take to review and merge. Try to break down large pull requests in smaller chunks that are easier to review and merge. It is also always helpful to have some context for your pull request. What was the purpose? Why does it matter to you? Tag in any linked issues. @@ -164,7 +164,7 @@ See the [Conventional Commits](https://www.conventionalcommits.org/) specificati ### Code review process -Pull Requests to master require two or more peer-review approvals and passing status checks before they can be merged. +Pull Requests to main require two or more peer-review approvals and passing status checks before they can be merged. Reviews of Pull Requests are based on the following acceptance critical: @@ -181,7 +181,7 @@ Reviews of Pull Requests are based on the following acceptance critical: - Other tests through Jest. - Do all CI checks pass. -Once a PR is merged into master; new versions of the changed packages are automatically created and published to NPM. +Once a PR is merged into main; new versions of the changed packages are automatically created and published to NPM. ## [No Brown M&M's](http://en.wikipedia.org/wiki/Van_Halen#Contract_riders) diff --git a/README.md b/README.md index 2e90b58ec3..e84af0a0da 100644 --- a/README.md +++ b/README.md @@ -69,12 +69,12 @@ Looking for the Version 5 documentation? [View legacy documentation](https://v5. ## Contributing -- [Overview](https://github.com/invertase/react-native-firebase/blob/master/CONTRIBUTING.md) +- [Overview](https://github.com/invertase/react-native-firebase/blob/main/CONTRIBUTING.md) - [Issues](https://github.com/invertase/react-native-firebase/issues) - [PRs](https://github.com/invertase/react-native-firebase/pulls) - [Documentation](https://rnfirebase.io) -- [Community](https://github.com/invertase/react-native-firebase/blob/master/CONTRIBUTING.md) -- [Code of Conduct](https://github.com/invertase/meta/blob/master/CODE_OF_CONDUCT.md) +- [Community](https://github.com/invertase/react-native-firebase/blob/main/CONTRIBUTING.md) +- [Code of Conduct](https://github.com/invertase/meta/blob/main/CODE_OF_CONDUCT.md) ## License diff --git a/docs/auth/social-auth.md b/docs/auth/social-auth.md index 519ad59664..1104f2e102 100644 --- a/docs/auth/social-auth.md +++ b/docs/auth/social-auth.md @@ -22,7 +22,7 @@ Once authentication is successful, a Firebase credential can be used to sign the To get started, you must first install the [`react-native-apple-authentication`](https://github.com/invertase/react-native-apple-authentication) library. There are a number of [prerequisites](https://github.com/invertase/react-native-apple-authentication#prerequisites-to-using-this-library) to using the library, including -[setting up your Apple Developer account](https://github.com/invertase/react-native-apple-authentication/blob/master/docs/INITIAL_SETUP.md) to enable Apple Sign-In. +[setting up your Apple Developer account](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/INITIAL_SETUP.md) to enable Apple Sign-In. Ensure the "Apple" sign-in provider is enabled on the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers). diff --git a/docs/messaging/usage/index.md b/docs/messaging/usage/index.md index a5b3e80c55..6ac2215648 100644 --- a/docs/messaging/usage/index.md +++ b/docs/messaging/usage/index.md @@ -438,7 +438,7 @@ On Android, any messages which display a [Notification](/messaging/notifications (such as the small icon, title etc). To provide a custom tint color, update the `messaging_android_notification_color` property with a Android color resource name. -The library provides a set of [predefined colors](https://github.com/invertase/react-native-firebase/blob/master/packages/messaging/android/src/main/res/values/colors.xml) corresponding to the [HTML colors](https://www.w3schools.com/colors/colors_names.asp) for convenience, for example: +The library provides a set of [predefined colors](https://github.com/invertase/react-native-firebase/blob/main/packages/messaging/android/src/main/res/values/colors.xml) corresponding to the [HTML colors](https://www.w3schools.com/colors/colors_names.asp) for convenience, for example: ```json // /firebase.json diff --git a/docs/ml/usage/index.md b/docs/ml/usage/index.md index 3c48815c14..f5a8176e34 100644 --- a/docs/ml/usage/index.md +++ b/docs/ml/usage/index.md @@ -25,7 +25,7 @@ cd ios/ && pod install > **This package is mostly discontinued** since these APIs are no longer available in the latest Firebase SDKs. > To call the Cloud Vision API from your app the recommended approach is using Firebase > Authentication and Functions, which gives you a managed, serverless gateway to Google Cloud Vision APIs. For an example -> Functions project see the [vision-annotate-images](https://github.com/firebase/functions-samples/tree/master/vision-annotate-images) sample project. +> Functions project see the [vision-annotate-images](https://github.com/firebase/functions-samples/tree/main/vision-annotate-images) sample project. If you're using an older version of React Native without autolinking support, or wish to integrate into an existing project, you can follow the manual installation steps for [iOS](/ml/usage/installation/ios) and [Android](/ml/usage/installation/android). diff --git a/docs/releases/index.md b/docs/releases/index.md index 82e632ce4b..d51f5cfca7 100644 --- a/docs/releases/index.md +++ b/docs/releases/index.md @@ -7,30 +7,30 @@ previous: /typescript Starting from version `10.0.0`, React Native Firebase packages share a single common version, with aggregated release notes available: -![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/app.svg?style=for-the-badge&logo=npm) [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/CHANGELOG.md) +![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/app.svg?style=for-the-badge&logo=npm) [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/CHANGELOG.md) --- From version `v6.5.0` until `10.0.0`; all React Native Firebase packages were independently versioned with individually generated release notes: -| Package | | | -| ---------------------- | :------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------: | -| Analytics | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/analytics.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/analytics/CHANGELOG.md) | -| App | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/app.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/app/CHANGELOG.md) | -| AppCheck | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/app-check.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/app-check/CHANGELOG.md) | -| Authentication | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/auth.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/auth/CHANGELOG.md) | -| Cloud Firestore | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/firestore.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/firestore/CHANGELOG.md) | -| Cloud Functions | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/functions.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/functions/CHANGELOG.md) | -| Cloud Messaging | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/messaging.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/messaging/CHANGELOG.md) | -| Cloud Storage | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/storage.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/storage/CHANGELOG.md) | -| Crashlytics | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/crashlytics.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/crashlytics/CHANGELOG.md) | -| Dynamic Links | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/dynamic-links.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/dynamic-links/CHANGELOG.md) | -| In-app Messaging | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/in-app-messaging.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/in-app-messaging/CHANGELOG.md) | -| Instance ID | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/iid.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/iid/CHANGELOG.md) | -| ML | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/ml.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/ml/CHANGELOG.md) | -| Performance Monitoring | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/perf.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/perf/CHANGELOG.md) | -| Realtime Database | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/database.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/database/CHANGELOG.md) | -| Remote Config | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/remote-config.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/master/packages/remote-config/CHANGELOG.md) | +| Package | | | +| ---------------------- | :------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | +| Analytics | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/analytics.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/analytics/CHANGELOG.md) | +| App | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/app.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/app/CHANGELOG.md) | +| AppCheck | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/app-check.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/app-check/CHANGELOG.md) | +| Authentication | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/auth.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/auth/CHANGELOG.md) | +| Cloud Firestore | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/firestore.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/firestore/CHANGELOG.md) | +| Cloud Functions | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/functions.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/functions/CHANGELOG.md) | +| Cloud Messaging | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/messaging.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/messaging/CHANGELOG.md) | +| Cloud Storage | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/storage.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/storage/CHANGELOG.md) | +| Crashlytics | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/crashlytics.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/crashlytics/CHANGELOG.md) | +| Dynamic Links | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/dynamic-links.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/dynamic-links/CHANGELOG.md) | +| In-app Messaging | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/in-app-messaging.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/in-app-messaging/CHANGELOG.md) | +| Instance ID | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/iid.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/iid/CHANGELOG.md) | +| ML | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/ml.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/ml/CHANGELOG.md) | +| Performance Monitoring | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/perf.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/perf/CHANGELOG.md) | +| Realtime Database | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/database.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/database/CHANGELOG.md) | +| Remote Config | ![hide:badge](https://img.shields.io/npm/v/@react-native-firebase/remote-config.svg?style=for-the-badge&logo=npm) | [View Release Notes »](https://github.com/invertase/react-native-firebase/tree/main/packages/remote-config/CHANGELOG.md) | --- diff --git a/docs/releases/v6.1.0.md b/docs/releases/v6.1.0.md index a32c4344b6..8407d5f1dd 100644 --- a/docs/releases/v6.1.0.md +++ b/docs/releases/v6.1.0.md @@ -24,7 +24,7 @@ description: 'Bug fixes and documentation updates release.' ### Remote Config -- Add support for the `minimumFetchInterval` config setting ([#2789](https://github.com/invertase/react-native-firebase/issues/2789)) ([57965e7](https://github.com/invertase/react-native-firebase/commit/57965e73a7e1089335c5446fb91cd44c1b19725d)), closes [/github.com/firebase/firebase-ios-sdk/blob/master/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h#L148-L149](https://github.com//github.com/firebase/firebase-ios-sdk/blob/master/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h/issues/L148-L149) +- Add support for the `minimumFetchInterval` config setting ([#2789](https://github.com/invertase/react-native-firebase/issues/2789)) ([57965e7](https://github.com/invertase/react-native-firebase/commit/57965e73a7e1089335c5446fb91cd44c1b19725d)), closes [/github.com/firebase/firebase-ios-sdk/blob/main/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h#L148-L149](https://github.com//github.com/firebase/firebase-ios-sdk/blob/main/FirebaseRemoteConfig/Sources/Public/FIRRemoteConfig.h/issues/L148-L149) ## Bug Fixes @@ -42,7 +42,7 @@ description: 'Bug fixes and documentation updates release.' - **`firestore`:** correctly apply internal `__name__` query modifier ([#2866](https://github.com/invertase/react-native-firebase/issues/2866)) ([a5da010](https://github.com/invertase/react-native-firebase/commit/a5da0107ff570dc6327bb3ae5d7fff4143183ac9)), closes [#2854](https://github.com/invertase/react-native-firebase/issues/2854) - **`firestore,iOS`:** settings incorrectly set multiple times ([#2869](https://github.com/invertase/react-native-firebase/issues/2869)) ([ed858c9](https://github.com/invertase/react-native-firebase/commit/ed858c96eee0bcfa796faf3f151116c35a4328c0)) - **`messaging`:** `onTokenRefresh(event => event.token)` fixes [#2889](https://github.com/invertase/react-native-firebase/issues/2889) ([1940d6c](https://github.com/invertase/react-native-firebase/commit/1940d6c8fbab64ccf739186cea9633a605237942)) -- **`messaging`:** typo in `isRegisteredForRemoteNotifications` ([#2645](https://github.com/invertase/react-native-firebase/issues/2645)) ([f0e614f](https://github.com/invertase/react-native-firebase/commit/f0e614f48567645e89e837ee56d3f3d251473b09)), closes [/github.com/invertase/react-native-firebase/blob/master/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m#L58](https://github.com//github.com/invertase/react-native-firebase/blob/master/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m/issues/L58) +- **`messaging`:** typo in `isRegisteredForRemoteNotifications` ([#2645](https://github.com/invertase/react-native-firebase/issues/2645)) ([f0e614f](https://github.com/invertase/react-native-firebase/commit/f0e614f48567645e89e837ee56d3f3d251473b09)), closes [/github.com/invertase/react-native-firebase/blob/main/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m#L58](https://github.com//github.com/invertase/react-native-firebase/blob/main/packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m/issues/L58) - **`messaging,iOS`:** `hasPermission` checks `authorizationStatus` ([#2908](https://github.com/invertase/react-native-firebase/issues/2908)) ([7cab58d](https://github.com/invertase/react-native-firebase/commit/7cab58d87fcba592c697a3441bd77033eb09ab3c)) - **`messaging,iOS`:** wait for remote notification registration status ([8c339d1](https://github.com/invertase/react-native-firebase/commit/8c339d10e288ef60e83e38bc4a245c5a251c83ff)), closes [#2657](https://github.com/invertase/react-native-firebase/issues/2657) - **`storage`:** fix video asset resources on iOS13 ([#2750](https://github.com/invertase/react-native-firebase/issues/2750)) ([fded286](https://github.com/invertase/react-native-firebase/commit/fded28621fb5c73c3daba009cc4f2ef6fde21745)) diff --git a/docs/releases/v6.2.0.md b/docs/releases/v6.2.0.md index 4b881ea437..57a6c2bb88 100644 --- a/docs/releases/v6.2.0.md +++ b/docs/releases/v6.2.0.md @@ -26,4 +26,4 @@ React Native Firebase. To help you get started with integrating Apple Authentication we've included a small guide/example specific to Firebase on the repository. -[[Guide: Usage with React Native Firebase]](https://github.com/invertase/react-native-apple-authentication/blob/master/docs/FIREBASE.md) +[[Guide: Usage with React Native Firebase]](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/FIREBASE.md) diff --git a/docs/sidebar.yaml b/docs/sidebar.yaml index 022848b69f..e1c4ca74d4 100644 --- a/docs/sidebar.yaml +++ b/docs/sidebar.yaml @@ -12,7 +12,7 @@ - - Feature Requests - 'https://invertase.canny.io/react-native-firebase' - - Contributing - - 'https://github.com/invertase/react-native-firebase/blob/master/CONTRIBUTING.md' + - 'https://github.com/invertase/react-native-firebase/blob/main/CONTRIBUTING.md' - - Legacy Docs (<= v5) - 'https://v5.rnfirebase.io/docs/v5.x.x/getting-started' - - Analytics diff --git a/docs/typescript.md b/docs/typescript.md index 83647f6ef8..0846e34188 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -95,4 +95,4 @@ Attempting to set `user` state to anything other than the `User` or `null` will The full set of TypeScript definitions for each module can be found on the [`invertase/react-native-firebase`](https://github.com/invertase/react-native-firebase) repository within each package. -For example, the `auth` module definitions are located at [`react-native-firebase/packages/auth/lib/index.d.ts`](https://github.com/invertase/react-native-firebase/blob/master/packages/auth/lib/index.d.ts). +For example, the `auth` module definitions are located at [`react-native-firebase/packages/auth/lib/index.d.ts`](https://github.com/invertase/react-native-firebase/blob/main/packages/auth/lib/index.d.ts). diff --git a/lerna.json b/lerna.json index 1d2d6d6976..0627353680 100644 --- a/lerna.json +++ b/lerna.json @@ -7,7 +7,7 @@ "useWorkspaces": true, "command": { "version": { - "allowBranch": "master", + "allowBranch": "main", "conventionalCommits": true, "exact": true, "gitRemote": "origin", diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 1323868573..ce5e27c3b2 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/analytics" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/analytics" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/app-check/package.json b/packages/app-check/package.json index 8f714dc2cc..cbfded2b81 100644 --- a/packages/app-check/package.json +++ b/packages/app-check/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/app-check" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/app-check" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/app-distribution/package.json b/packages/app-distribution/package.json index 6150d6d8de..93e8160f20 100644 --- a/packages/app-distribution/package.json +++ b/packages/app-distribution/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/app-distribution" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/app-distribution" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/app/CHANGELOG.md b/packages/app/CHANGELOG.md index fd59aac81d..81948081d8 100644 --- a/packages/app/CHANGELOG.md +++ b/packages/app/CHANGELOG.md @@ -356,7 +356,7 @@ This release was partial, npmjs.com rejected some of the monorepo packages while **Note:** Version bump only for package @react-native-firebase/app -**Note:** You _may_ need to re-download your firebase config files (android json / ios plist) to handle changes in the underlying SDKs as they migrate from instance id to installations. A symptom would be `NativeFirebaseError: [messaging/unknown] FIS_AUTH_ERROR`. [Upstream reference doc](https://github.com/firebase/firebase-android-sdk/blob/master/firebase-installations/REQUIRED_FIREBASE_OPTIONS_ANDROID.md#what-do-i-need-to-do) / [Related issue #4466](https://github.com/invertase/react-native-firebase/issues/4466) +**Note:** You _may_ need to re-download your firebase config files (android json / ios plist) to handle changes in the underlying SDKs as they migrate from instance id to installations. A symptom would be `NativeFirebaseError: [messaging/unknown] FIS_AUTH_ERROR`. [Upstream reference doc](https://github.com/firebase/firebase-android-sdk/blob/main/firebase-installations/REQUIRED_FIREBASE_OPTIONS_ANDROID.md#what-do-i-need-to-do) / [Related issue #4466](https://github.com/invertase/react-native-firebase/issues/4466) ## [8.4.5](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/app@8.4.4...@react-native-firebase/app@8.4.5) (2020-09-30) diff --git a/packages/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java b/packages/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java index 528f41d812..9ad4f0877d 100644 --- a/packages/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java +++ b/packages/app/android/src/reactnative/java/io/invertase/firebase/common/RCTConvertFirebase.java @@ -169,18 +169,18 @@ public static WritableMap mapPutValue(String key, @Nullable Object value, Writab // TODO Remove me - also in SharedUtils public static WritableMap readableMapToWritableMap(ReadableMap map) { WritableMap writableMap = Arguments.createMap(); - // https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java#L54 + // https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java#L54 writableMap.merge(map); return writableMap; } public static Map toHashMap(ReadableMap readableMap) { - // https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java#L216 + // https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java#L216 return readableMap.toHashMap(); } public static List toArrayList(ReadableArray readableArray) { - // https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java#L175 + // https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java#L175 return readableArray.toArrayList(); } } diff --git a/packages/app/package.json b/packages/app/package.json index 39ade8643f..6442c33eeb 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/app" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/app" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/auth/package.json b/packages/auth/package.json index 9c99cfc86f..5b71589a90 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/auth" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/auth" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/crashlytics/package.json b/packages/crashlytics/package.json index 7f3f874367..9cf0a3e15c 100644 --- a/packages/crashlytics/package.json +++ b/packages/crashlytics/package.json @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/crashlytics" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/crashlytics" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/database/android/src/reactnative/java/io/invertase/firebase/database/ReactNativeFirebaseDatabaseQuery.java b/packages/database/android/src/reactnative/java/io/invertase/firebase/database/ReactNativeFirebaseDatabaseQuery.java index ddcc0e50dc..a8a291a017 100644 --- a/packages/database/android/src/reactnative/java/io/invertase/firebase/database/ReactNativeFirebaseDatabaseQuery.java +++ b/packages/database/android/src/reactnative/java/io/invertase/firebase/database/ReactNativeFirebaseDatabaseQuery.java @@ -222,7 +222,7 @@ private void applyFilterModifier(String name, Map modifier) { // Note: equalTo() is handled in JS land by setting startAt() & endAt() to the same // value (see - // https://github.com/firebase/firebase-js-sdk/blob/master/packages/database/src/api/Query.ts#L570) + // https://github.com/firebase/firebase-js-sdk/blob/main/packages/database/src/api/Query.ts#L570) if ("endAt".equals(name)) { applyEndAtFilter(key, valueType, modifier); } else if ("startAt".equals(name)) { diff --git a/packages/database/package.json b/packages/database/package.json index 9f9f476a79..b0ed721535 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/database" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/database" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/dynamic-links/package.json b/packages/dynamic-links/package.json index 8db1d5b21b..5ed89d1055 100644 --- a/packages/dynamic-links/package.json +++ b/packages/dynamic-links/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/dynamic-links" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/dynamic-links" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/firestore/package.json b/packages/firestore/package.json index 346709f7e3..331483eba4 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/firestore" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/firestore" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/functions/package.json b/packages/functions/package.json index 3fe177b0ed..e6375702e8 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/functions" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/functions" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/in-app-messaging/package.json b/packages/in-app-messaging/package.json index e3418167c3..abdeb30aab 100644 --- a/packages/in-app-messaging/package.json +++ b/packages/in-app-messaging/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/in-app-messaging" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/in-app-messaging" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/installations/package.json b/packages/installations/package.json index 3a033df402..69f1e6c527 100644 --- a/packages/installations/package.json +++ b/packages/installations/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/installations" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/installations" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/messaging/package.json b/packages/messaging/package.json index 3226bb284c..a3f9502304 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/messaging" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/messaging" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/ml/CHANGELOG.md b/packages/ml/CHANGELOG.md index 1ada5da42f..51ee9ab54c 100644 --- a/packages/ml/CHANGELOG.md +++ b/packages/ml/CHANGELOG.md @@ -219,7 +219,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### BREAKING CHANGES -- alter ML imports for "in cloud" inference, migrate to react-native-mlkit for on-device inference - see the [README section of this new module to understand the changes](https://github.com/invertase/react-native-firebase/blob/master/packages/ml/README.md#cloud-vs-on-device) +- alter ML imports for "in cloud" inference, migrate to react-native-mlkit for on-device inference - see the [README section of this new module to understand the changes](https://github.com/invertase/react-native-firebase/blob/main/packages/ml/README.md#cloud-vs-on-device) ## [7.4.13](https://github.com/invertase/react-native-firebase/compare/@react-native-firebase/ml-vision@7.4.12...@react-native-firebase/ml-vision@7.4.13) (2020-11-10) diff --git a/packages/ml/package.json b/packages/ml/package.json index 3e7880d8a2..ad5f7ce6e4 100644 --- a/packages/ml/package.json +++ b/packages/ml/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/ml" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/ml" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/perf/package.json b/packages/perf/package.json index 33c544a779..c21097105d 100644 --- a/packages/perf/package.json +++ b/packages/perf/package.json @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/perf" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/perf" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index aa2d9f2019..57e7a8e458 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/remote-config" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/remote-config" }, "license": "Apache-2.0", "keywords": [ diff --git a/packages/storage/package.json b/packages/storage/package.json index 433144b088..631c85c4e4 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/storage" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/storage" }, "license": "Apache-2.0", "keywords": [ diff --git a/scripts/_TEMPLATE_/package.json b/scripts/_TEMPLATE_/package.json index 15f7083b8f..e1818cbcbf 100644 --- a/scripts/_TEMPLATE_/package.json +++ b/scripts/_TEMPLATE_/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/invertase/react-native-firebase/tree/master/packages/_template_" + "url": "https://github.com/invertase/react-native-firebase/tree/main/packages/_template_" }, "license": "Apache-2.0", "keywords": [ diff --git a/scripts/version.js b/scripts/version.js index a896930131..fad1d379f1 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -21,7 +21,7 @@ packages.forEach(package => { let changelogContents = readFileSync(changelogPath).toString('utf-8'); changelogContents = changelogContents.replace( - /github\.com\/invertase\/react-native-firebase\/(tree\/master\/packages\/[a-z-]*\/)/gm, + /github\.com\/invertase\/react-native-firebase\/(tree\/main\/packages\/[a-z-]*\/)/gm, 'github.com/invertase/react-native-firebase/', ); writeFileSync(changelogPath, changelogContents); diff --git a/website/src/components/Footer.tsx b/website/src/components/Footer.tsx index 0d2a9d4427..c26e7945f8 100644 --- a/website/src/components/Footer.tsx +++ b/website/src/components/Footer.tsx @@ -27,7 +27,7 @@ function Footer(): JSX.Element { <> diff --git a/website/src/templates/json-config.tsx b/website/src/templates/json-config.tsx index 44e6603621..656c13c58b 100644 --- a/website/src/templates/json-config.tsx +++ b/website/src/templates/json-config.tsx @@ -71,7 +71,7 @@ function ReferenceTemplate({ location, data }: Props) {
<>