New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@featurevisor/site

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featurevisor/site - npm Package Compare versions

Comparing version 1.0.0 to 1.1.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [1.1.1](https://github.com/featurevisor/featurevisor/compare/v1.1.0...v1.1.1) (2024-01-11)
### Bug Fixes
* stringify variable value when rendering in generated site ([#243](https://github.com/featurevisor/featurevisor/issues/243)) ([9daf95b](https://github.com/featurevisor/featurevisor/commit/9daf95b47885775a4151139a69d8b85720f1da0a))
# [0.69.0](https://github.com/featurevisor/featurevisor/compare/v0.68.0...v0.69.0) (2023-12-13)

@@ -8,0 +19,0 @@

421

mock/search-index.json
{
"links": {
"attribute": "https://github.com/fahad19/featurevisor/blob/site-variable-show/examples/example-1/attributes/{{key}}.yml",
"segment": "https://github.com/fahad19/featurevisor/blob/site-variable-show/examples/example-1/segments/{{key}}.yml",
"feature": "https://github.com/fahad19/featurevisor/blob/site-variable-show/examples/example-1/features/{{key}}.yml",
"commit": "https://github.com/fahad19/featurevisor/commit/{{hash}}"
},
"entities": {

@@ -9,2 +15,7 @@ "attributes": [

"key": "country",
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": [],

@@ -15,7 +26,25 @@ "usedInSegments": ["germany", "netherlands", "switzerland"]

"archived": false,
"description": "current date passed as ISO 8601 string or Date object",
"type": "string",
"key": "date",
"lastModified": {
"commit": "b555f39",
"timestamp": "2023-05-13T19:36:48+02:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": [],
"usedInSegments": ["blackFridayWeekend"]
},
{
"archived": false,
"description": "device type",
"type": "string",
"key": "device",
"usedInFeatures": [],
"usedInSegments": ["mobile"]
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["foo"],
"usedInSegments": ["mobile", "unknownDevice"]
},

@@ -27,2 +56,7 @@ {

"key": "loggedIn",
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": [],

@@ -37,4 +71,21 @@ "usedInSegments": []

"key": "userId",
"usedInFeatures": ["foo"],
"usedInSegments": []
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["foo", "showPopup"],
"usedInSegments": ["qa"]
},
{
"description": "Version number of the app",
"type": "string",
"key": "version",
"lastModified": {
"commit": "dd7fda3",
"timestamp": "2023-11-14T17:39:51+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": [],
"usedInSegments": ["version_5.5"]
}

@@ -45,6 +96,28 @@ ],

"archived": false,
"description": "black friday weekend",
"conditions": {
"and": [
{ "attribute": "date", "operator": "after", "value": "2023-11-24T00:00:00.000Z" },
{ "attribute": "date", "operator": "before", "value": "2023-11-27T00:00:00.000Z" }
]
},
"key": "blackFridayWeekend",
"lastModified": {
"commit": "b555f39",
"timestamp": "2023-05-13T19:36:48+02:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["discount"]
},
{
"archived": false,
"description": "users from Germany",
"conditions": { "and": [{ "attribute": "country", "operator": "equals", "value": "de" }] },
"key": "germany",
"usedInFeatures": ["bar", "foo", "sidebar"]
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["bar", "checkout", "foo", "qux", "sidebar"]
},

@@ -58,2 +131,7 @@ {

"key": "mobile",
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["foo"]

@@ -66,5 +144,21 @@ },

"key": "netherlands",
"usedInFeatures": ["sidebar"]
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["checkout", "foo", "redesign", "sidebar"]
},
{
"description": "for testing force API in features",
"conditions": [{ "attribute": "userId", "operator": "in", "value": ["user-1", "user-2"] }],
"key": "qa",
"lastModified": {
"commit": "a2aebe6",
"timestamp": "2023-11-21T17:50:37+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["showPopup"]
},
{
"archived": false,

@@ -74,3 +168,38 @@ "description": "users from Switzerland",

"key": "switzerland",
"usedInFeatures": ["bar", "foo"]
"lastModified": {
"commit": "f529287",
"timestamp": "2023-03-05T18:38:34+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["bar", "foo", "sidebar"]
},
{
"archived": false,
"description": "users with unknown device",
"conditions": [{ "attribute": "device", "operator": "equals", "value": null }],
"key": "unknownDevice",
"lastModified": {
"commit": "16a47c5",
"timestamp": "2023-10-12T16:07:00+02:00",
"author": "Paweł Data"
},
"usedInFeatures": []
},
{
"description": "Version equals to 5.5",
"conditions": [
{
"or": [
{ "attribute": "version", "operator": "equals", "value": 5.5 },
{ "attribute": "version", "operator": "equals", "value": "5.5" }
]
}
],
"key": "version_5.5",
"lastModified": {
"commit": "dd7fda3",
"timestamp": "2023-11-14T17:39:51+01:00",
"author": "Fahad Heylaal"
},
"usedInFeatures": ["footer"]
}

@@ -80,5 +209,5 @@ ],

{
"description": "Example with object variable type",
"tags": ["all"],
"bucketBy": "userId",
"defaultVariation": "control",
"variablesSchema": [

@@ -97,5 +226,4 @@ { "key": "color", "type": "string", "defaultValue": "red" },

"variations": [
{ "type": "string", "value": "control", "weight": 33 },
{ "value": "control", "weight": 33 },
{
"type": "string",
"value": "b",

@@ -124,9 +252,14 @@ "weight": 33,

},
{ "type": "string", "value": "c", "weight": 34 }
{ "value": "c", "weight": 34 }
],
"environments": {
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] },
"production": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] }
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 50 }] },
"production": { "rules": [{ "key": "1", "segments": "*", "percentage": 50 }] }
},
"key": "bar"
"key": "bar",
"lastModified": {
"commit": "4f52136",
"timestamp": "2023-07-16T21:50:35+02:00",
"author": "Fahad Heylaal"
}
},

@@ -136,8 +269,3 @@ {

"tags": ["all"],
"defaultVariation": false,
"bucketBy": "userId",
"variations": [
{ "description": "Enabled for all", "type": "boolean", "value": true, "weight": 100 },
{ "description": "Disabled for all", "type": "boolean", "value": false, "weight": 0 }
],
"environments": {

@@ -147,19 +275,94 @@ "staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] },

},
"key": "baz"
"key": "baz",
"lastModified": {
"commit": "4f52136",
"timestamp": "2023-07-16T21:50:35+02:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Testing variables without having any variations",
"tags": ["all"],
"bucketBy": "userId",
"variablesSchema": [
{ "key": "showPayments", "type": "boolean", "defaultValue": false },
{ "key": "showShipping", "type": "boolean", "defaultValue": false },
{ "key": "paymentMethods", "type": "array", "defaultValue": ["visa", "mastercard"] }
],
"environments": {
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] },
"production": {
"rules": [
{
"key": "1",
"segments": "netherlands",
"percentage": 100,
"variables": { "paymentMethods": ["ideal", "paypal"] }
},
{
"key": "2",
"segments": "germany",
"percentage": 100,
"variables": { "paymentMethods": ["sofort", "paypal"] }
},
{
"key": "3",
"segments": "*",
"percentage": 100,
"variables": {
"showPayments": true,
"showShipping": true,
"paymentMethods": ["visa", "mastercard", "paypal"]
}
}
]
}
},
"key": "checkout",
"lastModified": {
"commit": "3144f20",
"timestamp": "2023-10-26T08:42:34+02:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Enable discount in checkout flow",
"tags": ["all", "checkout"],
"bucketBy": "userId",
"required": ["sidebar"],
"environments": {
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] },
"production": {
"rules": [
{
"key": "2",
"description": "Black Friday Weekend rule here",
"segments": ["blackFridayWeekend"],
"percentage": 100
},
{ "key": "1", "segments": "*", "percentage": 0 }
]
}
},
"key": "discount",
"lastModified": {
"commit": "7d4db28",
"timestamp": "2023-11-07T18:29:08+01:00",
"author": "Fahad Heylaal"
}
},
{
"archived": false,
"description": "blah",
"tags": ["all", "signIn", "signUp"],
"tags": ["all", "sign-in", "sign-up"],
"bucketBy": "userId",
"defaultVariation": false,
"variablesSchema": [
{ "key": "bar", "type": "string", "defaultValue": "" },
{ "key": "baz", "type": "string", "defaultValue": "" }
{ "key": "baz", "type": "string", "defaultValue": "" },
{ "key": "qux", "type": "boolean", "defaultValue": false }
],
"variations": [
{ "type": "boolean", "value": false, "weight": 50 },
{ "value": "control", "weight": 50 },
{
"type": "boolean",
"value": true,
"value": "treatment",
"weight": 50,

@@ -174,3 +377,7 @@ "variables": [

},
{ "key": "baz", "value": "baz_here" }
{
"key": "baz",
"value": "baz_here",
"overrides": [{ "segments": "netherlands", "value": "baz for NL" }]
}
]

@@ -181,15 +388,13 @@ }

"staging": {
"expose": true,
"force": [
{
"conditions": [
{ "attribute": "userId", "operator": "equals", "value": "test-force-id" }
],
"variation": "treatment"
}
],
"rules": [{ "key": "1", "segments": "*", "percentage": 100 }]
},
"production": {
"expose": true,
"rules": [
{
"key": "1",
"segments": { "and": ["mobile", { "or": ["germany", "switzerland"] }] },
"percentage": 80
},
{ "key": "2", "segments": "*", "percentage": 50 }
],
"force": [

@@ -200,17 +405,65 @@ {

{ "attribute": "userId", "operator": "equals", "value": "123" },
{ "attribute": "deviceId", "operator": "equals", "value": "234" }
{ "attribute": "device", "operator": "equals", "value": "mobile" }
]
},
"variation": true,
"variation": "treatment",
"variables": { "bar": "yoooooo" }
}
],
"rules": [
{
"key": "1",
"segments": { "and": ["mobile", { "or": ["germany", "switzerland"] }] },
"percentage": 80,
"variables": { "qux": true }
},
{ "key": "2", "segments": "*", "percentage": 50 }
]
}
},
"key": "foo"
"key": "foo",
"lastModified": {
"commit": "986fc2f",
"timestamp": "2024-01-04T19:17:05+01:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Checks `not` operator in segments",
"tags": ["all"],
"bucketBy": "userId",
"environments": {
"staging": {
"rules": [{ "key": "1", "segments": [{ "not": ["version_5.5"] }], "percentage": 100 }]
},
"production": { "rules": [{ "key": "1", "segments": "*", "percentage": 80 }] }
},
"key": "footer",
"lastModified": {
"commit": "dd7fda3",
"timestamp": "2023-11-14T17:39:51+01:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Classic on/off switch, that's not exposed in production",
"tags": ["all"],
"bucketBy": "userId",
"environments": {
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] },
"production": {
"expose": false,
"rules": [{ "key": "1", "segments": "*", "percentage": 80 }]
}
},
"key": "hidden",
"lastModified": {
"commit": "cd45121",
"timestamp": "2023-10-26T23:45:18+02:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Variations with weights having decimal places",
"tags": ["all"],
"defaultVariation": "control",
"bucketBy": "userId",

@@ -221,5 +474,4 @@ "variablesSchema": [

"variations": [
{ "type": "string", "value": "control", "weight": 33.34 },
{ "value": "control", "weight": 33.34 },
{
"type": "string",
"value": "b",

@@ -229,17 +481,70 @@ "weight": 33.33,

},
{ "type": "string", "value": "c", "weight": 33.33 }
{ "value": "c", "weight": 33.33 }
],
"environments": {
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 50 }] },
"production": {
"rules": [
{ "key": "1", "segments": ["germany"], "percentage": 50, "variation": "b" },
{ "key": "2", "segments": "*", "percentage": 50 }
]
}
},
"key": "qux",
"lastModified": {
"commit": "4f52136",
"timestamp": "2023-07-16T21:50:35+02:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Enable new design",
"tags": ["all"],
"bucketBy": "userId",
"environments": {
"staging": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] },
"production": { "rules": [{ "key": "1", "segments": "*", "percentage": 100 }] }
"production": { "rules": [{ "key": "1", "segments": "netherlands", "percentage": 100 }] }
},
"key": "qux"
"key": "redesign",
"lastModified": {
"commit": "b3ad42c",
"timestamp": "2023-09-30T21:56:55+02:00",
"author": "Fahad Heylaal"
}
},
{
"description": "for testing force API in features",
"tags": ["all"],
"bucketBy": "userId",
"environments": {
"staging": {
"force": [
{ "segments": "qa", "enabled": true },
{
"conditions": [{ "attribute": "userId", "operator": "equals", "value": "user-3" }],
"enabled": true
}
],
"rules": [{ "key": "1", "segments": "*", "percentage": 0 }]
},
"production": { "rules": [{ "key": "1", "segments": "*", "percentage": 0 }] }
},
"key": "showPopup",
"lastModified": {
"commit": "a2aebe6",
"timestamp": "2023-11-21T17:50:37+01:00",
"author": "Fahad Heylaal"
}
},
{
"description": "Show sidebar or not",
"tags": ["all"],
"bucketBy": "userId",
"defaultVariation": false,
"variablesSchema": [
{ "key": "position", "type": "string", "defaultValue": "left" },
{
"key": "position",
"type": "string",
"description": "position of the sidebar",
"defaultValue": "left"
},
{ "key": "color", "type": "string", "defaultValue": "red" },

@@ -250,6 +555,5 @@ { "key": "sections", "type": "array", "defaultValue": [] },

"variations": [
{ "type": "boolean", "value": false, "weight": 10 },
{ "value": "control", "weight": 10 },
{
"type": "boolean",
"value": true,
"value": "treatment",
"weight": 90,

@@ -262,4 +566,4 @@ "variables": [

"overrides": [
{ "segments": "germany", "value": "yellow" },
{ "segments": "japan", "value": "white" }
{ "segments": ["germany"], "value": "yellow" },
{ "segments": ["switzerland"], "value": "white" }
]

@@ -271,5 +575,5 @@ },

"overrides": [
{ "segments": "germany", "value": ["home", "about", "contact", "imprint"] },
{ "segments": ["germany"], "value": ["home", "about", "contact", "imprint"] },
{
"segments": "netherlands",
"segments": ["netherlands"],
"value": ["home", "about", "contact", "bitterballen"]

@@ -295,3 +599,8 @@ }

},
"key": "sidebar"
"key": "sidebar",
"lastModified": {
"commit": "2a1b73d",
"timestamp": "2023-10-05T18:27:51+02:00",
"author": "Fahad Heylaal"
}
}

@@ -298,0 +607,0 @@ ]

4

package.json
{
"name": "@featurevisor/site",
"version": "1.0.0",
"version": "1.1.1",
"description": "Static site for Featurevisor",

@@ -68,3 +68,3 @@ "main": "dist",

},
"gitHead": "02c2a84b1963688d521065075298c0e04ee6fdf7"
"gitHead": "73ca7d8bace5d7c0a897e8dc862fd81c5f6f103c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc