Skip to content

Commit

Permalink
[chore] updating to v5 and adding migration notest to provider/inbox/…
Browse files Browse the repository at this point in the history
…toast
  • Loading branch information
bwebs committed Feb 29, 2024
1 parent 64fba8a commit 2296aaa
Show file tree
Hide file tree
Showing 17 changed files with 74 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/client-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/client-api",
"version": "4.11.2",
"version": "5.0.0",
"description": "",
"main": "dist/index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/client-graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/client-graphql",
"version": "4.11.2",
"version": "5.0.0",
"description": "",
"main": "dist/index.js",
"types": "typings/index.d.ts",
Expand Down
12 changes: 6 additions & 6 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/components",
"version": "4.11.2",
"version": "5.0.0",
"private": true,
"description": "Beautiful, easy React toast notifications",
"author": "Courier <[email protected]>",
Expand All @@ -18,11 +18,11 @@
"license": "MIT",
"dependencies": {
"@trycourier/courier": "^1.3.0",
"@trycourier/react-brand-designer": "^4.11.2",
"@trycourier/react-inbox": "^4.11.2",
"@trycourier/react-preferences": "^4.11.2",
"@trycourier/react-provider": "^4.11.2",
"@trycourier/react-toast": "^4.11.2",
"@trycourier/react-brand-designer": "^5.0.0",
"@trycourier/react-inbox": "^5.0.0",
"@trycourier/react-preferences": "^5.0.0",
"@trycourier/react-provider": "^5.0.0",
"@trycourier/react-toast": "^5.0.0",
"babel-loader": "^8.0.6",
"babel-preset-preact": "^2.0.0",
"camel-case": "^4.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-brand-designer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-brand-designer",
"version": "4.11.2",
"version": "5.0.0",
"description": "Embeddable brand designer for multi-channel notifications",
"homepage": "https://github.com/trycourier/courier-react/tree/main/packages/react-elements#readme",
"license": "ISC",
Expand Down Expand Up @@ -29,7 +29,7 @@
"url": "https://github.com/trycourier/courier-react/issues"
},
"dependencies": {
"@trycourier/react-elements": "^4.11.2",
"@trycourier/react-elements": "^5.0.0",
"rimraf": "^3.0.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-elements/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-elements",
"version": "4.11.2",
"version": "5.0.0",
"description": "Shareable components for each Courier package",
"author": "Drew Youngwerth <[email protected]>",
"homepage": "https://github.com/trycourier/courier-react/tree/main/packages/react-elements#readme",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-hooks",
"version": "4.11.2",
"version": "5.0.0",
"description": "",
"main": "dist/index.js",
"types": "typings/index.d.ts",
Expand All @@ -20,7 +20,7 @@
"concat-md": "^0.3.5"
},
"dependencies": {
"@trycourier/client-graphql": "^4.11.2",
"@trycourier/client-graphql": "^5.0.0",
"deep-extend": "^0.6.0",
"rimraf": "^3.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-inbox-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-inbox-next",
"version": "4.11.2",
"version": "5.0.0",
"description": "",
"private": true,
"main": "dist/index.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/react-inbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ yarn add @trycourier/react-inbox

> @trycourier/react-provider is a peer dependeny of @trycourier/react-inbox and must also be installed
### [Version 5.X CSP Migration](#version-5-migration)

We've released new subdomains to power Inbox and Toast. This migration only applies to Inbox and Toast users who applied our old URLs to their Content Security Policy.

| Before | After | Usage |
| ------------------------------------------------------ | -------------------------- | --------------------------- |
| https://api.courier.com | https://api.courier.com | Brands and User Preferences |
| wss://1x60p1o3h8.execute-api.us-east-1.amazonaws.com | wss://realtime.courier.com | Websockets |
| https://fxw3r7gdm9.execute-api.us-east-1.amazonaws.com | https://inbox.courier.com | Inbox Messages |

### [Courier Provider](#courier-provider)

In order for the `Inbox` component to be placed in the dom you will need to use the `CourierProvider`. This will handle context and give us access Courier's backend API.
Expand Down
10 changes: 5 additions & 5 deletions packages/react-inbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-inbox",
"version": "4.11.2",
"version": "5.0.0",
"description": "",
"main": "dist/index.js",
"types": "typings/index.d.ts",
Expand All @@ -20,10 +20,10 @@
"dependencies": {
"@fontsource/poppins": "^4.5.9",
"@tippyjs/react": "^4.2.3",
"@trycourier/client-graphql": "^4.11.2",
"@trycourier/react-elements": "^4.11.2",
"@trycourier/react-hooks": "^4.11.2",
"@trycourier/react-preferences": "^4.11.2",
"@trycourier/client-graphql": "^5.0.0",
"@trycourier/react-elements": "^5.0.0",
"@trycourier/react-hooks": "^5.0.0",
"@trycourier/react-preferences": "^5.0.0",
"classnames": "^2.2.6",
"date-fns": "^2.19.0",
"deep-extend": "^0.6.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-preferences/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-preferences",
"version": "4.11.2",
"version": "5.0.0",
"main": "dist/index.js",
"types": "typings/index.d.ts",
"scripts": {
Expand All @@ -23,7 +23,7 @@
],
"license": "ISC",
"dependencies": {
"@trycourier/react-hooks": "^4.11.2",
"@trycourier/react-hooks": "^5.0.0",
"react-toggle": "^4.1.2",
"styled-components": "^5.3.6"
}
Expand Down
11 changes: 11 additions & 0 deletions packages/react-provider/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Version 5.X CSP Migration](#version-5-csp-migration)
- [Props](#props)
- [Listening to Messsages](#listening-to-messsages)
- [Dark Mode / Theme Variables](#dark-mode--theme-variables)
Expand All @@ -9,6 +10,16 @@

<a name="0propsmd"></a>

### [Version 5.X CSP Migration](#version-5-migration)

We've released new subdomains to power Inbox and Toast. This migration only applies to Inbox and Toast users who applied our old URLs to their Content Security Policy.

| Before | After | Usage |
| ------------------------------------------------------ | -------------------------- | --------------------------- |
| https://api.courier.com | https://api.courier.com | Brands and User Preferences |
| wss://1x60p1o3h8.execute-api.us-east-1.amazonaws.com | wss://realtime.courier.com | Websockets |
| https://fxw3r7gdm9.execute-api.us-east-1.amazonaws.com | https://inbox.courier.com | Inbox Messages |

### [Props](#props)

```ts
Expand Down
10 changes: 10 additions & 0 deletions packages/react-provider/docs/0.props.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### [Version 5.X CSP Migration](#version-5-migration)

We've released new subdomains to power Inbox and Toast. This migration only applies to Inbox and Toast users who applied our old URLs to their Content Security Policy.

| Before | After | Usage |
| ------------------------------------------------------ | -------------------------- | --------------------------- |
| https://api.courier.com | https://api.courier.com | Brands and User Preferences |
| wss://1x60p1o3h8.execute-api.us-east-1.amazonaws.com | wss://realtime.courier.com | Websockets |
| https://fxw3r7gdm9.execute-api.us-east-1.amazonaws.com | https://inbox.courier.com | Inbox Messages |

### [Props](#props)

```ts
Expand Down
4 changes: 2 additions & 2 deletions packages/react-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-provider",
"version": "4.11.2",
"version": "5.0.0",
"description": "",
"main": "dist/index.js",
"types": "typings/index.d.ts",
Expand All @@ -16,7 +16,7 @@
},
"license": "ISC",
"dependencies": {
"@trycourier/client-graphql": "^4.11.2",
"@trycourier/client-graphql": "^5.0.0",
"buffer": "^6.0.3",
"jwt-decode": "^3.1.2",
"react-use": "^17.2.1",
Expand Down
10 changes: 10 additions & 0 deletions packages/react-toast/docs/1.overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ You can use the [Courier Push integration](https://app.courier.com/integrations/

A channel/event combination is simply a stream on which a particular client is listening for toast notifications. A client must be subscribed to a channel and event in order to receive a notification.

## [Version 5.X CSP Migration](#version-5-migration)

We've released new subdomains to power Inbox and Toast. This migration only applies to Inbox and Toast users who applied our old URLs to their Content Security Policy.

| Before | After | Usage |
| ------------------------------------------------------ | -------------------------- | --------------------------- |
| https://api.courier.com | https://api.courier.com | Brands and User Preferences |
| wss://1x60p1o3h8.execute-api.us-east-1.amazonaws.com | wss://realtime.courier.com | Websockets |
| https://fxw3r7gdm9.execute-api.us-east-1.amazonaws.com | https://inbox.courier.com | Inbox Messages |

## [3.X Breaking Changes](#3x-breaking-changes)

We've implemented a new API which has a little bit different format for the messages that come through the websocket and this in turn means some of the function calls and hooks have a different API.
Expand Down
4 changes: 2 additions & 2 deletions packages/react-toast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/react-toast",
"version": "4.11.2",
"version": "5.0.0",
"description": "Beautiful, easy React toast notifications",
"main": "dist/index.js",
"types": "typings/index.d.ts",
Expand All @@ -24,7 +24,7 @@
"concat-md": "^0.3.5"
},
"dependencies": {
"@trycourier/react-hooks": "^4.11.2",
"@trycourier/react-hooks": "^5.0.0",
"deep-extend": "^0.6.0",
"markdown-to-jsx": "7.1.7",
"react-toastify": "^9.1.3",
Expand Down
14 changes: 7 additions & 7 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trycourier/storybook",
"version": "4.11.2",
"version": "5.0.0",
"private": true,
"description": "Beautiful, easy React toast notifications",
"author": "Courier <[email protected]>",
Expand All @@ -23,12 +23,12 @@
"@storybook/addon-links": "^6.5.9",
"@storybook/addon-viewport": "^6.5.9",
"@storybook/react": "^6.5.9",
"@trycourier/components": "^4.11.2",
"@trycourier/react-brand-designer": "^4.11.2",
"@trycourier/react-inbox": "^4.11.2",
"@trycourier/react-preferences": "^4.11.2",
"@trycourier/react-provider": "^4.11.2",
"@trycourier/react-toast": "^4.11.2",
"@trycourier/components": "^5.0.0",
"@trycourier/react-brand-designer": "^5.0.0",
"@trycourier/react-inbox": "^5.0.0",
"@trycourier/react-preferences": "^5.0.0",
"@trycourier/react-provider": "^5.0.0",
"@trycourier/react-toast": "^5.0.0",
"react-frame-component": "^5.2.3",
"react-markdown": "^8.0.1",
"rehype-raw": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@trycourier/types",
"private": true,
"version": "4.11.2",
"version": "5.0.0",
"main": "index.d.ts",
"types": "index.d.ts",
"scripts": {}
Expand Down

0 comments on commit 2296aaa

Please sign in to comment.