@replanejs/svelte 0.8.12 → 0.8.13
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/README.md +15 -0
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,6 +45,21 @@ npm install @replanejs/svelte
|
|
|
45
45
|
{/if}
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
## Client Options
|
|
49
|
+
|
|
50
|
+
The `options` prop accepts all options from `@replanejs/sdk`. Key options:
|
|
51
|
+
|
|
52
|
+
| Option | Type | Required | Description |
|
|
53
|
+
| ------------------------- | ---------------------- | -------- | ------------------------------------------ |
|
|
54
|
+
| `baseUrl` | `string` | Yes | Replane server URL |
|
|
55
|
+
| `sdkKey` | `string` | Yes | SDK key for authentication |
|
|
56
|
+
| `context` | `Record<string, any>` | No | Default context for override evaluations |
|
|
57
|
+
| `defaults` | `Record<string, any>` | No | Default values if server is unavailable |
|
|
58
|
+
| `required` | `string[]` or `object` | No | Configs that must exist for initialization |
|
|
59
|
+
| `initializationTimeoutMs` | `number` | No | SDK initialization timeout (default: 5000) |
|
|
60
|
+
|
|
61
|
+
See [`@replanejs/sdk` documentation](https://github.com/replane-dev/replane-javascript/tree/main/packages/sdk#options) for the complete list of options.
|
|
62
|
+
|
|
48
63
|
## API
|
|
49
64
|
|
|
50
65
|
### config
|
package/dist/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
2
|
-
export declare const DEFAULT_AGENT = "replane-js-svelte/0.8.
|
|
1
|
+
export declare const VERSION = "0.8.13";
|
|
2
|
+
export declare const DEFAULT_AGENT = "replane-js-svelte/0.8.13";
|
|
3
3
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replanejs/svelte",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.13",
|
|
4
4
|
"description": "Svelte SDK for Replane - feature flags and remote configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"svelte": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"svelte": ">=4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@replanejs/sdk": "^0.8.
|
|
42
|
+
"@replanejs/sdk": "^0.8.13"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@sveltejs/package": "^2.3.10",
|