Skip to content

Commit

Permalink
chore: resolve conflicts from develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Oct 23, 2023
2 parents e9d865d + e25a8d8 commit 973abdf
Show file tree
Hide file tree
Showing 14 changed files with 81 additions and 107 deletions.
16 changes: 16 additions & 0 deletions docusaurus/docs/reactnative/basics/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,19 @@ This is likely due to ProGuard removing reanimated 2 related classes. If you're
On newer MacBooks with the Apple M1 SoC, there are a few required steps that need to be followed for an app to build. The user [aiba](https://github.com/aiba) has written [a guide](https://github.com/aiba/react-native-m1) to make the necessary changes to your project.
The iOS build version can be changed to suit your needs, but keep in mind to change the version to the same major and minor version consistently throughout the guide.
## React Native Video failing with Xcode 17
Following error is a known issue with using Xcode 17 and react-native-video dependency.
```
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
```
To temporarily fix this, you can follow the solution as per mentioned in the description of [this issue on GitHub](https://github.com/react-native-video/react-native-video/issues/3154).
Alternatively, you can apply [this patch](https://github.com/react-native-video/react-native-video/files/11932302/react-native-video%2B6.0.0-alpha.6.patch) using the [patch-package](https://www.npmjs.com/package/patch-package) library to the package `react-native-video`.
:::note
This shall be fixed soon with the new alpha release of the package `react-native-video`.
:::
14 changes: 14 additions & 0 deletions examples/SampleApp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

### [1.22.11](https://github.com/GetStream/stream-chat-react-native/compare/[email protected]@v1.22.11) (2023-10-20)


### Workspaces

* Following linked packages updated: [stream-chat-react-native]

### [1.22.10](https://github.com/GetStream/stream-chat-react-native/compare/[email protected]@v1.22.10) (2023-10-19)


### Workspaces

* Following linked packages updated: [stream-chat-react-native]

### [1.22.9](https://github.com/GetStream/stream-chat-react-native/compare/[email protected]@v1.22.9) (2023-10-11)


Expand Down
2 changes: 1 addition & 1 deletion examples/SampleApp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sampleapp",
"version": "1.22.9",
"version": "1.22.11",
"private": true,
"repository": {
"type": "git",
Expand Down
75 changes: 0 additions & 75 deletions examples/SampleApp/useChatClient.ts

This file was deleted.

14 changes: 14 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

### [5.19.2](https://github.com/GetStream/stream-chat-react-native/compare/v5.19.1...v5.19.2) (2023-10-20)


### Bug Fixes

* issue with String.replaceAll being undefined function ([#2271](https://github.com/GetStream/stream-chat-react-native/issues/2271)) ([af9050a](https://github.com/GetStream/stream-chat-react-native/commit/af9050a3fb46346ed5d0ba387b42d5a85d937e93))

### [5.19.1](https://github.com/GetStream/stream-chat-react-native/compare/v5.19.0...v5.19.1) (2023-10-19)


### Bug Fixes

* update stream-chat to fix failing get requests with undefined param ([#2269](https://github.com/GetStream/stream-chat-react-native/issues/2269)) ([a85d71a](https://github.com/GetStream/stream-chat-react-native/commit/a85d71af17c87aaa0703a6d71bce0d4bd704266e))

## [5.19.0](https://github.com/GetStream/stream-chat-react-native/compare/v5.18.1...v5.19.0) (2023-10-11)


Expand Down
4 changes: 2 additions & 2 deletions package/expo-package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stream-chat-expo",
"description": "The official Expo SDK for Stream Chat, a service for building chat applications",
"version": "5.19.0",
"version": "5.19.2",
"author": {
"company": "Stream.io Inc",
"name": "Stream.io Inc"
Expand All @@ -10,7 +10,7 @@
"main": "src/index.js",
"types": "types/index.d.ts",
"dependencies": {
"stream-chat-react-native-core": "5.19.0"
"stream-chat-react-native-core": "5.19.2"
},
"peerDependencies": {
"@react-native-community/netinfo": ">=6.0.0",
Expand Down
18 changes: 9 additions & 9 deletions package/expo-package/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3034,10 +3034,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==

[email protected].0:
version "5.19.0"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.19.0.tgz#8408f64c7d4eb97fc315e865b0759092e17c09ca"
integrity sha512-p/+Rdo18JIoBkt+BovFnNezh18DXq+/k6WClx1JPgjcJg35OkqXx/W47WLLWuurBw/NR/Il9orFj7JRO/Ebddg==
[email protected].1:
version "5.19.1"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.19.1.tgz#937ab2d96eb6b8c9e67427a64363da9cb1970a84"
integrity sha512-N8QNlwMSL5DH+h/NkVaOzfnwEj3oVcxmqRHYsWR+iD2J2DqEB2TGZYh2Rs11z1dmTnyJJLpAVa3eUCIlzSCw9A==
dependencies:
"@babel/runtime" "^7.12.5"
"@gorhom/bottom-sheet" "4.4.8"
Expand All @@ -3051,12 +3051,12 @@ [email protected]:
path "0.12.7"
react-native-markdown-package "1.8.2"
react-native-url-polyfill "^1.3.0"
stream-chat "~8.12.2"
stream-chat "~8.13.1"

stream-chat@~8.12.2:
version "8.12.4"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.12.4.tgz#3c2044ceb74b4be8bd06191963723d7d47014ec1"
integrity sha512-YaNuQNqiJcF82+VKAGNSV8wv0+Th73kHIV4Owiu2Bvhwqt7398Ertr+bxW4WXkBtwKoAeOZOc0oacrUKWQAuKQ==
stream-chat@~8.13.1:
version "8.13.1"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.13.1.tgz#9781a456487f376d7c9c98271a4f4c926a9e6cf8"
integrity sha512-k0tOmtlLsvVxpZ2EuR+Z/qQiyCHOIjACqwnBZnT1ERA1t3549U2vzkUE6l2tN2VGAgUP1tDl00FhZO5JrAkMKw==
dependencies:
"@babel/runtime" "^7.16.3"
"@types/jsonwebtoken" "~9.0.0"
Expand Down
4 changes: 2 additions & 2 deletions package/native-package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stream-chat-react-native",
"description": "The official React Native SDK for Stream Chat, a service for building chat applications",
"version": "5.19.0",
"version": "5.19.2",
"author": {
"company": "Stream.io Inc",
"name": "Stream.io Inc"
Expand All @@ -11,7 +11,7 @@
"types": "types/index.d.ts",
"dependencies": {
"es6-symbol": "^3.1.3",
"stream-chat-react-native-core": "5.19.0"
"stream-chat-react-native-core": "5.19.2"
},
"peerDependencies": {
"@react-native-camera-roll/camera-roll": ">=5.0.0",
Expand Down
18 changes: 9 additions & 9 deletions package/native-package/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4379,10 +4379,10 @@ statuses@~1.5.0:
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==

[email protected].0:
version "5.19.0"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.19.0.tgz#8408f64c7d4eb97fc315e865b0759092e17c09ca"
integrity sha512-p/+Rdo18JIoBkt+BovFnNezh18DXq+/k6WClx1JPgjcJg35OkqXx/W47WLLWuurBw/NR/Il9orFj7JRO/Ebddg==
[email protected].1:
version "5.19.1"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.19.1.tgz#937ab2d96eb6b8c9e67427a64363da9cb1970a84"
integrity sha512-N8QNlwMSL5DH+h/NkVaOzfnwEj3oVcxmqRHYsWR+iD2J2DqEB2TGZYh2Rs11z1dmTnyJJLpAVa3eUCIlzSCw9A==
dependencies:
"@babel/runtime" "^7.12.5"
"@gorhom/bottom-sheet" "4.4.8"
Expand All @@ -4396,12 +4396,12 @@ [email protected]:
path "0.12.7"
react-native-markdown-package "1.8.2"
react-native-url-polyfill "^1.3.0"
stream-chat "~8.12.2"
stream-chat "~8.13.1"

stream-chat@~8.12.2:
version "8.12.4"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.12.4.tgz#3c2044ceb74b4be8bd06191963723d7d47014ec1"
integrity sha512-YaNuQNqiJcF82+VKAGNSV8wv0+Th73kHIV4Owiu2Bvhwqt7398Ertr+bxW4WXkBtwKoAeOZOc0oacrUKWQAuKQ==
stream-chat@~8.13.1:
version "8.13.1"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.13.1.tgz#9781a456487f376d7c9c98271a4f4c926a9e6cf8"
integrity sha512-k0tOmtlLsvVxpZ2EuR+Z/qQiyCHOIjACqwnBZnT1ERA1t3549U2vzkUE6l2tN2VGAgUP1tDl00FhZO5JrAkMKw==
dependencies:
"@babel/runtime" "^7.16.3"
"@types/jsonwebtoken" "~9.0.0"
Expand Down
4 changes: 2 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stream-chat-react-native-core",
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
"version": "5.19.0",
"version": "5.19.2",
"author": {
"company": "Stream.io Inc",
"name": "Stream.io Inc"
Expand Down Expand Up @@ -79,7 +79,7 @@
"path": "0.12.7",
"react-native-markdown-package": "1.8.2",
"react-native-url-polyfill": "^1.3.0",
"stream-chat": "~8.12.2"
"stream-chat": "~8.13.1"
},
"peerDependencies": {
"react-native-quick-sqlite": ">=5.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const getMentionUsers = <
}, '');

// escape special characters
return mentionUserString.replaceAll(/[.*+?^${}()|[\]\\]/g, '\\$&');
return mentionUserString.replace(/[.*+?^${}()|[\]\\]/g, function (match) {
return '\\' + match;
});
}

return '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ export const renderText = <
if (userName) {
acc += `${acc.length ? '|' : ''}@${userName}`;
}
return acc.replaceAll(/[.*+?^${}()|[\]\\]/g, '\\$&');

return acc.replace(/[.*+?^${}()|[\]\\]/g, function (match) {
return '\\' + match;
});
}, '')
: '';

Expand Down
2 changes: 1 addition & 1 deletion package/src/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "5.19.0"
"version": "5.19.2"
}
8 changes: 4 additions & 4 deletions package/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9499,10 +9499,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==

stream-chat@~8.12.2:
version "8.12.2"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.12.2.tgz#c1906a15280ce8114639b0ee338d2e3722d1f572"
integrity sha512-Fn13nh1g2ZkW94tzH3BF0E87hS8cI6nBIH1UlgkUodRx4zmcNKH8L7dvuEFEWzsxb5ZBA4j3rwKCQfLynMuUsQ==
stream-chat@~8.13.1:
version "8.13.1"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.13.1.tgz#9781a456487f376d7c9c98271a4f4c926a9e6cf8"
integrity sha512-k0tOmtlLsvVxpZ2EuR+Z/qQiyCHOIjACqwnBZnT1ERA1t3549U2vzkUE6l2tN2VGAgUP1tDl00FhZO5JrAkMKw==
dependencies:
"@babel/runtime" "^7.16.3"
"@types/jsonwebtoken" "~9.0.0"
Expand Down

0 comments on commit 973abdf

Please sign in to comment.