Skip to content

Commit 37a3984

Browse files
committed
chore: merge hotfix 0.3.1
2 parents c3540f9 + 5e8f21e commit 37a3984

File tree

4 files changed

+79
-5
lines changed

4 files changed

+79
-5
lines changed

.npmignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Source files
2+
*.ts
3+
!*.d.ts
4+
tsconfig.json
5+
vitest.config.mts
6+
7+
# Tests
8+
tests/
9+
*.test.ts
10+
*.spec.ts
11+
12+
# Development files
13+
.editorconfig
14+
.gitignore
15+
.git/
16+
.vscode/
17+
.cursor/
18+
19+
# Documentation (keep only essential ones)
20+
AGENTS.md
21+
CLAUDE.md
22+
CHANGELOG.md
23+
24+
# CI/CD
25+
.github/
26+
27+
# Logs
28+
logs
29+
*.log
30+
31+
# Environment
32+
.env
33+
.env.*
34+
.dev.vars
35+
.wrangler/
36+
37+
# Dependencies
38+
node_modules/
39+
40+
# Build artifacts
41+
dist/
42+
build/
43+
*.tsbuildinfo
44+
45+
# Coverage
46+
coverage/
47+
.nyc_output/

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88

9+
## [0.3.1] - 2025-10-11
10+
11+
### Fixed
12+
- Added npm publish configuration for better package distribution
13+
- Configured `files` field to include only necessary published files
14+
- Set Node.js engine requirement to >=18.0.0
15+
- Extended package keywords for better discoverability
16+
- Fixed type safety issue with optional chaining in FlexSearch icon search repository
17+
- Moved `tsx` from devDependencies to dependencies for proper runtime execution
18+
19+
920
## [0.2.0] - 2025-10-11
1021

1122
### Added
@@ -96,5 +107,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
96107
- Multi-language support optimization
97108
- English and Chinese text processing
98109

110+
[0.3.1]: https://github.com/fradser/mcp-server-remix-icon/compare/v0.2.0...v0.3.1
99111
[0.2.0]: https://github.com/fradser/mcp-server-remix-icon/compare/v0.1.0...v0.2.0
100112
[0.1.0]: https://github.com/fradser/mcp-server-remix-icon/compare/v0.0.1...v0.1.0

package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-server-remix-icon",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Lightweight MCP server that maps icon keywords to Remix Icon metadata.",
55
"main": "src/index.ts",
66
"repository": {
@@ -10,8 +10,13 @@
1010
"keywords": [
1111
"remixicon",
1212
"mcp",
13+
"mcp-server",
1314
"icons",
14-
"keyword-search"
15+
"icon-search",
16+
"keyword-search",
17+
"model-context-protocol",
18+
"ai",
19+
"llm"
1520
],
1621
"author": "Frad LEE <fradser@gmail.com>",
1722
"license": "MIT",
@@ -22,6 +27,16 @@
2227
"bin": {
2328
"mcp-server-remix-icon": "bin/run.cjs"
2429
},
30+
"files": [
31+
"bin/",
32+
"src/",
33+
"README.md",
34+
"README.zh-CN.md",
35+
"LICENSE"
36+
],
37+
"engines": {
38+
"node": ">=18.0.0"
39+
},
2540
"scripts": {
2641
"build": "tsc --noEmit",
2742
"lint": "biome lint --write",
@@ -32,13 +47,13 @@
3247
"devDependencies": {
3348
"@biomejs/biome": "^2.2.5",
3449
"@types/node": "^24.7.1",
35-
"tsx": "^4.20.6",
3650
"typescript": "^5.9.3",
3751
"vitest": "^3.2.4"
3852
},
3953
"dependencies": {
4054
"@modelcontextprotocol/sdk": "^1.20.0",
4155
"flexsearch": "^0.8.212",
56+
"tsx": "^4.20.6",
4257
"zod": "^3.25.76"
4358
}
4459
}

src/infrastructure/search/flexsearch-icon-search.repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ export class FlexSearchIconSearchRepository implements IconSearchRepository {
9393
const scores = new Map<string, { score: number; matched: Set<string> }>();
9494

9595
for (const keyword of keywords) {
96-
const results = this.document!.search(keyword, {
96+
const results = this.document?.search(keyword, {
9797
enrich: true,
9898
limit,
9999
suggest: true,
100-
});
100+
}) ?? [];
101101

102102
for (const fieldResult of results) {
103103
for (const entry of fieldResult.result) {

0 commit comments

Comments
 (0)