Socket
Socket
Sign inDemoInstall

minisearch

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minisearch - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

10

CHANGELOG.md

@@ -5,10 +5,14 @@ # Changelog

# v2.6.2
- [fix] Improve TypeScript types: default generic document type is `any`, not `object`
# v2.6.1
- Better TypeScript typings using generics, letting the user (optionally)
specify the document type.
- No change from 2.6.0
# v2.6.0
- UNPUBLISHED due to publishing error
- Better TypeScript typings using generics, letting the user (optionally)
specify the document type.

@@ -15,0 +19,0 @@ # v2.5.1

{
"name": "minisearch",
"version": "2.6.1",
"version": "2.6.2",
"description": "Tiny but powerful full-text search engine for browser and Node",

@@ -5,0 +5,0 @@ "main": "dist/umd/index.js",

// Type definitions for MiniSearch
declare class MiniSearch<T = object> {
declare class MiniSearch<T = any> {
constructor(options: Options<T>);

@@ -26,6 +26,6 @@

static loadJSON<T = object>(json: string, options: Options<T>): MiniSearch<T>;
static loadJSON<T = any>(json: string, options: Options<T>): MiniSearch<T>;
}
export declare interface SearchOptions<T = object> {
export declare interface SearchOptions<T = any> {
fields?: string[],

@@ -52,3 +52,3 @@

export declare interface Options<T = object> {
export declare interface Options<T = any> {
fields: string[],

@@ -55,0 +55,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc