prolog-notebook 0.4.0 → 0.4.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.1] — 2026-08-30
4
+
5
+ ### Changed
6
+
7
+ - **The update notice says what you have**, not just what exists:
8
+
9
+ You have the latest version of Prolog Notebook, 0.4.1.
10
+ You have Prolog Notebook 0.4.0. The latest is 0.4.1.
11
+ Update with: npm i -g prolog-notebook
12
+
13
+ *Prolog Notebook 0.4.1 is the latest* states a fact about the world and leaves the reader to
14
+ work out that it is also a fact about them — which is the whole question they asked.
15
+
3
16
  ## [0.4.0] — 2026-08-30
4
17
 
5
18
  ### Added
@@ -7,7 +20,7 @@
7
20
  - **The CLI notices when it is out of date.** On real work — `run` — it asks npm at most once
8
21
  a day whether there is something newer, and says nothing unless there is:
9
22
 
10
- A newer Prolog Notebook is available: 0.4.0 0.5.0
23
+ You have Prolog Notebook 0.4.0. The latest is 0.5.0.
11
24
  Update with: npm i -g prolog-notebook
12
25
 
13
26
  `--check-update` forces the question and answers it either way, including *you are on the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prolog-notebook",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Jupyter-style notebooks for Prolog. Runs in the browser, installs nothing.",
5
5
  "type": "module",
6
6
  "main": "./src/node.js",
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "0e3e8fa",
3
- "built": "2026-08-30 15:12:30 UTC"
2
+ "commit": "9de0531",
3
+ "built": "2026-08-30 15:28:09 UTC"
4
4
  }
package/src/update.js CHANGED
@@ -150,9 +150,12 @@ export async function updateNotice({
150
150
  if (!newest) {
151
151
  return fresh && !force ? null : 'Could not reach the npm registry to check for updates.';
152
152
  }
153
+ // BOTH LINES START WITH WHAT YOU HAVE, because that is the question being
154
+ // asked. "Prolog Notebook 0.4.0 is the latest" states a fact about the world
155
+ // and leaves the reader to work out that it is also a fact about them.
153
156
  if (isNewer(newest, version)) {
154
- return `A newer Prolog Notebook is available: ${version} ${newest}\n`
157
+ return `You have Prolog Notebook ${version}. The latest is ${newest}.\n`
155
158
  + 'Update with: npm i -g prolog-notebook';
156
159
  }
157
- return force ? `Prolog Notebook ${version} is the latest.` : null;
160
+ return force ? `You have the latest version of Prolog Notebook, ${version}.` : null;
158
161
  }
package/src/version.js CHANGED
@@ -10,7 +10,7 @@
10
10
  export const NAME = 'Prolog Notebook';
11
11
 
12
12
  /** Must equal package.json's `version` — test/run.test.mjs enforces it. */
13
- export const VERSION = '0.4.0';
13
+ export const VERSION = '0.4.1';
14
14
 
15
15
  /** The two facts a licence notice is actually made of. */
16
16
  export const YEAR = '2026';