@replanejs/svelte 0.9.4 → 1.0.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/README.md CHANGED
@@ -1,12 +1,29 @@
1
- # @replanejs/svelte
2
-
3
- [![npm](https://img.shields.io/npm/v/@replanejs/svelte)](https://www.npmjs.com/package/@replanejs/svelte)
4
- [![License](https://img.shields.io/github/license/replane-dev/replane-javascript)](https://github.com/replane-dev/replane-javascript/blob/main/LICENSE)
5
- [![Community](https://img.shields.io/badge/discussions-join-blue?logo=github)](https://github.com/orgs/replane-dev/discussions)
6
-
7
- > **Tip:** Get started instantly with [Replane Cloud](https://cloud.replane.dev) — no infrastructure required.
8
-
9
- Svelte SDK for [Replane](https://github.com/replane-dev/replane) - feature flags and remote configuration with reactive stores.
1
+ <h1 align="center">Replane Svelte SDK</h1>
2
+ <p align="center">Dynamic configuration for Svelte and SvelteKit applications.</p>
3
+
4
+ <p align="center">
5
+ <a href="https://cloud.replane.dev"><img src="https://img.shields.io/badge/Try-Replane%20Cloud-blue" alt="Replane Cloud"></a>
6
+ <a href="https://www.npmjs.com/package/@replanejs/svelte"><img src="https://img.shields.io/npm/v/@replanejs/svelte" alt="npm"></a>
7
+ <a href="https://github.com/replane-dev/replane-javascript/blob/main/LICENSE"><img src="https://img.shields.io/github/license/replane-dev/replane-javascript" alt="License"></a>
8
+ <a href="https://github.com/orgs/replane-dev/discussions"><img src="https://img.shields.io/badge/discussions-join-blue?logo=github" alt="Community"></a>
9
+ </p>
10
+
11
+ <picture>
12
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/replane-dev/replane/main/public/replane-window-screenshot-dark-v1.png">
13
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/replane-dev/replane/main/public/replane-window-screenshot-light-with-border-v2.jpg">
14
+ <img alt="Replane Screenshot" src="https://raw.githubusercontent.com/replane-dev/replane/main/public/replane-window-screenshot-light-with-border-v2.jpg">
15
+ </picture>
16
+
17
+ [Replane](https://github.com/replane-dev/replane) is a dynamic configuration manager. Store feature flags, app settings, and operational config in one place—with version history, optional approvals, and realtime sync to your services. No redeploys needed.
18
+
19
+ ## Why Dynamic Configuration?
20
+
21
+ - **Feature flags** – toggle features, run A/B tests, roll out to user segments
22
+ - **Operational tuning** – adjust limits, TTLs, and timeouts without redeploying
23
+ - **Per-environment settings** – different values for production, staging, dev
24
+ - **Incident response** – instantly revert to a known-good version
25
+ - **Cross-service configuration** – share settings with realtime sync
26
+ - **Non-engineer access** – safe editing with schema validation
10
27
 
11
28
  ## Installation
12
29
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { default as ReplaneContext } from "./ReplaneContext.svelte";
2
2
  export { getReplane, config, configFrom, createTypedReplane, createTypedConfig } from "./stores";
3
3
  export { setReplaneContext, getReplaneContext, hasReplaneContext } from "./context";
4
- export { Replane, getReplaneSnapshot, ReplaneError, ReplaneErrorCode } from "@replanejs/sdk";
5
- export type { ReplaneSnapshot, ReplaneContext as ReplaneContextType, ReplaneLogger, ReplaneOptions, ConnectOptions, GetConfigOptions, GetReplaneSnapshotOptions, } from "@replanejs/sdk";
4
+ export { Replane, getReplaneSnapshot, ReplaneError, ReplaneErrorCode, InMemoryReplaneClient, } from "@replanejs/sdk";
5
+ export type { ReplaneSnapshot, ReplaneContext as ReplaneContextType, ReplaneLogger, ReplaneOptions, ConnectOptions, GetConfigOptions, GetReplaneSnapshotOptions, InMemoryReplaneClientOptions, SetConfigOptions, Override, Condition, } from "@replanejs/sdk";
6
6
  export type { ReplaneContextValue, ReplaneContextProps, ReplaneContextWithClientProps, ReplaneContextWithOptionsProps, } from "./types";
7
7
  export { hasClient } from "./types";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAy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7B,8BAA8B,GAC/B,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -5,6 +5,6 @@ export { getReplane, config, configFrom, createTypedReplane, createTypedConfig }
5
5
  // Context utilities (for advanced use cases)
6
6
  export { setReplaneContext, getReplaneContext, hasReplaneContext } from "./context";
7
7
  // Re-export from SDK for convenience
8
- export { Replane, getReplaneSnapshot, ReplaneError, ReplaneErrorCode } from "@replanejs/sdk";
8
+ export { Replane, getReplaneSnapshot, ReplaneError, ReplaneErrorCode, InMemoryReplaneClient, } from "@replanejs/sdk";
9
9
  // Type guards
10
10
  export { hasClient } from "./types";
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const VERSION = "0.9.4";
2
- export declare const DEFAULT_AGENT = "replane-js-svelte/0.9.4";
1
+ export declare const VERSION = "1.0.0";
2
+ export declare const DEFAULT_AGENT = "replane-js-svelte/1.0.0";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Auto-generated - do not edit manually
2
- export const VERSION = "0.9.4";
2
+ export const VERSION = "1.0.0";
3
3
  export const DEFAULT_AGENT = `replane-js-svelte/${VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replanejs/svelte",
3
- "version": "0.9.4",
3
+ "version": "1.0.0",
4
4
  "description": "Svelte SDK for Replane - feature flags and remote configuration",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",
@@ -39,11 +39,11 @@
39
39
  "svelte": ">=4.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@replanejs/sdk": "^0.9.4"
42
+ "@replanejs/sdk": "^1.0.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@sveltejs/package": "^2.3.10",
46
- "@sveltejs/vite-plugin-svelte": "^5.0.3",
46
+ "@sveltejs/vite-plugin-svelte": "^6.2.1",
47
47
  "@testing-library/jest-dom": "^6.9.1",
48
48
  "@testing-library/svelte": "^5.2.6",
49
49
  "@types/node": "^22.19.3",
@@ -52,7 +52,7 @@
52
52
  "svelte": "^5.0.0",
53
53
  "svelte-check": "^4.1.4",
54
54
  "typescript": "^5.4.0",
55
- "vite": "^6.0.0",
55
+ "vite": "^7.3.0",
56
56
  "vitest": "^3.2.4"
57
57
  },
58
58
  "engines": {