create-wordjs 2.10.0 → 2.11.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.
Files changed (3) hide show
  1. package/README.md +5 -5
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -53,7 +53,7 @@ in CI — plus a pure-JS *SQLite (legacy / WASM)* fallback for hosts where the n
53
53
  | --- | --- |
54
54
  | `--zip <path-or-url>` | Use a local release ZIP (or a direct **`https://`** ZIP URL — plain `http://` is refused) instead of querying the GitHub API. Handy offline or when rate-limited. |
55
55
  | `--sha256 <hex>` | Refuse the ZIP unless its SHA-256 is exactly this (the value in the release's `.sha256` asset). Use it to pin a `--zip` file or URL; with a GitHub download it is checked on top of the release checksum. |
56
- | `--version <tag>` | Install a specific release (e.g. `--version v2.9.0`) instead of the latest. |
56
+ | `--version <tag>` | Install a specific release (e.g. `--version vX.Y.Z`) instead of the latest. |
57
57
  | `--http` | Serve plain HTTP instead of self-signed HTTPS (sets `WORDJS_HTTP=1`). |
58
58
  | `--no-start` | Scaffold and install dependencies only — start the server yourself later. |
59
59
  | `--yes`, `-y` | Skip the confirmation prompt (required when `upgrade` runs non-interactively). |
@@ -102,8 +102,8 @@ on the next start.
102
102
 
103
103
  ```bash
104
104
  npx create-wordjs@latest upgrade /srv/wordjs --yes # unattended
105
- npx create-wordjs@latest upgrade /srv/wordjs --version v2.9.0 --yes # a given release
106
- npx create-wordjs@latest upgrade /srv/wordjs --zip ./wordjs-v2.9.0.zip --sha256 <hex> --yes --force # offline, re-apply
105
+ npx create-wordjs@latest upgrade /srv/wordjs --version vX.Y.Z --yes # a given release
106
+ npx create-wordjs@latest upgrade /srv/wordjs --zip ./wordjs-vX.Y.Z.zip --sha256 <hex> --yes --force # offline, re-apply
107
107
  ```
108
108
 
109
109
  `--zip` takes a release ZIP you downloaded (or an `https://` URL) instead of asking GitHub, and
@@ -196,8 +196,8 @@ need `openssl` on the PATH. Full details, port matrix and the manual (source-che
196
196
  - **GitHub rate limit / offline**: the release lookup uses the unauthenticated GitHub API. If it
197
197
  is rate-limited or you're offline, download `wordjs-v*.zip` from the
198
198
  [releases page](https://github.com/jaimemartinez/wordjs/releases) and run
199
- `npx create-wordjs@latest my-site --zip ./wordjs-v2.9.0.zip` — add
200
- `--sha256 <hex>` with the value from `wordjs-v2.9.0.zip.sha256` to have it verified.
199
+ `npx create-wordjs@latest my-site --zip ./wordjs-vX.Y.Z.zip` — add
200
+ `--sha256 <hex>` with the value from `wordjs-vX.Y.Z.zip.sha256` to have it verified.
201
201
  - **Existing directories**: the target directory must not exist (or must be empty) — the tool
202
202
  refuses to overwrite anything.
203
203
 
package/index.js CHANGED
@@ -64,7 +64,7 @@ Options:
64
64
  --zip <path-or-url> Use a local release ZIP (or a direct https:// ZIP URL) instead of asking GitHub.
65
65
  --sha256 <hex> Require the ZIP to have this SHA-256 (pin a checksum for --zip; also checked
66
66
  on top of the release's own .sha256 asset).
67
- --version <tag> Install/upgrade to a specific release tag (e.g. v2.1.0) instead of the latest.
67
+ --version <tag> Install/upgrade to a specific release tag (e.g. vX.Y.Z) instead of the latest.
68
68
  --http Serve plain HTTP instead of self-signed HTTPS (sets WORDJS_HTTP=1). (create)
69
69
  --no-start Scaffold + install dependencies only; don't start the server.
70
70
  --yes, -y Skip the confirmation prompt (required when upgrading non-interactively).
@@ -95,7 +95,7 @@ Options:
95
95
 
96
96
  Examples:
97
97
  npx create-wordjs@latest my-site
98
- npx create-wordjs@latest my-site --version v2.1.0
98
+ npx create-wordjs@latest my-site --version vX.Y.Z
99
99
  npx create-wordjs@latest upgrade # from inside your site directory
100
100
  npx create-wordjs@latest upgrade ./my-site --yes
101
101
  npx create-wordjs@latest /srv/wordjs --systemd --port 443
@@ -148,7 +148,7 @@ function parseArgs(argv) {
148
148
  if (!hex) fail(`--sha256 must be a 64-character hex SHA-256, got "${v}".`);
149
149
  opts.sha256 = hex;
150
150
  }
151
- else if (a === '--version') { opts.version = argv[++i] || fail('--version needs a value (a release tag, e.g. v2.1.0).'); }
151
+ else if (a === '--version') { opts.version = argv[++i] || fail('--version needs a value (a release tag, e.g. vX.Y.Z).'); }
152
152
  else if (a === '--http') opts.http = true;
153
153
  else if (a === '--no-start') opts.start = false;
154
154
  else if (a === '--yes' || a === '-y') opts.yes = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wordjs",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Create a WordJS site with one command — the self-hosted CMS where third-party plugins run in an OS-isolated process with per-capability permission grants. SSR/SEO out of the box, SQLite by default, no PHP.",
5
5
  "license": "MIT",
6
6
  "author": "Jaime Martinez (https://github.com/jaimemartinez)",