Searchcraft TypeScript Client 0.3.0 Release!
The latest version of the Searchcraft TypeScript client is here!
- This is a breaking update as the TypeScript dependency and Node version have been increased.
- Support for Searchcraft engine 0.11.0.
- Support for TypeScript 6.x
Fixes
- API errors carried no message. The error handler looked for a
messagefield, but the engine reports failures through the same{ status, data }envelope, with the message as thedatastring. Every API error surfaced as the generic"Request failed". limitis no longer rejected above 200. The engine clamps toSEARCHCRAFT_MAX_RESULT_LIMIT(200 by default) rather than rejecting, and operators can raise that ceiling, so a client-side cap broke otherwise-valid requests.DocumentApiandHealthApiare now exported from the package root, alongside the other eight API classes.Federation.created_by,last_modified_by, andorganization_idare nullable;AuthKey.nameandallowed_indexesare nullable, where a nullallowed_indexesmeans the key may reach every index.SearchResponseData.time_takenis documented as seconds, not milliseconds.
Added
IndexApi.replace()—PUT /index/:index, whole-schema replacement of an existing index.FederationApi.create(),update(),listIndices(), andlistByOrganization().StopwordsApi.getDefaults()— the engine's built-in stopword list for the index language.DocumentApi.deleteByInternalId()— delete by Searchcraft's internal document id, as opposed to your ownidfield.AuthApi.checkKeyPermissions()—GET /auth/key/check/:permission, returning a boolean rather than throwing on 403.MeasureApi.getDashboardConversion()andgetDashboardUsage().termandmore-like-thisquery kinds, and'mustnot'as anOccurMode.fieldson query clauses (FieldSelector) to scope a fuzzy or term search to specific fields, optionally with per-field boosts.minimum_number_should_match(engine 0.11.0),time_decay_field, andindex_weightingsearch options.fieldnormsonFieldConfig;ingestiononIndexConfig.- New types:
FederationRequest,IngestionConfig,FieldSelector,TermQuery,MoreLikeThisQuery,MeasureDashboardParams,MeasureDashboardReport,MeasureQueryGranularity,HealthCheckData.
Dependencies
- Minimum supported Node version raised to > 20.19.0 || 22.12.0
- Raised TypeScript version to 6.0.3
- Supporting dev dependency version bumps for Vite and related packages.
Posted Aug 1, 2026, 3:44 AM UTC
10