Release 1.0.8 with platform, security, and UI hardening.
Adds API filter registry, style theme registry, SW bitmask cache clear, KV namespacing, session expiry checks, accessibility improvements, and expanded test coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+11
-4
@@ -7,6 +7,13 @@
|
||||
import { normalizeRightsInput } from '../security/model/rights.js';
|
||||
import { evaluateAuthRequirements } from '../security/runtime/access-rules.js';
|
||||
import { getProvider } from './storage.js';
|
||||
import { isDevelopment } from './env.js';
|
||||
|
||||
function menuDebug(...args) {
|
||||
if (isDevelopment()) {
|
||||
console.log(...args);
|
||||
}
|
||||
}
|
||||
|
||||
// Menu root structure: Map of root directory IDs to MenuItem instances
|
||||
const menuRoot = new Map();
|
||||
@@ -616,7 +623,7 @@ function initializeMenuRoot() {
|
||||
menuRoot.set(rootConfig.id, rootItem);
|
||||
}
|
||||
|
||||
console.log('[Menu] Initialized menu root with 4 directory items');
|
||||
menuDebug('[Menu] Initialized menu root with 4 directory items');
|
||||
}
|
||||
|
||||
// Initialize on module load
|
||||
@@ -813,7 +820,7 @@ export function publishMenuItem(path, item) {
|
||||
// Add to parent's items Map
|
||||
parent.addItem(itemId, menuItem);
|
||||
|
||||
console.log(`[Menu] Published item at: ${normalizedPath} (ID: ${itemId})`);
|
||||
menuDebug(`[Menu] Published item at: ${normalizedPath} (ID: ${itemId})`);
|
||||
|
||||
// Notify listeners of menu change
|
||||
notifyMenuChange();
|
||||
@@ -871,7 +878,7 @@ export function retractMenuItem(path) {
|
||||
|
||||
const removed = parent.removeItem(itemId);
|
||||
if (removed) {
|
||||
console.log(`[Menu] Retracted item at: ${normalizedPath}`);
|
||||
menuDebug(`[Menu] Retracted item at: ${normalizedPath}`);
|
||||
// Notify listeners of menu change
|
||||
notifyMenuChange();
|
||||
} else {
|
||||
@@ -999,7 +1006,7 @@ export function clearMenu() {
|
||||
for (const rootItem of menuRoot.values()) {
|
||||
rootItem.items.clear();
|
||||
}
|
||||
console.log('[Menu] Cleared all items (root items preserved)');
|
||||
menuDebug('[Menu] Cleared all items (root items preserved)');
|
||||
}
|
||||
|
||||
export async function restoreMenuPreferences() {
|
||||
|
||||
Reference in New Issue
Block a user