@soffits/dsh-card-board 0.14.0 → 0.14.1
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.
- package/CHANGELOG.md +4 -0
- package/client.js +1 -1
- package/package.json +1 -1
- package/src/messages.js +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.1
|
|
4
|
+
|
|
5
|
+
The page's words are read from the locale files on each request instead of once, so a page updated in place gets its new words right away instead of showing raw keys until it is reloaded.
|
|
6
|
+
|
|
3
7
|
## 0.14.0
|
|
4
8
|
|
|
5
9
|
A countdown can carry up to 24 steps (was 8), enough for a whole travel day from waking up to landing. The next step is still marked and the passed ones dimmed.
|
package/client.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @soffits/dsh-card-board 0.14.
|
|
1
|
+
/* @soffits/dsh-card-board 0.14.1: built by scripts/build.mjs from src/client/. Do not edit. */
|
|
2
2
|
window.__ModuleLoader__.load({
|
|
3
3
|
id: "@soffits/dsh-card-board",
|
|
4
4
|
factory: (require) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soffits/dsh-card-board",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "A data-driven card board for DeepSeek Harness: scripts write small JSON cards, the Web UI shows each person the boards they may see.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/messages.js
CHANGED
|
@@ -41,13 +41,12 @@ export function messagesFor(languages, tag) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
+
* The words for a language, read from the folder on every request. DSH swaps a plugin's browser half as
|
|
45
|
+
* soon as its files change, before the host half is reloaded, so words kept from start would hand a
|
|
46
|
+
* freshly updated page the old table (raw keys for every new message).
|
|
44
47
|
* @param {string} directory - the package's `locale` folder
|
|
45
48
|
* @returns {(tag: string) => Promise<{ tag: string, messages: Record<string, string> }>}
|
|
46
49
|
*/
|
|
47
50
|
export function createMessages(directory) {
|
|
48
|
-
|
|
49
|
-
return async tag => {
|
|
50
|
-
languages ??= readLanguages(directory)
|
|
51
|
-
return messagesFor(await languages, tag)
|
|
52
|
-
}
|
|
51
|
+
return async tag => messagesFor(await readLanguages(directory), tag)
|
|
53
52
|
}
|