Skip to content

Commit

Permalink
Merge branch 'main' into feat/hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion authored Apr 10, 2024
2 parents 3ed7047 + 0e02187 commit ebd324d
Show file tree
Hide file tree
Showing 36 changed files with 461 additions and 121 deletions.
26 changes: 13 additions & 13 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"packages/shared/common": "2.3.1",
"packages/shared/sdk-server": "2.2.2",
"packages/sdk/server-node": "9.2.2",
"packages/sdk/cloudflare": "2.4.2",
"packages/shared/sdk-server-edge": "2.2.2",
"packages/sdk/vercel": "1.3.3",
"packages/sdk/akamai-base": "2.1.2",
"packages/sdk/akamai-edgekv": "1.1.2",
"packages/shared/akamai-edgeworker-sdk": "1.1.2",
"packages/store/node-server-sdk-dynamodb": "6.1.5",
"packages/store/node-server-sdk-redis": "4.1.5",
"packages/shared/sdk-client": "1.0.3",
"packages/sdk/react-native": "10.0.5",
"packages/shared/common": "2.4.1",
"packages/shared/sdk-server": "2.2.4",
"packages/sdk/server-node": "9.2.4",
"packages/sdk/cloudflare": "2.5.1",
"packages/shared/sdk-server-edge": "2.2.4",
"packages/sdk/vercel": "1.3.5",
"packages/sdk/akamai-base": "2.1.4",
"packages/sdk/akamai-edgekv": "1.1.4",
"packages/shared/akamai-edgeworker-sdk": "1.1.4",
"packages/store/node-server-sdk-dynamodb": "6.1.7",
"packages/store/node-server-sdk-redis": "4.1.7",
"packages/shared/sdk-client": "1.1.1",
"packages/sdk/react-native": "10.1.1",
"packages/telemetry/node-server-sdk-otel": "0.0.1"
}
20 changes: 20 additions & 0 deletions packages/sdk/akamai-base/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@ All notable changes to the LaunchDarkly SDK for Akamai Workers will be documente
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.1 to ^1.1.2
* @launchdarkly/js-server-sdk-common bumped from ^2.2.1 to ^2.2.2

## [2.1.4](https://github.com/launchdarkly/js-core/compare/akamai-server-base-sdk-v2.1.3...akamai-server-base-sdk-v2.1.4) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.3 to ^1.1.4
* @launchdarkly/js-server-sdk-common bumped from ^2.2.3 to ^2.2.4

## [2.1.3](https://github.com/launchdarkly/js-core/compare/akamai-server-base-sdk-v2.1.2...akamai-server-base-sdk-v2.1.3) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.2 to ^1.1.3
* @launchdarkly/js-server-sdk-common bumped from ^2.2.2 to ^2.2.3

## [2.1.1](https://github.com/launchdarkly/js-core/compare/akamai-server-base-sdk-v2.1.0...akamai-server-base-sdk-v2.1.1) (2024-03-15)


Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/akamai-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/akamai-server-base-sdk",
"version": "2.1.2",
"version": "2.1.4",
"description": "Akamai LaunchDarkly EdgeWorker SDK",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/akamai-base",
"repository": {
Expand Down Expand Up @@ -73,7 +73,7 @@
"typescript": "5.1.6"
},
"dependencies": {
"@launchdarkly/akamai-edgeworker-sdk-common": "^1.1.2",
"@launchdarkly/js-server-sdk-common": "^2.2.2"
"@launchdarkly/akamai-edgeworker-sdk-common": "^1.1.4",
"@launchdarkly/js-server-sdk-common": "^2.2.4"
}
}
20 changes: 20 additions & 0 deletions packages/sdk/akamai-edgekv/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ All notable changes to the LaunchDarkly SDK for Akamai Workers will be documente
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.1 to ^1.1.2
* @launchdarkly/js-server-sdk-common bumped from ^2.2.1 to ^2.2.2

## [1.1.4](https://github.com/launchdarkly/js-core/compare/akamai-server-edgekv-sdk-v1.1.3...akamai-server-edgekv-sdk-v1.1.4) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.3 to ^1.1.4
* @launchdarkly/js-server-sdk-common bumped from ^2.2.3 to ^2.2.4

## [1.1.3](https://github.com/launchdarkly/js-core/compare/akamai-server-edgekv-sdk-v1.1.2...akamai-server-edgekv-sdk-v1.1.3) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.1.2 to ^1.1.3
* @launchdarkly/js-server-sdk-common bumped from ^2.2.2 to ^2.2.3

## [1.1.1](https://github.com/launchdarkly/js-core/compare/akamai-server-edgekv-sdk-v1.1.0...akamai-server-edgekv-sdk-v1.1.1) (2024-03-15)


Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/akamai-edgekv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/akamai-server-edgekv-sdk",
"version": "1.1.2",
"version": "1.1.4",
"description": "Akamai LaunchDarkly EdgeWorker SDK for EdgeKV feature store",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/akamai-edgekv",
"repository": {
Expand Down Expand Up @@ -73,7 +73,7 @@
"typescript": "5.1.6"
},
"dependencies": {
"@launchdarkly/akamai-edgeworker-sdk-common": "^1.1.2",
"@launchdarkly/js-server-sdk-common": "^2.2.2"
"@launchdarkly/akamai-edgeworker-sdk-common": "^1.1.4",
"@launchdarkly/js-server-sdk-common": "^2.2.4"
}
}
23 changes: 23 additions & 0 deletions packages/sdk/cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@ All notable changes to the LaunchDarkly SDK for Cloudflare Workers will be docum
* devDependencies
* @launchdarkly/js-server-sdk-common-edge bumped from 2.2.1 to 2.2.2

## [2.5.1](https://github.com/launchdarkly/js-core/compare/cloudflare-server-sdk-v2.5.0...cloudflare-server-sdk-v2.5.1) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* devDependencies
* @launchdarkly/js-server-sdk-common-edge bumped from 2.2.3 to 2.2.4

## [2.5.0](https://github.com/launchdarkly/js-core/compare/cloudflare-server-sdk-v2.4.2...cloudflare-server-sdk-v2.5.0) (2024-04-09)


### Features

* JSR support for Cloudflare SDK. ([#415](https://github.com/launchdarkly/js-core/issues/415)) ([30866f3](https://github.com/launchdarkly/js-core/commit/30866f34a41b74e2cf08457f2382c647bc37bd64))


### Dependencies

* The following workspace dependencies were updated
* devDependencies
* @launchdarkly/js-server-sdk-common-edge bumped from 2.2.2 to 2.2.3

## [2.4.1](https://github.com/launchdarkly/js-core/compare/cloudflare-server-sdk-v2.4.0...cloudflare-server-sdk-v2.4.1) (2024-03-15)


Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/cloudflare/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/cloudflare-server-sdk",
"version": "0.0.3",
"version": "2.4.2",
"exports": "./src/index.ts",
"publish": {
"include": ["LICENSE", "README.md", "package.json", "jsr.json", "src/**/*.ts"],
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/cloudflare-server-sdk",
"version": "2.4.2",
"version": "2.5.1",
"description": "Cloudflare LaunchDarkly SDK",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/cloudflare",
"repository": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"crypto-js": "^4.1.1"
},
"devDependencies": {
"@launchdarkly/js-server-sdk-common-edge": "2.2.2",
"@launchdarkly/js-server-sdk-common-edge": "2.2.4",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.2.1",
Expand Down
26 changes: 26 additions & 0 deletions packages/sdk/react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [10.1.1](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.1.0...react-native-client-sdk-v10.1.1) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-client-sdk-common bumped from 1.1.0 to 1.1.1

## [10.1.0](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.0.5...react-native-client-sdk-v10.1.0) (2024-04-09)


### Features

* Add identify timeout to client-sdk. ([#420](https://github.com/launchdarkly/js-core/issues/420)) ([5d73dfe](https://github.com/launchdarkly/js-core/commit/5d73dfeb0d5cdacf620e65e214dd2e334363490e))

### Bug Fixes

* Identify incorrectly rejected in client-sdk ([#426](https://github.com/launchdarkly/js-core/issues/426)) ([a019dd6](https://github.com/launchdarkly/js-core/commit/a019dd66b1b852d888e10b78aec9693d7de195fe))

### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-client-sdk-common bumped from 1.0.3 to 1.1.0

## [10.0.5](https://github.com/launchdarkly/js-core/compare/react-native-client-sdk-v10.0.4...react-native-client-sdk-v10.0.5) (2024-03-27)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/react-native-client-sdk",
"version": "10.0.5",
"version": "10.1.1",
"description": "React Native LaunchDarkly SDK",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/react-native",
"repository": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"react-native": "*"
},
"dependencies": {
"@launchdarkly/js-client-sdk-common": "1.0.3",
"@launchdarkly/js-client-sdk-common": "1.1.1",
"@react-native-async-storage/async-storage": "^1.21.0",
"base64-js": "^1.5.1",
"event-target-shim": "^6.0.2"
Expand Down
18 changes: 18 additions & 0 deletions packages/sdk/server-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ All notable changes to `@launchdarkly/node-server-sdk` will be documented in thi
* dependencies
* @launchdarkly/js-server-sdk-common bumped from 2.2.1 to 2.2.2

## [9.2.4](https://github.com/launchdarkly/js-core/compare/node-server-sdk-v9.2.3...node-server-sdk-v9.2.4) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-server-sdk-common bumped from 2.2.3 to 2.2.4

## [9.2.3](https://github.com/launchdarkly/js-core/compare/node-server-sdk-v9.2.2...node-server-sdk-v9.2.3) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-server-sdk-common bumped from 2.2.2 to 2.2.3

## [9.2.1](https://github.com/launchdarkly/js-core/compare/node-server-sdk-v9.2.0...node-server-sdk-v9.2.1) (2024-03-15)


Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/server-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/node-server-sdk",
"version": "9.2.2",
"version": "9.2.4",
"description": "LaunchDarkly Server-Side SDK for Node.js",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/server-node",
"repository": {
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@launchdarkly/js-server-sdk-common": "2.2.2",
"@launchdarkly/js-server-sdk-common": "2.2.4",
"https-proxy-agent": "^5.0.1",
"launchdarkly-eventsource": "2.0.1"
},
Expand Down
18 changes: 18 additions & 0 deletions packages/sdk/vercel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ All notable changes to the LaunchDarkly SDK for Vercel Edge Config will be docum
* dependencies
* @launchdarkly/js-server-sdk-common-edge bumped from 2.2.1 to 2.2.2

## [1.3.5](https://github.com/launchdarkly/js-core/compare/vercel-server-sdk-v1.3.4...vercel-server-sdk-v1.3.5) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-server-sdk-common-edge bumped from 2.2.3 to 2.2.4

## [1.3.4](https://github.com/launchdarkly/js-core/compare/vercel-server-sdk-v1.3.3...vercel-server-sdk-v1.3.4) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-server-sdk-common-edge bumped from 2.2.2 to 2.2.3

## [1.3.2](https://github.com/launchdarkly/js-core/compare/vercel-server-sdk-v1.3.1...vercel-server-sdk-v1.3.2) (2024-03-15)


Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/vercel-server-sdk",
"version": "1.3.3",
"version": "1.3.5",
"description": "LaunchDarkly Server-Side SDK for Vercel Edge",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/vercel",
"repository": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"check": "yarn prettier && yarn lint && yarn build && yarn test"
},
"dependencies": {
"@launchdarkly/js-server-sdk-common-edge": "2.2.2",
"@launchdarkly/js-server-sdk-common-edge": "2.2.4",
"@vercel/edge-config": "^1.1.0",
"crypto-js": "^4.1.1"
},
Expand Down
18 changes: 18 additions & 0 deletions packages/shared/akamai-edgeworker-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,24 @@ All notable changes to the LaunchDarkly SDK for Akamai Workers will be documente
* dependencies
* @launchdarkly/js-server-sdk-common bumped from ^2.2.1 to ^2.2.2

## [1.1.4](https://github.com/launchdarkly/js-core/compare/akamai-edgeworker-sdk-common-v1.1.3...akamai-edgeworker-sdk-common-v1.1.4) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-server-sdk-common bumped from ^2.2.3 to ^2.2.4

## [1.1.3](https://github.com/launchdarkly/js-core/compare/akamai-edgeworker-sdk-common-v1.1.2...akamai-edgeworker-sdk-common-v1.1.3) (2024-04-09)


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @launchdarkly/js-server-sdk-common bumped from ^2.2.2 to ^2.2.3

## [1.1.1](https://github.com/launchdarkly/js-core/compare/akamai-edgeworker-sdk-common-v1.1.0...akamai-edgeworker-sdk-common-v1.1.1) (2024-03-15)


Expand Down
4 changes: 2 additions & 2 deletions packages/shared/akamai-edgeworker-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/akamai-edgeworker-sdk-common",
"version": "1.1.2",
"version": "1.1.4",
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/shared/akamai-edge-sdk",
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,7 +55,7 @@
"typescript": "5.1.6"
},
"dependencies": {
"@launchdarkly/js-server-sdk-common": "^2.2.2",
"@launchdarkly/js-server-sdk-common": "^2.2.4",
"crypto-js": "^4.1.1"
}
}
19 changes: 19 additions & 0 deletions packages/shared/common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

All notable changes to `@launchdarkly/js-sdk-common` will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).

## [2.4.1](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.4.0...js-sdk-common-v2.4.1) (2024-04-09)


### Bug Fixes

* Add TimeoutError. ([#428](https://github.com/launchdarkly/js-core/issues/428)) ([aa832db](https://github.com/launchdarkly/js-core/commit/aa832db6172ba727aad9ec478b09a45906e9d5a7))

## [2.4.0](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.3.1...js-sdk-common-v2.4.0) (2024-04-09)


### Features

* Add identify timeout to client-sdk. ([#420](https://github.com/launchdarkly/js-core/issues/420)) ([5d73dfe](https://github.com/launchdarkly/js-core/commit/5d73dfeb0d5cdacf620e65e214dd2e334363490e))


### Bug Fixes

* Identify incorrectly rejected in client-sdk ([#426](https://github.com/launchdarkly/js-core/issues/426)) ([a019dd6](https://github.com/launchdarkly/js-core/commit/a019dd66b1b852d888e10b78aec9693d7de195fe))

## [2.3.1](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.3.0...js-sdk-common-v2.3.1) (2024-03-25)


Expand Down
2 changes: 1 addition & 1 deletion packages/shared/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@launchdarkly/js-sdk-common",
"version": "2.3.1",
"version": "2.4.1",
"type": "commonjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/shared/common/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ export class LDClientError extends Error {
}
}

export class LDTimeoutError extends Error {
constructor(message: string) {
super(message);
this.name = 'LaunchDarklyTimeoutError';
}
}

/**
* Check if the HTTP error is recoverable. This will return false if a request
* made with any payload could not recover. If the reason for the failure
Expand Down
Loading

0 comments on commit ebd324d

Please sign in to comment.