-
Notifications
You must be signed in to change notification settings - Fork 703
feat(bindings/nodejs): Add WriteOptions support for new options API #6322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The following attributes do not appear to be implemented yet and are inconsistent with the test case results, which will cause the test to fail:
|
| const meta = await op.write(filenameA, contentA, { ifMatch: etagA }) | ||
| assert.instanceOf(meta, Metadata) | ||
|
|
||
| await expect(op.write(filenameA, contentA, { ifMatch: etagB })).rejects.toThrowError('ConditionNotMatch') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dcf4c82 to
5d87cb4
Compare
Yep, not all s3 compatible services have the same feature. |
|
Thank you @kingsword09 for working on this, I think we can resolve the conflicts and get ready for merging. |
5d87cb4 to
ea9613f
Compare
Merged! |
Xuanwo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @kingsword09 for working on this, really great!


Which issue does this PR close?
Related to #6281.
Rationale for this change
This PR adds support for opendal::options::WriteOptions conversion in the nodejs bindings. This is part of the migration to the new options API outlined in RFC-6213 (#6213).
What changes are included in this PR?
Are there any user-facing changes?
Yes, users can now add options to their write requests