@infomaximum/widget-sdk 7.0.0-2601.2 → 7.0.0-2601.3
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/CHANGELOG.md +14 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [7.0.0-2601.3](https://github.com/Infomaximum/widget-sdk/compare/v7.0.0-2601.2...v7.0.0-2601.3) (2026-02-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* необходимо поддержать поле type в зарегистрированных миграциях
|
|
11
|
+
* требуется поддержка поле localApiVersion при создании структуры
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* поле localApiVersion для структуры виджета теперь обязательно ([0110088](https://github.com/Infomaximum/widget-sdk/commit/0110088cb144bb78d01b085dd267513b3fba7704))
|
|
16
|
+
* поле type для контекста миграции теперь обязательно ([50f66db](https://github.com/Infomaximum/widget-sdk/commit/50f66db9f99aceda124839f3d3d778f08fcb3c06))
|
|
17
|
+
* увеличена версия системной миграции ([95c6c50](https://github.com/Infomaximum/widget-sdk/commit/95c6c50d9bda48f642c00fefc1e8f85942d5f5b5))
|
|
18
|
+
|
|
5
19
|
## [7.0.0-2601.2](https://github.com/Infomaximum/widget-sdk/compare/v7.0.0-2601.1...v7.0.0-2601.2) (2026-02-13)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10511,25 +10511,25 @@ interface IWidgetPresetSettings extends TSchemaType<typeof WidgetPresetSettingsS
|
|
|
10511
10511
|
type TVersion = `${number}`;
|
|
10512
10512
|
type TMigrationStruct = Record<string, any>;
|
|
10513
10513
|
/** Массив версий в строгом порядке, по которому последовательно выполняется миграция */
|
|
10514
|
-
declare const apiVersions: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "10.1", "10.2", "10.3", "11", "12", "13", "13.1", "14", "15", "15.1", "15.2", "16", "16.1", "16.2", "17"];
|
|
10514
|
+
declare const apiVersions: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "10.1", "10.2", "10.3", "11", "12", "13", "13.1", "14", "15", "15.1", "15.2", "16", "16.1", "16.2", "17", "18"];
|
|
10515
10515
|
type TApiVersion = (typeof apiVersions)[number];
|
|
10516
10516
|
/**
|
|
10517
10517
|
* Актуальная версия settings, с которой работает система.
|
|
10518
10518
|
* Используется единая версия для settings виджетов и показателей.
|
|
10519
10519
|
*/
|
|
10520
|
-
declare const apiVersion: "1" | "3" | "2" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "10.1" | "10.2" | "11" | "10.3" | "12" | "13" | "14" | "15" | "13.1" | "16" | "17" | "15.1" | "15.2" | "16.1" | "16.2";
|
|
10520
|
+
declare const apiVersion: "1" | "3" | "2" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "10.1" | "10.2" | "11" | "10.3" | "12" | "13" | "14" | "15" | "13.1" | "16" | "17" | "18" | "15.1" | "15.2" | "16.1" | "16.2";
|
|
10521
10521
|
interface IWidgetStruct<Settings extends IBaseWidgetSettings = IBaseWidgetSettings> {
|
|
10522
10522
|
key: string;
|
|
10523
10523
|
apiVersion: TApiVersion;
|
|
10524
10524
|
type: string;
|
|
10525
10525
|
settings: Settings;
|
|
10526
|
-
localApiVersion
|
|
10526
|
+
localApiVersion: TVersion;
|
|
10527
10527
|
}
|
|
10528
10528
|
type TMigrateProcessor<T extends TMigrationStruct> = (struct: T) => void;
|
|
10529
10529
|
interface IMigrateContext {
|
|
10530
10530
|
apiVersion: TApiVersion;
|
|
10531
10531
|
localApiVersion?: TVersion;
|
|
10532
|
-
type
|
|
10532
|
+
type: string | undefined;
|
|
10533
10533
|
}
|
|
10534
10534
|
interface IWidgetMigrator<T extends TMigrationStruct = IWidgetStruct> {
|
|
10535
10535
|
registerProcessor(context: IMigrateContext, processor: TMigrateProcessor<T>): void;
|
package/dist/index.esm.js
CHANGED
package/dist/index.js
CHANGED