Skip to content

Commit 057e5d2

Browse files
authored
chore: eslint and dependency upgrade in the sdk (#2974)
* chore: upgrade SampleApp and do necessary changes for 0.77 * chore: update more libs * chore: upgrade reanimated and rngh * chore: upgrade react-navigation * chore: bump other deps * chore: bump eslint and all other dev deps * chore: migrate AppDelegate to Swift * chore: upgrade typescript app to RN 0.77 * chore: upgrade eslint & friends on typescript app * chore: migrate AppDelegate to Swift in typescript app * fix: add tslint rules and fix some * chore: upgrade plugins decl a bit and fix all broken eslint issues * fix: some more prettier errors * chore: improve typescript app config too * chore: upgrade eslint and all plugins, add new config * chore: fix all lint issues with new versions and update rules * fix: add warns for prettier * fix: turn no-undef off * chore: bump prettier on root as well * chore: bump node runner to 22.x, upgrade actions and sample apps * fix: revert change to actually update cache * fix: add eslint command for debugging * fix: print versions for debugging * fix: temporarily remove prettier warn * fix: more changes for debugging * chore: add debug log level * fix: bump prettier config and fix rule * fix: remove rule again * fix: try runnint --write * fix: add extra rules and revert fix * chore: bump prettier version again * fix: try to debug what was fixed * fix: actually fix the lint issue * chore: revert extra step * fix: change prettire rule to warn again * chore: update comment * chore: remove sorting plugin * fix: remove rogue rule
1 parent 460e81e commit 057e5d2

File tree

191 files changed

+3200
-1936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+3200
-1936
lines changed

.github/workflows/changelog-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# pulls all tags (needed for semantic release to correctly version)
1919
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424
registry-url: 'https://registry.npmjs.org'

.github/workflows/check-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [18.x]
16+
node-version: [22.x]
1717
steps:
1818
- uses: actions/checkout@v3
1919
with:
2020
# Disabling shallow clone is recommended for improving relevancy of reporting
2121
fetch-depth: 0
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
- name: Install && Build - SDK and Sample App

.github/workflows/next-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [18.x]
13+
node-version: [22.x]
1414
steps:
1515
- uses: actions/checkout@v2
1616
with:
@@ -19,7 +19,7 @@ jobs:
1919
# pulls all tags (needed for semantic release to correctly version)
2020
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
registry-url: 'https://registry.npmjs.org'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [18.x]
13+
node-version: [22.x]
1414
steps:
1515
- uses: actions/checkout@v2
1616
with:
@@ -20,7 +20,7 @@ jobs:
2020
# pulls all tags (needed for semantic release to correctly version)
2121
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v2
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
registry-url: 'https://registry.npmjs.org'

.github/workflows/sample-distribution.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install && Build - SDK and Sample App
2626
uses: ./.github/actions/install-and-build-sdk
2727
- name: Cache iOS pods
28-
uses: actions/cache@v2
28+
uses: actions/cache@v4
2929
with:
3030
path: examples/SampleApp/ios/Pods
3131
key: ${{ runner.os }}-pods-${{ hashFiles('examples/SampleApp/ios/Podfile.lock') }}

.github/workflows/sdk-size-metrics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727

2828
- uses: ./.github/actions/ruby-cache
2929

30-
- uses: actions/setup-node@v3
30+
- uses: actions/setup-node@v4
3131
with:
32-
node-version: 18.x
32+
node-version: 22.x
3333
cache: 'yarn'
3434

3535
- name: Run SDK Size Metrics

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v22

examples/ExpoMessaging/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7358,10 +7358,10 @@ [email protected], stream-buffers@~2.2.0:
73587358
version "0.0.0"
73597359
uid ""
73607360

7361-
7362-
version "6.6.3"
7363-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.3.tgz#580225cbcd7a9fbfdb3461f76ef6784908b1533e"
7364-
integrity sha512-Oe5AYvamlI2qKO+VjcthaIm/J6+pCQRsVVn5EG5fiakya2sJPF2L3hGBPOjo6MNLe9oz7QKP7jp8U61j9vsqLA==
7361+
7362+
version "6.6.4"
7363+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.4.tgz#f15c518148640efa30975abf4ae5cda648d8b1ed"
7364+
integrity sha512-YT3SY/QHwKboEKbvpe7xermyDsvwNAxe7pbV9VZzvayu066/vTk17uYw1RCGFcLQQsnKNJj8ZFt8j0ZLql4exQ==
73657365
dependencies:
73667366
"@gorhom/bottom-sheet" "^5.0.6"
73677367
dayjs "1.10.5"

examples/SampleApp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"start": "react-native start",
1313
"test": "jest",
1414
"lint": "eslint .",
15+
"eslint": "eslint .",
1516
"lint-fix": "eslint . --fix",
1617
"extract-changelog": "FILTER_PATH='examples/SampleApp' TAG_FORMAT=$npm_package_name'@v${version}' node ../../release/extract-changelog.js",
1718
"bootstrap": "yarn install",

examples/SampleApp/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7560,10 +7560,10 @@ statuses@~1.5.0:
75607560
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
75617561
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
75627562

7563-
7564-
version "6.6.2"
7565-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.2.tgz#a32bcf56f1675c60ceeef4507ed43120f659d52d"
7566-
integrity sha512-JeDMaVGEUCKYmG+qcbCsUPB7HyxYd4pEAMFXG0O180JOMAqemyjXMquKvGCGF8Q4YZAKUPV71VC/vGLpPDnGQg==
7563+
7564+
version "6.6.4"
7565+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.4.tgz#f15c518148640efa30975abf4ae5cda648d8b1ed"
7566+
integrity sha512-YT3SY/QHwKboEKbvpe7xermyDsvwNAxe7pbV9VZzvayu066/vTk17uYw1RCGFcLQQsnKNJj8ZFt8j0ZLql4exQ==
75677567
dependencies:
75687568
"@gorhom/bottom-sheet" "^5.0.6"
75697569
dayjs "1.10.5"

0 commit comments

Comments
 (0)