@flagix/js-sdk 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
- package/src/client.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @flagix/js-sdk@1.
|
|
2
|
+
> @flagix/js-sdk@1.2.0 build /home/runner/work/flagix/flagix/sdk/javascript
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --clean
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m15.58 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 46ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m17.27 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 46ms
|
|
16
16
|
[34mDTS[39m Build start
|
|
17
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 2398ms
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.30 KB[39m
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.30 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @flagix/js-sdk
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 70d02db: feat: implement reactive context synchronization
|
|
8
|
+
|
|
9
|
+
- Added 'context' prop to FlagixProvider for automatic SDK syncing.
|
|
10
|
+
- Updated setContext to trigger real-time updates for all flag listeners.
|
|
11
|
+
- Improved FlagixProvider stability to prevent unnecessary re-initializations.
|
|
12
|
+
|
|
3
13
|
## 1.1.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Flagix
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -174,6 +174,9 @@ var FlagixClient = class {
|
|
|
174
174
|
"info",
|
|
175
175
|
"[Flagix SDK] Context updated. Evaluations will use the new context."
|
|
176
176
|
);
|
|
177
|
+
for (const flagKey of this.localCache.keys()) {
|
|
178
|
+
this.emitter.emit(FLAG_UPDATE_EVENT, flagKey);
|
|
179
|
+
}
|
|
177
180
|
}
|
|
178
181
|
async fetchInitialConfig() {
|
|
179
182
|
const url = `${this.apiBaseUrl}/api/flag-config/all`;
|
package/dist/index.mjs
CHANGED
|
@@ -138,6 +138,9 @@ var FlagixClient = class {
|
|
|
138
138
|
"info",
|
|
139
139
|
"[Flagix SDK] Context updated. Evaluations will use the new context."
|
|
140
140
|
);
|
|
141
|
+
for (const flagKey of this.localCache.keys()) {
|
|
142
|
+
this.emitter.emit(FLAG_UPDATE_EVENT, flagKey);
|
|
143
|
+
}
|
|
141
144
|
}
|
|
142
145
|
async fetchInitialConfig() {
|
|
143
146
|
const url = `${this.apiBaseUrl}/api/flag-config/all`;
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -135,6 +135,10 @@ export class FlagixClient {
|
|
|
135
135
|
"info",
|
|
136
136
|
"[Flagix SDK] Context updated. Evaluations will use the new context."
|
|
137
137
|
);
|
|
138
|
+
|
|
139
|
+
for (const flagKey of this.localCache.keys()) {
|
|
140
|
+
this.emitter.emit(FLAG_UPDATE_EVENT, flagKey);
|
|
141
|
+
}
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
private async fetchInitialConfig(): Promise<void> {
|