Skip to content

feat(documents): add throwOnFail option to import methods#307

Merged
jasonbosco merged 1 commit intotypesense:masterfrom
tharropoulos:throw-on-fail
Jul 23, 2025
Merged

feat(documents): add throwOnFail option to import methods#307
jasonbosco merged 1 commit intotypesense:masterfrom
tharropoulos:throw-on-fail

Conversation

@tharropoulos
Copy link
Collaborator

Change Summary

  • adds throwOnFail to import and importStream for better error control
  • defaults throwOnFail to true to preserve existing failure behavior
  • allows bypassing import errors by setting throwOnFail: false
  • updates typings to propagate document schema type in import responses
  • enhances test coverage for both throwOnFail enabled and disabled modes
  • maintains backwards compatibility

PR Checklist

- adds `throwOnFail` to `import` and `importStream` for better error control
- defaults `throwOnFail` to `true` to preserve existing failure behavior
- allows bypassing import errors by setting `throwOnFail: false`
- updates typings to propagate document schema type in import responses
- enhances test coverage for both `throwOnFail` enabled and disabled modes
@jasonbosco jasonbosco merged commit eb5548d into typesense:master Jul 23, 2025
1 check passed
@jasonbosco
Copy link
Member

Published in v2.1.0-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants