Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Deprecate @shopify/react-app-bridge-universal-provider #2829

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ These libraries compose together to help you create performant modern JS apps th

## Usage

The Quilt repo is managed as a monorepo that is composed of 70 npm packages and one Ruby gem.
The Quilt repo is managed as a monorepo that is composed of 69 npm packages and one Ruby gem.
Each package/gem has its own `README.md` and documentation describing usage.

### Package Index
Expand Down Expand Up @@ -54,7 +54,6 @@ Each package/gem has its own `README.md` and documentation describing usage.
| [@shopify/phone](packages/phone) | <a href="https://badge.fury.io/js/%40shopify%2Fphone"><img src="https://badge.fury.io/js/%40shopify%2Fphone.svg" width="200px" /></a> | Phone number utilities for formatting phone numbers |
| [@shopify/polyfills](packages/polyfills) | <a href="https://badge.fury.io/js/%40shopify%2Fpolyfills"><img src="https://badge.fury.io/js/%40shopify%2Fpolyfills.svg" width="200px" /></a> | Blessed polyfills for web platform features |
| [@shopify/predicates](packages/predicates) | <a href="https://badge.fury.io/js/%40shopify%2Fpredicates"><img src="https://badge.fury.io/js/%40shopify%2Fpredicates.svg" width="200px" /></a> | A set of common JavaScript predicates |
| [@shopify/react-app-bridge-universal-provider](packages/react-app-bridge-universal-provider) | <a href="https://badge.fury.io/js/%40shopify%2Freact-app-bridge-universal-provider"><img src="https://badge.fury.io/js/%40shopify%2Freact-app-bridge-universal-provider.svg" width="200px" /></a> | A self-serializing/deserializing `app-bridge-react` provider that works for isomorphic applications |
| [@shopify/react-async](packages/react-async) | <a href="https://badge.fury.io/js/%40shopify%2Freact-async"><img src="https://badge.fury.io/js/%40shopify%2Freact-async.svg" width="200px" /></a> | Tools for creating powerful, asynchronously-loaded React components |
| [@shopify/react-bugsnag](packages/react-bugsnag) | <a href="https://badge.fury.io/js/%40shopify%2Freact-bugsnag"><img src="https://badge.fury.io/js/%40shopify%2Freact-bugsnag.svg" width="200px" /></a> | An opinionated wrapper for Bugsnag's React plugin |
| [@shopify/react-compose](packages/react-compose) | <a href="https://badge.fury.io/js/%40shopify%2Freact-compose"><img src="https://badge.fury.io/js/%40shopify%2Freact-compose.svg" width="200px" /></a> | Cleanly compose multiple component enhancers together with minimal fuss |
Expand Down
6 changes: 6 additions & 0 deletions packages/react-app-bridge-universal-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

⚠️ DEPRECATED

This package has been deprecated and should no longer be used.

For legacy documentation, see [v3.1.4](https://github.com/Shopify/quilt/blob/%40shopify/react-app-bridge-universal-provider%403.1.4/packages/react-app-bridge-universal-provider/README.md).

## 3.1.4

### Patch Changes
Expand Down
34 changes: 3 additions & 31 deletions packages/react-app-bridge-universal-provider/README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
# `@shopify/react-app-bridge-universal-provider`

[![Build Status](https://github.com/Shopify/quilt/workflows/Node-CI/badge.svg?branch=main)](https://github.com/Shopify/quilt/actions?query=workflow%3ANode-CI)
[![Build Status](https://github.com/Shopify/quilt/workflows/Ruby-CI/badge.svg?branch=main)](https://github.com/Shopify/quilt/actions?query=workflow%3ARuby-CI)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) [![npm version](https://badge.fury.io/js/%40shopify%2Freact-app-bridge-universal-provider.svg)](https://badge.fury.io/js/%40shopify%2Freact-app-bridge-universal-provider.svg) [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@shopify/react-app-bridge-universal-provider.svg)](https://img.shields.io/bundlephobia/minzip/@shopify/react-app-bridge-universal-provider.svg)
⚠️ DEPRECATED

A self-serializing/deserializing [`app-bridge-react`](https://github.com/Shopify/app-bridge/tree/master/packages/app-bridge-react) provider that works for isomorphic applications.
This package has been deprecated and should no longer be used.

## Installation

```bash
yarn add @shopify/react-app-bridge-universal-provider
```

## Usage

### Props

The component takes children, `apiKey`, `shopOrigin`, and `forceRedirect`. Similar to `@shopify/app-bridge-react`'s Provider.

### Example

```tsx
// App.tsx

import {AppBridgeUniversalProvider} from '@shopify/react-app-bridge-universal-provider';

function App({apiKey, shopOrigin}: {apiKey?: string; shopOrigin?: string}) {
return (
<AppBridgeUniversalProvider apiKey={apiKey} shopOrigin={shopOrigin}>
{/* rest of the app */}
</AppBridgeUniversalProvider>
);
}
```
For legacy documentation, see [v3.1.4](https://github.com/Shopify/quilt/blob/%40shopify/react-app-bridge-universal-provider%403.1.4/packages/react-app-bridge-universal-provider/README.md).
54 changes: 0 additions & 54 deletions packages/react-app-bridge-universal-provider/package.json

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/react-app-bridge-universal-provider/src/index.ts

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions packages/react-app-bridge-universal-provider/tsconfig.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/react-universal-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ It is particularly useful for simple object or primitive that need to be sync up

The list below show a few packages with more complex universal provider:

[@shopify/react-app-bridge-universal-provider](../react-app-bridge-universal-provider)
[@shopify/react-csrf-universal-provider](../react-csrf-universal-provider)
[@shopify/react-graphql-universal-provider`](../react-graphql-universal-provider)
[@shopify/react-i18n-universal-provider](../react-i18n-universal-provider)
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
{"path": "./packages/phone"},
{"path": "./packages/polyfills"},
{"path": "./packages/predicates"},
{"path": "./packages/react-app-bridge-universal-provider"},
{"path": "./packages/react-async"},
{"path": "./packages/react-bugsnag"},
{"path": "./packages/react-compose"},
Expand Down
43 changes: 2 additions & 41 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2517,18 +2517,6 @@
estree-walker "^1.0.1"
picomatch "^2.2.2"

"@shopify/app-bridge-react@>=1.5.0":
version "1.8.0"
resolved "https://registry.yarnpkg.com/@shopify/app-bridge-react/-/app-bridge-react-1.8.0.tgz#33f3530acc622dfacd9fdbffa01d2d052f4aeda9"
integrity sha512-oIB5VEjCPxY86EcvY6+Fdot6hw1uUM52fx3LRUR87G4rcxlxxg5iO8s/53DV7bLMQ6C5wAkduaZjW4j9Q96fIw==
dependencies:
"@shopify/app-bridge" "^1.8.0"

"@shopify/app-bridge@^1.8.0":
version "1.8.0"
resolved "https://registry.yarnpkg.com/@shopify/app-bridge/-/app-bridge-1.8.0.tgz#c11bda4d7db5310d04080e604a40a017948dd547"
integrity sha512-YCxcXJ5l3tQ7U74QnNLTHP9MplIG9DtiPZj1MSlbfu6Th/+txhvZPViJlti8sFcAISW+n5Noh6u6hL4yz107xQ==

"@shopify/app-bridge@^2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@shopify/app-bridge/-/app-bridge-2.0.3.tgz#ae19a50c5c271d2b37db84901bb0b154af0f9602"
Expand Down Expand Up @@ -12010,11 +11998,6 @@ parse-json@^5.0.0, parse-json@^5.2.0:
json-parse-even-better-errors "^2.3.0"
lines-and-columns "^1.1.6"

parse-ms@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-1.0.1.tgz#56346d4749d78f23430ca0c713850aef91aa361d"
integrity sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=

parse-passwd@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
Expand Down Expand Up @@ -12433,13 +12416,6 @@ pretty-hrtime@^1.0.3:
resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
integrity sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=

pretty-ms@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-3.2.0.tgz#87a8feaf27fc18414d75441467d411d6e6098a25"
integrity sha512-ZypexbfVUGTFxb0v+m1bUyy92DHe5SyYlnyY0msyms5zd3RwyvNgyxZZsXXgoyzlxjx5MiqtXUdhUfvQbe0A2Q==
dependencies:
parse-ms "^1.0.0"

process-nextick-args@~2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
Expand Down Expand Up @@ -12696,15 +12672,7 @@ react-docgen@^5.0.0:
node-dir "^0.1.10"
strip-indent "^3.0.0"

"react-dom18@npm:react-dom@^18.1.0":
version "18.1.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.1.0.tgz#7f6dd84b706408adde05e1df575b3a024d7e8a2f"
integrity sha512-fU1Txz7Budmvamp7bshe4Zi32d0ll7ect+ccxNu9FlObT605GOEB8BfO4tmRJ39R5Zj831VCpvQ05QPBW5yb+w==
dependencies:
loose-envify "^1.1.0"
scheduler "^0.22.0"

react-dom@^18.1.0:
"react-dom18@npm:react-dom@^18.1.0", react-dom@^18.1.0:
version "18.1.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.1.0.tgz#7f6dd84b706408adde05e1df575b3a024d7e8a2f"
integrity sha512-fU1Txz7Budmvamp7bshe4Zi32d0ll7ect+ccxNu9FlObT605GOEB8BfO4tmRJ39R5Zj831VCpvQ05QPBW5yb+w==
Expand Down Expand Up @@ -12763,14 +12731,7 @@ react-router@6.4.0:
dependencies:
"@remix-run/router" "1.0.0"

"react18@npm:react@^18.1.0":
version "18.1.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890"
integrity sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ==
dependencies:
loose-envify "^1.1.0"

react@^18.1.0:
"react18@npm:react@^18.1.0", react@^18.1.0:
version "18.1.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890"
integrity sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ==
Expand Down
Loading