Skip to content

Release v1.1.1 - #13

Merged
alex-omophub merged 3 commits into
mainfrom
develop
Sep 7, 2026
Merged

Release v1.1.1#13
alex-omophub merged 3 commits into
mainfrom
develop

Conversation

@alex-omophub

@alex-omophub alex-omophub commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Releases v1.1.1 aligning autocomplete and similarity search with the API's full option set and response shapes, and correcting mappings.map() to type its real per-source result instead of the never-emitted failed_mappings field. Similarity search now exposes pagination metadata, lower-bound totals, source-concept details, score omission, and explanations.

Migration

  • Autocomplete suggestions are now flat: suggestion is the concept-name string, with concept_id, concept_code, vocabulary_id, domain_id, concept_class_id, and standard_concept as sibling fields.
  • Autocomplete pageSize max is now 20, matching the API.
  • MapConceptsResult now requires unmapped_sources and a summary with requested_sources, mapped_sources, unmapped_sources, and total_mappings; failed_mappings and the old optional summary are removed.
  • mappings.get() results no longer include summary.
  • similarity_score is now optional because the API omits it when includeScores: false; deprecated similarity_explanation still works, but read explanation.
  • match_score and match_type are gone from autocomplete entries.
  • The deprecated domains autocomplete option still works and is sent as domain_ids.

Written for commit 165e0ae. Summary will update on new commits.

Review in cubic

alex-omophub added 3 commits August 27, 2026 20:48
- Updated README.md to clarify default algorithm options for similarity search.
- Modified autocomplete response structure in `search.test.ts` and `search-concepts.ts` to reflect changes in suggestion format.
- Improved `AutocompleteOptions` interface to include `domainIds` and updated documentation for deprecated fields.
- Enhanced `SimilarSearchOptions` and `SimilarConcept` interfaces to provide more detailed response handling and options.
- Added tests to ensure correct handling of new options and response structures in autocomplete and similarity search functionalities.
…tures, update mappings interface

- Updated CHANGELOG.md to document changes in version 1.1.1, including enhancements to autocomplete and similarity search functionalities.
- Modified package.json and package-lock.json to reflect the new version.
- Improved README.md with examples of handling unmapped sources in mappings.
- Removed deprecated `failed_mappings` from mappings interface and introduced `unmapped_sources` for better error handling.
- Updated tests to validate new mappings behavior and ensure accurate logging of unmapped sources.
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 19 files

Re-trigger cubic

@alex-omophub
alex-omophub merged commit e9b7021 into main Sep 7, 2026
10 of 11 checks passed
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.

1 participant