Repository navigation
MWS-wikiwise 0.7.4
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 wholeload-wiki-foldercall. An edition
is identified by a content hash over its files plus its load definition,
recorded per slug insettingsassystemwiki.<slug>.hash.
npx mws update-system-wikisapplies 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 ownerlessbedienungsanleitungthat stores upgraded from before §133
still carried besidesimplewiki-manual— but only when the slug sits on the
fixed list of retired system wikis, the recipe is ownerless, its bag is
exactlyeditions/<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-folderwaits for its transaction (§139). It used to report
completewhile the write was still in flight.- The manual has one description everywhere (§139): it was
SimpleWiki-Bedienungsanleitunginupdate-simplewiki-manual.shbut
MWS Bedienungsanleitung (SimpleWiki)ininit-store. update-simplewiki-manual.shis a shortcut now, running
npm start update-system-wikisinstead 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 updatedoes 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-wikisdoes the same
thing right away. - No migration and no new dependency.
templates/simplewiki.htmlis unchanged:
the bundled SimpleWiki shell stays at v0.1.47.
Verified
npm run tsc2andnpm run buildare clean.- The tarball's
package.jsonsays0.7.4and its
templates/simplewiki.htmlreportsmws-shell-version v0.1.47. - Installed the tarball into a fresh data folder:
init-storecreated both
system wikis, and the manual carries its description
SimpleWiki-Bedienungsanleitungwith 86 tiddlers. - A store in the state of a 0.6.1 upgrade (no
simplewiki-manual, an ownerless
bedienungsanleitungpresent) got the manual back with 86 tiddlers on start
and lost the old one in the same run.