@yoch/minisearch 8.0.0-beta.2
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/CHANGELOG.md +516 -0
- package/LICENSE.txt +7 -0
- package/README.md +152 -0
- package/dist/cjs/index.cjs +2961 -0
- package/dist/cjs/index.require.cjs +13 -0
- package/dist/es/index.d.ts +1635 -0
- package/dist/es/index.js +2949 -0
- package/package.json +116 -0
package/package.json
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yoch/minisearch",
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
|
+
"description": "Node.js full-text search with FrozenMiniSearch and binary index snapshots",
|
|
5
|
+
"main": "dist/cjs/index.cjs",
|
|
6
|
+
"module": "dist/es/index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/es/index.d.ts",
|
|
11
|
+
"require": "./dist/cjs/index.require.cjs",
|
|
12
|
+
"import": "./dist/es/index.js",
|
|
13
|
+
"default": "./dist/es/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"types": "./dist/es/index.d.ts",
|
|
17
|
+
"author": "Yoch",
|
|
18
|
+
"contributors": [
|
|
19
|
+
"Luca Ongaro <https://github.com/lucaong> (MiniSearch original)"
|
|
20
|
+
],
|
|
21
|
+
"homepage": "https://github.com/yoch/minisearch#readme",
|
|
22
|
+
"bugs": "https://github.com/yoch/minisearch/issues",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/yoch/minisearch.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"search",
|
|
29
|
+
"full text",
|
|
30
|
+
"fuzzy",
|
|
31
|
+
"prefix",
|
|
32
|
+
"auto suggest",
|
|
33
|
+
"index",
|
|
34
|
+
"frozen",
|
|
35
|
+
"binary",
|
|
36
|
+
"node"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"tag": "beta"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
46
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
47
|
+
"@types/benchmark": "^2.1.1",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
49
|
+
"@typescript-eslint/parser": "^6.9.0",
|
|
50
|
+
"benchmark": "^2.1.4",
|
|
51
|
+
"core-js": "^3.1.4",
|
|
52
|
+
"coveralls-next": "^4.2.0",
|
|
53
|
+
"eslint": "^8.16.0",
|
|
54
|
+
"eslint-config-standard": "^17.0.0",
|
|
55
|
+
"eslint-plugin-import": "^2.20.2",
|
|
56
|
+
"eslint-plugin-n": "^16.2.0",
|
|
57
|
+
"eslint-plugin-node": "^11.1.0",
|
|
58
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
59
|
+
"fast-check": "^3.0.0",
|
|
60
|
+
"jest": "^29.3.1",
|
|
61
|
+
"regenerator-runtime": "^0.14.0",
|
|
62
|
+
"rollup": "^4.1.0",
|
|
63
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
64
|
+
"snazzy": "^9.0.0",
|
|
65
|
+
"ts-jest": "^29.0.3",
|
|
66
|
+
"tslib": "^2.0.1",
|
|
67
|
+
"typedoc": "^0.25.3",
|
|
68
|
+
"typedoc-plugin-rename-defaults": "^0.7.0",
|
|
69
|
+
"typescript": "^5.2.2"
|
|
70
|
+
},
|
|
71
|
+
"files": [
|
|
72
|
+
"dist",
|
|
73
|
+
"README.md",
|
|
74
|
+
"LICENSE.txt",
|
|
75
|
+
"CHANGELOG.md"
|
|
76
|
+
],
|
|
77
|
+
"jest": {
|
|
78
|
+
"testEnvironmentOptions": {
|
|
79
|
+
"url": "http://localhost:3000/"
|
|
80
|
+
},
|
|
81
|
+
"transform": {
|
|
82
|
+
"\\.(js|ts)$": "ts-jest"
|
|
83
|
+
},
|
|
84
|
+
"moduleFileExtensions": [
|
|
85
|
+
"ts",
|
|
86
|
+
"js"
|
|
87
|
+
],
|
|
88
|
+
"testRegex": "\\.test\\.(ts|js)$",
|
|
89
|
+
"setupFilesAfterEnv": [
|
|
90
|
+
"<rootDir>/src/testSetup/jest.js"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"test": "jest",
|
|
95
|
+
"test-watch": "jest --watch",
|
|
96
|
+
"coverage": "jest --coverage",
|
|
97
|
+
"benchmark": "yarn build-benchmark && NODE_ENV=production node --expose-gc benchmarks/dist/index.cjs",
|
|
98
|
+
"benchmark:baseline": "yarn build && node --expose-gc benchmarks/baseline.js",
|
|
99
|
+
"benchmark:compare": "yarn build && node --expose-gc benchmarks/compare.js",
|
|
100
|
+
"benchmark:record": "yarn build && node --expose-gc benchmarks/captureBaseline.js",
|
|
101
|
+
"benchmark:record:reference": "yarn build && node --expose-gc benchmarks/captureBaseline.js --reference",
|
|
102
|
+
"benchmark:diff": "yarn build && node --expose-gc benchmarks/diffBaseline.js",
|
|
103
|
+
"benchmark:diff:latest": "node --expose-gc benchmarks/diffBaseline.js --latest",
|
|
104
|
+
"benchmark:baseline:update": "yarn benchmark:record:reference",
|
|
105
|
+
"build-benchmark": "BENCHMARKS=true yarn build",
|
|
106
|
+
"build": "yarn clean-build && NODE_ENV=production rollup -c && node scripts/postbuild-cjs.cjs",
|
|
107
|
+
"clean-build": "rm -rf dist",
|
|
108
|
+
"build-minified": "MINIFY=true yarn build",
|
|
109
|
+
"build-docs": "typedoc --options typedoc.json && yarn build-demo",
|
|
110
|
+
"build-demo": "mkdir -p ./docs/demo && cp -r ./examples/plain_js/. ./docs/demo",
|
|
111
|
+
"lint": "eslint 'src/**/*.{js,ts}'",
|
|
112
|
+
"lintfix": "eslint --fix 'src/**/*.{js,ts}'",
|
|
113
|
+
"prepublishOnly": "yarn test && yarn build"
|
|
114
|
+
},
|
|
115
|
+
"sideEffects": false
|
|
116
|
+
}
|