unleash-server 4.10.2 → 4.10.5
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/dist/migrations/20220511111823-patch-broken-feature-strategies.d.ts +2 -0
- package/dist/migrations/20220511111823-patch-broken-feature-strategies.js +14 -0
- package/dist/migrations/20220511111823-patch-broken-feature-strategies.js.map +1 -0
- package/dist/migrations/20220511124923-fix-patch-broken-feature-strategies.d.ts +2 -0
- package/dist/migrations/20220511124923-fix-patch-broken-feature-strategies.js +15 -0
- package/dist/migrations/20220511124923-fix-patch-broken-feature-strategies.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
exports.up = function (db, cb) {
|
|
3
|
+
db.runSql(`
|
|
4
|
+
UPDATE feature_strategies
|
|
5
|
+
SET project_name = project
|
|
6
|
+
FROM features
|
|
7
|
+
WHERE features.project != feature_strategies.project_name;
|
|
8
|
+
`, cb);
|
|
9
|
+
};
|
|
10
|
+
// This is a fix for a broken state, we don't want this to be rolled back
|
|
11
|
+
exports.down = function (db, cb) {
|
|
12
|
+
cb();
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=20220511111823-patch-broken-feature-strategies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20220511111823-patch-broken-feature-strategies.js","sourceRoot":"","sources":["../../src/migrations/20220511111823-patch-broken-feature-strategies.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,CAAC,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE;IACzB,EAAE,CAAC,MAAM,CACL;;;;;SAKC,EACD,EAAE,CACL,CAAC;AACN,CAAC,CAAC;AAEF,yEAAyE;AACzE,OAAO,CAAC,IAAI,GAAG,UAAU,EAAE,EAAE,EAAE;IAC3B,EAAE,EAAE,CAAC;AACT,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
exports.up = function (db, cb) {
|
|
3
|
+
db.runSql(`
|
|
4
|
+
UPDATE feature_strategies
|
|
5
|
+
SET project_name = project
|
|
6
|
+
FROM features
|
|
7
|
+
WHERE features.project != feature_strategies.project_name
|
|
8
|
+
AND features.name = feature_strategies.feature_name;
|
|
9
|
+
`, cb);
|
|
10
|
+
};
|
|
11
|
+
// This is a fix for a broken state, we don't want this to be rolled back
|
|
12
|
+
exports.down = function (db, cb) {
|
|
13
|
+
cb();
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=20220511124923-fix-patch-broken-feature-strategies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20220511124923-fix-patch-broken-feature-strategies.js","sourceRoot":"","sources":["../../src/migrations/20220511124923-fix-patch-broken-feature-strategies.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,CAAC,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE;IACzB,EAAE,CAAC,MAAM,CACL;;;;;;SAMC,EACD,EAAE,CACL,CAAC;AACN,CAAC,CAAC;AAEF,yEAAyE;AACzE,OAAO,CAAC,IAAI,GAAG,UAAU,EAAE,EAAE,EAAE;IAC3B,EAAE,EAAE,CAAC;AACT,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unleash-server",
|
|
3
3
|
"description": "Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.",
|
|
4
|
-
"version": "4.10.
|
|
4
|
+
"version": "4.10.5",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unleash",
|
|
7
7
|
"feature toggle",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"stoppable": "^1.1.0",
|
|
117
117
|
"type-is": "^1.6.18",
|
|
118
118
|
"@unleash/express-openapi": "^0.2.0",
|
|
119
|
-
"unleash-frontend": "4.10.
|
|
119
|
+
"unleash-frontend": "4.10.3",
|
|
120
120
|
"uuid": "^8.3.2",
|
|
121
121
|
"semver": "^7.3.5"
|
|
122
122
|
},
|