Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
920daed
feat: session replay support for react native
mario-launchdarkly Jan 27, 2026
efb9968
yarn cleanup
Vadman97 Jan 27, 2026
b2fcd82
yarn cleanup
Vadman97 Jan 27, 2026
8470707
feat: add Android support for session replay configuration and sessio…
mario-launchdarkly Jan 27, 2026
1377232
refactor: remove console logs and improve error handling in session r…
mario-launchdarkly Jan 27, 2026
d28c386
lint
Vadman97 Jan 27, 2026
f68ac91
refactor: register method wraps async calls in a try/catch block
mario-launchdarkly Jan 27, 2026
0c070eb
refactor: update plugin name and streamline session replay registration
mario-launchdarkly Jan 27, 2026
e6046ba
fix yarn
Vadman97 Jan 27, 2026
2f54166
fix yarn hoisting
Vadman97 Jan 28, 2026
2292760
fix: improve error handling in SessionReplayAdapter
mario-launchdarkly Jan 28, 2026
41685a0
feat: implement stop method for session replay in SessionReplayAdapter
mario-launchdarkly Jan 28, 2026
2c35ab7
fix: ensure session replay is stopped on the main actor
mario-launchdarkly Jan 28, 2026
b3e43d2
feat: enhance session replay start method with completion handling
mario-launchdarkly Jan 28, 2026
11dbe66
refactor: remove unused sessionReplayOptions variable in SessionRepla…
mario-launchdarkly Jan 28, 2026
4ecf3c0
feat: add configuration instructions for LaunchDarkly mobile key in R…
mario-launchdarkly Jan 28, 2026
b6cfab1
fix: correct glob pattern in lefthook configuration
mario-launchdarkly Jan 28, 2026
823f0d3
fix: remove debug logging from mobile key configuration
mario-launchdarkly Jan 28, 2026
e34ee9e
refactor: clean up commented-out code in SessionReplayAdapter
mario-launchdarkly Jan 28, 2026
dffeea5
feat: add stopSessionReplay method for session replay functionality
mario-launchdarkly Jan 28, 2026
68e3b0e
feat: enhance session replay options handling in SessionReplayAdapter
mario-launchdarkly Jan 28, 2026
52250a5
fix: improve error handling during session replay initialization
mario-launchdarkly Jan 28, 2026
2c67235
fix: prevent resource leaks by managing LDClient lifecycle
mario-launchdarkly Jan 28, 2026
02c1959
feat: disable swift internal ldclient
mario-launchdarkly Jan 28, 2026
49f4329
fix: improve session replay client management and error handling
mario-launchdarkly Jan 28, 2026
704406c
fix: streamline LDClient closure during session replay initialization
mario-launchdarkly Jan 28, 2026
6c867ff
fix: enhance LDClient deallocation handling during session replay ini…
mario-launchdarkly Jan 29, 2026
d4fee38
fix: validate mobile key input for session replay configuration
mario-launchdarkly Jan 29, 2026
7cb91aa
refactor: remove unused Hook type from SessionReplayPluginAdapter
mario-launchdarkly Jan 29, 2026
bc003fe
fix: improve LDClient cleanup during client replacement
mario-launchdarkly Jan 29, 2026
be91770
fix: prevent LDClient closure during client replacement
mario-launchdarkly Jan 29, 2026
0945806
build: spm points to tag version
mario-launchdarkly Jan 29, 2026
719d9d3
fix: client deallocation during start leaves ldclient unclosed
mario-launchdarkly Jan 30, 2026
c4bd103
docs: update README with session replay usage examples
mario-launchdarkly Jan 30, 2026
3070e1f
fix: correct synchronization method for client state updates in Sessi…
mario-launchdarkly Feb 3, 2026
2005e4b
chore: run prettier -w sdk
mario-launchdarkly Feb 3, 2026
806b0dd
lockfile
Vadman97 Feb 9, 2026
bd9b23f
package
Vadman97 Feb 9, 2026
e16eba8
chore: update dependencies in example project
mario-launchdarkly Feb 11, 2026
efb2ba0
chore: refine session replay plugin integration
mario-launchdarkly Feb 11, 2026
61a0359
fix: race conditions starting ldclient
mario-launchdarkly Feb 11, 2026
91bc210
chore: remove unused code
mario-launchdarkly Feb 11, 2026
cd537c8
fix: ldreplay state
mario-launchdarkly Feb 11, 2026
0952f84
fix: the ldclient.start completion handler writes is ldclientstarted …
mario-launchdarkly Feb 11, 2026
ee054df
fix: update sdkKey assignment logic in SessionReplayPluginAdapter for…
mario-launchdarkly Feb 11, 2026
508bd3c
fix: export SessionReplayOptions type for improved accessibility in t…
mario-launchdarkly Feb 11, 2026
b780952
fix: correct export of SessionReplayOptions type for consistency in t…
mario-launchdarkly Feb 12, 2026
653960e
fix: improve session replay state management in SessionReplayClientAd…
mario-launchdarkly Feb 12, 2026
6c293af
fix: refine ldReplayState management in SessionReplayClientAdapter
mario-launchdarkly Feb 12, 2026
2f62284
fix: reduce session replay adapter complexity
mario-launchdarkly Feb 12, 2026
274a95e
fix: the private start method just breaks without ever calling the co…
mario-launchdarkly Feb 12, 2026
b3bca72
fix: startOnline is false (no network I/O) and startWaitSeconds is 0
mario-launchdarkly Feb 12, 2026
2b28750
fix: timed out semantics
mario-launchdarkly Feb 12, 2026
c3751f9
chore: update yarn lock file
mario-launchdarkly Feb 12, 2026
e5d7576
turbo update
Vadman97 Feb 13, 2026
c0cf2e0
get tests working with new typescript
Vadman97 Feb 13, 2026
be3ee93
package
Vadman97 Feb 13, 2026
dad57fe
update turbo
Vadman97 Feb 17, 2026
31ed0f2
migrate eslint
Vadman97 Feb 17, 2026
de1939b
rrweb main
Vadman97 Feb 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://lefthook.dev/configuration/
#
# pre-push:
# jobs:
# - name: packages audit
# tags:
# - frontend
# - security
# run: yarn audit
#
# - name: gems audit
# tags:
# - backend
# - security
# run: bundle audit
#
# pre-commit:
# parallel: true
# jobs:
# - run: yarn eslint {staged_files}
# glob: "*.{js,ts,jsx,tsx}"
#
# - name: rubocop
# glob: "*.rb"
# exclude:
# - config/application.rb
# - config/routes.rb
# run: bundle exec rubocop --force-exclusion {all_files}
#
# - name: govet
# files: git ls-files -m
# glob: "*.go"
# run: go vet {files}
#
# - script: "hello.js"
# runner: node
#
# - script: "hello.go"
# runner: go run
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
"husky": "^9.1.7",
"prettier": "^3.5.3",
"pretty-quick": "^4.1.1",
"turbo": "^2.5.0",
"turbo": "2.8.7",
"typescript": "^5.8.3"
},
"resolutions": {
"turbo": "2.8.7",
"p-limit": "^3.1.0",
"p-locate": "^5.0.0",
"locate-path": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion rrweb
Submodule rrweb updated 2 files
+1 −1 package.json
+10 −10 turbo.json
2 changes: 1 addition & 1 deletion sdk/@launchdarkly/observability-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "tsc",
"codegen": "graphql-codegen",
"dev": "tsc --watch",
"test": "vitest"
"test": "vitest run"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.7",
Expand Down
15 changes: 15 additions & 0 deletions sdk/@launchdarkly/react-native-ld-session-replay/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
10 changes: 10 additions & 0 deletions sdk/@launchdarkly/react-native-ld-session-replay/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
root: true,
extends: ['@react-native', 'prettier'],
plugins: ['prettier'],
rules: {
'react/react-in-jsx-scope': 'off',
'prettier/prettier': 'error',
},
ignorePatterns: ['node_modules/', 'lib/'],
};
91 changes: 91 additions & 0 deletions sdk/@launchdarkly/react-native-ld-session-replay/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# OSX
#
.DS_Store

# XDE
.expo/

# VSCode
.vscode/
jsconfig.json

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local

# Android/IJ
#
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Expo
.expo/

# Turborepo
.turbo/

# generated by bob
lib/

# React Native Codegen
ios/generated
android/generated

# React Native Nitro Modules
nitrogen/

# Environment variables
.env
.env.local
.env.*.local
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
133 changes: 133 additions & 0 deletions sdk/@launchdarkly/react-native-ld-session-replay/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@

# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[INSERT CONTACT METHOD].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of
actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the
community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
Loading
Loading