sandcms 0.6.2 → 0.6.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.
Files changed (159) hide show
  1. package/README.md +1 -1
  2. package/dist/admin/Account.svelte +284 -83
  3. package/dist/admin/ApiKeys.svelte +146 -79
  4. package/dist/admin/AssetAttachment.svelte +9 -9
  5. package/dist/admin/BlueprintFields.svelte +20 -2
  6. package/dist/admin/BlueprintFields.svelte.d.ts +2 -0
  7. package/dist/admin/Collection.svelte +111 -54
  8. package/dist/admin/Dashboard.svelte +3 -37
  9. package/dist/admin/DateField.svelte +75 -0
  10. package/dist/admin/DateField.svelte.d.ts +11 -0
  11. package/dist/admin/Editor.svelte +71 -65
  12. package/dist/admin/Fields.svelte +24 -16
  13. package/dist/admin/FocusPicker.svelte +1 -2
  14. package/dist/admin/Gallery.svelte +0 -1
  15. package/dist/admin/GlobalSearch.svelte +54 -26
  16. package/dist/admin/HoverHint.svelte +37 -0
  17. package/dist/admin/HoverHint.svelte.d.ts +8 -0
  18. package/dist/admin/Inbox.svelte +6 -11
  19. package/dist/admin/LinkField.svelte +129 -64
  20. package/dist/admin/Login.svelte +0 -1
  21. package/dist/admin/MediaLibrary.svelte +61 -50
  22. package/dist/admin/MediaPicker.svelte +57 -42
  23. package/dist/admin/NotificationSettings.svelte +35 -27
  24. package/dist/admin/RichText.svelte +2 -2
  25. package/dist/admin/RowMenu.svelte +28 -0
  26. package/dist/admin/RowMenu.svelte.d.ts +10 -0
  27. package/dist/admin/SearchList.svelte +51 -14
  28. package/dist/admin/Shell.svelte +64 -29
  29. package/dist/admin/Users.svelte +106 -50
  30. package/dist/admin/client.d.ts +2 -0
  31. package/dist/admin/client.js +18 -0
  32. package/dist/admin/components/ui/calendar/calendar-caption.svelte +76 -0
  33. package/dist/admin/components/ui/calendar/calendar-caption.svelte.d.ts +19 -0
  34. package/dist/admin/components/ui/calendar/calendar-cell.svelte +19 -0
  35. package/dist/admin/components/ui/calendar/calendar-cell.svelte.d.ts +4 -0
  36. package/dist/admin/components/ui/calendar/calendar-day.svelte +33 -0
  37. package/dist/admin/components/ui/calendar/calendar-day.svelte.d.ts +4 -0
  38. package/dist/admin/components/ui/calendar/calendar-grid-body.svelte +12 -0
  39. package/dist/admin/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -0
  40. package/dist/admin/components/ui/calendar/calendar-grid-head.svelte +12 -0
  41. package/dist/admin/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -0
  42. package/dist/admin/components/ui/calendar/calendar-grid-row.svelte +12 -0
  43. package/dist/admin/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -0
  44. package/dist/admin/components/ui/calendar/calendar-grid.svelte +16 -0
  45. package/dist/admin/components/ui/calendar/calendar-grid.svelte.d.ts +4 -0
  46. package/dist/admin/components/ui/calendar/calendar-head-cell.svelte +19 -0
  47. package/dist/admin/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -0
  48. package/dist/admin/components/ui/calendar/calendar-header.svelte +19 -0
  49. package/dist/admin/components/ui/calendar/calendar-header.svelte.d.ts +4 -0
  50. package/dist/admin/components/ui/calendar/calendar-heading.svelte +16 -0
  51. package/dist/admin/components/ui/calendar/calendar-heading.svelte.d.ts +4 -0
  52. package/dist/admin/components/ui/calendar/calendar-month-select.svelte +48 -0
  53. package/dist/admin/components/ui/calendar/calendar-month-select.svelte.d.ts +4 -0
  54. package/dist/admin/components/ui/calendar/calendar-month.svelte +15 -0
  55. package/dist/admin/components/ui/calendar/calendar-month.svelte.d.ts +5 -0
  56. package/dist/admin/components/ui/calendar/calendar-months.svelte +19 -0
  57. package/dist/admin/components/ui/calendar/calendar-months.svelte.d.ts +5 -0
  58. package/dist/admin/components/ui/calendar/calendar-nav.svelte +19 -0
  59. package/dist/admin/components/ui/calendar/calendar-nav.svelte.d.ts +5 -0
  60. package/dist/admin/components/ui/calendar/calendar-next-button.svelte +37 -0
  61. package/dist/admin/components/ui/calendar/calendar-next-button.svelte.d.ts +8 -0
  62. package/dist/admin/components/ui/calendar/calendar-prev-button.svelte +37 -0
  63. package/dist/admin/components/ui/calendar/calendar-prev-button.svelte.d.ts +8 -0
  64. package/dist/admin/components/ui/calendar/calendar-year-select.svelte +47 -0
  65. package/dist/admin/components/ui/calendar/calendar-year-select.svelte.d.ts +4 -0
  66. package/dist/admin/components/ui/calendar/calendar.svelte +115 -0
  67. package/dist/admin/components/ui/calendar/calendar.svelte.d.ts +21 -0
  68. package/dist/admin/components/ui/calendar/index.d.ts +19 -0
  69. package/dist/admin/components/ui/calendar/index.js +21 -0
  70. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte +16 -0
  71. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +4 -0
  72. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +46 -0
  73. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +9 -0
  74. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-content.svelte +31 -0
  75. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +10 -0
  76. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +22 -0
  77. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +8 -0
  78. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group.svelte +7 -0
  79. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group.svelte.d.ts +4 -0
  80. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-item.svelte +27 -0
  81. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +8 -0
  82. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-label.svelte +24 -0
  83. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
  84. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-portal.svelte +7 -0
  85. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-portal.svelte.d.ts +3 -0
  86. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +16 -0
  87. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -0
  88. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +36 -0
  89. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
  90. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-separator.svelte +17 -0
  91. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
  92. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +23 -0
  93. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
  94. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +31 -0
  95. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +10 -0
  96. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +29 -0
  97. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
  98. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub.svelte +7 -0
  99. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub.svelte.d.ts +3 -0
  100. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +7 -0
  101. package/dist/admin/components/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +4 -0
  102. package/dist/admin/components/ui/dropdown-menu/dropdown-menu.svelte +7 -0
  103. package/dist/admin/components/ui/dropdown-menu/dropdown-menu.svelte.d.ts +3 -0
  104. package/dist/admin/components/ui/dropdown-menu/index.d.ts +18 -0
  105. package/dist/admin/components/ui/dropdown-menu/index.js +18 -0
  106. package/dist/admin/components/ui/input-otp/index.d.ts +5 -0
  107. package/dist/admin/components/ui/input-otp/index.js +5 -0
  108. package/dist/admin/components/ui/input-otp/input-otp-group.svelte +23 -0
  109. package/dist/admin/components/ui/input-otp/input-otp-group.svelte.d.ts +5 -0
  110. package/dist/admin/components/ui/input-otp/input-otp-separator.svelte +27 -0
  111. package/dist/admin/components/ui/input-otp/input-otp-separator.svelte.d.ts +5 -0
  112. package/dist/admin/components/ui/input-otp/input-otp-slot.svelte +29 -0
  113. package/dist/admin/components/ui/input-otp/input-otp-slot.svelte.d.ts +4 -0
  114. package/dist/admin/components/ui/input-otp/input-otp.svelte +24 -0
  115. package/dist/admin/components/ui/input-otp/input-otp.svelte.d.ts +4 -0
  116. package/dist/admin/components/ui/popover/index.d.ts +9 -0
  117. package/dist/admin/components/ui/popover/index.js +11 -0
  118. package/dist/admin/components/ui/popover/popover-close.svelte +7 -0
  119. package/dist/admin/components/ui/popover/popover-close.svelte.d.ts +4 -0
  120. package/dist/admin/components/ui/popover/popover-content.svelte +31 -0
  121. package/dist/admin/components/ui/popover/popover-content.svelte.d.ts +10 -0
  122. package/dist/admin/components/ui/popover/popover-description.svelte +20 -0
  123. package/dist/admin/components/ui/popover/popover-description.svelte.d.ts +5 -0
  124. package/dist/admin/components/ui/popover/popover-header.svelte +20 -0
  125. package/dist/admin/components/ui/popover/popover-header.svelte.d.ts +5 -0
  126. package/dist/admin/components/ui/popover/popover-portal.svelte +7 -0
  127. package/dist/admin/components/ui/popover/popover-portal.svelte.d.ts +3 -0
  128. package/dist/admin/components/ui/popover/popover-title.svelte +20 -0
  129. package/dist/admin/components/ui/popover/popover-title.svelte.d.ts +5 -0
  130. package/dist/admin/components/ui/popover/popover-trigger.svelte +17 -0
  131. package/dist/admin/components/ui/popover/popover-trigger.svelte.d.ts +4 -0
  132. package/dist/admin/components/ui/popover/popover.svelte +7 -0
  133. package/dist/admin/components/ui/popover/popover.svelte.d.ts +3 -0
  134. package/dist/admin/components/ui/switch/switch.svelte +2 -2
  135. package/dist/admin/components/ui/tooltip/index.d.ts +6 -0
  136. package/dist/admin/components/ui/tooltip/index.js +8 -0
  137. package/dist/admin/components/ui/tooltip/tooltip-content.svelte +48 -0
  138. package/dist/admin/components/ui/tooltip/tooltip-content.svelte.d.ts +11 -0
  139. package/dist/admin/components/ui/tooltip/tooltip-portal.svelte +7 -0
  140. package/dist/admin/components/ui/tooltip/tooltip-portal.svelte.d.ts +4 -0
  141. package/dist/admin/components/ui/tooltip/tooltip-provider.svelte +7 -0
  142. package/dist/admin/components/ui/tooltip/tooltip-provider.svelte.d.ts +4 -0
  143. package/dist/admin/components/ui/tooltip/tooltip-trigger.svelte +7 -0
  144. package/dist/admin/components/ui/tooltip/tooltip-trigger.svelte.d.ts +25 -0
  145. package/dist/admin/components/ui/tooltip/tooltip.svelte +7 -0
  146. package/dist/admin/components/ui/tooltip/tooltip.svelte.d.ts +25 -0
  147. package/dist/admin/generated/admin.css +774 -138
  148. package/dist/admin/slug.d.ts +1 -0
  149. package/dist/admin/slug.js +6 -0
  150. package/dist/cli/index.js +0 -0
  151. package/dist/server/admin-load.js +2 -2
  152. package/dist/server/api.js +6 -1
  153. package/dist/server/auth.d.ts +1 -0
  154. package/dist/server/auth.js +23 -0
  155. package/docs/api.md +1 -1
  156. package/docs/package.md +4 -4
  157. package/docs/releases.md +10 -0
  158. package/docs/upgrades.md +9 -0
  159. package/package.json +5 -3
@@ -0,0 +1 @@
1
+ export declare const slugify: (v: unknown) => string;
@@ -0,0 +1,6 @@
1
+ export const slugify = (v) => String(v ?? '')
2
+ .normalize('NFKD')
3
+ .replace(/[̀-ͯ]/g, '')
4
+ .toLowerCase()
5
+ .replace(/[^a-z0-9]+/g, '-')
6
+ .replace(/^-|-$/g, '');
package/dist/cli/index.js CHANGED
File without changes
@@ -6,10 +6,10 @@ import { documents, references, submissions, user } from './db/schema.js';
6
6
  import { blueprintIcon } from './blueprint-icons.js';
7
7
  const entryBlueprintIds = (cms) => cms.definition.blueprints.filter((b) => b.kind !== 'form').map((b) => b.id);
8
8
  const formBlueprintIds = (cms) => cms.definition.blueprints.filter((b) => b.kind === 'form').map((b) => b.id);
9
- // Matches String(draft.title ?? id) without parsing every draft in JS.
9
+ // Matches String(draft.title ?? 'Untitled') without parsing every draft in JS.
10
10
  function titleLabel(row) {
11
11
  if (row.titleType === null || row.titleType === 'null')
12
- return row.id;
12
+ return 'Untitled';
13
13
  if (row.titleType === 'true' || row.titleType === 'false')
14
14
  return row.titleType;
15
15
  if (row.titleType === 'object' || row.titleType === 'array')
@@ -1,7 +1,7 @@
1
1
  import { json, error } from '@sveltejs/kit';
2
2
  import { createHash } from 'node:crypto';
3
3
  import { rateLimit } from './forms.js';
4
- import { createUser } from './auth.js';
4
+ import { createUser, deleteUser } from './auth.js';
5
5
  import { boundedJson, clientAddress } from './request.js';
6
6
  import { apiPrincipal } from './api-access.js';
7
7
  import { apiRequests, audit, apikey, user } from './db/schema.js';
@@ -310,6 +310,11 @@ export async function apiHandler(cms, event) {
310
310
  else
311
311
  cms.access.revoke(id, session.user.id);
312
312
  break;
313
+ case 'users/delete':
314
+ if (session.user.role !== 'admin')
315
+ error(403, 'Only admins can remove users');
316
+ deleteUser(cms.store, id, session.user.id);
317
+ break;
313
318
  case 'users/create':
314
319
  if (session.user.role !== 'admin')
315
320
  error(403, 'Only admins can create users');
@@ -1891,4 +1891,5 @@ export declare function createUser(store: Store, input: {
1891
1891
  password: string;
1892
1892
  role: 'admin' | 'editor';
1893
1893
  }, actor?: string): Promise<`${string}-${string}-${string}-${string}-${string}`>;
1894
+ export declare function deleteUser(store: Store, id: string, actor: string): void;
1894
1895
  export declare function recoverUser(store: Store, email: string, action: 'password' | '2fa', password?: string): Promise<void>;
@@ -108,6 +108,29 @@ export async function createUser(store, input, actor = 'operator') {
108
108
  });
109
109
  return id;
110
110
  }
111
+ export function deleteUser(store, id, actor) {
112
+ if (id === actor)
113
+ throw new Error('You cannot remove your own account');
114
+ store.db.transaction((tx) => {
115
+ const target = tx.select().from(schema.user).where(eq(schema.user.id, id)).get();
116
+ if (!target)
117
+ throw new Error('User not found');
118
+ if (target.role === 'admin' &&
119
+ tx.select().from(schema.user).where(eq(schema.user.role, 'admin')).all().length <= 1)
120
+ throw new Error('Keep at least one admin');
121
+ // Sessions, credentials, two-factor secrets, and API keys cascade with the user row.
122
+ tx.delete(schema.user).where(eq(schema.user.id, id)).run();
123
+ tx.insert(schema.audit)
124
+ .values({
125
+ id: crypto.randomUUID(),
126
+ action: 'user.delete',
127
+ actor,
128
+ detail: { id, email: target.email, role: target.role },
129
+ createdAt: Date.now()
130
+ })
131
+ .run();
132
+ });
133
+ }
111
134
  export async function recoverUser(store, email, action, password) {
112
135
  const user = store.db
113
136
  .select()
package/docs/api.md CHANGED
@@ -4,7 +4,7 @@ Coding agents map each site's content to its repository-owned YAML blueprints. S
4
4
 
5
5
  ## Provision a key
6
6
 
7
- Sign in as an administrator, finish the temporary password change (and two-factor sign-in if enabled), and open **Account & security → API keys**. Create a named **Read** or **Write** key and copy it immediately. The secret is shown once; Better Auth stores its hash. Write keys expire after 7 days by default; read keys expire after 30 days. Both allow an explicit lifetime of 1–365 days. Keys belong to the issuing account. Administrators can list and revoke keys for every account, including another administrator; the list shows owner, identifying prefix/start, expiration, and last use. Revocations are audited.
7
+ Sign in as an administrator, finish the temporary password change (and two-factor sign-in if enabled), and open **Account & security → API keys** and choose **Create API key**. Name a **Read** or **Read & write** key and copy it immediately. The secret is shown once; Better Auth stores its hash. Write keys expire after 7 days by default; read keys expire after 30 days. The form offers 7, 30, 90, or 365 days; `keys/create` accepts any whole-number lifetime from 1 to 365 days. Keys belong to the issuing account. Administrators can list and revoke keys for every account, including another administrator; the list shows owner, access, expiration, and last use. Revocations are audited.
8
8
 
9
9
  Use `x-api-key` on `/api/cms/` requests. No browser cookie or `Origin` header is needed. Read keys discover schemas and read drafts/media; write keys also edit, publish, unpublish, and delete content/media. Keys cannot access admin pages, browser preview delivery, auth endpoints, user management, invitations, or form submissions. Browser sessions retain the same-origin write requirement. Supplying an invalid key never falls back to a cookie. Keys are limited to 120 requests per minute; exceeding the limit returns 429. Revoked, disabled, or expired keys return 401. Missing permissions and an owner who still needs to change their password return 403. Every successful password change, emailed password reset, and operator password/two-factor recovery revokes the account's keys. Password changes and emailed resets audit the number of keys revoked. Deleting a user cascades to their keys. There is no role-change API; current owner permissions are checked on every key request.
10
10
 
package/docs/package.md CHANGED
@@ -17,13 +17,13 @@ npm pack --dry-run
17
17
  npm pack --pack-destination /tmp
18
18
  ```
19
19
 
20
- This release produces `/tmp/sandcms-0.6.2.tgz`. `npm pack` builds the package through `prepack`; it packages only the allowlisted distribution, templates, documentation, and package metadata. The repository's example website, tests, databases, and environment files are excluded. `release:check` checks types, runs unit tests, inspects an npm archive, and installs/builds that archive in both a fresh starter and an existing SvelteKit site.
20
+ This release produces `/tmp/sandcms-0.6.3.tgz`. `npm pack` builds the package through `prepack`; it packages only the allowlisted distribution, templates, documentation, and package metadata. The repository's example website, tests, databases, and environment files are excluded. `release:check` checks types, runs unit tests, inspects an npm archive, and installs/builds that archive in both a fresh starter and an existing SvelteKit site.
21
21
 
22
22
  Upload the archive you just built:
23
23
 
24
24
  ```sh
25
- npm publish /tmp/sandcms-0.6.2.tgz --access restricted --registry=https://registry.npmjs.org/
26
- npm view sandcms@0.6.2 version --registry=https://registry.npmjs.org/
25
+ npm publish /tmp/sandcms-0.6.3.tgz --access restricted --registry=https://registry.npmjs.org/
26
+ npm view sandcms@0.6.3 version --registry=https://registry.npmjs.org/
27
27
  ```
28
28
 
29
29
  Complete npm's authentication/2FA prompts. The logged-in account must have publishing permission in `sandquist-group`. The package also defaults to restricted access and the npmjs registry in `publishConfig`. Do not set `private: true` on this package: that prevents publication entirely. Generated websites do set it.
@@ -36,7 +36,7 @@ After publishing, authenticate as a user with read access to the package, then r
36
36
 
37
37
  ```sh
38
38
  npm login --registry=https://registry.npmjs.org/
39
- bunx --bun --package sandcms@0.6.2 sandcms setup --cwd ./my-site
39
+ bunx --bun --package sandcms@0.6.3 sandcms setup --cwd ./my-site
40
40
  cd my-site
41
41
  bun run dev
42
42
  ```
package/docs/releases.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release notes
2
2
 
3
+ ## 0.6.3
4
+
5
+ This patch release polishes the admin interface and adds user removal. There is no SQL migration, Worker protocol change or configuration change; upgrading from 0.6.2 only requires installing the package and rebuilding; see the [0.6.3 upgrade checklist](upgrades.md#063-upgrade-checklist). Stored data and project-owned YAML are preserved.
6
+
7
+ Polishes the admin. Pages drop decorative eyebrows, taglines and redundant helper text, and sections, tables and rows share aligned borders, padding and fixed row heights. The sidebar gains an account menu with settings and sign out, the top bar has a wider search trigger and a breadcrumb without the redundant Overview, and link fields are edited in a dialog behind a one-line summary. Date fields use a calendar picker. The editor labels its primary action **Publish** and moves unpublish, duplicate and delete into a menu. The title-to-slug auto-fill now works across editor tabs.
8
+
9
+ Reworks two-factor setup on **Account & security** as a step-by-step dialog: confirm the password, scan a QR code or copy the setup key, enter the six-digit code (submitted automatically), then copy or download the recovery codes. Disabling two-factor asks for the password in a dialog. Copy buttons for setup keys and API key secrets now also work outside a secure context such as plain HTTP.
10
+
11
+ Adds user removal. Administrators can remove another user from the row menu on the Users page after confirming. The `users/delete` endpoint is admin-only, refuses to remove the signed-in account or the last administrator, and audits the removal. The user's sessions, credentials, two-factor secrets and API keys are deleted with the account. No schema migration is required.
12
+
3
13
  ## 0.6.2
4
14
 
5
15
  This patch release speeds up media processing and the admin, and validates the website environment on start. Before upgrading from 0.6.1, check every environment's SandCMS variables, deploy the protocol-6 Worker with `sandcms worker update`, then apply retained migrations `0007` and `0008` before restarting the website; see the [0.6.2 upgrade checklist](upgrades.md#062-upgrade-checklist). Stored data and project-owned YAML are preserved.
package/docs/upgrades.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Updates and generated files
2
2
 
3
+ ## 0.6.3 upgrade checklist
4
+
5
+ Version 0.6.3 adds no SQL migration and no Worker protocol change. Follow this order when upgrading from 0.6.2:
6
+
7
+ 1. Install `sandcms@0.6.3`, review `sandcms upgrade --check`, then apply integration updates with `sandcms upgrade`.
8
+ 2. Rebuild and restart the website. Verify sign-in, two-factor setup and the editor on staging.
9
+
10
+ Upgrading from 0.6.1 still requires the [0.6.2 upgrade checklist](#062-upgrade-checklist) first.
11
+
3
12
  ## 0.6.2 upgrade checklist
4
13
 
5
14
  Version 0.6.2 includes retained database migrations `0007` and `0008`. Follow this order when upgrading from 0.6.1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandcms",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "scripts": {
5
5
  "dev": "bun run styles && bun --bun vite dev",
6
6
  "build": "bun run validate && bun run styles && bun --bun vite build && bun run package",
@@ -68,11 +68,13 @@
68
68
  "devDependencies": {
69
69
  "@fontsource-variable/geist": "5.3.0",
70
70
  "@playwright/test": "1.63.0",
71
+ "@sveltejs/adapter-bun": "1.0.0",
71
72
  "@sveltejs/kit": "3.0.0",
72
73
  "@sveltejs/package": "3.0.0",
73
74
  "@sveltejs/vite-plugin-svelte": "7.3.1",
74
75
  "@tailwindcss/cli": "4.3.3",
75
76
  "@types/nodemailer": "8.0.2",
77
+ "@types/qrcode": "^1.5.6",
76
78
  "@types/smtp-server": "3.5.13",
77
79
  "drizzle-kit": "0.31.11",
78
80
  "postcss": "8.5.28",
@@ -87,8 +89,7 @@
87
89
  "tw-animate-css": "1.4.0",
88
90
  "typescript": "6.0.3",
89
91
  "vite": "8.3.1",
90
- "wrangler": "4.140.0",
91
- "@sveltejs/adapter-bun": "1.0.0"
92
+ "wrangler": "4.140.0"
92
93
  },
93
94
  "keywords": [
94
95
  "svelte"
@@ -112,6 +113,7 @@
112
113
  "jsonc-parser": "3.3.1",
113
114
  "lucide": "1.48.0",
114
115
  "nodemailer": "10.0.11",
116
+ "qrcode": "^1.5.4",
115
117
  "saxes": "6.0.0",
116
118
  "tailwind-variants": "3.3.1",
117
119
  "yaml": "2.9.1",