@takeshape/schema 8.211.4 → 8.214.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.
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +4 -1
- package/dist/migration/to/v3.20.0.d.ts +5 -0
- package/dist/migration/to/v3.20.0.d.ts.map +1 -0
- package/dist/migration/to/v3.20.0.js +34 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.d.ts.map +1 -1
- package/dist/project-schema/index.js +20 -3
- package/dist/project-schema/latest.d.ts +1 -1
- package/dist/project-schema/migrate.d.ts.map +1 -1
- package/dist/project-schema/migrate.js +4 -0
- package/dist/project-schema/v3.20.0.d.ts +1337 -0
- package/dist/project-schema/v3.20.0.d.ts.map +1 -0
- package/dist/project-schema/v3.20.0.js +5 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -4
- package/dist/schemas/index.ts +4 -2
- package/dist/schemas/project-schema/latest.json +2 -2
- package/dist/schemas/project-schema/v3.20.0.json +2363 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/types/types.d.ts +2 -2
- package/dist/types/types.d.ts.map +1 -1
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.20.0.js +24 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.20.0.js +1 -0
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +2 -2
- package/es/schemas/project-schema/v3.20.0.json +2363 -0
- package/es/schemas/project-schema.json +3 -0
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +3 -2
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +3 -2
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shopify-lookbook.json +3 -2
- package/examples/latest/shopify-product-2022-07.json +4 -3
- package/examples/latest/shopify-store-with-widget.json +3 -2
- package/examples/latest/stripe-product-runtime-schema.json +4426 -0
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/examples/source/stripe-product-runtime-schema.json +4426 -0
- package/package.json +4 -4
|
@@ -26,6 +26,7 @@ export declare const migrateTo: {
|
|
|
26
26
|
'v3.18.1': import("./types").MigrateFunction<import("..").ProjectSchemaV3_18_0, import("..").ProjectSchemaV3_18_1>;
|
|
27
27
|
'v3.18.2': import("./types").MigrateFunction<import("..").ProjectSchemaV3_18_1, import("..").ProjectSchemaV3_18_2>;
|
|
28
28
|
'v3.19.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_18_2, import("..").ProjectSchemaV3_19_0>;
|
|
29
|
+
'v3.20.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_19_0, import("..").ProjectSchemaV3_20_0>;
|
|
29
30
|
};
|
|
30
31
|
export * from './utils';
|
|
31
32
|
export declare const listTypePrefix = "PaginatedList";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migration/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migration/index.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrB,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,YAAY,EAAC,6BAA6B,EAAC,MAAM,SAAS,CAAC"}
|
package/dist/migration/index.js
CHANGED
|
@@ -63,6 +63,8 @@ var _v26 = _interopRequireDefault(require("./to/v3.18.2"));
|
|
|
63
63
|
|
|
64
64
|
var _v27 = _interopRequireDefault(require("./to/v3.19.0"));
|
|
65
65
|
|
|
66
|
+
var _v28 = _interopRequireDefault(require("./to/v3.20.0"));
|
|
67
|
+
|
|
66
68
|
var _utils = require("./utils");
|
|
67
69
|
|
|
68
70
|
Object.keys(_utils).forEach(function (key) {
|
|
@@ -106,7 +108,8 @@ const migrateTo = {
|
|
|
106
108
|
'v3.18.0': _v24.default,
|
|
107
109
|
'v3.18.1': _v25.default,
|
|
108
110
|
'v3.18.2': _v26.default,
|
|
109
|
-
'v3.19.0': _v27.default
|
|
111
|
+
'v3.19.0': _v27.default,
|
|
112
|
+
'v3.20.0': _v28.default
|
|
110
113
|
};
|
|
111
114
|
exports.migrateTo = migrateTo;
|
|
112
115
|
const listTypePrefix = 'PaginatedList';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProjectSchemaV3_19_0, ProjectSchemaV3_20_0 } from '../../project-schema';
|
|
2
|
+
import type { MigrateFunction } from '../types';
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaV3_19_0, ProjectSchemaV3_20_0>;
|
|
4
|
+
export default migrate;
|
|
5
|
+
//# sourceMappingURL=v3.20.0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAmB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAKxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _mapValues = _interopRequireDefault(require("lodash/mapValues"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function updateGenericServices(projectSchema) {
|
|
13
|
+
if (projectSchema.services) {
|
|
14
|
+
return { ...projectSchema,
|
|
15
|
+
services: (0, _mapValues.default)(projectSchema.services, serviceConfig => // generic provider has been renamed to match service type
|
|
16
|
+
serviceConfig.provider === 'shopify' ? { ...serviceConfig,
|
|
17
|
+
options: { ...serviceConfig.options,
|
|
18
|
+
legacyApp: true
|
|
19
|
+
}
|
|
20
|
+
} : serviceConfig)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return projectSchema;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const migrate = async (_, projectSchema) => {
|
|
28
|
+
return { ...updateGenericServices(projectSchema),
|
|
29
|
+
schemaVersion: '3.20.0'
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var _default = migrate;
|
|
34
|
+
exports.default = _default;
|
|
@@ -27,6 +27,7 @@ export * from './v3.18.0';
|
|
|
27
27
|
export * from './v3.18.1';
|
|
28
28
|
export * from './v3.18.2';
|
|
29
29
|
export * from './v3.19.0';
|
|
30
|
+
export * from './v3.20.0';
|
|
30
31
|
export * from './v4.0.0';
|
|
31
32
|
import { ProjectSchemaV1_0_0 } from './v1.0.0';
|
|
32
33
|
import { ProjectSchemaV3_0_0 } from './v3.0.0';
|
|
@@ -56,9 +57,10 @@ import { ProjectSchemaV3_18_0 } from './v3.18.0';
|
|
|
56
57
|
import { ProjectSchemaV3_18_1 } from './v3.18.1';
|
|
57
58
|
import { ProjectSchemaV3_18_2 } from './v3.18.2';
|
|
58
59
|
import { ProjectSchemaV3_19_0 } from './v3.19.0';
|
|
60
|
+
import { ProjectSchemaV3_20_0 } from './v3.20.0';
|
|
59
61
|
import { ProjectSchemaV4_0_0 } from './v4.0.0';
|
|
60
62
|
import { ProjectSchema } from './latest';
|
|
61
|
-
export declare type AnyProjectSchema = ProjectSchemaV1_0_0 | ProjectSchemaV3_0_0 | ProjectSchemaV3_1_0 | ProjectSchemaV3_2_0 | ProjectSchemaV3_3_0 | ProjectSchemaV3_4_0 | ProjectSchemaV3_5_0 | ProjectSchemaV3_5_1 | ProjectSchemaV3_6_0 | ProjectSchemaV3_7_0 | ProjectSchemaV3_8_0 | ProjectSchemaV3_9_0 | ProjectSchemaV3_10_0 | ProjectSchemaV3_11_0 | ProjectSchemaV3_12_0 | ProjectSchemaV3_12_1 | ProjectSchemaV3_12_2 | ProjectSchemaV3_12_3 | ProjectSchemaV3_13_0 | ProjectSchemaV3_14_0 | ProjectSchemaV3_15_0 | ProjectSchemaV3_16_0 | ProjectSchemaV3_17_0 | ProjectSchemaV3_17_1 | ProjectSchemaV3_18_0 | ProjectSchemaV3_18_1 | ProjectSchemaV3_18_2 | ProjectSchemaV3_19_0 | ProjectSchemaV4_0_0 | ProjectSchema;
|
|
63
|
+
export declare type AnyProjectSchema = ProjectSchemaV1_0_0 | ProjectSchemaV3_0_0 | ProjectSchemaV3_1_0 | ProjectSchemaV3_2_0 | ProjectSchemaV3_3_0 | ProjectSchemaV3_4_0 | ProjectSchemaV3_5_0 | ProjectSchemaV3_5_1 | ProjectSchemaV3_6_0 | ProjectSchemaV3_7_0 | ProjectSchemaV3_8_0 | ProjectSchemaV3_9_0 | ProjectSchemaV3_10_0 | ProjectSchemaV3_11_0 | ProjectSchemaV3_12_0 | ProjectSchemaV3_12_1 | ProjectSchemaV3_12_2 | ProjectSchemaV3_12_3 | ProjectSchemaV3_13_0 | ProjectSchemaV3_14_0 | ProjectSchemaV3_15_0 | ProjectSchemaV3_16_0 | ProjectSchemaV3_17_0 | ProjectSchemaV3_17_1 | ProjectSchemaV3_18_0 | ProjectSchemaV3_18_1 | ProjectSchemaV3_18_2 | ProjectSchemaV3_19_0 | ProjectSchemaV3_20_0 | ProjectSchemaV4_0_0 | ProjectSchema;
|
|
62
64
|
export declare const isProjectSchemaV1_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV1_0_0;
|
|
63
65
|
export declare const isProjectSchemaV3_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_0_0;
|
|
64
66
|
export declare const isProjectSchemaV3_1_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_1_0;
|
|
@@ -87,6 +89,7 @@ export declare const isProjectSchemaV3_18_0: (projectSchema: AnyProjectSchema) =
|
|
|
87
89
|
export declare const isProjectSchemaV3_18_1: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_18_1;
|
|
88
90
|
export declare const isProjectSchemaV3_18_2: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_18_2;
|
|
89
91
|
export declare const isProjectSchemaV3_19_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_19_0;
|
|
92
|
+
export declare const isProjectSchemaV3_20_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_20_0;
|
|
90
93
|
export declare const isLatestProjectSchema: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchema;
|
|
91
94
|
export declare const isProjectSchemaV4_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV4_0_0;
|
|
92
95
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/project-schema/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CA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AC;AAC7F,eAAO,MAAM,sBAAsB,kBAhCV,gBAAgB,0CAgCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAjCV,gBAAgB,0CAiCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAlCV,gBAAgB,0CAkCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAnCV,gBAAgB,0CAmCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBApCV,gBAAgB,0CAoCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBArCV,gBAAgB,0CAqCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAtCV,gBAAgB,0CAsCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAvCV,gBAAgB,0CAuCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAxCV,gBAAgB,0CAwCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBAzCV,gBAAgB,0CAyCmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBA1CV,gBAAgB,0CA0CmD,CAAC;AAC7F,eAAO,MAAM,sBAAsB,kBA3CV,gBAAgB,0CA2CmD,CAAC;AAC7F,eAAO,MAAM,qBAAqB,kBA5CT,gBAAgB,mCA4C2C,CAAC;AACrF,eAAO,MAAM,qBAAqB,kBA7CT,gBAAgB,yCA6CgD,CAAC"}
|
|
@@ -32,10 +32,11 @@ var _exportNames = {
|
|
|
32
32
|
isProjectSchemaV3_18_1: true,
|
|
33
33
|
isProjectSchemaV3_18_2: true,
|
|
34
34
|
isProjectSchemaV3_19_0: true,
|
|
35
|
+
isProjectSchemaV3_20_0: true,
|
|
35
36
|
isLatestProjectSchema: true,
|
|
36
37
|
isProjectSchemaV4_0_0: true
|
|
37
38
|
};
|
|
38
|
-
exports.isProjectSchemaV4_0_0 = exports.isProjectSchemaV3_9_0 = exports.isProjectSchemaV3_8_0 = exports.isProjectSchemaV3_7_0 = exports.isProjectSchemaV3_6_0 = exports.isProjectSchemaV3_5_1 = exports.isProjectSchemaV3_5_0 = exports.isProjectSchemaV3_4_0 = exports.isProjectSchemaV3_3_0 = exports.isProjectSchemaV3_2_0 = exports.isProjectSchemaV3_1_0 = exports.isProjectSchemaV3_19_0 = exports.isProjectSchemaV3_18_2 = exports.isProjectSchemaV3_18_1 = exports.isProjectSchemaV3_18_0 = exports.isProjectSchemaV3_17_1 = exports.isProjectSchemaV3_17_0 = exports.isProjectSchemaV3_16_0 = exports.isProjectSchemaV3_15_0 = exports.isProjectSchemaV3_14_0 = exports.isProjectSchemaV3_13_0 = exports.isProjectSchemaV3_12_3 = exports.isProjectSchemaV3_12_2 = exports.isProjectSchemaV3_12_1 = exports.isProjectSchemaV3_12_0 = exports.isProjectSchemaV3_11_0 = exports.isProjectSchemaV3_10_0 = exports.isProjectSchemaV3_0_0 = exports.isProjectSchemaV1_0_0 = exports.isLatestProjectSchema = void 0;
|
|
39
|
+
exports.isProjectSchemaV4_0_0 = exports.isProjectSchemaV3_9_0 = exports.isProjectSchemaV3_8_0 = exports.isProjectSchemaV3_7_0 = exports.isProjectSchemaV3_6_0 = exports.isProjectSchemaV3_5_1 = exports.isProjectSchemaV3_5_0 = exports.isProjectSchemaV3_4_0 = exports.isProjectSchemaV3_3_0 = exports.isProjectSchemaV3_2_0 = exports.isProjectSchemaV3_20_0 = exports.isProjectSchemaV3_1_0 = exports.isProjectSchemaV3_19_0 = exports.isProjectSchemaV3_18_2 = exports.isProjectSchemaV3_18_1 = exports.isProjectSchemaV3_18_0 = exports.isProjectSchemaV3_17_1 = exports.isProjectSchemaV3_17_0 = exports.isProjectSchemaV3_16_0 = exports.isProjectSchemaV3_15_0 = exports.isProjectSchemaV3_14_0 = exports.isProjectSchemaV3_13_0 = exports.isProjectSchemaV3_12_3 = exports.isProjectSchemaV3_12_2 = exports.isProjectSchemaV3_12_1 = exports.isProjectSchemaV3_12_0 = exports.isProjectSchemaV3_11_0 = exports.isProjectSchemaV3_10_0 = exports.isProjectSchemaV3_0_0 = exports.isProjectSchemaV1_0_0 = exports.isLatestProjectSchema = void 0;
|
|
39
40
|
|
|
40
41
|
var _latest = require("./latest");
|
|
41
42
|
|
|
@@ -443,7 +444,7 @@ Object.keys(_v28).forEach(function (key) {
|
|
|
443
444
|
});
|
|
444
445
|
});
|
|
445
446
|
|
|
446
|
-
var _v29 = require("./
|
|
447
|
+
var _v29 = require("./v3.20.0");
|
|
447
448
|
|
|
448
449
|
Object.keys(_v29).forEach(function (key) {
|
|
449
450
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -457,6 +458,20 @@ Object.keys(_v29).forEach(function (key) {
|
|
|
457
458
|
});
|
|
458
459
|
});
|
|
459
460
|
|
|
461
|
+
var _v30 = require("./v4.0.0");
|
|
462
|
+
|
|
463
|
+
Object.keys(_v30).forEach(function (key) {
|
|
464
|
+
if (key === "default" || key === "__esModule") return;
|
|
465
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
466
|
+
if (key in exports && exports[key] === _v30[key]) return;
|
|
467
|
+
Object.defineProperty(exports, key, {
|
|
468
|
+
enumerable: true,
|
|
469
|
+
get: function () {
|
|
470
|
+
return _v30[key];
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
|
|
460
475
|
// This file is generated by "pnpm json2ts"
|
|
461
476
|
// Schema type utilities
|
|
462
477
|
function createVersionPredicate(expectedVersion) {
|
|
@@ -533,7 +548,9 @@ const isProjectSchemaV3_18_2 = createVersionPredicate('3.18.2');
|
|
|
533
548
|
exports.isProjectSchemaV3_18_2 = isProjectSchemaV3_18_2;
|
|
534
549
|
const isProjectSchemaV3_19_0 = createVersionPredicate('3.19.0');
|
|
535
550
|
exports.isProjectSchemaV3_19_0 = isProjectSchemaV3_19_0;
|
|
536
|
-
const
|
|
551
|
+
const isProjectSchemaV3_20_0 = createVersionPredicate('3.20.0');
|
|
552
|
+
exports.isProjectSchemaV3_20_0 = isProjectSchemaV3_20_0;
|
|
553
|
+
const isLatestProjectSchema = createVersionPredicate('3.20.0');
|
|
537
554
|
exports.isLatestProjectSchema = isLatestProjectSchema;
|
|
538
555
|
const isProjectSchemaV4_0_0 = createVersionPredicate('4.0.0');
|
|
539
556
|
exports.isProjectSchemaV4_0_0 = isProjectSchemaV4_0_0;
|
|
@@ -294,7 +294,7 @@ export interface ProjectSchema {
|
|
|
294
294
|
/**
|
|
295
295
|
* The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
|
|
296
296
|
*/
|
|
297
|
-
schemaVersion: '3.
|
|
297
|
+
schemaVersion: '3.20.0';
|
|
298
298
|
/**
|
|
299
299
|
* The ID of the TakeShape project this schema belongs to.
|
|
300
300
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/project-schema/migrate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/project-schema/migrate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAoC7D,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,gBAAgB,GAC9B,OAAO,CAAC,aAAa,CAAC,CA0HxB;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAMpC"}
|
|
@@ -125,6 +125,10 @@ async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
125
125
|
projectSchema = await _migration.migrateTo['v3.19.0'](context, projectSchema);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
if ((0, _index.isProjectSchemaV3_19_0)(projectSchema)) {
|
|
129
|
+
projectSchema = await _migration.migrateTo['v3.20.0'](context, projectSchema);
|
|
130
|
+
}
|
|
131
|
+
|
|
128
132
|
if ((0, _index.isProjectSchemaV4_0_0)(projectSchema)) {
|
|
129
133
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
130
134
|
}
|