@takeshape/schema 8.205.2 → 8.206.11
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.18.2.d.ts +5 -0
- package/dist/migration/to/v3.18.2.d.ts.map +1 -0
- package/dist/migration/to/v3.18.2.js +32 -0
- package/dist/mocks.js +1 -1
- 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.18.2.d.ts +1333 -0
- package/dist/project-schema/v3.18.2.d.ts.map +1 -0
- package/dist/project-schema/v3.18.2.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.18.2.json +2351 -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.18.2.js +22 -0
- package/es/mocks.js +1 -1
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.18.2.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.18.2.json +2351 -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 +2 -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 +1 -1
- 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 +2 -2
- package/examples/latest/rick-and-morty-graphql.json +2 -2
- package/examples/latest/rick-and-morty-rest.json +2 -2
- 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 +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- 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/package.json +4 -4
|
@@ -24,6 +24,7 @@ export declare const migrateTo: {
|
|
|
24
24
|
'v3.17.1': import("./types").MigrateFunction<import("..").ProjectSchemaV3_17_0, import("..").ProjectSchemaV3_17_1>;
|
|
25
25
|
'v3.18.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_17_1, import("..").ProjectSchemaV3_18_0>;
|
|
26
26
|
'v3.18.1': import("./types").MigrateFunction<import("..").ProjectSchemaV3_18_0, import("..").ProjectSchemaV3_18_1>;
|
|
27
|
+
'v3.18.2': import("./types").MigrateFunction<import("..").ProjectSchemaV3_18_1, import("..").ProjectSchemaV3_18_2>;
|
|
27
28
|
};
|
|
28
29
|
export * from './utils';
|
|
29
30
|
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":"AA2BA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,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
|
@@ -59,6 +59,8 @@ var _v24 = _interopRequireDefault(require("./to/v3.18.0"));
|
|
|
59
59
|
|
|
60
60
|
var _v25 = _interopRequireDefault(require("./to/v3.18.1"));
|
|
61
61
|
|
|
62
|
+
var _v26 = _interopRequireDefault(require("./to/v3.18.2"));
|
|
63
|
+
|
|
62
64
|
var _utils = require("./utils");
|
|
63
65
|
|
|
64
66
|
Object.keys(_utils).forEach(function (key) {
|
|
@@ -100,7 +102,8 @@ const migrateTo = {
|
|
|
100
102
|
'v3.17.0': _v22.default,
|
|
101
103
|
'v3.17.1': _v23.default,
|
|
102
104
|
'v3.18.0': _v24.default,
|
|
103
|
-
'v3.18.1': _v25.default
|
|
105
|
+
'v3.18.1': _v25.default,
|
|
106
|
+
'v3.18.2': _v26.default
|
|
104
107
|
};
|
|
105
108
|
exports.migrateTo = migrateTo;
|
|
106
109
|
const listTypePrefix = 'PaginatedList';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProjectSchemaV3_18_1, ProjectSchemaV3_18_2 } from '../../project-schema';
|
|
2
|
+
import type { MigrateFunction } from '../types';
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaV3_18_1, ProjectSchemaV3_18_2>;
|
|
4
|
+
export default migrate;
|
|
5
|
+
//# sourceMappingURL=v3.18.2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AACrF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAiB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAKxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 === 'generic' ? { ...serviceConfig,
|
|
17
|
+
provider: serviceConfig.serviceType
|
|
18
|
+
} : serviceConfig)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return projectSchema;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const migrate = async (_, projectSchema) => {
|
|
26
|
+
return { ...updateGenericServices(projectSchema),
|
|
27
|
+
schemaVersion: '3.18.2'
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var _default = migrate;
|
|
32
|
+
exports.default = _default;
|
package/dist/mocks.js
CHANGED
|
@@ -37,7 +37,7 @@ function createMockServiceConfig(serviceKey, serviceConfig) {
|
|
|
37
37
|
return {
|
|
38
38
|
id: serviceKey,
|
|
39
39
|
title: (0, _util.pascalCase)(serviceKey),
|
|
40
|
-
provider: '
|
|
40
|
+
provider: 'graphql',
|
|
41
41
|
serviceType: 'graphql',
|
|
42
42
|
namespace: (0, _util.pascalCase)(serviceKey),
|
|
43
43
|
authenticationType: 'bearer',
|
|
@@ -25,6 +25,7 @@ export * from './v3.17.0';
|
|
|
25
25
|
export * from './v3.17.1';
|
|
26
26
|
export * from './v3.18.0';
|
|
27
27
|
export * from './v3.18.1';
|
|
28
|
+
export * from './v3.18.2';
|
|
28
29
|
export * from './v4.0.0';
|
|
29
30
|
import { ProjectSchemaV1_0_0 } from './v1.0.0';
|
|
30
31
|
import { ProjectSchemaV3_0_0 } from './v3.0.0';
|
|
@@ -52,9 +53,10 @@ import { ProjectSchemaV3_17_0 } from './v3.17.0';
|
|
|
52
53
|
import { ProjectSchemaV3_17_1 } from './v3.17.1';
|
|
53
54
|
import { ProjectSchemaV3_18_0 } from './v3.18.0';
|
|
54
55
|
import { ProjectSchemaV3_18_1 } from './v3.18.1';
|
|
56
|
+
import { ProjectSchemaV3_18_2 } from './v3.18.2';
|
|
55
57
|
import { ProjectSchemaV4_0_0 } from './v4.0.0';
|
|
56
58
|
import { ProjectSchema } from './latest';
|
|
57
|
-
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 | ProjectSchemaV4_0_0 | ProjectSchema;
|
|
59
|
+
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 | ProjectSchemaV4_0_0 | ProjectSchema;
|
|
58
60
|
export declare const isProjectSchemaV1_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV1_0_0;
|
|
59
61
|
export declare const isProjectSchemaV3_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_0_0;
|
|
60
62
|
export declare const isProjectSchemaV3_1_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_1_0;
|
|
@@ -81,6 +83,7 @@ export declare const isProjectSchemaV3_17_0: (projectSchema: AnyProjectSchema) =
|
|
|
81
83
|
export declare const isProjectSchemaV3_17_1: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_17_1;
|
|
82
84
|
export declare const isProjectSchemaV3_18_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_18_0;
|
|
83
85
|
export declare const isProjectSchemaV3_18_1: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_18_1;
|
|
86
|
+
export declare const isProjectSchemaV3_18_2: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_18_2;
|
|
84
87
|
export declare const isLatestProjectSchema: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchema;
|
|
85
88
|
export declare const isProjectSchemaV4_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV4_0_0;
|
|
86
89
|
//# 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,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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,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,qBAAqB,kBA1CT,gBAAgB,mCA0C2C,CAAC;AACrF,eAAO,MAAM,qBAAqB,kBA3CT,gBAAgB,yCA2CgD,CAAC"}
|
|
@@ -30,10 +30,11 @@ var _exportNames = {
|
|
|
30
30
|
isProjectSchemaV3_17_1: true,
|
|
31
31
|
isProjectSchemaV3_18_0: true,
|
|
32
32
|
isProjectSchemaV3_18_1: true,
|
|
33
|
+
isProjectSchemaV3_18_2: true,
|
|
33
34
|
isLatestProjectSchema: true,
|
|
34
35
|
isProjectSchemaV4_0_0: true
|
|
35
36
|
};
|
|
36
|
-
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_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;
|
|
37
|
+
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_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;
|
|
37
38
|
|
|
38
39
|
var _latest = require("./latest");
|
|
39
40
|
|
|
@@ -413,7 +414,7 @@ Object.keys(_v26).forEach(function (key) {
|
|
|
413
414
|
});
|
|
414
415
|
});
|
|
415
416
|
|
|
416
|
-
var _v27 = require("./
|
|
417
|
+
var _v27 = require("./v3.18.2");
|
|
417
418
|
|
|
418
419
|
Object.keys(_v27).forEach(function (key) {
|
|
419
420
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -427,6 +428,20 @@ Object.keys(_v27).forEach(function (key) {
|
|
|
427
428
|
});
|
|
428
429
|
});
|
|
429
430
|
|
|
431
|
+
var _v28 = require("./v4.0.0");
|
|
432
|
+
|
|
433
|
+
Object.keys(_v28).forEach(function (key) {
|
|
434
|
+
if (key === "default" || key === "__esModule") return;
|
|
435
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
436
|
+
if (key in exports && exports[key] === _v28[key]) return;
|
|
437
|
+
Object.defineProperty(exports, key, {
|
|
438
|
+
enumerable: true,
|
|
439
|
+
get: function () {
|
|
440
|
+
return _v28[key];
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
|
|
430
445
|
// This file is generated by "pnpm json2ts"
|
|
431
446
|
// Schema type utilities
|
|
432
447
|
function createVersionPredicate(expectedVersion) {
|
|
@@ -499,7 +514,9 @@ const isProjectSchemaV3_18_0 = createVersionPredicate('3.18.0');
|
|
|
499
514
|
exports.isProjectSchemaV3_18_0 = isProjectSchemaV3_18_0;
|
|
500
515
|
const isProjectSchemaV3_18_1 = createVersionPredicate('3.18.1');
|
|
501
516
|
exports.isProjectSchemaV3_18_1 = isProjectSchemaV3_18_1;
|
|
502
|
-
const
|
|
517
|
+
const isProjectSchemaV3_18_2 = createVersionPredicate('3.18.2');
|
|
518
|
+
exports.isProjectSchemaV3_18_2 = isProjectSchemaV3_18_2;
|
|
519
|
+
const isLatestProjectSchema = createVersionPredicate('3.18.2');
|
|
503
520
|
exports.isLatestProjectSchema = isLatestProjectSchema;
|
|
504
521
|
const isProjectSchemaV4_0_0 = createVersionPredicate('4.0.0');
|
|
505
522
|
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.18.
|
|
297
|
+
schemaVersion: '3.18.2';
|
|
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;AAkC7D,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,gBAAgB,GAC9B,OAAO,CAAC,aAAa,CAAC,CAkHxB;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAMpC"}
|
|
@@ -117,6 +117,10 @@ async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
117
117
|
projectSchema = await _migration.migrateTo['v3.18.1'](context, projectSchema);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
if ((0, _index.isProjectSchemaV3_18_1)(projectSchema)) {
|
|
121
|
+
projectSchema = await _migration.migrateTo['v3.18.2'](context, projectSchema);
|
|
122
|
+
}
|
|
123
|
+
|
|
120
124
|
if ((0, _index.isProjectSchemaV4_0_0)(projectSchema)) {
|
|
121
125
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
122
126
|
}
|