Skip to content

Commit 48688f1

Browse files
Merge branch 'main' into ofrep-web-provider-poc
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
2 parents 71cecda + b982a4f commit 48688f1

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"libs/providers/launchdarkly-client": "0.3.0",
99
"libs/providers/go-feature-flag-web": "0.2.0",
1010
"libs/shared/flagd-core": "0.1.11",
11-
"libs/shared/ofrep-core": "0.0.6-experimental",
11+
"libs/shared/ofrep-core": "0.0.7-experimental",
1212
"libs/providers/flipt": "0.1.0",
1313
"libs/providers/ofrep-web": "0.1.0"
1414
}

libs/shared/ofrep-core/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.0.7-experimental](https://github.com/open-feature/js-sdk-contrib/compare/ofrep-core-v0.0.6-experimental...ofrep-core-v0.0.7-experimental) (2024-04-04)
4+
5+
6+
### 🐛 Bug Fixes
7+
8+
* Use request time to compute the retry after ([#846](https://github.com/open-feature/js-sdk-contrib/issues/846)) ([ddc2c90](https://github.com/open-feature/js-sdk-contrib/commit/ddc2c9042c82c9066415ce4f6243639ae94d20c5))
9+
310
## [0.0.6-experimental](https://github.com/open-feature/js-sdk-contrib/compare/ofrep-core-v0.0.5-experimental...ofrep-core-v0.0.6-experimental) (2024-04-04)
411

512

libs/shared/ofrep-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openfeature/ofrep-core",
3-
"version": "0.0.6-experimental",
3+
"version": "0.0.7-experimental",
44
"scripts": {
55
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
66
"current-version": "echo $npm_package_version"

libs/shared/ofrep-core/src/lib/api/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class OFREPApiTooManyRequestsError extends OFREPApiError {
9191
return null;
9292
}
9393

94-
return new Date(Date.now() + this.retryAfterSeconds * 1000);
94+
return new Date(this.requestTime.getTime() + this.retryAfterSeconds * 1000);
9595
}
9696

9797
const date = new Date(this.retryAfterHeader);

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"prettier": "^3.0.3",
8484
"ts-jest": "29.1.2",
8585
"ts-node": "10.9.2",
86-
"typescript": "5.4.3",
86+
"typescript": "5.4.4"
8787
"undici": "^5.0.0"
8888
}
8989
}

0 commit comments

Comments
 (0)