@scalar/oas-utils 0.20.14 → 0.20.15
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 +6 -0
- package/dist/migrations/local-storage.js +1 -1
- package/dist/migrations/migrate-to-indexdb.d.ts +1 -1
- package/dist/migrations/migrate-to-indexdb.js +1 -1
- package/dist/migrations/migrator.d.ts +1 -1
- package/dist/migrations/migrator.js +6 -6
- package/dist/migrations/v-2.1.0/migration.d.ts +1 -1
- package/dist/migrations/v-2.1.0/migration.js +1 -1
- package/dist/migrations/v-2.2.0/migration.d.ts +1 -1
- package/dist/migrations/v-2.3.0/migration.d.ts +1 -1
- package/dist/migrations/v-2.4.0/migration.d.ts +1 -1
- package/dist/migrations/v-2.5.0/migration.d.ts +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createWorkspaceStorePersistence } from '@scalar/workspace-store/persistence';
|
|
2
2
|
import type { InMemoryWorkspace } from '@scalar/workspace-store/schemas/inmemory-workspace';
|
|
3
|
-
import type { v_2_5_0 } from '
|
|
3
|
+
import type { v_2_5_0 } from './v-2.5.0/types.generated.js';
|
|
4
4
|
/**
|
|
5
5
|
* Migrates localStorage data to IndexedDB workspace structure.
|
|
6
6
|
*
|
|
@@ -15,7 +15,7 @@ import { xScalarCookieSchema } from '@scalar/workspace-store/schemas/extensions/
|
|
|
15
15
|
import { isOpenApiDocument } from '@scalar/workspace-store/schemas/type-guards';
|
|
16
16
|
import { coerceValue } from '@scalar/workspace-store/schemas/typebox-coerce';
|
|
17
17
|
import { ColorModeSchema } from '@scalar/workspace-store/schemas/workspace';
|
|
18
|
-
import { migrator } from '
|
|
18
|
+
import { migrator } from './migrator.js';
|
|
19
19
|
const DRAFTS_DOCUMENT_NAME = 'drafts';
|
|
20
20
|
const MAX_CONCURRENT_DB_WRITES = 100;
|
|
21
21
|
const MAX_CONCURRENT_DATA_TRANSFORMATIONS = 5;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { isVersionLessThan } from '@scalar/helpers/general/compare-versions';
|
|
2
|
-
import { getLocalStorageVersion, parseLocalStorage } from '
|
|
3
|
-
import { migrate_v_2_1_0 } from '
|
|
4
|
-
import { migrate_v_2_2_0 } from '
|
|
5
|
-
import { migrate_v_2_3_0 } from '
|
|
6
|
-
import { migrate_v_2_4_0 } from '
|
|
7
|
-
import { migrate_v_2_5_0 } from '
|
|
2
|
+
import { getLocalStorageVersion, parseLocalStorage } from './local-storage.js';
|
|
3
|
+
import { migrate_v_2_1_0 } from './v-2.1.0/migration.js';
|
|
4
|
+
import { migrate_v_2_2_0 } from './v-2.2.0/migration.js';
|
|
5
|
+
import { migrate_v_2_3_0 } from './v-2.3.0/migration.js';
|
|
6
|
+
import { migrate_v_2_4_0 } from './v-2.4.0/migration.js';
|
|
7
|
+
import { migrate_v_2_5_0 } from './v-2.5.0/migration.js';
|
|
8
8
|
/** Handles all data migrations per entity */
|
|
9
9
|
export const migrator = () => {
|
|
10
10
|
const dataVersion = getLocalStorageVersion();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { v_0_0_0 } from '
|
|
1
|
+
import type { v_0_0_0 } from '../v-0.0.0/types.generated.js';
|
|
2
2
|
import type { v_2_1_0 } from './types.generated.js';
|
|
3
3
|
/** V-0.0.0 to V-2.1.0 migration */
|
|
4
4
|
export declare const migrate_v_2_1_0: (data: Omit<v_0_0_0.DataRecord, "folders">) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { camelToTitleWords } from '@scalar/helpers/string/camel-to-title';
|
|
2
2
|
import { capitalize } from '@scalar/helpers/string/capitalize';
|
|
3
|
-
import { parseLocalStorage } from '
|
|
3
|
+
import { parseLocalStorage } from '../local-storage.js';
|
|
4
4
|
/** V-0.0.0 to V-2.1.0 migration */
|
|
5
5
|
export const migrate_v_2_1_0 = (data) => {
|
|
6
6
|
console.info('Performing data migration v-0.0.0 to v-2.1.0');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { v_2_1_0 } from '
|
|
1
|
+
import type { v_2_1_0 } from '../v-2.1.0/types.generated.js';
|
|
2
2
|
import type { v_2_2_0 } from './types.generated.js';
|
|
3
3
|
/** V-2.1.0 to V-2.2.0 migration */
|
|
4
4
|
export declare const migrate_v_2_2_0: (data: v_2_1_0.DataRecord) => v_2_2_0.DataRecord;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { v_2_2_0 } from '
|
|
1
|
+
import type { v_2_2_0 } from '../v-2.2.0/types.generated.js';
|
|
2
2
|
import type { v_2_3_0 } from './types.generated.js';
|
|
3
3
|
/** V-2.2.0 to V-2.3.0 migration */
|
|
4
4
|
export declare const migrate_v_2_3_0: (data: v_2_2_0.DataRecord) => v_2_3_0.DataRecord;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { v_2_3_0 } from '
|
|
1
|
+
import type { v_2_3_0 } from '../v-2.3.0/types.generated.js';
|
|
2
2
|
import type { v_2_4_0 } from './types.generated.js';
|
|
3
3
|
/** V-2.3.0 to V-2.4.0 migration */
|
|
4
4
|
export declare const migrate_v_2_4_0: (data: v_2_3_0.DataRecord) => v_2_4_0.DataRecord;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { v_2_4_0 } from '
|
|
1
|
+
import type { v_2_4_0 } from '../v-2.4.0/types.generated.js';
|
|
2
2
|
import type { v_2_5_0 } from './types.generated.js';
|
|
3
3
|
/** V-2.4.0 to V-2.5.0 migration */
|
|
4
4
|
export declare const migrate_v_2_5_0: (data: v_2_4_0.DataRecord) => v_2_5_0["DataRecord"];
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.20.
|
|
19
|
+
"version": "0.20.15",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@scalar/helpers": "0.16.4",
|
|
44
|
-
"@scalar/themes": "0.19.
|
|
45
|
-
"@scalar/types": "0.
|
|
46
|
-
"@scalar/workspace-store": "0.
|
|
47
|
-
"flatted": "^3.4.
|
|
48
|
-
"vue": "^3.5.
|
|
49
|
-
"yaml": "^2.9.
|
|
44
|
+
"@scalar/themes": "0.19.3",
|
|
45
|
+
"@scalar/types": "0.25.0",
|
|
46
|
+
"@scalar/workspace-store": "0.69.0",
|
|
47
|
+
"flatted": "^3.4.4",
|
|
48
|
+
"vue": "^3.5.44",
|
|
49
|
+
"yaml": "^2.9.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/node": "^24.
|
|
52
|
+
"@types/node": "^24.19.2",
|
|
53
53
|
"fake-indexeddb": "6.2.5",
|
|
54
|
-
"vite": "8.
|
|
55
|
-
"vitest": "4.1.
|
|
54
|
+
"vite": "8.3.4",
|
|
55
|
+
"vitest": "4.1.12"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|