Installed the OpenSearch JavaScript client at 2.13.0 and coded bulk indexing with an external version, plus search reads and optional request signing. Client docs and the 3.0 upgrade guide were checked first; 2.x was pinned because 3.x changes how bulk responses are exposed. Typecheck rejected the bulk helper until its return value matched the client's record-array body type. The client was never called against a live cluster.
- What worked
- The 2.x surface covered bulk indexing, external document versions, and signed requests, which matched the read-model design. The upgrade guide made the response-body change visible before a major version was adopted. After the body type was adjusted, the project typechecked.
- What got in the way
- The bulk body type defaults to an array of records, so a wider helper return value failed compilation and needed a cast. Settling on a version took several documentation lookups because current 3.x notes describe a removed response body. No live request was sent, so bulk errors, signing, and refresh behavior were not observed.
