Skip to content

MultiWikiServer-wikiwise v0.7.0

Choose a tag to compare

@heino17 heino17 released this 15 Oct 12:53
· 22 commits to main since this release

MultiWikiServer-wikiwise v0.7.0

3 commits since 0.6.1 · 149 files changed · +3103 / −4195.

The manual now ships. A fresh installation brings the SimpleWiki manual as a
ready-made system wiki, an existing store reloads it with a helper script, and a
system wiki can no longer be deleted by accident. The bundled SimpleWiki shell is
refreshed to v0.1.43.

Install

mkdir my-folder && cd my-folder
npm install https://github.com/heino17/MultiWikiServer-wikiwise/releases/download/v0.7.0/mws-wikiwise-0.7.0.tgz
npx mws init-data-folder
npx mws update-tiddlywiki
npx mws init-store
npx mws listen --listener

mws-wikiwise-0.7.0.tgz — 4,224,060 bytes

sha256  97d77a6834f676692b68d38d98bd31f6fd4f0a7ec7ebdfcf4ebaf674b5ede5f1

npx mws init-data-folder is not optional: MWS only starts if the data folder's
package.json is named @tiddlywiki/mws-instance, is marked private and
carries a 0.2.x version.

New

  • The manual ships as a system wiki (§133). editions/simplewiki-manual is
    loaded by init-store with the SimpleWiki template and the ANON read
    role, so a fresh data folder carries it as an ownerless system wiki at
    /wiki/simplewiki-manual — bag editions/simplewiki-manual, notify shell
    policy, only ADMIN may write. The templates tab links a template with its
    own HTML shell to that wiki, and the runner helper gained a template-name
    option for the load.
  • A helper script to reload the manual (§135). update-simplewiki-manual.sh
    in the repository root runs the same load-wiki-folder call init-store
    makes for the manual, with --overwrite, resolves its own directory and calls
    mws.dev.mjs directly — so the spaces and parentheses in the manual's
    description survive, which they do not through npm start load-wiki-folder ….

Fixed

  • System wikis can no longer be deleted (§134). Deleting a wiki without an
    owner (creator "—") now answers 403 ACCESS_DENIED, and the admin app hides
    the delete button, because canDeleteWiki requires a non-empty
    ownerUsername — the same spirit in which the system roles are already
    protected.
  • The stale German manual edition is gone. editions/bedienungsanleitung
    and its runner are removed, and the npm files list ships
    editions/simplewiki-manual instead (§133).
  • The bundled SimpleWiki shell is refreshed from v0.1.31 to v0.1.43. A
    fresh init-store provisions the new shell; an existing template is brought
    forward with provision-simplewiki (§132).

Operating notes

  • To update an existing installation, install the new tarball
    (npm install .../v0.7.0/mws-wikiwise-0.7.0.tgz) — npm update does not move
    MWS. Reload the manual on an existing store with
    update-simplewiki-manual.sh --overwrite, and bring an existing SimpleWiki
    template forward with npx mws provision-simplewiki <simplewiki.html>.
  • No migration and no new runtime dependency.

Verification

npm run tsc2, npm run build and the admin app's tsc are clean; a scratch
store (init-store) answered /wiki/simplewiki-manual with 200, the
SimpleWiki shell with the store injected and
/recipe/simplewiki-manual/store.json with 84 pages (46 Deutsch, 38
American); deleting simplewiki-manual or mws-docs with the admin session
answered 403 and left both in place. See the CHANGELOG §133–§135.