@fonderie/config 1.0.0 → 1.0.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonderie/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "DB-backed feature flags and remote config — per-environment overrides, TTL-based hot reload, and a typed getConfig helper usable inside any middleware.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fonderie-js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"module": "./dist/index.js",
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "tsup &&
|
|
43
|
+
"build": "tsup && tsup --config tsup.migrations.ts",
|
|
44
44
|
"dev": "tsup --watch",
|
|
45
45
|
"typecheck": "tsc --noEmit",
|
|
46
46
|
"test": "tsx --test src/__tests__/*.test.ts",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"check": "biome check --write src"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@fonderie/core": "^0.1.
|
|
53
|
-
"@fonderie/store": "^0.1.
|
|
52
|
+
"@fonderie/core": "^0.1.1",
|
|
53
|
+
"@fonderie/store": "^0.1.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@fonderie/core": "../core",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
CREATE TABLE IF NOT EXISTS fonderie_config (
|
|
2
|
-
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
3
|
-
key TEXT NOT NULL,
|
|
4
|
-
value TEXT NOT NULL,
|
|
5
|
-
environment TEXT NOT NULL DEFAULT 'all',
|
|
6
|
-
description TEXT,
|
|
7
|
-
active BOOLEAN NOT NULL DEFAULT true,
|
|
8
|
-
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
9
|
-
UNIQUE (key, environment)
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
CREATE INDEX IF NOT EXISTS fonderie_config_env_active_idx
|
|
13
|
-
ON fonderie_config (environment, active);
|