From c2686ed60fcc524851f85de7d634fcf2891f0651 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Wed, 5 Jul 2023 13:59:29 -0700 Subject: [PATCH] Remove explicit React Native entry point (#7138) --- .changeset/slow-fishes-obey.md | 6 ++++++ packages/auth/package.json | 7 +------ packages/auth/react-native/package.json | 7 ------- packages/firebase/auth/react-native/index.ts | 18 ------------------ .../firebase/auth/react-native/package.json | 7 ------- packages/firebase/package.json | 13 ------------- 6 files changed, 7 insertions(+), 51 deletions(-) create mode 100644 .changeset/slow-fishes-obey.md delete mode 100644 packages/auth/react-native/package.json delete mode 100644 packages/firebase/auth/react-native/index.ts delete mode 100644 packages/firebase/auth/react-native/package.json diff --git a/.changeset/slow-fishes-obey.md b/.changeset/slow-fishes-obey.md new file mode 100644 index 00000000000..74f4f4bb18c --- /dev/null +++ b/.changeset/slow-fishes-obey.md @@ -0,0 +1,6 @@ +--- +'firebase': major +'@firebase/auth': major +--- + +Remove `firebase/auth/react-native` entry point. The React Native bundle should be automatically picked up by React Native build tools which recognize the `react-native` fields in `package.json` (at the top level and in `exports`). diff --git a/packages/auth/package.json b/packages/auth/package.json index 7cc010fdd0b..0003c7c1098 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -41,10 +41,6 @@ "types": "./dist/cordova/index.cordova.d.ts", "default": "./dist/cordova/index.js" }, - "./react-native": { - "types": "./dist/rn/index.rn.d.ts", - "default": "./dist/rn/index.js" - }, "./internal": { "types": "./dist/internal/index.d.ts", "node": { @@ -72,8 +68,7 @@ "files": [ "dist", "cordova/package.json", - "internal/package.json", - "react-native/package.json" + "internal/package.json" ], "scripts": { "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", diff --git a/packages/auth/react-native/package.json b/packages/auth/react-native/package.json deleted file mode 100644 index a3fd89bf5f8..00000000000 --- a/packages/auth/react-native/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@firebase/auth/react-native", - "description": "A React Native-specific build of the Firebase Auth JS SDK", - "browser": "../dist/rn/index.js", - "module": "../dist/rn/index.js", - "typings": "../dist/rn/index.rn.d.ts" -} \ No newline at end of file diff --git a/packages/firebase/auth/react-native/index.ts b/packages/firebase/auth/react-native/index.ts deleted file mode 100644 index 759132890fa..00000000000 --- a/packages/firebase/auth/react-native/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @license - * Copyright 2021 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. - */ - -export * from '@firebase/auth/react-native'; diff --git a/packages/firebase/auth/react-native/package.json b/packages/firebase/auth/react-native/package.json deleted file mode 100644 index a4dccb88b80..00000000000 --- a/packages/firebase/auth/react-native/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "firebase/auth/react-native", - "main": "dist/index.cjs.js", - "browser": "dist/esm/index.esm.js", - "module": "dist/esm/index.esm.js", - "typings": "dist/auth/react-native/index.d.ts" -} \ No newline at end of file diff --git a/packages/firebase/package.json b/packages/firebase/package.json index e62a0eb553a..fc5bbf3519f 100644 --- a/packages/firebase/package.json +++ b/packages/firebase/package.json @@ -83,18 +83,6 @@ }, "default": "./auth/cordova/dist/esm/index.esm.js" }, - "./auth/react-native": { - "types": "./auth/react-native/dist/auth/react-native/index.d.ts", - "node": { - "require": "./auth/react-native/dist/index.cjs.js", - "import": "./auth/react-native/dist/index.mjs" - }, - "browser": { - "require": "./auth/react-native/dist/index.cjs.js", - "import": "./auth/react-native/dist/esm/index.esm.js" - }, - "default": "./auth/react-native/dist/esm/index.esm.js" - }, "./database": { "types": "./database/dist/database/index.d.ts", "node": { @@ -421,7 +409,6 @@ "app-check", "auth", "auth/cordova", - "auth/react-native", "functions", "firestore", "firestore/lite",