search-gold 1.1.0 → 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/README.md +7 -5
- package/package.json +12 -10
- package/src/search.ts +1 -1
package/README.md
CHANGED
|
@@ -9,12 +9,14 @@ Your web page displays a list of columnar information, most often coming from on
|
|
|
9
9
|
Record<string, any>[]
|
|
10
10
|
|
|
11
11
|
// a Map in which the unique key's value is an object
|
|
12
|
-
Map<string, Record<string, any>>
|
|
12
|
+
Map<string | number, Record<string, any>>
|
|
13
13
|
````
|
|
14
14
|
|
|
15
15
|
For an improved UX in the front end, you can add a search field so the user can filter the displayed records.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
`search-gold` module can also be used outside of a browser environment.
|
|
18
|
+
|
|
19
|
+
The search engine is easy to set up and use!
|
|
18
20
|
|
|
19
21
|
## Installation
|
|
20
22
|
|
|
@@ -143,16 +145,16 @@ const searchMyData = (query: string) => {
|
|
|
143
145
|
## Author's Development
|
|
144
146
|
|
|
145
147
|
During development of the `search-gold` package, I integrated it
|
|
146
|
-
into several apps I had previously created with Vue using its Composition API.
|
|
148
|
+
into several apps I had previously created with Vue (using its Composition API).
|
|
147
149
|
|
|
148
150
|
In this documentation I tried to keep the Usage code snippets framework neutral.
|
|
149
151
|
|
|
150
|
-
`search-gold` itself is framework neutral and should work in any TS codebase.
|
|
152
|
+
`search-gold` itself is framework neutral and should work in any TS codebase, with or without a browser environment.
|
|
151
153
|
|
|
152
154
|
# Credits
|
|
153
155
|
|
|
154
156
|
G. Gold
|
|
155
157
|
|
|
156
|
-
February 2026
|
|
158
|
+
February, July 2026
|
|
157
159
|
|
|
158
160
|
Have fun!
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "search-gold",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "fast search engine targeting array of objects or Map",
|
|
6
6
|
"author": "gold",
|
|
7
7
|
"main": "./src/search.ts",
|
|
@@ -10,18 +10,20 @@
|
|
|
10
10
|
"./src/search.ts"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"lint": "npx oxlint ./src/search.ts && npx eslint ."
|
|
13
|
+
"lint": "npx oxlint --type-aware ./src/search.ts && npx eslint ."
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@typescript-eslint/eslint-plugin": "
|
|
17
|
-
"@typescript-eslint/parser": "8.
|
|
18
|
-
"eslint": "
|
|
19
|
-
"eslint-plugin-oxlint": "1.
|
|
20
|
-
"globals": "17.
|
|
21
|
-
"oxfmt": "0.
|
|
22
|
-
"oxlint": "1.
|
|
16
|
+
"@typescript-eslint/eslint-plugin": "8.63.0",
|
|
17
|
+
"@typescript-eslint/parser": "8.63.0",
|
|
18
|
+
"eslint": "10.6.0",
|
|
19
|
+
"eslint-plugin-oxlint": "1.71.0",
|
|
20
|
+
"globals": "17.7.0",
|
|
21
|
+
"oxfmt": "0.58.0",
|
|
22
|
+
"oxlint": "1.73.0",
|
|
23
|
+
"oxlint-tsgolint": "0.24.0",
|
|
23
24
|
"tslib": "2.8.1",
|
|
24
|
-
"typescript
|
|
25
|
+
"typescript": "6.0.3",
|
|
26
|
+
"typescript-eslint": "8.63.0"
|
|
25
27
|
},
|
|
26
28
|
"repository": {
|
|
27
29
|
"type": "git",
|
package/src/search.ts
CHANGED