@wirecat/cli-base 0.115.0 → 0.116.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/CHANGELOG.md +9 -0
- package/dist/codegen/pipeline.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,15 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b
|
|
|
8
8
|
Every entry says what changed as a caller sees it, why, and what to watch for — the rules are
|
|
9
9
|
[`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog).
|
|
10
10
|
|
|
11
|
+
## 0.116.0 — 17.11.2026
|
|
12
|
+
|
|
13
|
+
### Changed — may break callers
|
|
14
|
+
|
|
15
|
+
- **`names: { fromPath: true }` names a GET of a path ending in `/me` as one item, `-get`, not `-list`.** Notion's
|
|
16
|
+
`GET /v1/users/me` was `users-me-list` and is now `users-me-get`; a CLI that regenerates on this version renames that
|
|
17
|
+
command. Watch for: a path whose last fixed word follows a parameter (`/pages/{id}/markdown`) is still named
|
|
18
|
+
`-list`, since the path alone cannot tell it from a real list (`/blocks/{id}/children`); name it in `commands`.
|
|
19
|
+
|
|
11
20
|
## 0.115.0 — 17.11.2026
|
|
12
21
|
|
|
13
22
|
### Added
|
package/dist/codegen/pipeline.js
CHANGED
|
@@ -44,7 +44,7 @@ const commandFromPath = (operation, all, names) => {
|
|
|
44
44
|
((other.binding.method === "GET" && other.binding.path === path) ||
|
|
45
45
|
(other.binding.path.startsWith(`${path}/{`) && !other.binding.path.slice(path.length + 1).includes("/"))));
|
|
46
46
|
const verb = {
|
|
47
|
-
GET: onItem ? "get" : "list",
|
|
47
|
+
GET: onItem || parts.at(-1) === "me" ? "get" : "list",
|
|
48
48
|
HEAD: "head",
|
|
49
49
|
DELETE: "delete",
|
|
50
50
|
PATCH: "update",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.116.0",
|
|
4
4
|
"description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|