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 +14 -1
- package/package.json +1 -1
- package/src/build-info.json +2 -2
- package/src/update.js +5 -2
- package/src/version.js +1 -1
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
|
-
|
|
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
package/src/build-info.json
CHANGED
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 `
|
|
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}
|
|
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.
|
|
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';
|