@bobfrankston/rmfmail 1.2.279 → 1.2.280

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/.commitmsg CHANGED
@@ -1,16 +1,19 @@
1
- build-tinymce: report which TinyMCE and language-pack versions were copied
1
+ About: show the bundled editor version
2
2
 
3
- Both specs are caret ranges, so the resolved version moves on its own whenever
4
- npm re-resolves the tree — tinymce sat at 8.6.0 for weeks under a ^8.5.0 spec
5
- with nothing to notice ("do you track updates for TinyMCE?", Bob 2026-08-23).
3
+ CORRECTION to 1.2.279. That release added the resolved tinymce / tinymce-i18n
4
+ versions to build-tinymce.js's console output, on the claim that this put the
5
+ answer in the build transcript every publish archives. It does not:
6
+ npmglobalize swallows a sub-build's stdout and reports only "✓ Build
7
+ succeeded", so the line never reaches c:\temp\rebuild\. The echo is still
8
+ correct when the script is run directly, but the build log is not where this
9
+ question gets answered.
6
10
 
7
- Pinning exact would only trade silent drift for silent staleness: no more patch
8
- fixes, and the surprise moves to whoever edits the pin. A dependency bot is the
9
- wrong shape too those work by filing PRs, and this repo publishes from the
10
- local tree with direct commits.
11
+ About… now carries an "Editor bundle" row "TinyMCE 8.8.2 · 61 languages" —
12
+ read at display time from client/lib/tinymce/package.json and langs/index.json,
13
+ the same tree the editor loads from, so it cannot drift from what is actually
14
+ running. That answers it on the machine showing the symptom, which is where it
15
+ matters, rather than requiring a checkout of the matching tag.
11
16
 
12
- So make it visible where it already costs nothing. Every publish archives its
13
- build transcript to c:\temp\rebuild\, and build-tinymce.js already prints what
14
- it copied; it now prints the resolved versions of tinymce and tinymce-i18n as
15
- well. "Which TinyMCE shipped in 1.2.277?" is answerable from the log, with no
16
- network call at build time and nothing to maintain.
17
+ Why this keeps mattering: both specs are caret ranges, so the resolved version
18
+ moves whenever npm re-resolves the tree — tinymce sat at 8.6.0 for weeks under
19
+ a ^8.5.0 spec with nothing to notice.
@@ -13315,9 +13315,27 @@ async function openAboutDialog() {
13315
13315
  if (e.target === backdrop) close();
13316
13316
  });
13317
13317
  try {
13318
- const [v, accounts] = await Promise.all([
13318
+ const editorBundle = async () => {
13319
+ const readJson = async (url) => {
13320
+ try {
13321
+ const r = await fetch(url);
13322
+ return r.ok ? await r.json() : null;
13323
+ } catch {
13324
+ return null;
13325
+ }
13326
+ };
13327
+ const [pkg, langs] = await Promise.all([
13328
+ readJson("lib/tinymce/package.json"),
13329
+ readJson("lib/tinymce/langs/index.json")
13330
+ ]);
13331
+ if (!pkg?.version) return "";
13332
+ const n = langs?.length || 0;
13333
+ return n ? `TinyMCE ${pkg.version} \xB7 ${n} languages` : `TinyMCE ${pkg.version}`;
13334
+ };
13335
+ const [v, accounts, editorInfo] = await Promise.all([
13319
13336
  getVersion().catch(() => ({})),
13320
- getAccounts().catch(() => [])
13337
+ getAccounts().catch(() => []),
13338
+ editorBundle()
13321
13339
  ]);
13322
13340
  const storage = v.storage || {};
13323
13341
  const isApp2 = typeof mailxapi !== "undefined" && mailxapi?.isApp;
@@ -13336,6 +13354,7 @@ async function openAboutDialog() {
13336
13354
  if (storage.folderId) rows.push(["Drive folderId", storage.folderId]);
13337
13355
  if (storage.folderOwner) rows.push(["Drive owner", storage.folderOwner]);
13338
13356
  if (storage.configDir) rows.push(["Config dir", storage.configDir]);
13357
+ if (editorInfo) rows.push(["Editor bundle", editorInfo]);
13339
13358
  rows.push(["Accounts", String((accounts || []).length)]);
13340
13359
  rows.push(["User agent", navigator.userAgent]);
13341
13360
  rows.push(["Screen", `${screen.width}\xD7${screen.height}`]);