Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/effect-4-1-cli-flags.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/linkedom-0-18-14.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pako-2-2-0.md

This file was deleted.

16 changes: 16 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @sketchi/cli

## 0.31.5

### Patch Changes

- [#610](https://github.com/shpitdev/sketchi/pull/610) [`d453073`](https://github.com/shpitdev/sketchi/commit/d453073e4af4244680ffee8bc131facc14d15cd2) Thanks [@anandpant](https://github.com/anandpant)! - Update to Effect 4.1.1, which changes how the CLI parses and documents flags.

- **Repeated flags are rejected.** Giving a single-value flag more than once, such as `--output text --output json` or `--type flowchart --type gantt`, is now a usage error (exit 2, `Expected: at most 1 value`). Previously the first value was used and later ones were ignored. Pass each flag once.
- Usage errors keep their envelope: the first `--output` value still decides whether the error is text or the `{ ok: false, error: { code: "usage_error", message, hint } }` JSON envelope, and share links in any value stay redacted.
- Subcommand help lists `--output` under a separate INHERITED FLAGS section.
- `--completions` also generates PowerShell scripts (`powershell` or `pwsh`).
- In text mode, an invalid global flag value such as `--completions nushell` prints usage help before the error, like other usage errors.

- [#610](https://github.com/shpitdev/sketchi/pull/610) [`d453073`](https://github.com/shpitdev/sketchi/commit/d453073e4af4244680ffee8bc131facc14d15cd2) Thanks [@anandpant](https://github.com/anandpant)! - Bundle linkedom 0.18.14 for headless PNG rendering. It parses CSS with @acemir/cssom instead of cssom, and the bundled third-party notices list it.

- [#610](https://github.com/shpitdev/sketchi/pull/610) [`d453073`](https://github.com/shpitdev/sketchi/commit/d453073e4af4244680ffee8bc131facc14d15cd2) Thanks [@anandpant](https://github.com/anandpant)! - Bundle pako 2.2.0 for Excalidraw share compression. Shared links keep the `pako@1` compression label and the existing format.

## 0.31.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sketchi/cli",
"version": "0.31.4",
"version": "0.31.5",
"private": true,
"type": "module",
"bin": {
Expand Down