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.
- package/README.md +1 -1
- package/dist/admin/Account.svelte +284 -83
- package/dist/admin/ApiKeys.svelte +146 -79
- package/dist/admin/AssetAttachment.svelte +9 -9
- package/dist/admin/BlueprintFields.svelte +20 -2
- package/dist/admin/BlueprintFields.svelte.d.ts +2 -0
- package/dist/admin/Collection.svelte +111 -54
- package/dist/admin/Dashboard.svelte +3 -37
- package/dist/admin/DateField.svelte +75 -0
- package/dist/admin/DateField.svelte.d.ts +11 -0
- package/dist/admin/Editor.svelte +71 -65
- package/dist/admin/Fields.svelte +24 -16
- package/dist/admin/FocusPicker.svelte +1 -2
- package/dist/admin/Gallery.svelte +0 -1
- package/dist/admin/GlobalSearch.svelte +54 -26
- package/dist/admin/HoverHint.svelte +37 -0
- package/dist/admin/HoverHint.svelte.d.ts +8 -0
- package/dist/admin/Inbox.svelte +6 -11
- package/dist/admin/LinkField.svelte +129 -64
- package/dist/admin/Login.svelte +0 -1
- package/dist/admin/MediaLibrary.svelte +61 -50
- package/dist/admin/MediaPicker.svelte +57 -42
- package/dist/admin/NotificationSettings.svelte +35 -27
- package/dist/admin/RichText.svelte +2 -2
- package/dist/admin/RowMenu.svelte +28 -0
- package/dist/admin/RowMenu.svelte.d.ts +10 -0
- package/dist/admin/SearchList.svelte +51 -14
- package/dist/admin/Shell.svelte +64 -29
- package/dist/admin/Users.svelte +106 -50
- package/dist/admin/client.d.ts +2 -0
- package/dist/admin/client.js +18 -0
- package/dist/admin/components/ui/calendar/calendar-caption.svelte +76 -0
- package/dist/admin/components/ui/calendar/calendar-caption.svelte.d.ts +19 -0
- package/dist/admin/components/ui/calendar/calendar-cell.svelte +19 -0
- package/dist/admin/components/ui/calendar/calendar-cell.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-day.svelte +33 -0
- package/dist/admin/components/ui/calendar/calendar-day.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-grid-body.svelte +12 -0
- package/dist/admin/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-grid-head.svelte +12 -0
- package/dist/admin/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-grid-row.svelte +12 -0
- package/dist/admin/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-grid.svelte +16 -0
- package/dist/admin/components/ui/calendar/calendar-grid.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-head-cell.svelte +19 -0
- package/dist/admin/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-header.svelte +19 -0
- package/dist/admin/components/ui/calendar/calendar-header.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-heading.svelte +16 -0
- package/dist/admin/components/ui/calendar/calendar-heading.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-month-select.svelte +48 -0
- package/dist/admin/components/ui/calendar/calendar-month-select.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar-month.svelte +15 -0
- package/dist/admin/components/ui/calendar/calendar-month.svelte.d.ts +5 -0
- package/dist/admin/components/ui/calendar/calendar-months.svelte +19 -0
- package/dist/admin/components/ui/calendar/calendar-months.svelte.d.ts +5 -0
- package/dist/admin/components/ui/calendar/calendar-nav.svelte +19 -0
- package/dist/admin/components/ui/calendar/calendar-nav.svelte.d.ts +5 -0
- package/dist/admin/components/ui/calendar/calendar-next-button.svelte +37 -0
- package/dist/admin/components/ui/calendar/calendar-next-button.svelte.d.ts +8 -0
- package/dist/admin/components/ui/calendar/calendar-prev-button.svelte +37 -0
- package/dist/admin/components/ui/calendar/calendar-prev-button.svelte.d.ts +8 -0
- package/dist/admin/components/ui/calendar/calendar-year-select.svelte +47 -0
- package/dist/admin/components/ui/calendar/calendar-year-select.svelte.d.ts +4 -0
- package/dist/admin/components/ui/calendar/calendar.svelte +115 -0
- package/dist/admin/components/ui/calendar/calendar.svelte.d.ts +21 -0
- package/dist/admin/components/ui/calendar/index.d.ts +19 -0
- package/dist/admin/components/ui/calendar/index.js +21 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte +16 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +46 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +9 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-content.svelte +31 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +10 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +22 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +8 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group.svelte +7 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-group.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-item.svelte +27 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +8 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-label.svelte +24 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-portal.svelte +7 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +16 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +36 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-separator.svelte +17 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +23 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +31 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +10 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +29 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub.svelte +7 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-sub.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +7 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu.svelte +7 -0
- package/dist/admin/components/ui/dropdown-menu/dropdown-menu.svelte.d.ts +3 -0
- package/dist/admin/components/ui/dropdown-menu/index.d.ts +18 -0
- package/dist/admin/components/ui/dropdown-menu/index.js +18 -0
- package/dist/admin/components/ui/input-otp/index.d.ts +5 -0
- package/dist/admin/components/ui/input-otp/index.js +5 -0
- package/dist/admin/components/ui/input-otp/input-otp-group.svelte +23 -0
- package/dist/admin/components/ui/input-otp/input-otp-group.svelte.d.ts +5 -0
- package/dist/admin/components/ui/input-otp/input-otp-separator.svelte +27 -0
- package/dist/admin/components/ui/input-otp/input-otp-separator.svelte.d.ts +5 -0
- package/dist/admin/components/ui/input-otp/input-otp-slot.svelte +29 -0
- package/dist/admin/components/ui/input-otp/input-otp-slot.svelte.d.ts +4 -0
- package/dist/admin/components/ui/input-otp/input-otp.svelte +24 -0
- package/dist/admin/components/ui/input-otp/input-otp.svelte.d.ts +4 -0
- package/dist/admin/components/ui/popover/index.d.ts +9 -0
- package/dist/admin/components/ui/popover/index.js +11 -0
- package/dist/admin/components/ui/popover/popover-close.svelte +7 -0
- package/dist/admin/components/ui/popover/popover-close.svelte.d.ts +4 -0
- package/dist/admin/components/ui/popover/popover-content.svelte +31 -0
- package/dist/admin/components/ui/popover/popover-content.svelte.d.ts +10 -0
- package/dist/admin/components/ui/popover/popover-description.svelte +20 -0
- package/dist/admin/components/ui/popover/popover-description.svelte.d.ts +5 -0
- package/dist/admin/components/ui/popover/popover-header.svelte +20 -0
- package/dist/admin/components/ui/popover/popover-header.svelte.d.ts +5 -0
- package/dist/admin/components/ui/popover/popover-portal.svelte +7 -0
- package/dist/admin/components/ui/popover/popover-portal.svelte.d.ts +3 -0
- package/dist/admin/components/ui/popover/popover-title.svelte +20 -0
- package/dist/admin/components/ui/popover/popover-title.svelte.d.ts +5 -0
- package/dist/admin/components/ui/popover/popover-trigger.svelte +17 -0
- package/dist/admin/components/ui/popover/popover-trigger.svelte.d.ts +4 -0
- package/dist/admin/components/ui/popover/popover.svelte +7 -0
- package/dist/admin/components/ui/popover/popover.svelte.d.ts +3 -0
- package/dist/admin/components/ui/switch/switch.svelte +2 -2
- package/dist/admin/components/ui/tooltip/index.d.ts +6 -0
- package/dist/admin/components/ui/tooltip/index.js +8 -0
- package/dist/admin/components/ui/tooltip/tooltip-content.svelte +48 -0
- package/dist/admin/components/ui/tooltip/tooltip-content.svelte.d.ts +11 -0
- package/dist/admin/components/ui/tooltip/tooltip-portal.svelte +7 -0
- package/dist/admin/components/ui/tooltip/tooltip-portal.svelte.d.ts +4 -0
- package/dist/admin/components/ui/tooltip/tooltip-provider.svelte +7 -0
- package/dist/admin/components/ui/tooltip/tooltip-provider.svelte.d.ts +4 -0
- package/dist/admin/components/ui/tooltip/tooltip-trigger.svelte +7 -0
- package/dist/admin/components/ui/tooltip/tooltip-trigger.svelte.d.ts +25 -0
- package/dist/admin/components/ui/tooltip/tooltip.svelte +7 -0
- package/dist/admin/components/ui/tooltip/tooltip.svelte.d.ts +25 -0
- package/dist/admin/generated/admin.css +774 -138
- package/dist/admin/slug.d.ts +1 -0
- package/dist/admin/slug.js +6 -0
- package/dist/cli/index.js +0 -0
- package/dist/server/admin-load.js +2 -2
- package/dist/server/api.js +6 -1
- package/dist/server/auth.d.ts +1 -0
- package/dist/server/auth.js +23 -0
- package/docs/api.md +1 -1
- package/docs/package.md +4 -4
- package/docs/releases.md +10 -0
- package/docs/upgrades.md +9 -0
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slugify: (v: unknown) => string;
|
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 ??
|
|
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
|
|
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')
|
package/dist/server/api.js
CHANGED
|
@@ -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');
|
package/dist/server/auth.d.ts
CHANGED
|
@@ -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>;
|
package/dist/server/auth.js
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
26
|
-
npm view sandcms@0.6.
|
|
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.
|
|
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.
|
|
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",
|