@replanejs/svelte 0.8.0 → 0.8.2
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/replane-dev/replane-javascript/blob/main/LICENSE)
|
|
5
5
|
[](https://github.com/orgs/replane-dev/discussions)
|
|
6
6
|
|
|
7
|
-
Svelte SDK for [Replane](https://github.com/replane-dev/replane
|
|
7
|
+
Svelte SDK for [Replane](https://github.com/replane-dev/replane) - feature flags and remote configuration with reactive stores.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -181,7 +181,7 @@ For better type safety, create typed versions of the store functions:
|
|
|
181
181
|
|
|
182
182
|
```ts
|
|
183
183
|
// $lib/replane/index.ts
|
|
184
|
-
import { createTypedConfig, createTypedReplane } from
|
|
184
|
+
import { createTypedConfig, createTypedReplane } from "@replanejs/svelte";
|
|
185
185
|
|
|
186
186
|
interface AppConfigs {
|
|
187
187
|
theme: { darkMode: boolean; primaryColor: string };
|
|
@@ -216,7 +216,7 @@ For server-side rendering, fetch configs on the server and restore on the client
|
|
|
216
216
|
|
|
217
217
|
```ts
|
|
218
218
|
// src/routes/+layout.server.ts
|
|
219
|
-
import { getReplaneSnapshot } from
|
|
219
|
+
import { getReplaneSnapshot } from "@replanejs/svelte";
|
|
220
220
|
|
|
221
221
|
export async function load() {
|
|
222
222
|
const snapshot = await getReplaneSnapshot({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replanejs/svelte",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@sveltejs/package": "^2.3.10",
|