@featurevisor/core
Advanced tools
Comparing version
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.33.0](https://github.com/featurevisor/featurevisor/compare/v1.32.0...v1.33.0) (2025-03-08) | ||
### Features | ||
* allow deprecating variables ([#345](https://github.com/featurevisor/featurevisor/issues/345)) ([cecbf5b](https://github.com/featurevisor/featurevisor/commit/cecbf5beb87d06d46c654c352910766f565e81b2)) | ||
# [1.32.0](https://github.com/featurevisor/featurevisor/compare/v1.31.0...v1.32.0) (2025-02-26) | ||
@@ -8,0 +19,0 @@ |
@@ -72,2 +72,6 @@ { | ||
"properties": { | ||
"deprecated": { | ||
"type": "boolean", | ||
"description": "Indicates whether the variable is deprecated or not." | ||
}, | ||
"key": { | ||
@@ -74,0 +78,0 @@ "type": "string", |
@@ -248,2 +248,3 @@ "use strict"; | ||
defaultValue: v.defaultValue, | ||
deprecated: v.deprecated === true ? true : undefined, | ||
}; | ||
@@ -250,0 +251,0 @@ }); |
@@ -26,2 +26,3 @@ import { z } from "zod"; | ||
variablesSchema: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{ | ||
deprecated: z.ZodOptional<z.ZodBoolean>; | ||
key: z.ZodEffects<z.ZodString, string, string>; | ||
@@ -32,2 +33,3 @@ type: z.ZodEnum<["string", "integer", "boolean", "double", "array", "object", "json"]>; | ||
}, "strict", z.ZodTypeAny, { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -38,2 +40,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
}, { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -44,2 +47,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
}>, "many">, { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -50,2 +54,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
}[], { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -283,2 +288,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
variablesSchema?: { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -340,2 +346,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
variablesSchema?: { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -397,2 +404,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
variablesSchema?: { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -454,2 +462,3 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; | ||
variablesSchema?: { | ||
deprecated?: boolean; | ||
key?: string; | ||
@@ -456,0 +465,0 @@ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array"; |
@@ -288,5 +288,7 @@ "use strict"; | ||
]), | ||
// @TODO: in v2, this will become a dictionary | ||
variablesSchema: zod_1.z | ||
.array(zod_1.z | ||
.object({ | ||
deprecated: zod_1.z.boolean().optional(), | ||
key: zod_1.z | ||
@@ -293,0 +295,0 @@ .string() |
{ | ||
"name": "@featurevisor/core", | ||
"version": "1.32.0", | ||
"version": "1.33.0", | ||
"description": "Core package of Featurevisor for Node.js usage", | ||
@@ -43,5 +43,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@featurevisor/sdk": "1.32.0", | ||
"@featurevisor/site": "1.32.0", | ||
"@featurevisor/types": "1.32.0", | ||
"@featurevisor/sdk": "1.33.0", | ||
"@featurevisor/site": "1.33.0", | ||
"@featurevisor/types": "1.33.0", | ||
"axios": "^1.3.4", | ||
@@ -58,3 +58,3 @@ "js-yaml": "^4.1.0", | ||
}, | ||
"gitHead": "c360fac0c91b586847633c2d41cf5e4d6922a9b8" | ||
"gitHead": "46a939abcc0158eee6cf1e845b068f7885798bcf" | ||
} |
@@ -269,2 +269,3 @@ import * as fs from "fs"; | ||
defaultValue: v.defaultValue, | ||
deprecated: v.deprecated === true ? true : undefined, | ||
}; | ||
@@ -271,0 +272,0 @@ }); |
@@ -385,2 +385,3 @@ import { z } from "zod"; | ||
]), | ||
// @TODO: in v2, this will become a dictionary | ||
variablesSchema: z | ||
@@ -390,2 +391,3 @@ .array( | ||
.object({ | ||
deprecated: z.boolean().optional(), | ||
key: z | ||
@@ -392,0 +394,0 @@ .string() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1237937
0.1%17414
0.11%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated