@unbase-app/cli 0.4.0 → 0.5.0

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/lib/versions.mjs CHANGED
@@ -14,28 +14,35 @@ export const SELF = { name: own.name, version: own.version, dev: true };
14
14
  * Unbase in an Astro site, one package (K5): comment mode, the draft-pages kit and the analytics
15
15
  * beacon below, at the versions its own package.json pins (kit/astro; a test holds the two equal).
16
16
  */
17
- export const ASTRO = { name: "@unbase-app/astro", version: "0.3.0", dev: false };
17
+ export const ASTRO = { name: "@unbase-app/astro", version: "0.4.0", dev: false };
18
18
 
19
- /** Comments on the live site (`?comment`), and the content schemas, page list and markers it writes. Inside ASTRO. */
20
- export const COMMENT_MODUS = { name: "@jens4m/comment-modus", version: "1.9.0", dev: false };
19
+ /**
20
+ * Comment mode, the layer: comments on the live site (`?comment`), and the content schemas, page
21
+ * list and markers it writes. Inside ASTRO. Called @jens4m/comment-modus before 2.0 (BEFORE.comments).
22
+ */
23
+ export const LAYER = { name: "@unbase-app/layer", version: "2.0.0", dev: false };
21
24
 
22
25
  /** Keeps draft pages out of production builds, and applies the redirects a moved page leaves. Inside ASTRO. */
23
- export const PAGES = { name: "@unbase-app/pages", version: "0.4.0", dev: false };
26
+ export const PAGES = { name: "@unbase-app/pages", version: "0.4.1", dev: false };
24
27
 
25
28
  /** Unbase's analytics beacon (kit/analytics). Inside ASTRO, VITE and NEXT; never installed on its own. */
26
29
  export const ANALYTICS = { name: "@unbase-app/analytics", version: "0.1.0", dev: false };
27
30
 
28
31
  /**
29
- * The names before K5 (03-11): a site installed then has the pair (comment-modus and the kit) and
30
- * the CLI under these. init replaces them; doctor and uninstall know them.
32
+ * The names before: K5 (03-11) made the pair (comment mode and the kit) one package and moved the
33
+ * CLI; comment mode became @unbase-app/layer at 2.0 (16-11). init replaces them; doctor and
34
+ * uninstall know them.
31
35
  */
32
- export const BEFORE = { pages: "@jens4m/unbase-pages", cli: "@jens4m/unbase" };
36
+ export const BEFORE = { pages: "@jens4m/unbase-pages", cli: "@jens4m/unbase", comments: "@jens4m/comment-modus" };
37
+
38
+ /** Comment mode under either of its names, the current one first. */
39
+ export const COMMENT_NAMES = [LAYER.name, BEFORE.comments];
33
40
 
34
41
  /** Vite + React Router: the draft-pages kit and comment mode's loader, in one Vite plugin (kit/vite). A build tool, so a devDependency, beside vite. */
35
- export const VITE = { name: "@unbase-app/vite", version: "0.3.0", dev: true };
42
+ export const VITE = { name: "@unbase-app/vite", version: "0.3.1", dev: true };
36
43
 
37
44
  /** Next.js: draft pages kept out of production builds, comments on the live site and analytics (`withUnbase`). */
38
- export const NEXT = { name: "@unbase-app/next", version: "0.3.0", dev: false };
45
+ export const NEXT = { name: "@unbase-app/next", version: "0.3.1", dev: false };
39
46
 
40
47
  /**
41
48
  * The first version of each framework's package that brings the analytics beacon: doctor's
@@ -52,14 +59,14 @@ export const LAYER_URL = "https://layer.unbase.app/v1/loader.js";
52
59
  * route when it is in node_modules but not listed in package.json (npm install --no-save, or
53
60
  * through another package). Listing it fixes it; 1.8.1 builds either way.
54
61
  */
55
- export const UNLISTED_BUILD_FAILURE = { package: COMMENT_MODUS.name, upTo: "1.8.0", fixedIn: "1.8.1", output: /Invalid URL/ };
62
+ export const UNLISTED_BUILD_FAILURE = { package: BEFORE.comments, upTo: "1.8.0", fixedIn: "1.8.1", output: /Invalid URL/ };
56
63
 
57
64
  /**
58
65
  * The first comment-modus that knows `componentMarker: "preview"`: data-c in the dev server and
59
66
  * previews, none in a production build (plan-packages *Open* 5). An older one ignores the value
60
67
  * and marks every build. init does not write the option, so the pin above stays where it is.
61
68
  */
62
- export const MARKERS_PREVIEW = { package: COMMENT_MODUS.name, since: "1.9.0" };
69
+ export const MARKERS_PREVIEW = { package: BEFORE.comments, since: "1.9.0" };
63
70
 
64
71
  /** "1.8.1" from a version or a range ("^1.7.0" → 1.7.0); null for a tag, a URL or a file. */
65
72
  export function versionIn(spec) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unbase-app/cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Adds Unbase to an Astro, Vite + React or Next.js site, checks it, takes it out again, and renames, duplicates and deletes its pages: unbase init, doctor, uninstall and page.",
5
5
  "license": "MIT",
6
6
  "type": "module",