@yoch/frozenminisearch 1.0.2 → 1.2.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/CHANGELOG.md +32 -5
- package/README.md +57 -21
- package/dist/cjs/index.cjs +276 -81
- package/dist/es/index.d.ts +37 -14
- package/dist/es/index.js +276 -81
- package/package.json +16 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoch/frozenminisearch",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Read-only Node.js full-text search — compact frozen indexes and binary snapshots",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
40
|
+
"node": ">=20"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"@types/benchmark": "^2.1.1",
|
|
50
50
|
"benchmark": "^2.1.4",
|
|
51
51
|
"core-js": "^3.1.4",
|
|
52
|
-
"coveralls-next": "^6.0.1",
|
|
53
52
|
"crc-32": "^1.2.2",
|
|
54
53
|
"eslint": "^10.4.0",
|
|
55
54
|
"fast-check": "^4.8.0",
|
|
@@ -88,11 +87,22 @@
|
|
|
88
87
|
"<rootDir>/src/**/*.test.(ts|js)",
|
|
89
88
|
"<rootDir>/dev/parity/**/*.test.(ts|js)"
|
|
90
89
|
],
|
|
90
|
+
"collectCoverageFrom": [
|
|
91
|
+
"src/**/*.{ts,js}",
|
|
92
|
+
"!src/**/*.test.{ts,js}"
|
|
93
|
+
],
|
|
94
|
+
"coveragePathIgnorePatterns": [
|
|
95
|
+
"/benchmarks/",
|
|
96
|
+
"/dev/",
|
|
97
|
+
"/testSupport/"
|
|
98
|
+
],
|
|
91
99
|
"setupFilesAfterEnv": []
|
|
92
100
|
},
|
|
93
101
|
"scripts": {
|
|
94
102
|
"test": "jest",
|
|
95
103
|
"test-watch": "jest --watch",
|
|
104
|
+
"test:fuzzysearch": "jest --testMatch='<rootDir>/dev/internal/**/*.test.(ts|js)' --testPathIgnorePatterns=/node_modules/",
|
|
105
|
+
"test:benchmarks": "jest --testMatch='<rootDir>/benchmarks/**/*.test.(ts|js)' --testPathIgnorePatterns=/node_modules/",
|
|
96
106
|
"coverage": "jest --coverage",
|
|
97
107
|
"bench": "npm run build && node --expose-gc benchmarks/framework/cli.mjs",
|
|
98
108
|
"bench:record": "npm run build && node --expose-gc benchmarks/framework/cli.mjs record",
|
|
@@ -135,8 +145,9 @@
|
|
|
135
145
|
"clean-build": "rm -rf dist",
|
|
136
146
|
"build-minified": "MINIFY=true npm run build",
|
|
137
147
|
"sync-docs-media": "node scripts/sync-docs-media.cjs",
|
|
138
|
-
"build-docs": "
|
|
139
|
-
"build-
|
|
148
|
+
"build-docs": "node scripts/build-docs.cjs",
|
|
149
|
+
"build-docs:pages": "DOCS_PAGES=1 node scripts/build-docs.cjs",
|
|
150
|
+
"build-demo": "rm -rf ./docs/demo && mkdir -p ./docs/demo && cp -rL ./examples/plain_js/. ./docs/demo",
|
|
140
151
|
"lint": "eslint 'src/**/*.{js,ts}'",
|
|
141
152
|
"lintfix": "eslint --fix 'src/**/*.{js,ts}'",
|
|
142
153
|
"prepublishOnly": "npm test && npm run build && node scripts/verify-npm-pack.cjs",
|