Harden NotFound detection in upsert; improved debug logging
This release focuses on making the upsert operation more robust when handling not-found errors and improving related diagnostics.
Improvements
- Harden NotFound detection in
src/ops/upsert.tsso upsert treats an error as not-found if any of the following are true:instanceof NotFoundError,error.name === 'NotFoundError', orerror.errorInfo.code === 'NOT_FOUND'(b0c737d). This addresses cases where module duplication can breakinstanceofchecks. - Enrich the debug log when creating a missing item to include
errorTypeanderrorCodealongside the key, aiding troubleshooting (b0c737d). - Remove redundant
logger.errorfor unexpected get errors; such errors are now rethrown directly to avoid double-logging (b0c737d).