@stacksjs/search-engine 0.51.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,7 +45,7 @@ pnpm test
45
45
 
46
46
  Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
47
47
 
48
- ## 💪🏼 Contributing
48
+ ## 🚜 Contributing
49
49
 
50
50
  Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
51
51
 
@@ -1,8 +1,9 @@
1
1
  import { MeiliSearch } from 'meilisearch';
2
+ import type { SearchResponse } from 'meilisearch';
2
3
  interface SearchEngineOptions {
3
4
  host: string;
4
5
  apiKey: string;
5
6
  }
6
7
  declare function client(options?: SearchEngineOptions): MeiliSearch;
7
- declare function search(index: string, params: any): Promise<import("meilisearch").SearchResponse<Record<string, any>>>;
8
+ declare function search(index: string, params: any): Promise<SearchResponse<Record<string, any>>>;
8
9
  export { client, search, };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.51.0",
5
- "packageManager": "pnpm@7.26.3",
4
+ "version": "0.52.0",
5
+ "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -29,7 +29,12 @@
29
29
  "headless",
30
30
  "stacks"
31
31
  ],
32
- "main": "dist/index.mjs",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.mjs"
36
+ }
37
+ },
33
38
  "module": "dist/index.mjs",
34
39
  "types": "dist/index.d.ts",
35
40
  "contributors": [
@@ -39,25 +44,21 @@
39
44
  "dist",
40
45
  "README.md"
41
46
  ],
42
- "engines": {
43
- "node": ">=v18.14.0",
44
- "pnpm": ">=7.26.3"
45
- },
46
47
  "peerDependencies": {
47
- "@vueuse/core": "^9.12.0",
48
- "meilisearch": "^0.30.0",
49
- "vue": "^3.2.47",
50
- "@stacksjs/cli": "0.51.0",
51
- "@stacksjs/config": "0.51.0"
48
+ "meilisearch": "^0.32.3"
49
+ },
50
+ "dependencies": {
51
+ "@stacksjs/cli": "0.52.0",
52
+ "@stacksjs/config": "0.52.0",
53
+ "@stacksjs/ui": "0.52.0"
52
54
  },
53
55
  "devDependencies": {
54
- "mkdist": "^1.1.0",
55
- "typescript": "^4.9.5",
56
- "@stacksjs/testing": "0.51.0"
56
+ "@stacksjs/development": "0.52.0",
57
+ "@stacksjs/types": "0.52.0"
57
58
  },
58
59
  "scripts": {
59
- "build": "mkdist -d",
60
- "dev": "mkdist -d",
60
+ "build": "unbuild",
61
+ "dev": "unbuild --stub",
61
62
  "typecheck": "tsc --noEmit"
62
63
  }
63
64
  }