@tiddlywiki/mws 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/README.md +22 -33
  2. package/dist/server.d.ts +15 -9
  3. package/dist/server.js +119 -61
  4. package/dist/server.js.map +1 -1
  5. package/editions/mws-docs/tiddlers/$__StoryList.tid +1 -3
  6. package/editions/mws-docs/tiddlers/2025-02-18 - User Management.md +56 -0
  7. package/editions/mws-docs/tiddlers/2025-02-18 - User Management.md.meta +5 -0
  8. package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md +64 -0
  9. package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md.meta +5 -0
  10. package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md +18 -0
  11. package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md.meta +5 -0
  12. package/editions/mws-docs/tiddlers/2025-05-04.md +13 -0
  13. package/editions/mws-docs/tiddlers/2025-05-04.md.meta +5 -0
  14. package/editions/mws-docs/tiddlers/2025-05-06.md +19 -0
  15. package/editions/mws-docs/tiddlers/2025-05-06.md.meta +5 -0
  16. package/editions/mws-docs/tiddlers/Checklists and Features.md +15 -0
  17. package/editions/mws-docs/tiddlers/Checklists and Features.md.meta +5 -0
  18. package/editions/mws-docs/tiddlers/MWS Architecture.md +15 -0
  19. package/editions/mws-docs/tiddlers/MWS Architecture.md.meta +5 -0
  20. package/editions/mws-docs/tiddlers/Notes.tid +5 -0
  21. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark +173 -0
  22. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark.meta +6 -0
  23. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light +172 -0
  24. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light.meta +6 -0
  25. package/package.json +9 -21
  26. package/plugins/client/tiddlers/readme.tid +0 -3
  27. package/react-user-mgmt/public/main.js +32 -32
  28. package/react-user-mgmt/public/main.js.map +4 -4
  29. package/react-user-mgmt/public/stats.json +1 -1
  30. package/scripts.mjs +34 -0
  31. package/.env-cmdrc +0 -5
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tiddlywiki/mws",
3
3
  "description": "TiddlyWiki Multiple Wiki Server",
4
4
  "private": false,
5
- "version": "0.0.16",
5
+ "version": "0.0.18",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  "types": "./src/server.ts",
@@ -16,35 +16,24 @@
16
16
  "tiddlywiki-types",
17
17
  "editions/mws-docs",
18
18
  "plugins/client",
19
- "libsql",
20
- "libsql-android-arm64",
21
- ".env-cmdrc"
19
+ "scripts.mjs"
22
20
  ],
23
21
  "engines": {
24
- "node": ">14"
22
+ "node": ">=18"
25
23
  },
26
24
  "scripts": {
27
- "docs": "tiddlywiki +plugins/tiddlywiki/tiddlyweb +plugins/tiddlywiki/filesystem editions/mws-docs --listen",
28
- "lint:fix": "exit 1 && eslint . --fix",
29
- "lint": "exit 1 && eslint .",
30
- "jsc": "tsc -p jsconfig.json --noEmit",
31
- "tsc": "tsc -p tsconfig.json --skipLibCheck",
32
- "gen:sql": "prisma migrate diff --from-empty --to-schema-datamodel prisma/schema.prisma --script > prisma/schema.prisma.sql",
33
- "gen:client": "prisma generate",
34
- "prisma": "npm run gen:client && npm run gen:sql",
35
- "prisma:studio": "DATABASE_URL=file:../editions/mws/store/database.sqlite prisma studio",
25
+ "docs": "node scripts.mjs docs",
26
+ "start": "node scripts.mjs start",
36
27
  "certs": "(cd runtime-config && bash localhost_certs.sh)",
37
- "start": "SKIPDTS=1 npm run build && node mws.dev.mjs init-store && node mws.dev.mjs listen",
38
- "build": "npm run tsc && tsup",
28
+ "tsc": "tsc -p tsconfig.json --skipLibCheck",
29
+ "build": "npm run tsc && tsup && node mws.dev.mjs --client-build",
39
30
  "install-android": "GYP_DEFINES=\"android_ndk_path=''\" npm install",
40
- "postinstall": "env-cmd -e prisma-env prisma generate",
31
+ "postinstall": "node scripts.mjs prisma:generate",
41
32
  "env": "env",
42
33
  "test:pack": "(git clean -dfx tests && npm pack --pack-destination tests && cd tests && npm install && npm install ./tiddlywiki-mws-$npm_package_version.tgz --no-save && npm test)",
43
34
  "test": "(git clean -dfx tests && cd tests && npm install .. --no-save && npm test)",
44
35
  "fulltest": "mv node_modules node_modules_old; npm run test:pack; mv node_modules_old node_modules",
45
- "prisma:adapter:better": "cp -rfv ../prisma/packages/adapter-better-sqlite3/src/* src/adapter-better-sqlite3",
46
- "prisma:adapter:libsql": "cp -rfv ../prisma/packages/adapter-libsql/src/* src/adapter-libsql",
47
- "prepublishOnly": "npm run build && node mws.dev.mjs --client-build"
36
+ "prepublishOnly": "npm run build"
48
37
  },
49
38
  "dependencies": {
50
39
  "@prisma/adapter-better-sqlite3": "6.7.0-dev.48",
@@ -55,7 +44,6 @@
55
44
  "@types/send": "^0.17.4",
56
45
  "@types/sjcl": "^1.0.34",
57
46
  "@types/tiddlywiki": "file:tiddlywiki-types",
58
- "env-cmd": "^10.1.0",
59
47
  "prisma": "6.6.0",
60
48
  "source-map-support": "^0.5.21",
61
49
  "zod": "^3.24.2"
@@ -2,7 +2,4 @@ title: $:/plugins/tiddlywiki/multiwikiclient/readme
2
2
 
3
3
  This plugin runs in the browser to synchronise tiddler changes to and from a TiddlyWiki server running ~MultiWikiServer.
4
4
 
5
-
6
- This plugin is inert when run under Node.js. Disabling this plugin via the browser can not be undone via the browser since this plugin provides the mechanism to synchronize settings with the server.
7
-
8
5
  Changes made while offline are saved in memory and automatically synchonised with the server when the connection is re-established. However, if the browser tab is closed or another URL is loaded, the in-memory changes will be lost. The [[https://tiddlywiki.com/#BrowserStorage Plugin]] may be added to provide temporary filesystem storage of tiddler changes made while offline and enable them to be synchronised with the server the next time the wiki is loaded in the same browser.