@scalar/oas-utils 0.13.4 → 0.15.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scalar/oas-utils
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#9045](https://github.com/scalar/scalar/pull/9045): chore: migrate api-client from namespaces to teamSlug and convert team workspaces
|
|
8
|
+
|
|
9
|
+
## 0.14.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#8986](https://github.com/scalar/scalar/pull/8986): chore: migrate api-client from namespaces to teamSlug and convert team workspaces
|
|
14
|
+
|
|
3
15
|
## 0.13.4
|
|
4
16
|
|
|
5
17
|
## 0.13.3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-to-indexdb.d.ts","sourceRoot":"","sources":["../../src/migrations/migrate-to-indexdb.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAA;AAOrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAiB3F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAOnE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"migrate-to-indexdb.d.ts","sourceRoot":"","sources":["../../src/migrations/migrate-to-indexdb.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAA;AAOrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAiB3F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAOnE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,qBA6CxC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,GACjC,sBAAsB,OAAO,CAAC,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAAC,WAAW,CAAC,KAC7F,OAAO,CAAC,OAAO,CAiBjB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,GAAU,YAAY;IAC/D,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;CAC/B;;;;IA8IA,CAAA"}
|
|
@@ -36,7 +36,6 @@ export const migrateLocalStorageToIndexDb = async () => {
|
|
|
36
36
|
try {
|
|
37
37
|
const shouldMigrate = await shouldMigrateToIndexDb(workspacePersistence);
|
|
38
38
|
if (!shouldMigrate) {
|
|
39
|
-
console.info('ℹ️ No migration needed - IndexedDB already has workspaces or no legacy data exists');
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
42
41
|
console.info('🚀 Starting migration from localStorage to IndexedDB...');
|
|
@@ -47,10 +46,9 @@ export const migrateLocalStorageToIndexDb = async () => {
|
|
|
47
46
|
const workspaces = await transformLegacyDataToWorkspace(legacyData);
|
|
48
47
|
const limit = createLimiter(MAX_CONCURRENT_DB_WRITES);
|
|
49
48
|
// Step 3: Save to IndexedDB
|
|
50
|
-
await Promise.all(workspaces.map((workspace) => limit(() => workspacePersistence.setItem({
|
|
49
|
+
await Promise.all(workspaces.map((workspace) => limit(() => workspacePersistence.setItem({ teamSlug: 'local', slug: workspace.slug }, {
|
|
51
50
|
name: workspace.name,
|
|
52
51
|
workspace: workspace.workspace,
|
|
53
|
-
teamUid: 'local',
|
|
54
52
|
}))));
|
|
55
53
|
console.info(`✅ Successfully migrated ${workspaces.length} workspace(s) to IndexedDB`);
|
|
56
54
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.
|
|
19
|
+
"version": "0.15.0",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"flatted": "^3.4.0",
|
|
44
44
|
"github-slugger": "2.0.0",
|
|
45
45
|
"vue": "^3.5.30",
|
|
46
|
-
"yaml": "^2.8.
|
|
47
|
-
"@scalar/helpers": "0.5.
|
|
46
|
+
"yaml": "^2.8.3",
|
|
47
|
+
"@scalar/helpers": "0.5.4",
|
|
48
48
|
"@scalar/themes": "0.15.3",
|
|
49
|
-
"@scalar/
|
|
50
|
-
"@scalar/
|
|
49
|
+
"@scalar/workspace-store": "0.49.0",
|
|
50
|
+
"@scalar/types": "0.9.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^24.1.0",
|