@studiocms/migrator 0.1.0-beta.1 → 0.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@studiocms/migrator",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.1",
4
+ "version": "0.1.0",
5
5
  "description": "Tool for migrating from AstroDB based StudioCMS to Kysely based StudioCMS.",
6
6
  "author": {
7
7
  "name": "withstudiocms",
@@ -43,17 +43,18 @@
43
43
  "dependencies": {
44
44
  "@astrojs/node": "^9.5.1",
45
45
  "@libsql/client": "^0.15.15",
46
- "@studiocms/ui": "^1.0.0-beta.4",
47
- "astro": "^5.16.4",
46
+ "@studiocms/ui": "^1.0.0",
47
+ "astro": "^5.16.6",
48
48
  "dotenv": "^17.2.3",
49
49
  "drizzle-orm": "^0.42.0",
50
50
  "sharp": "^0.34.3",
51
- "@withstudiocms/config-utils": "0.1.0-beta.5",
52
- "@withstudiocms/effect": "0.1.0-beta.7",
53
- "@withstudiocms/kysely": "0.1.0-beta.1"
51
+ "@withstudiocms/config-utils": "0.1.0",
52
+ "@withstudiocms/effect": "0.1.0",
53
+ "@withstudiocms/kysely": "0.1.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "studiocms": "0.1.0-beta.31"
56
+ "studiocms": "0.1.0",
57
+ "@withstudiocms/sdk": "0.1.0"
57
58
  },
58
59
  "scripts": {
59
60
  "astro": "astro"
package/src/db/client.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { runEffect } from '@withstudiocms/effect';
2
- import { getDBClientLive, type StudioCMSDatabaseSchema } from '@withstudiocms/kysely';
2
+ import { getDBClientLive } from '@withstudiocms/kysely/client';
3
3
  import { sql } from '@withstudiocms/kysely/kysely';
4
- import { getMigratorLive } from '@withstudiocms/kysely/migrator';
4
+ import { getMigratorLive } from '@withstudiocms/sdk/migrator';
5
+ import type { StudioCMSDatabaseSchema } from '@withstudiocms/sdk/tables';
5
6
  import { type KyselyTableKeys, kyselyTableKeys } from '../lib/tableMap';
6
7
 
7
8
  /**
@@ -40,7 +40,7 @@ export const remapPageDataTable = (astro: PageData['astro'][]): PageData['kysely
40
40
  categories: JSON.stringify(item.categories),
41
41
  tags: JSON.stringify(item.tags),
42
42
  contributorIds: JSON.stringify(item.contributorIds),
43
- augments: JSON.stringify(item.augments),
43
+ augments: JSON.stringify([]),
44
44
  authorId: item.authorId ?? '',
45
45
  draft: booleanToNumber(item.draft ?? false),
46
46
  }));
@@ -15,7 +15,7 @@ import {
15
15
  StudioCMSSessionTable as KyselyStudioCMSSessionTable,
16
16
  StudioCMSUserResetTokens as KyselyStudioCMSUserResetTokens,
17
17
  StudioCMSUsersTable as KyselyStudioCMSUsersTable,
18
- } from '@withstudiocms/kysely/tables';
18
+ } from '@withstudiocms/sdk/tables';
19
19
  import {
20
20
  StudioCMSAPIKeys,
21
21
  StudioCMSDiffTracking,