@playcademy/vite-plugin 1.1.3-beta.9 → 1.2.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/dist/index.js +5 -17
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -24314,7 +24314,7 @@ import path2 from "node:path";
|
|
|
24314
24314
|
// package.json
|
|
24315
24315
|
var package_default = {
|
|
24316
24316
|
name: "@playcademy/vite-plugin",
|
|
24317
|
-
version: "1.
|
|
24317
|
+
version: "1.2.0",
|
|
24318
24318
|
type: "module",
|
|
24319
24319
|
exports: {
|
|
24320
24320
|
".": {
|
|
@@ -25846,7 +25846,7 @@ var package_default2;
|
|
|
25846
25846
|
var init_package = __esm(() => {
|
|
25847
25847
|
package_default2 = {
|
|
25848
25848
|
name: "@playcademy/sandbox",
|
|
25849
|
-
version: "0.
|
|
25849
|
+
version: "0.7.0",
|
|
25850
25850
|
description: "Local development server for Playcademy game development",
|
|
25851
25851
|
type: "module",
|
|
25852
25852
|
exports: {
|
|
@@ -36036,7 +36036,6 @@ var users;
|
|
|
36036
36036
|
var accounts;
|
|
36037
36037
|
var sessions;
|
|
36038
36038
|
var verification;
|
|
36039
|
-
var ssoProvider;
|
|
36040
36039
|
var init_table3 = __esm(() => {
|
|
36041
36040
|
init_pg_core();
|
|
36042
36041
|
userRoleEnum = pgEnum("user_role", ["admin", "player", "developer", "teacher"]);
|
|
@@ -36129,16 +36128,6 @@ var init_table3 = __esm(() => {
|
|
|
36129
36128
|
withTimezone: true
|
|
36130
36129
|
}).notNull()
|
|
36131
36130
|
});
|
|
36132
|
-
ssoProvider = pgTable("sso_provider", {
|
|
36133
|
-
id: text("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
|
|
36134
|
-
issuer: text("issuer").notNull(),
|
|
36135
|
-
oidcConfig: text("oidc_config"),
|
|
36136
|
-
samlConfig: text("saml_config"),
|
|
36137
|
-
userId: text("user_id").references(() => users.id, { onDelete: "cascade" }),
|
|
36138
|
-
providerId: text("provider_id").notNull().unique(),
|
|
36139
|
-
organizationId: text("organization_id"),
|
|
36140
|
-
domain: text("domain").notNull()
|
|
36141
|
-
});
|
|
36142
36131
|
});
|
|
36143
36132
|
var apikey;
|
|
36144
36133
|
var init_table4 = __esm(() => {
|
|
@@ -36481,7 +36470,6 @@ __export(exports_tables_index, {
|
|
|
36481
36470
|
verification: () => verification,
|
|
36482
36471
|
users: () => users,
|
|
36483
36472
|
userRoleEnum: () => userRoleEnum,
|
|
36484
|
-
ssoProvider: () => ssoProvider,
|
|
36485
36473
|
sessions: () => sessions,
|
|
36486
36474
|
games: () => games,
|
|
36487
36475
|
gameVisibilityEnum: () => gameVisibilityEnum,
|
|
@@ -53001,7 +52989,7 @@ function evaluateBaselineGuardrails(input) {
|
|
|
53001
52989
|
}
|
|
53002
52990
|
return "ok";
|
|
53003
52991
|
}
|
|
53004
|
-
function
|
|
52992
|
+
function planMigrations2(journal, ledger) {
|
|
53005
52993
|
const ledgerByTag = new Map(ledger.map((row) => [row.tag, row]));
|
|
53006
52994
|
const journalTags = new Set(journal.map((entry2) => entry2.tag));
|
|
53007
52995
|
const pendingTags = [];
|
|
@@ -53580,7 +53568,7 @@ class DeployService {
|
|
|
53580
53568
|
await this.assertNoSchemaDrift(databaseId, state);
|
|
53581
53569
|
await cf.d1.ensureMigrationLedger(databaseId);
|
|
53582
53570
|
const ledger = await cf.d1.readMigrationLedger(databaseId);
|
|
53583
|
-
const plan =
|
|
53571
|
+
const plan = planMigrations2(migrations.map((migration) => ({ tag: migration.tag, checksum: migration.checksum })), ledger.map((row) => ({
|
|
53584
53572
|
tag: row.tag,
|
|
53585
53573
|
checksum: row.checksum,
|
|
53586
53574
|
checksumAlgo: row.checksum_algo
|
|
@@ -53933,7 +53921,7 @@ class DeployService {
|
|
|
53933
53921
|
}
|
|
53934
53922
|
await cf.d1.ensureMigrationLedger(databaseId);
|
|
53935
53923
|
const ledger = await cf.d1.readMigrationLedger(databaseId);
|
|
53936
|
-
const plan =
|
|
53924
|
+
const plan = planMigrations2(slice, ledger.map((row) => ({
|
|
53937
53925
|
tag: row.tag,
|
|
53938
53926
|
checksum: row.checksum,
|
|
53939
53927
|
checksumAlgo: row.checksum_algo
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcademy/vite-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"archiver": "^7.0.1",
|
|
21
21
|
"picocolors": "^1.1.1",
|
|
22
|
-
"playcademy": "0.
|
|
22
|
+
"playcademy": "0.28.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@electric-sql/pglite": "^0.3.16",
|
|
26
26
|
"@inquirer/prompts": "^7.8.6",
|
|
27
27
|
"@playcademy/constants": "0.0.1",
|
|
28
|
-
"@playcademy/sandbox": "0.
|
|
29
|
-
"@playcademy/sdk": "0.
|
|
28
|
+
"@playcademy/sandbox": "0.7.0",
|
|
29
|
+
"@playcademy/sdk": "0.16.0",
|
|
30
30
|
"@playcademy/types": "0.0.1",
|
|
31
31
|
"@playcademy/utils": "0.0.1",
|
|
32
32
|
"@types/archiver": "^6.0.3",
|