Skip to content

Commit eb93129

Browse files
authored
Add React 19 support (#46)
* Adding support for React 19 * Add typings to the package * Updating circle ci config * Removing BrowserStack references from CI config since we aren't using it in this project
1 parent 5ef2e1e commit eb93129

File tree

7 files changed

+2923
-4172
lines changed

7 files changed

+2923
-4172
lines changed

.circleci/config.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@ version: 2
22

33
defaults: &defaults
44
docker:
5-
- image: circleci/node:8
5+
- image: cimg/node:lts-browsers
66

77
jobs:
88
build:
99
<<: *defaults
1010
steps:
1111
- checkout
12-
- run:
13-
name: export BROWSERSTACK_TUNNEL_IDENTIFIER
14-
command: |
15-
echo "export BROWSERSTACK_TUNNEL_IDENTIFIER=$CIRCLE_BUILD_NUM-$CIRCLE_NODE_INDEX" >> $BASH_ENV
16-
- run:
17-
name: browserstack tunnel
18-
command: ./bin/BrowserStackLocal-linux-x64 -localIdentifier $BROWSERSTACK_TUNNEL_IDENTIFIER $BROWSERSTACK_ACCESS_KEY
19-
background: true
2012
- restore_cache:
2113
keys:
2214
- npm-cache-{{ checksum "package-lock.json" }}
@@ -26,7 +18,7 @@ jobs:
2618
key: npm-cache-{{ checksum "package-lock.json" }}
2719
paths:
2820
- node_modules
29-
- run: CI=true npm run test:all
21+
- run: CI=true npm run test:19
3022
- run: npm run build
3123
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
3224
- persist_to_workspace:

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ The LogRocket React plugin allows you to search for sessions in which the user c
1111

1212
## Guide for React versions
1313

14+
### If using React 19
15+
`npm i --save logrocket-react@7`
16+
17+
### If using React 18
18+
`npm i --save logrocket-react@6`
19+
1420
### If using React 17
1521
`npm i --save logrocket-react@5`
1622

0 commit comments

Comments
 (0)