Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: RN streamer connection in background and foreground. #360

Merged
Merged
Changes from 3 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2c7ac96
feat: Implement common support for auto environment attributes.
yusinto Jan 25, 2024
53d4358
feat: Implement common client side support for auto environment attri…
yusinto Jan 25, 2024
dc3f3af
chore: Fixed server sdk tests due to mock api changes for auto env.
yusinto Jan 25, 2024
e552def
feat: React-native support for auto-env attributes.
yusinto Jan 25, 2024
2028f4c
chore: Fix broken common tests due to mocks api changes.
yusinto Jan 25, 2024
e8989f1
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 25, 2024
23a11dc
Merge branch 'main' into yus/client-sdk-auto-env
yusinto Jan 25, 2024
1156f25
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 25, 2024
adc1de1
fix: Remove sdk data as fallback for auto env. Strip falsy values and…
yusinto Jan 26, 2024
04bb98f
fix: Respect customer provided ld_application and ld_device contexts.
yusinto Jan 26, 2024
75bb880
fix: Add mandatory autoEnvAttributes argument to LDClient constructor.
yusinto Jan 26, 2024
5243f3f
chore: Move AutoEnvAttributes enum to common.
yusinto Jan 26, 2024
22b97bd
fix: Make all device.os properties optional.
yusinto Jan 26, 2024
d365184
fix: Added mandatory AutoEnvAttributes constructor arg.
yusinto Jan 26, 2024
b47a5e2
chore: Log warning if auto env attributes are not added because they …
yusinto Jan 26, 2024
d1f0310
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 26, 2024
ebc670a
chore: Remove unused import in platform mock.
yusinto Jan 26, 2024
b5ce097
chore: Fix duplicated test name.
yusinto Jan 26, 2024
ccb8419
fix: Implemented separate namespaces for anon and contexts. Fixed bug…
yusinto Jan 27, 2024
125f82b
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 27, 2024
4e7f1c1
fix: Hardcode @types/node version to avoid crypto typings but in v20.…
yusinto Jan 28, 2024
caa1f14
chore: Add comment to explain harcoding of @types.node.
yusinto Jan 28, 2024
6ef3a87
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 28, 2024
4375509
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 28, 2024
ef15c18
Merge branch 'yus/rn-sdk-auto-env' of github.com:launchdarkly/js-core…
yusinto Jan 28, 2024
189d379
fix: Import AutoEnvAttributes from the rn sdk instead of client common.
yusinto Jan 28, 2024
31643eb
fix: Add tsconfig jsx react setting.
yusinto Jan 28, 2024
1788a21
chore: Remove hardcoded @types/node version.
yusinto Jan 29, 2024
f851823
Merge branch 'yus/client-sdk-auto-env' into yus/rn-sdk-auto-env
yusinto Jan 29, 2024
d9dc2e5
chore: Deleted redundant react-native-sse files and folder.
yusinto Jan 30, 2024
f6ca89c
fix: Added rn sdk streaming jitter backoff.
yusinto Jan 30, 2024
50c884c
chore: Added backoff jitter tests.
yusinto Jan 31, 2024
aaa7f94
chore: Use Math.min instead of logical operators for backoff.
yusinto Jan 31, 2024
704d3f2
chore: Skeletal background foreground detection logic.
yusinto Jan 31, 2024
a2395c5
chore: Add debounce function to common utils.
yusinto Jan 31, 2024
4a2dcf2
chore: Added EventSource getStatus. Added useAppState hook.
yusinto Jan 31, 2024
75ca7f6
chore: Move isEventSourceClosed function to useAppState hook.
yusinto Jan 31, 2024
dff6153
chore: Remove explicit debounce delay and use default instead. Remove…
yusinto Feb 1, 2024
cd6e4d3
chore: Add app state tests.
yusinto Feb 1, 2024
bcaba56
chore: Improve debug message. Added comments to useAppState hook.
yusinto Feb 1, 2024
e92a1d5
chore: Improve debounce comments.
yusinto Feb 1, 2024
aa48d57
Merge branch 'main' into yus/sc-228044/rn-sdk-should-disable-streamin…
yusinto Feb 1, 2024
8b12c9b
chore: Add missing export.
yusinto Feb 1, 2024
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
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -50,5 +50,9 @@
"typedoc": "0.25.0",
"typescript": "5.1.6"
},
"packageManager": "yarn@3.4.1"
"packageManager": "yarn@3.4.1",
"//": "There is a bug with @types/node: 20.11.8 where crypto types are erroneous. See https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/68351",
"resolutions": {
"@types/node": "20.11.7"
}
}