Fix: Add fetch permission and bump to v0.3.16
All checks were successful
Build SilverBullet Plug / build (push) Successful in 25s

This commit is contained in:
2026-02-17 14:57:02 -08:00
parent 03907f3789
commit 5f9afac9d8
8 changed files with 20 additions and 22 deletions

View File

@@ -1,5 +0,0 @@
FROM denoland/deno:latest
WORKDIR /app
COPY . .
RUN deno run -A https://github.com/silverbulletmd/silverbullet/releases/download/2.4.1/plug-compile.js -c deno.json icalendar.plug.yaml
CMD ["cat", "icalendar.plug.js"]

View File

@@ -1,8 +1,8 @@
---
name: Library/sstent/icalendar/PLUG
version: 0.3.15
version: 0.3.16
tags: meta/library
files:
- icalendar.plug.js
---
iCalendar sync plug for SilverBullet.
iCalendar sync plug for SilverBullet.

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,8 @@
---
name: Library/sstent/icalendar/PLUG
version: 0.3.15
version: 0.3.16
tags: meta/library
files:
- icalendar.plug.js
---
iCalendar sync plug for SilverBullet.
iCalendar sync plug for SilverBullet.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,28 +1,31 @@
name: icalendar
version: 0.3.15
version: 0.3.16
author: sstent
index: icalendar.ts
# Include both legacy and modern permission names for fetch
permissions:
- fetch
- http
functions:
syncCalendars:
path: ./icalendar.ts:syncCalendars
path: icalendar.ts:syncCalendars
command:
name: "iCalendar: Sync"
priority: -1
events:
- editor:init
forceSync:
path: ./icalendar.ts:forceSync
path: icalendar.ts:forceSync
command:
name: "iCalendar: Force Sync"
priority: -1
clearCache:
path: ./icalendar.ts:clearCache
path: icalendar.ts:clearCache
command:
name: "iCalendar: Clear All Events"
priority: -1
showVersion:
path: ./icalendar.ts:showVersion
path: icalendar.ts:showVersion
command:
name: "iCalendar: Version"
priority: -2
priority: -2

View File

@@ -1,7 +1,7 @@
import { clientStore, config, datastore, editor, index } from "@silverbulletmd/silverbullet/syscalls";
import { convertIcsCalendar } from "https://esm.sh/ts-ics@2.4.0";
const VERSION = "0.3.15";
const VERSION = "0.3.16";
const CACHE_KEY = "icalendar:lastSync";
const TIMEZONE_OFFSETS: Record<string, number> = {