Xuanwo opened a new pull request, #9374:
URL: https://github.com/apache/opendal/pull/9374

   # Which issue does this PR close?
   
   Refs #9334.
   
   # Rationale for this change
   
   The Node.js docs for `StatOptions` and `DeleteOptions` refer to Rust 
`crate::ErrorKind` variants that JavaScript callers cannot access. Both 
interfaces also name the conditional operation specification without linking to 
it. Earlier changes addressed `ListOptions` (#9362) and the wording for 
`Unsupported` (#9363).
   
   # What changes are included in this PR?
   
   The Node.js generator now describes `NotFound`, `ConditionNotMatch`, and 
`Conflict` as text callers can find in `Error.message`. This replaces 11 Rust 
references in `StatOptions` and three in `DeleteOptions`. Both interfaces now 
link to the [conditional operation 
specification](https://opendal.apache.org/docs/specifications/conditional-operations/).
   
   # Are there any user-facing changes?
   
   For example, the `ifMatch` documentation now explains which error message to 
expect when the service supports conditional stat.
   
   ```js
   // A different ETag produces an error whose message includes 
"ConditionNotMatch".
   // A missing file produces an error whose message includes "NotFound".
   await op.stat("report.csv", { ifMatch: etag });
   ```
   
   TypeScript QuickInfo preserves the Markdown link, and TypeDoc renders it as 
a hyperlink. The TypeScript declarations are identical after removing comments.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - Pi, `magpie/codex/gpt-6.2-sol`, `max` — implemented and verified the 
generator change.
   - Pi, `magpie/codex/gpt-6.2-astra`, `high` — checked JavaScript error 
messages and documentation links, and drafted this PR. The Memory service 
exposed `NotFound` and `Unsupported` on stat and `ConditionNotMatch` on write. 
Inspection of the binding’s error conversion confirmed the wording for 
`Conflict`.
   - Pi, `magpie/codex/gpt-6.2-astra`, `xhigh` — coordinated implementation and 
verification.
   - Pi, `magpie/kimi-code-cn/k3.1-pro`, `max` — independently reviewed the 
signed change and verified the generated Node.js documentation and declarations.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to