Skip to content

Commit f8d1670

Browse files
committed
Merge branch 'main' into rlamb/scaffold-browser-telemetry-tsup
2 parents 1aa95d2 + 3683f0a commit f8d1670

File tree

84 files changed

+1547
-69
lines changed

Some content is hidden

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

84 files changed

+1547
-69
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: '@launchdarkly/js-client-sdk Bug Report'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'package: sdk/browser, 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/js-client-sdk Feature Request'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'package: sdk/browser, 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.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: '@launchdarkly/server-sdk-ai Bug Report'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'package: sdk/server-ai, 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/server-sdk-ai Feature Request'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'package: sdk/sdk-ai, 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.

.github/workflows/manual-publish-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
- packages/store/node-server-sdk-dynamodb
2121
- packages/telemetry/node-server-sdk-otel
2222
- packages/sdk/browser
23+
- packages/sdk/server-ai
2324
name: Publish Documentation
2425
jobs:
2526
build-publish:

.github/workflows/manual-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ on:
3333
- packages/telemetry/node-server-sdk-otel
3434
- packages/tooling/jest
3535
- packages/sdk/browser
36+
- packages/sdk/server-ai
3637
prerelease:
3738
description: 'Is this a prerelease. If so, then the latest tag will not be updated in npm.'
3839
type: boolean

.github/workflows/release-please.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
package-tooling-jest-release: ${{ steps.release.outputs['packages/tooling/jest--release_created'] }}
2626
package-react-universal-release: ${{ steps.release.outputs['packages/sdk/react-universal--release_created'] }}
2727
package-browser-released: ${{ steps.release.outputs['packages/sdk/browser--release_created'] }}
28+
package-server-ai-released: ${{ steps.release.outputs['packages/sdk/server-ai--release_created'] }}
2829
steps:
2930
- uses: googleapis/release-please-action@v4
3031
id: release
@@ -377,3 +378,23 @@ jobs:
377378
with:
378379
workspace_path: packages/sdk/react-universal
379380
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
381+
382+
release-server-ai:
383+
runs-on: ubuntu-latest
384+
needs: ['release-please', 'release-sdk-server']
385+
permissions:
386+
id-token: write
387+
contents: write
388+
if: ${{ always() && !failure() && !cancelled() && needs.release-please.outputs.package-server-ai-released == 'true'}}
389+
steps:
390+
- uses: actions/checkout@v4
391+
- uses: actions/setup-node@v4
392+
with:
393+
node-version: 20.x
394+
registry-url: 'https://registry.npmjs.org'
395+
- id: release-react-native
396+
name: Full release of packages/sdk/server-ai
397+
uses: ./actions/full-release
398+
with:
399+
workspace_path: packages/sdk/server-ai
400+
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}

.github/workflows/server-ai.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: sdk/server-ai
2+
3+
on:
4+
push:
5+
branches: [main, 'feat/**']
6+
paths-ignore:
7+
- '**.md' #Do not need to run CI for markdown changes.
8+
pull_request:
9+
branches: [main, 'feat/**']
10+
paths-ignore:
11+
- '**.md'
12+
13+
jobs:
14+
build-test-node-server-otel:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20.x
21+
registry-url: 'https://registry.npmjs.org'
22+
- id: shared
23+
name: Shared CI Steps
24+
uses: ./actions/ci
25+
with:
26+
workspace_name: '@launchdarkly/server-sdk-ai'
27+
workspace_path: packages/sdk/server-ai
28+
- name: Build bedrock example
29+
run: |
30+
yarn workspaces focus @launchdarkly/hello-ai-bedrock
31+
yarn workspace @launchdarkly/hello-ai-bedrock lint
32+
yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/hello-ai-bedrock' run build
33+
- name: Build OpenAI example
34+
run: |
35+
yarn workspaces focus @launchdarkly/hello-openai
36+
yarn workspace @launchdarkly/hello-openai lint
37+
yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/hello-openai' run build

.release-please-manifest.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
2-
"packages/shared/common": "2.11.0",
3-
"packages/shared/sdk-server": "2.9.0",
4-
"packages/sdk/server-node": "9.7.0",
5-
"packages/sdk/cloudflare": "2.6.0",
6-
"packages/shared/sdk-server-edge": "2.5.0",
7-
"packages/sdk/vercel": "1.3.19",
8-
"packages/sdk/akamai-base": "2.1.18",
9-
"packages/sdk/akamai-edgekv": "1.2.0",
10-
"packages/shared/akamai-edgeworker-sdk": "1.3.0",
11-
"packages/store/node-server-sdk-dynamodb": "6.2.0",
12-
"packages/store/node-server-sdk-redis": "4.2.0",
13-
"packages/shared/sdk-client": "1.11.0",
14-
"packages/sdk/react-native": "10.9.1",
15-
"packages/telemetry/node-server-sdk-otel": "1.1.0",
16-
"packages/sdk/browser": "0.2.0"
2+
"packages/shared/common": "2.12.0",
3+
"packages/shared/sdk-server": "2.9.1",
4+
"packages/sdk/server-node": "9.7.1",
5+
"packages/sdk/cloudflare": "2.6.1",
6+
"packages/shared/sdk-server-edge": "2.5.1",
7+
"packages/sdk/vercel": "1.3.20",
8+
"packages/sdk/akamai-base": "2.1.19",
9+
"packages/sdk/akamai-edgekv": "1.2.1",
10+
"packages/shared/akamai-edgeworker-sdk": "1.3.1",
11+
"packages/store/node-server-sdk-dynamodb": "6.2.1",
12+
"packages/store/node-server-sdk-redis": "4.2.1",
13+
"packages/shared/sdk-client": "1.12.0",
14+
"packages/sdk/react-native": "10.9.2",
15+
"packages/telemetry/node-server-sdk-otel": "1.1.1",
16+
"packages/sdk/browser": "0.3.0",
17+
"packages/sdk/server-ai": "0.1.0"
1718
}

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ This includes shared libraries, used by SDKs and other tools, as well as SDKs.
1313
| [@launchdarkly/node-server-sdk](packages/sdk/server-node/README.md) | [![NPM][sdk-server-node-npm-badge]][sdk-server-node-npm-link] | [Node.js Server][package-sdk-server-node-issues] | [![Actions Status][sdk-server-node-ci-badge]][sdk-server-node-ci] |
1414
| [@launchdarkly/vercel-server-sdk](packages/sdk/vercel/README.md) | [![NPM][sdk-vercel-npm-badge]][sdk-vercel-npm-link] | [Vercel][package-sdk-vercel-issues] | [![Actions Status][sdk-vercel-ci-badge]][sdk-vercel-ci] |
1515
| [@launchdarkly/react-native-client-sdk](packages/sdk/react-native/README.md) | [![NPM][sdk-react-native-npm-badge]][sdk-react-native-npm-link] | [React-Native][package-sdk-react-native-issues] | [![Actions Status][sdk-react-native-ci-badge]][sdk-react-native-ci] |
16-
17-
<!--
18-
TODO: Add row once @launchdarkly/js-client-sdk has been published.
1916
| [@launchdarkly/js-client-sdk](packages/sdk/browser/README.md) | [![NPM][sdk-browser-npm-badge]][sdk-browser-npm-link] | [Browser][package-sdk-browser-issues] | [![Actions Status][sdk-browser-ci-badge]][sdk-browser-ci] |
20-
-->
17+
| [@launchdarkly/server-sdk-ai](packages/sdk/server-ai/README.md) | [![NPM][sdk-server-ai-npm-badge]][sdk-server-ai-npm-link] | [server-ai][package-sdk-server-ai-issues] | [![Actions Status][sdk-server-ai-ci-badge]][sdk-server-ai-ci] |
2118

2219
| Shared packages | npm | issues | tests |
2320
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------- |
@@ -184,3 +181,13 @@ We encourage pull requests and other contributions from the community. Check out
184181
[sdk-browser-dm-badge]: https://img.shields.io/npm/dm/@launchdarkly/js-client-sdk.svg?style=flat-square
185182
[sdk-browser-dt-badge]: https://img.shields.io/npm/dt/@launchdarkly/js-client-sdk.svg?style=flat-square
186183
[package-sdk-browser-issues]: https://github.com/launchdarkly/js-core/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+sdk%2Fbrowser%22+
184+
[//]: # 'sdk/server-ai'
185+
[sdk-server-ai-ci-badge]: https://github.com/launchdarkly/js-core/actions/workflows/server-ai.yml/badge.svg
186+
[sdk-server-ai-ci]: https://github.com/launchdarkly/js-core/actions/workflows/server-ai.yml
187+
[sdk-server-ai-npm-badge]: https://img.shields.io/npm/v/@launchdarkly/server-sdk-ai.svg?style=flat-square
188+
[sdk-server-ai-npm-link]: https://www.npmjs.com/package/@launchdarkly/server-sdk-ai
189+
[sdk-server-ai-ghp-badge]: https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8
190+
[sdk-server-ai-ghp-link]: https://launchdarkly.github.io/js-core/packages/sdk/server-ai/docs/
191+
[sdk-server-ai-dm-badge]: https://img.shields.io/npm/dm/@launchdarkly/server-sdk-ai.svg?style=flat-square
192+
[sdk-server-ai-dt-badge]: https://img.shields.io/npm/dt/@launchdarkly/server-sdk-ai.svg?style=flat-square
193+
[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+

0 commit comments

Comments
 (0)