@managemint-solutions/entities 1.18.0 → 1.19.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.
|
@@ -4,6 +4,13 @@ import type { ConfigEntity } from '../configs';
|
|
|
4
4
|
* it in Supabase Studio; the api reads it by this name and caches the value for a day.
|
|
5
5
|
*/
|
|
6
6
|
export declare const FEATURE_FLAGS_CONFIG_NAME = "portal_feature_flags";
|
|
7
|
+
/**
|
|
8
|
+
* The Redis entry the api writes the flags to, and the portal reads first - the same
|
|
9
|
+
* entry, so one write serves both. Bump the version when the wire shape changes; old
|
|
10
|
+
* entries simply stop matching.
|
|
11
|
+
*/
|
|
12
|
+
export declare const FEATURE_FLAGS_CACHE_VERSION = "v1";
|
|
13
|
+
export declare const FEATURE_FLAGS_CACHE_KEY = "config:v1:portal_feature_flags";
|
|
7
14
|
/**
|
|
8
15
|
* One flag's rule: `true` for everyone, `false` for no one, or on only for the listed
|
|
9
16
|
* emails. Anything else - a missing flag, a malformed rule - is read as off by the portal.
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FEATURE_FLAGS_CONFIG_NAME = void 0;
|
|
3
|
+
exports.FEATURE_FLAGS_CACHE_KEY = exports.FEATURE_FLAGS_CACHE_VERSION = exports.FEATURE_FLAGS_CONFIG_NAME = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* The row of `public.configs` that holds the portal's feature flags. Scott creates and edits
|
|
6
6
|
* it in Supabase Studio; the api reads it by this name and caches the value for a day.
|
|
7
7
|
*/
|
|
8
8
|
exports.FEATURE_FLAGS_CONFIG_NAME = 'portal_feature_flags';
|
|
9
|
+
/**
|
|
10
|
+
* The Redis entry the api writes the flags to, and the portal reads first - the same
|
|
11
|
+
* entry, so one write serves both. Bump the version when the wire shape changes; old
|
|
12
|
+
* entries simply stop matching.
|
|
13
|
+
*/
|
|
14
|
+
exports.FEATURE_FLAGS_CACHE_VERSION = 'v1';
|
|
15
|
+
exports.FEATURE_FLAGS_CACHE_KEY = `config:${exports.FEATURE_FLAGS_CACHE_VERSION}:${exports.FEATURE_FLAGS_CONFIG_NAME}`;
|
package/package.json
CHANGED