@yoch/frozenminisearch 1.0.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/package.json ADDED
@@ -0,0 +1,145 @@
1
+ {
2
+ "name": "@yoch/frozenminisearch",
3
+ "version": "1.0.0",
4
+ "description": "Read-only Node.js full-text search — compact frozen indexes and binary 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/frozenminisearch#readme",
22
+ "bugs": "https://github.com/yoch/frozenminisearch/issues",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/yoch/frozenminisearch.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
+ "engines": {
40
+ "node": ">=22.15.0"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "devDependencies": {
46
+ "@rollup/plugin-terser": "^1.0.0",
47
+ "@rollup/plugin-typescript": "^12.3.0",
48
+ "@stylistic/eslint-plugin": "^5.10.0",
49
+ "@types/benchmark": "^2.1.1",
50
+ "benchmark": "^2.1.4",
51
+ "core-js": "^3.1.4",
52
+ "coveralls-next": "^6.0.1",
53
+ "crc-32": "^1.2.2",
54
+ "eslint": "^10.4.0",
55
+ "fast-check": "^4.8.0",
56
+ "globals": "^17.6.0",
57
+ "jest": "^30.4.2",
58
+ "minisearch": "^7.2.0",
59
+ "neostandard": "^0.13.0",
60
+ "regenerator-runtime": "^0.14.0",
61
+ "rollup": "^4.1.0",
62
+ "rollup-plugin-dts": "^6.1.0",
63
+ "snazzy": "^9.0.0",
64
+ "ts-jest": "^29.4.0",
65
+ "tslib": "^2.0.1",
66
+ "typedoc": "^0.28.19",
67
+ "typedoc-plugin-rename-defaults": "^0.7.0",
68
+ "typescript": "^5.9.0"
69
+ },
70
+ "files": [
71
+ "dist",
72
+ "README.md",
73
+ "LICENSE.txt",
74
+ "CHANGELOG.md"
75
+ ],
76
+ "jest": {
77
+ "testEnvironmentOptions": {
78
+ "url": "http://localhost:3000/"
79
+ },
80
+ "transform": {
81
+ "\\.(js|ts)$": "ts-jest"
82
+ },
83
+ "moduleFileExtensions": [
84
+ "ts",
85
+ "js"
86
+ ],
87
+ "testMatch": [
88
+ "<rootDir>/src/**/*.test.(ts|js)",
89
+ "<rootDir>/dev/parity/**/*.test.(ts|js)"
90
+ ],
91
+ "setupFilesAfterEnv": []
92
+ },
93
+ "scripts": {
94
+ "test": "jest",
95
+ "test-watch": "jest --watch",
96
+ "coverage": "jest --coverage",
97
+ "bench": "npm run build && node --expose-gc benchmarks/framework/cli.mjs",
98
+ "bench:record": "npm run build && node --expose-gc benchmarks/framework/cli.mjs record",
99
+ "bench:diff": "node --expose-gc benchmarks/framework/cli.mjs diff",
100
+ "bench:history": "node --expose-gc benchmarks/framework/cli.mjs history",
101
+ "bench:micro": "node benchmarks/micro/run.mjs",
102
+ "bench:readme": "node benchmarks/scripts/generate-readme-comparison.mjs",
103
+ "bench:reference:update": "npm run build && RUNS=3 node --expose-gc benchmarks/framework/cli.mjs record --profile=vs-reference && node benchmarks/scripts/promote-latest-to-reference.mjs && npm run bench:readme",
104
+ "benchmark:compare": "npm run build && node --expose-gc benchmarks/compare.js",
105
+ "benchmark:calibrate-batches": "npm run build && node --expose-gc benchmarks/scripts/calibrate-search-batches.mjs",
106
+ "benchmark:record": "npm run build && node --expose-gc benchmarks/captureBaseline.js",
107
+ "benchmark:record:quick": "npm run build && RUNS=1 SEARCH_ITERATIONS=10 BENCH_WARMUP=20 node --expose-gc benchmarks/captureBaseline.js",
108
+ "benchmark:validate:freq-adaptive": "npm run build && RUNS=1 SEARCH_ITERATIONS=10 BENCH_WARMUP=15 node --expose-gc benchmarks/scripts/freq-adaptive-validate.mjs",
109
+ "benchmark:record:search": "npm run build && BENCH_SEARCH_ONLY=1 node --expose-gc benchmarks/captureBaseline.js",
110
+ "benchmark:diff:search:run": "npm run build && BENCH_SEARCH_ONLY=1 node --expose-gc benchmarks/diffBaseline.js --run",
111
+ "benchmark:baseline:update": "npm run build && node --expose-gc benchmarks/captureBaseline.js --reference",
112
+ "benchmark:and-gate-tuning": "npx --yes tsx benchmarks/and-gate-tuning.mjs",
113
+ "benchmark:diff": "node --expose-gc benchmarks/diffBaseline.js",
114
+ "benchmark:diff:run": "npm run build && node --expose-gc benchmarks/diffBaseline.js --run",
115
+ "benchmark:targeted": "npm run build && node --expose-gc benchmarks/scripts/targeted-failures.mjs",
116
+ "benchmark:targeted:compare": "node benchmarks/scripts/targeted-failures.mjs --compare",
117
+ "benchmark:history:analyze": "node benchmarks/scripts/analyze-history.mjs",
118
+ "benchmark:history:vs-mutable": "node benchmarks/scripts/analyze-history.mjs --vs-mutable",
119
+ "build-packed-radix-bench": "PACKED_RADIX_BENCH=true NODE_ENV=production rollup -c",
120
+ "benchmark:packed-radix": "npm run build-packed-radix-bench && node --expose-gc benchmarks/dist/packedRadixTree.cjs",
121
+ "benchmark:packed-emit": "npm run build-packed-radix-bench && node --expose-gc benchmarks/dist/packedRadixEmitSubtree.cjs",
122
+ "benchmark:packed-emit:baseline": "npm run build-packed-radix-bench && node --expose-gc benchmarks/dist/packedRadixEmitSubtree.cjs --baseline",
123
+ "benchmark:packed-fuzzy": "npm run build-packed-radix-bench && node --expose-gc benchmarks/dist/packedRadixFuzzy.cjs",
124
+ "benchmark:packed-fuzzy-sweep": "npm run build-packed-radix-bench && node --expose-gc benchmarks/dist/packedRadixFuzzySweep.cjs",
125
+ "benchmark:medicaments-indexes": "NODE_OPTIONS='--expose-gc' npx --yes tsx benchmarks/analyzeMedicamentsIndexes.js",
126
+ "benchmark:packed-radix:record": "npm run build-packed-radix-bench && node --expose-gc benchmarks/dist/packedRadixTree.cjs --reference",
127
+ "benchmark:packed-radix:diff": "node benchmarks/diffPackedRadixBaseline.js",
128
+ "benchmark:packed-radix:diff:run": "node benchmarks/diffPackedRadixBaseline.js --run",
129
+ "benchmark:packed-radix:history": "node benchmarks/scripts/analyze-packed-radix-history.mjs",
130
+ "benchmark:binary-format": "npm run build && NODE_OPTIONS='--expose-gc' npx --yes tsx benchmarks/binaryFormatCompare.ts",
131
+ "build": "npm run clean-build && NODE_ENV=production rollup -c && node scripts/postbuild-cjs.cjs",
132
+ "clean-build": "rm -rf dist",
133
+ "build-minified": "MINIFY=true npm run build",
134
+ "sync-docs-media": "node scripts/sync-docs-media.cjs",
135
+ "build-docs": "npm run sync-docs-media && typedoc --options typedoc.json && npm run build-demo",
136
+ "build-demo": "mkdir -p ./docs/demo && cp -r ./examples/plain_js/. ./docs/demo",
137
+ "lint": "eslint 'src/**/*.{js,ts}'",
138
+ "lintfix": "eslint --fix 'src/**/*.{js,ts}'",
139
+ "prepublishOnly": "npm test && npm run build && node scripts/verify-npm-pack.cjs",
140
+ "release:beta": "node scripts/publish-beta.cjs",
141
+ "release:stable": "node scripts/publish-stable.cjs"
142
+ },
143
+ "sideEffects": false,
144
+ "dependencies": {}
145
+ }