Skip to content

Commit 379bc3d

Browse files
authored
Merge branch 'main' into feat/svelte-sdk-example
2 parents 389eb30 + 1926b49 commit 379bc3d

Some content is hidden

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

55 files changed

+999
-276
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: '@launchdarkly/browser-telemetry Bug Report'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'package: telemetry/browser-telemerty, bug'
6+
assignees: ''
7+
---
8+
9+
**Is this a support request?**
10+
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the code in this library. If you're not sure whether the problem you are having is specifically related to this library, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going [here](https://support.launchdarkly.com/) and clicking "submit a request", or by emailing [email protected].
11+
12+
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
13+
14+
**Describe the bug**
15+
A clear and concise description of what the bug is.
16+
17+
**To reproduce**
18+
Steps to reproduce the behavior.
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Logs**
24+
If applicable, add any log output related to your problem.
25+
26+
**SDK version**
27+
The version of this SDK that you are using.
28+
29+
**Language version, developer tools**
30+
For instance, Go 1.11 or Ruby 2.5.3. If you are using a language that requires a separate compiler, such as C, please include the name and version of the compiler too.
31+
32+
**OS/platform**
33+
For instance, Ubuntu 16.04, Windows 10, or Android 4.0.3. If your code is running in a browser, please also include the browser type and version.
34+
35+
**Additional context**
36+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: '@launchdarkly/browser-telemetry Feature Request'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'package: telemetry/browser-telemetry, feature'
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I would love to see the SDK [...does something new...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context about the feature request here.

.release-please-manifest.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"packages/sdk/cloudflare": "2.6.4",
66
"packages/shared/sdk-server-edge": "2.5.3",
77
"packages/sdk/vercel": "1.3.22",
8-
"packages/sdk/akamai-base": "2.1.21",
9-
"packages/sdk/akamai-edgekv": "1.3.1",
10-
"packages/shared/akamai-edgeworker-sdk": "1.3.3",
8+
"packages/sdk/akamai-base": "2.1.22",
9+
"packages/sdk/akamai-edgekv": "1.4.0",
10+
"packages/shared/akamai-edgeworker-sdk": "1.4.0",
1111
"packages/store/node-server-sdk-dynamodb": "6.2.3",
1212
"packages/store/node-server-sdk-redis": "4.2.3",
13-
"packages/shared/sdk-client": "1.12.2",
14-
"packages/sdk/react-native": "10.9.5",
13+
"packages/shared/sdk-client": "1.12.3",
14+
"packages/sdk/react-native": "10.9.6",
1515
"packages/telemetry/node-server-sdk-otel": "1.1.3",
16-
"packages/sdk/browser": "0.4.0",
17-
"packages/sdk/server-ai": "0.8.1",
18-
"packages/telemetry/browser-telemetry": "0.2.0",
19-
"packages/tooling/jest": "0.1.0"
16+
"packages/sdk/browser": "0.4.1",
17+
"packages/sdk/server-ai": "0.9.0",
18+
"packages/telemetry/browser-telemetry": "0.3.1",
19+
"packages/tooling/jest": "0.1.1"
2020
}

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ This includes shared libraries, used by SDKs and other tools, as well as SDKs.
2828
| [@launchdarkly/node-server-sdk-redis](packages/store/node-server-sdk-redis/README.md) | [![NPM][node-redis-npm-badge]][node-redis-npm-link] | [Node Redis][node-redis-issues] | [![Actions Status][node-redis-ci-badge]][node-redis-ci] |
2929
| [@launchdarkly/node-server-sdk-dynamodb](packages/store/node-server-sdk-dynamodb/README.md) | [![NPM][node-dynamodb-npm-badge]][node-dynamodb-npm-link] | [Node DynamoDB][node-dynamodb-issues] | [![Actions Status][node-dynamodb-ci-badge]][node-dynamodb-ci] |
3030

31-
| Telemetry Packages | npm | issues | tests |
32-
| --------------------------------------------------------------------------------------- | ------------------------------------------------- | ----------------------------- | ----------------------------------------------------- |
33-
| [@launchdarkly/node-server-sdk-otel](packages/telemetry/node-server-sdk-otel/README.md) | [![NPM][node-otel-npm-badge]][node-otel-npm-link] | [Node OTel][node-otel-issues] | [![Actions Status][node-otel-ci-badge]][node-otel-ci] |
31+
| Telemetry Packages | npm | issues | tests |
32+
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | --------------------------------------------- | --------------------------------------------------------------------- |
33+
| [@launchdarkly/node-server-sdk-otel](packages/telemetry/node-server-sdk-otel/README.md) | [![NPM][node-otel-npm-badge]][node-otel-npm-link] | [Node OTel][node-otel-issues] | [![Actions Status][node-otel-ci-badge]][node-otel-ci] |
34+
| [@launchdarkly/browser-telemetry](packages/telemetry/browser-telemetry/README.md) | [![NPM][browser-telemetry-npm-badge]][browser-telemetry-npm-link] | [Browser Telemetry][browser-telemetry-issues] | [![Actions Status][browser-telemetry-ci-badge]][browser-telemetry-ci] |
3435

3536
## Organization
3637

@@ -191,3 +192,9 @@ We encourage pull requests and other contributions from the community. Check out
191192
[sdk-server-ai-dm-badge]: https://img.shields.io/npm/dm/@launchdarkly/server-sdk-ai.svg?style=flat-square
192193
[sdk-server-ai-dt-badge]: https://img.shields.io/npm/dt/@launchdarkly/server-sdk-ai.svg?style=flat-square
193194
[package-sdk-server-ai-issues]: https://github.com/launchdarkly/js-core/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+sdk%2Fserver-ai%22+
195+
[//]: # 'telemetry/browser-telemetry'
196+
[browser-telemetry-ci-badge]: https://github.com/launchdarkly/js-core/actions/workflows/browser-telemetry.yml/badge.svg
197+
[browser-telemetry-ci]: https://github.com/launchdarkly/js-core/actions/workflows/browser-telemetry.yml
198+
[browser-telemetry-npm-badge]: https://img.shields.io/npm/v/@launchdarkly/browser-telemetry.svg?style=flat-square
199+
[browser-telemetry-npm-link]: https://www.npmjs.com/package/@launchdarkly/browser-telemetry
200+
[browser-telemetry-issues]: https://github.com/launchdarkly/js-core/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+telemetry%2Fbrowser-telemetry%22+

packages/sdk/akamai-base/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ All notable changes to the LaunchDarkly SDK for Akamai Workers will be documente
3030
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.1 to ^1.1.2
3131
* @launchdarkly/js-server-sdk-common bumped from ^2.2.1 to ^2.2.2
3232

33+
## [2.1.22](https://github.com/launchdarkly/js-core/compare/akamai-server-base-sdk-v2.1.21...akamai-server-base-sdk-v2.1.22) (2025-01-30)
34+
35+
36+
### Dependencies
37+
38+
* The following workspace dependencies were updated
39+
* dependencies
40+
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.3.3 to ^1.4.0
41+
3342
## [2.1.21](https://github.com/launchdarkly/js-core/compare/akamai-server-base-sdk-v2.1.20...akamai-server-base-sdk-v2.1.21) (2025-01-22)
3443

3544

packages/sdk/akamai-base/example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"typescript": "5.1.6"
3333
},
3434
"dependencies": {
35-
"@launchdarkly/akamai-server-base-sdk": "2.1.21"
35+
"@launchdarkly/akamai-server-base-sdk": "2.1.22"
3636
}
3737
}

packages/sdk/akamai-base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@launchdarkly/akamai-server-base-sdk",
3-
"version": "2.1.21",
3+
"version": "2.1.22",
44
"description": "Akamai LaunchDarkly EdgeWorker SDK",
55
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/akamai-base",
66
"repository": {
@@ -73,7 +73,7 @@
7373
"typescript": "5.1.6"
7474
},
7575
"dependencies": {
76-
"@launchdarkly/akamai-edgeworker-sdk-common": "^1.3.3",
76+
"@launchdarkly/akamai-edgeworker-sdk-common": "^1.4.0",
7777
"@launchdarkly/js-server-sdk-common": "^2.11.0"
7878
}
7979
}

packages/sdk/akamai-edgekv/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ All notable changes to the LaunchDarkly SDK for Akamai Workers will be documente
3131
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.1 to ^1.1.2
3232
* @launchdarkly/js-server-sdk-common bumped from ^2.2.1 to ^2.2.2
3333

34+
## [1.4.0](https://github.com/launchdarkly/js-core/compare/akamai-server-edgekv-sdk-v1.3.1...akamai-server-edgekv-sdk-v1.4.0) (2025-01-30)
35+
36+
37+
### Features
38+
39+
* Add cacheTtlMs option ([#760](https://github.com/launchdarkly/js-core/issues/760)) ([4f961dd](https://github.com/launchdarkly/js-core/commit/4f961dd16fd10f5bb55dd2116d26b218944bfeb2))
40+
41+
42+
### Dependencies
43+
44+
* The following workspace dependencies were updated
45+
* dependencies
46+
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.3.3 to ^1.4.0
47+
3448
## [1.3.1](https://github.com/launchdarkly/js-core/compare/akamai-server-edgekv-sdk-v1.3.0...akamai-server-edgekv-sdk-v1.3.1) (2025-01-22)
3549

3650

packages/sdk/akamai-edgekv/__tests__/index.test.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import EdgeKVProvider from '../src/edgekv/edgeKVProvider';
2-
import { init as initWithEdgeKV, LDClient, LDContext } from '../src/index';
2+
import { init as initWithEdgeKV, LDClient, LDContext, LDLogger } from '../src/index';
33
import * as testData from './testData.json';
44

55
jest.mock('../src/edgekv/edgekv', () => ({
66
EdgeKV: jest.fn(),
77
}));
88

9+
let logger: LDLogger;
10+
911
const sdkKey = 'test-sdk-key';
1012
const flagKey1 = 'testFlag1';
1113
const flagKey2 = 'testFlag2';
@@ -17,11 +19,22 @@ describe('init', () => {
1719

1820
describe('init with Edge KV', () => {
1921
beforeAll(async () => {
20-
ldClient = initWithEdgeKV({ namespace: 'akamai-test', group: 'Akamai', sdkKey });
22+
ldClient = initWithEdgeKV({
23+
namespace: 'akamai-test',
24+
group: 'Akamai',
25+
sdkKey,
26+
options: { logger },
27+
});
2128
await ldClient.waitForInitialization();
2229
});
2330

2431
beforeEach(() => {
32+
logger = {
33+
error: jest.fn(),
34+
warn: jest.fn(),
35+
info: jest.fn(),
36+
debug: jest.fn(),
37+
};
2538
jest
2639
.spyOn(EdgeKVProvider.prototype, 'get')
2740
.mockImplementation(() => Promise.resolve(JSON.stringify(testData)));
@@ -31,6 +44,12 @@ describe('init', () => {
3144
ldClient.close();
3245
});
3346

47+
it('should not log a warning about initialization', async () => {
48+
const spy = jest.spyOn(logger, 'warn');
49+
await ldClient.variation(flagKey1, context, false);
50+
expect(spy).not.toHaveBeenCalled();
51+
});
52+
3453
describe('flags', () => {
3554
it('variation default', async () => {
3655
const value = await ldClient.variation(flagKey1, context, false);

packages/sdk/akamai-edgekv/example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"typescript": "5.1.6"
3232
},
3333
"dependencies": {
34-
"@launchdarkly/akamai-server-edgekv-sdk": "1.3.1"
34+
"@launchdarkly/akamai-server-edgekv-sdk": "1.4.0"
3535
}
3636
}

0 commit comments

Comments
 (0)