Skip to content

Commit

Permalink
feat(samples): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-suwala committed Nov 7, 2024
1 parent 0d2d261 commit 0e917ca
Show file tree
Hide file tree
Showing 12 changed files with 20,137 additions and 16,688 deletions.
Binary file added .yarn/install-state.gz
Binary file not shown.
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-4.5.1.cjs
nodeLinker: "node-modules"
9 changes: 7 additions & 2 deletions lib/src/entities/membership.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Chat } from "./chat"
import PubNub, { ChannelMembershipObject, ObjectCustom, UUIDMembershipObject } from "pubnub"
import PubNub, {
ChannelMembershipObject,
ObjectCustom,
UUIDMembershipObject,
SetMembershipEvent,
} from "pubnub"
import { Channel } from "./channel"
import { Message } from "./message"
import { User } from "./user"
Expand Down Expand Up @@ -102,7 +107,7 @@ export class Membership {
) {
if (!memberships.length) throw "Cannot stream membership updates on an empty list"
const listener = {
objects: (event: PubNub.SetMembershipEvent<PubNub.ObjectCustom>) => {
objects: (event: SetMembershipEvent<ObjectCustom>) => {
if (event.message.type !== "membership") return
const membership = memberships.find(
(m) => m.channel.id === event.channel && m.user.id === event.message.data.uuid.id
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"typescript": "4.9.5"
},
"resolutions": {
"webpack": "5.88.2"
}
"send": "0.19.0",
"semver": "7.6.3",
"ws": "8.17.1"
},
"packageManager": "yarn@4.5.1"
}
14 changes: 7 additions & 7 deletions samples/access-manager-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/common": "10.4.7",
"@nestjs/core": "10.4.7",
"@nestjs/platform-express": "10.4.7",
"@pubnub/chat": "*",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1",
"@pubnub/chat": "*"
"rxjs": "^7.8.1"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/cli": "10.4.7",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@nestjs/testing": "10.4.7",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
Expand Down
3 changes: 1 addition & 2 deletions samples/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.37.0"
},
"scripts": {}
}
}
2 changes: 1 addition & 1 deletion samples/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.3.4",
"typescript": "5.0.2",
"vite": "4.3.9"
"vite": "5.4.10"
}
}
3 changes: 2 additions & 1 deletion samples/react-native-group-chat/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"web": {
"favicon": "./assets/favicon.png"
}
},
"plugins": ["expo-font"]
}
}
38 changes: 20 additions & 18 deletions samples/react-native-group-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,48 @@
},
"dependencies": {
"@expo-google-fonts/roboto": "^0.2.3",
"@expo/vector-icons": "^13.0.0",
"@expo/webpack-config": "^19.0.0",
"@expo/vector-icons": "^14.0.3",
"@expo/webpack-config": "~19.0.1",
"@gorhom/bottom-sheet": "^4.4.7",
"@pubnub/chat": "*",
"@react-navigation/bottom-tabs": "^6.5.8",
"@react-navigation/native": "^6.1.7",
"@react-navigation/stack": "^6.3.17",
"expo": "~49.0.8",
"expo-clipboard": "~4.3.1",
"expo-font": "~11.4.0",
"expo-status-bar": "~1.6.0",
"expo": "^51.0.38",
"expo-clipboard": "~6.0.3",
"expo-font": "~12.0.10",
"expo-status-bar": "~1.12.1",
"nanoid": "4.0.2",
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-gesture-handler": "~2.12.0",
"react-native-get-random-values": "1.9.0",
"react-native-gifted-chat": "^2.4.0",
"react-native-reanimated": "~3.3.0",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-svg": "13.9.0",
"react-dom": "18.2.0",
"react-native": "0.74.5",
"react-native-gesture-handler": "~2.16.1",
"react-native-get-random-values": "~1.11.0",
"react-native-gifted-chat": "2.6.4",
"react-native-reanimated": "3.10.1",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react-native-svg": "15.2.0",
"react-native-toast-message": "^2.2.0",
"react-native-typing-animation": "^0.1.7",
"react-native-web": "~0.19.6"
"react-native-web": "~0.19.10"
},
"devDependencies": {
"@babel/core": "7.22.15",
"@babel/core": "^7.24.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-syntax-export-default-from": "^7.25.9",
"@babel/plugin-transform-arrow-functions": "^7.22.5",
"@babel/plugin-transform-shorthand-properties": "^7.22.5",
"@babel/plugin-transform-template-literals": "^7.22.5",
"@svgr/webpack": "^8.1.0",
"@types/react": "~18.0.14",
"@types/react": "~18.2.79",
"babel-plugin-inline-react-svg": "^2.0.2",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"react-native-svg-transformer": "^1.1.0",
"typescript": "^5.1.3"
"typescript": "~5.3.3"
},
"private": true
}
118 changes: 118 additions & 0 deletions samples/react-native-group-chat/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<!DOCTYPE html>
<html lang="%LANG_ISO_CODE%">
<head>
<meta charset="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<!--
This viewport works for phones with notches.
It's optimized for gestures by disabling global zoom.
-->
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1.00001, viewport-fit=cover"
/>
<title>%WEB_TITLE%</title>
<style>
/**
* Extend the react-native-web reset:
* https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/initialRules.js
*/
html,
body,
#root {
width: 100%;
/* To smooth any scrolling behavior */
-webkit-overflow-scrolling: touch;
margin: 0px;
padding: 0px;
/* Allows content to fill the viewport and go beyond the bottom */
min-height: 100%;
}
#root {
flex-shrink: 0;
flex-basis: auto;
flex-grow: 1;
display: flex;
flex: 1;
}

html {
scroll-behavior: smooth;
/* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */
-webkit-text-size-adjust: 100%;
height: calc(100% + env(safe-area-inset-top));
}

body {
display: flex;
/* Allows you to scroll below the viewport; default value is visible */
overflow-y: auto;
overscroll-behavior-y: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-ms-overflow-style: scrollbar;
}
/* Enable for apps that support dark-theme */
/*@media (prefers-color-scheme: dark) {
body {
background-color: black;
}
}*/
</style>
<script>const global = globalThis;</script>
</head>

<body>
<!--
A generic no script element with a reload button and a message.
Feel free to customize this however you'd like.
-->
<noscript>
<form
action=""
style="
background-color: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
"
>
<div
style="
font-size: 18px;
font-family: Helvetica, sans-serif;
line-height: 24px;
margin: 10%;
width: 80%;
"
>
<p>Oh no! It looks like JavaScript is not enabled in your browser.</p>
<p style="margin: 20px 0;">
<button
type="submit"
style="
background-color: #4630eb;
border-radius: 100px;
border: none;
box-shadow: none;
color: #fff;
cursor: pointer;
font-weight: bold;
line-height: 20px;
padding: 6px 16px;
"
>
Reload
</button>
</p>
</div>
</form>
</noscript>
<!-- The root element for your Expo app. -->
<div id="root"></div>
</body>
</html>
Loading

0 comments on commit 0e917ca

Please sign in to comment.