Skip to content

Commit f74ec19

Browse files
Merge branch 'main' into goff-support-tracking-web
2 parents ac764f1 + df1ec47 commit f74ec19

File tree

13 files changed

+604
-568
lines changed

13 files changed

+604
-568
lines changed

.github/workflows/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
name: Run Release Please
66
jobs:
77
release-please:
8+
environment: publish
89
runs-on: ubuntu-latest
910

1011
# Release-please creates a PR that tracks all changes

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"libs/hooks/open-telemetry": "0.4.0",
3-
"libs/providers/go-feature-flag": "0.7.6",
3+
"libs/providers/go-feature-flag": "0.7.7",
44
"libs/providers/flagd": "0.13.3",
55
"libs/providers/flagd-web": "0.7.3",
66
"libs/providers/env-var": "0.3.1",

libs/providers/aws-ssm/package-lock.json

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

libs/providers/flipt-web/package-lock.json

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

libs/providers/flipt-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"peerDependencies": {
1212
"@openfeature/web-sdk": "^1.0.0",
13-
"@flipt-io/flipt-client-js": "^0.0.1",
13+
"@flipt-io/flipt-client-js": "^0.0.1 || ^0.0.2",
1414
"undici": "^5.0.0"
1515
}
1616
}

libs/providers/go-feature-flag/CHANGELOG.md

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

3+
## [0.7.7](https://github.com/open-feature/js-sdk-contrib/compare/go-feature-flag-provider-v0.7.6...go-feature-flag-provider-v0.7.7) (2025-04-11)
4+
5+
6+
### 🐛 Bug Fixes
7+
8+
* **deps:** update dependency axios to v1.8.4 ([#1273](https://github.com/open-feature/js-sdk-contrib/issues/1273)) ([18a0cb9](https://github.com/open-feature/js-sdk-contrib/commit/18a0cb906a0c7e437b52f4645538a859d817ae18))
9+
* **gofeatureflag:** Error for configurationHasChanged when slash was missing in endpoint ([#1229](https://github.com/open-feature/js-sdk-contrib/issues/1229)) ([ce6a8e1](https://github.com/open-feature/js-sdk-contrib/commit/ce6a8e1a800604b263ee76b305f5ca801aa2641d))
10+
11+
12+
### 🧹 Chore
13+
14+
* **main:** release flipt-web-provider 0.1.3 ([#1253](https://github.com/open-feature/js-sdk-contrib/issues/1253)) ([7be62ae](https://github.com/open-feature/js-sdk-contrib/commit/7be62ae45f4dfbaefecc6205a28060698fdd884d))
15+
316
## [0.7.6](https://github.com/open-feature/js-sdk-contrib/compare/go-feature-flag-provider-v0.7.5...go-feature-flag-provider-v0.7.6) (2025-03-12)
417

518

libs/providers/go-feature-flag/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openfeature/go-feature-flag-provider",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"license": "Apache-2.0",
55
"scripts": {
66
"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",
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"object-hash": "^3.0.0",
1414
"lru-cache": "^11.0.0",
15-
"axios": "1.8.2",
15+
"axios": "1.8.4",
1616
"copy-anything": "^3.0.5"
1717
}
1818
}

libs/providers/go-feature-flag/src/lib/controller/goff-api.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ export class GoffApiController {
183183
}
184184

185185
public async configurationHasChanged(): Promise<ConfigurationChange> {
186-
const url = `${this.endpoint}v1/flag/change`;
186+
const endpointURL = new URL(this.endpoint);
187+
endpointURL.pathname = 'v1/flag/change';
187188

188189
const headers: any = {
189190
'Content-Type': 'application/json',
@@ -193,7 +194,7 @@ export class GoffApiController {
193194
headers['If-None-Match'] = this.etag;
194195
}
195196
try {
196-
const response = await axios.get(url, { headers });
197+
const response = await axios.get(endpointURL.toString(), { headers });
197198
if (response.status === 304) {
198199
return ConfigurationChange.FLAG_CONFIGURATION_NOT_CHANGED;
199200
}

0 commit comments

Comments
 (0)