Skip to content

MWS-wikiwise 0.7.4

Choose a tag to compare

@heino17 heino17 released this 17 Oct 13:09
· 12 commits to main since this release

MWS-wikiwise 0.7.4

4 commits since 0.7.3, 15 files, +756/−94.

The shipped system wikis now reach a store that already exists, and the
TiddlyWiki manual the fork replaced in §133 finally leaves it.

Install

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

mws-wikiwise-0.7.4.tgz — 4,634,194 bytes

sha256 97589e31912cb421beb3dcfdad7be8b3923a838bf89b1a91770dc2d4cfd00f01

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

Added

  • The shipped system wikis reach an existing store (§139). On every server
    start, after the SimpleWiki shell sync, MWS loads a system wiki whose shipped
    edition differs from the one it recorded — and creates it when the store never
    had one. A data folder installed under 0.6.1 and updated to 0.7.3 still
    carried the TiddlyWiki manual of its first start; it now gets the SimpleWiki
    manual without anyone retyping the whole load-wiki-folder call. An edition
    is identified by a content hash over its files plus its load definition,
    recorded per slug in settings as systemwiki.<slug>.hash.
    npx mws update-system-wikis applies whatever the build ships by hand, for
    repairing a system wiki or forcing the current edition.

  • The old TiddlyWiki manual leaves the store (§140). The same pass removes
    the ownerless bedienungsanleitung that stores upgraded from before §133
    still carried beside simplewiki-manual — but only when the slug sits on the
    fixed list of retired system wikis, the recipe is ownerless, its bag is
    exactly editions/<slug> and no other recipe reads that bag. A wiki somebody
    built by hand under the same name stays untouched, and a skipped removal is
    reported with its reason.

Changed

  • load-wiki-folder waits for its transaction (§139). It used to report
    complete while the write was still in flight.
  • The manual has one description everywhere (§139): it was
    SimpleWiki-Bedienungsanleitung in update-simplewiki-manual.sh but
    MWS Bedienungsanleitung (SimpleWiki) in init-store.
  • update-simplewiki-manual.sh is a shortcut now, running
    npm start update-system-wikis instead of carrying its own loader.

Operating notes

  • To update an existing installation, install the new tarball
    (npm install .../v0.7.4/mws-wikiwise-0.7.4.tgz) — npm update does not move
    MWS. The next server start brings the system wikis forward on its own and
    drops the old TiddlyWiki manual; npx mws update-system-wikis does the same
    thing right away.
  • No migration and no new dependency. templates/simplewiki.html is unchanged:
    the bundled SimpleWiki shell stays at v0.1.47.

Verified

  • npm run tsc2 and npm run build are clean.
  • The tarball's package.json says 0.7.4 and its
    templates/simplewiki.html reports mws-shell-version v0.1.47.
  • Installed the tarball into a fresh data folder: init-store created both
    system wikis, and the manual carries its description
    SimpleWiki-Bedienungsanleitung with 86 tiddlers.
  • A store in the state of a 0.6.1 upgrade (no simplewiki-manual, an ownerless
    bedienungsanleitung present) got the manual back with 86 tiddlers on start
    and lost the old one in the same run.