Skip to content

Commit

Permalink
chore: resolved merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ctawiah committed Nov 14, 2024
2 parents 9956f6d + aafd1a5 commit 473ead0
Show file tree
Hide file tree
Showing 357 changed files with 13,498 additions and 2,795 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,38 @@ module.exports = {
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/valid-expect': 'error',
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'@typescript-eslint/naming-convention': [
'error',
{
selector: ['method'],
format: ['camelCase'],
leadingUnderscore: 'forbid',
},
{
selector: ['method'],
format: ['camelCase'],
modifiers: ['private'],
leadingUnderscore: 'require',
},
{
selector: ['classProperty', 'parameterProperty'],
format: ['camelCase'],
leadingUnderscore: 'forbid',
},
{
selector: ['classProperty', 'parameterProperty'],
modifiers: ['static'],
format: ['PascalCase'],
leadingUnderscore: 'forbid',
},
{
selector: ['classProperty', 'parameterProperty'],
modifiers: ['private'],
format: ['camelCase'],
leadingUnderscore: 'require',
},
],
},
globals: {
BigInt: 'readonly',
Expand Down
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/package-sdk-browser--bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: '@launchdarkly/js-client-sdk Bug Report'
about: Create a report to help us improve
title: ''
labels: 'package: sdk/browser, bug'
assignees: ''
---

**Is this a support request?**
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].

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.

**Describe the bug**
A clear and concise description of what the bug is.

**To reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Logs**
If applicable, add any log output related to your problem.

**SDK version**
The version of this SDK that you are using.

**Language version, developer tools**
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.

**OS/platform**
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.

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/package-sdk-browser--feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: '@launchdarkly/js-client-sdk Feature Request'
about: Create a report to help us improve
title: ''
labels: 'package: sdk/browser, feature'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I would love to see the SDK [...does something new...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context about the feature request here.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/package-sdk-server-ai--bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: '@launchdarkly/server-sdk-ai Bug Report'
about: Create a report to help us improve
title: ''
labels: 'package: sdk/server-ai, bug'
assignees: ''
---

**Is this a support request?**
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].

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.

**Describe the bug**
A clear and concise description of what the bug is.

**To reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Logs**
If applicable, add any log output related to your problem.

**SDK version**
The version of this SDK that you are using.

**Language version, developer tools**
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.

**OS/platform**
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.

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/package-sdk-server-ai--feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: '@launchdarkly/server-sdk-ai Feature Request'
about: Create a report to help us improve
title: ''
labels: 'package: sdk/sdk-ai, feature'
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I would love to see the SDK [...does something new...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context about the feature request here.
27 changes: 27 additions & 0 deletions .github/workflows/browser-telemetry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: telemetry/browser-telemetry

on:
push:
branches: [main, 'feat/**']
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [main, 'feat/**']
paths-ignore:
- '**.md'

jobs:
build-test-browser-telemetry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- id: shared
name: Shared CI Steps
uses: ./actions/ci
with:
workspace_name: '@launchdarkly/browser-telemetry'
workspace_path: packages/telemetry/browser-telemetry
11 changes: 11 additions & 0 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:

jobs:
build-test-browser:
permissions:
pull-requests: write
runs-on: ubuntu-latest

strategy:
Expand All @@ -31,3 +33,12 @@ jobs:
with:
workspace_name: '@launchdarkly/js-client-sdk'
workspace_path: packages/sdk/browser
- name: Check package size
if: github.event_name == 'pull_request' && matrix.version == '21'
uses: ./actions/package-size
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target_file: 'packages/sdk/browser/dist/index.js'
package_name: '@launchdarkly/js-client-sdk'
pr_number: ${{ github.event.number }}
size_limit: 21000
9 changes: 9 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ jobs:
with:
workspace_name: '@launchdarkly/js-sdk-common'
workspace_path: packages/shared/common
- name: Check package size
if: github.event_name == 'pull_request'
uses: ./actions/package-size
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target_file: 'packages/shared/common/dist/esm/index.mjs'
package_name: '@launchdarkly/js-sdk-common'
pr_number: ${{ github.event.number }}
size_limit: 21000
1 change: 1 addition & 0 deletions .github/workflows/manual-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
- packages/store/node-server-sdk-dynamodb
- packages/telemetry/node-server-sdk-otel
- packages/sdk/browser
- packages/sdk/server-ai
name: Publish Documentation
jobs:
build-publish:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- packages/telemetry/node-server-sdk-otel
- packages/tooling/jest
- packages/sdk/browser
- packages/sdk/server-ai
prerelease:
description: 'Is this a prerelease. If so, then the latest tag will not be updated in npm.'
type: boolean
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
package-node-server-sdk-otel-release: ${{ steps.release.outputs['packages/telemetry/node-server-sdk-otel--release_created'] }}
package-tooling-jest-release: ${{ steps.release.outputs['packages/tooling/jest--release_created'] }}
package-react-universal-release: ${{ steps.release.outputs['packages/sdk/react-universal--release_created'] }}
package-browser-released: ${{ steps.release.outputs['packages/sdk/browser--release_created'] }}
package-server-ai-released: ${{ steps.release.outputs['packages/sdk/server-ai--release_created'] }}
steps:
- uses: googleapis/release-please-action@v4
id: release
Expand Down Expand Up @@ -170,6 +172,26 @@ jobs:
workspace_path: packages/sdk/react-native
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}

release-browser:
runs-on: ubuntu-latest
needs: ['release-please', 'release-sdk-client']
permissions:
id-token: write
contents: write
if: ${{ always() && !failure() && !cancelled() && needs.release-please.outputs.package-browser-released == 'true'}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- id: release-react-native
name: Full release of packages/sdk/browser
uses: ./actions/full-release
with:
workspace_path: packages/sdk/browser
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}

release-server-node:
runs-on: ubuntu-latest
needs: ['release-please', 'release-sdk-server']
Expand Down Expand Up @@ -356,3 +378,23 @@ jobs:
with:
workspace_path: packages/sdk/react-universal
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}

release-server-ai:
runs-on: ubuntu-latest
needs: ['release-please', 'release-sdk-server']
permissions:
id-token: write
contents: write
if: ${{ always() && !failure() && !cancelled() && needs.release-please.outputs.package-server-ai-released == 'true'}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- id: release-react-native
name: Full release of packages/sdk/server-ai
uses: ./actions/full-release
with:
workspace_path: packages/sdk/server-ai
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
9 changes: 9 additions & 0 deletions .github/workflows/sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ jobs:
with:
workspace_name: '@launchdarkly/js-client-sdk-common'
workspace_path: packages/shared/sdk-client
- name: Check package size
if: github.event_name == 'pull_request'
uses: ./actions/package-size
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target_file: 'packages/shared/sdk-client/dist/esm/index.mjs'
package_name: '@launchdarkly/js-client-sdk-common'
pr_number: ${{ github.event.number }}
size_limit: 20000
37 changes: 37 additions & 0 deletions .github/workflows/server-ai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: sdk/server-ai

on:
push:
branches: [main, 'feat/**']
paths-ignore:
- '**.md' #Do not need to run CI for markdown changes.
pull_request:
branches: [main, 'feat/**']
paths-ignore:
- '**.md'

jobs:
build-test-node-server-otel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- id: shared
name: Shared CI Steps
uses: ./actions/ci
with:
workspace_name: '@launchdarkly/server-sdk-ai'
workspace_path: packages/sdk/server-ai
- name: Build bedrock example
run: |
yarn workspaces focus @launchdarkly/hello-ai-bedrock
yarn workspace @launchdarkly/hello-ai-bedrock lint
yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/hello-ai-bedrock' run build
- name: Build OpenAI example
run: |
yarn workspaces focus @launchdarkly/hello-openai
yarn workspace @launchdarkly/hello-openai lint
yarn workspaces foreach -pR --topological-dev --from '@launchdarkly/hello-openai' run build
30 changes: 16 additions & 14 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"packages/shared/common": "2.9.0",
"packages/shared/sdk-server": "2.7.0",
"packages/sdk/server-node": "9.6.0",
"packages/sdk/cloudflare": "2.5.14",
"packages/shared/sdk-server-edge": "2.4.0",
"packages/sdk/vercel": "1.3.17",
"packages/sdk/akamai-base": "2.1.16",
"packages/sdk/akamai-edgekv": "1.1.16",
"packages/shared/akamai-edgeworker-sdk": "1.2.0",
"packages/store/node-server-sdk-dynamodb": "6.1.22",
"packages/store/node-server-sdk-redis": "4.1.22",
"packages/shared/sdk-client": "1.8.0",
"packages/sdk/react-native": "10.7.0",
"packages/telemetry/node-server-sdk-otel": "1.0.14"
"packages/shared/common": "2.12.0",
"packages/shared/sdk-server": "2.9.1",
"packages/sdk/server-node": "9.7.1",
"packages/sdk/cloudflare": "2.6.1",
"packages/shared/sdk-server-edge": "2.5.1",
"packages/sdk/vercel": "1.3.20",
"packages/sdk/akamai-base": "2.1.19",
"packages/sdk/akamai-edgekv": "1.2.1",
"packages/shared/akamai-edgeworker-sdk": "1.3.1",
"packages/store/node-server-sdk-dynamodb": "6.2.1",
"packages/store/node-server-sdk-redis": "4.2.1",
"packages/shared/sdk-client": "1.12.0",
"packages/sdk/react-native": "10.9.2",
"packages/telemetry/node-server-sdk-otel": "1.1.1",
"packages/sdk/browser": "0.3.2",
"packages/sdk/server-ai": "0.2.0"
}
Loading

0 comments on commit 473ead0

Please sign in to comment.