mirror of
https://github.com/zadam/trilium.git
synced 2026-09-14 11:06:04 +05:00
Every premium plugin Trilium loaded now has an in-tree GPL replacement — `SlashCommand` -> `TriliumSlashCommands` (#10711), `Template` -> `TriliumSnippets` (#10727), `FormatPainter` -> `TriliumFormatPainter` — which left `loadPremiumPlugins()` returning an empty array while the commercial licence, its key plumbing and the dependency were all still carried around. - `loadPremiumPlugins()` and its export are gone. `config.ts` always passes `licenseKey: "GPL"`, so `getLicenseKey()`, `VITE_CKEDITOR_KEY` (both `.env` files, `vite-env.d.ts`) and the `forceGplLicense` build option go with it, along with the read-only-editor rebuild in `buildEditor()` — that fallback existed only to recover from a licence CKEditor had rejected. - `getCkLocale()` no longer loads the premium translation bundle. The GPL plugins reuse premium's English source strings, so a handful of labels ("Insert template", "Copy formatting", the slash palette) now fall back to English in non-English UI locales; everything from CKEditor's own core translations is unaffected. - Also removed: the dependency + lockfile entry, the `optimizeDeps` pre-bundle entry, the renovate group member, and the premium category in `analyze-perf.ts`. Tests: `plugins.spec.ts` pins the three GPL replacements instead of asserting the premium list; the licensing block in `config.spec.ts` collapses to one test; `i18n.spec.ts` becomes table-driven (19 near-identical cases -> 2) and expects a single translation bundle. Typecheck clean, 834 package tests and 169 client tests pass, and the client builds with the package pruned. The "Premium features" user-guide note is now obsolete but is left alone — it needs the docs editor, not a hand edit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| icon-packs | ||
| icons | ||
| repo-migration | ||
| translation | ||
| analyze-perf.ts | ||
| build-portable-better-sqlite3.sh | ||
| build-utils.ts | ||
| check-version-consistency.ts | ||
| electron-run-prod.mts | ||
| electron-start.mts | ||
| filter-tsc-output.mts | ||
| generate-openapi.ts | ||
| tsconfig.json | ||
| update-build-info.ts | ||
| update-contributors.ts | ||
| update-nightly-version.ts | ||
| update-version.ts | ||
| utils.mts | ||
| wipe-node-modules.mts | ||