Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/moss-md-indexer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## [1.0.0-beta.4] - 2026-09-18

### Changed
- **BREAKING**: Migrated from `@inferedge-rest/moss` to `@moss-dev/moss` SDK
- The legacy `MossRestClient` is replaced with the current `MossClient`
- This is a dependency change only; public API signatures remain the same

### Added
- Non-destructive index updates by default
- `uploadDocuments()` now upserts new documents and deletes stale ones instead of deleting the entire index
- The live index stays available during rebuilds, preventing search downtime
- If an update fails, the existing index is not deleted, though partial updates may remain
- `recreate` option in `UploadOptions` to force legacy delete-then-create behavior
- Unit tests for `uploader.ts` with mocked MossClient

### Fixed
- Search is no longer broken during index rebuilds
- Failed uploads no longer leave the site without an index

## [1.0.0-beta.3] - 2026-02-18

- Internal maintenance
Expand Down
2 changes: 1 addition & 1 deletion packages/moss-md-indexer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default defineConfig({

## Requirements

- Node.js (v18 or higher recommended)
- Node.js (v20.4 or higher)
- VitePress (^1.0.0) - peer dependency

## Development
Expand Down
13 changes: 9 additions & 4 deletions packages/moss-md-indexer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moss-tools/md-indexer",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -9,21 +9,26 @@
],
"scripts": {
"build": "rm -rf dist && tsc",
"dev": "tsc --watch"
"dev": "tsc --watch",
"test": "vitest run"
},
"packageManager": "pnpm@10.19.0",
"engines": {
"node": ">=20.4"
Comment thread
PredictiveManish marked this conversation as resolved.
Resolved
},
"devDependencies": {
"@types/cheerio": "^0.22.35",
"@types/fs-extra": "^11.0.4",
"@types/micromatch": "^4.0.10",
"@types/node": "^24.10.1",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"vitest": "^4.1.8"
},
"peerDependencies": {
"vitepress": "^1.0.0 || ^2.0.0-0"
},
"dependencies": {
"@inferedge-rest/moss": ">=1.0.0-beta.3",
"@moss-dev/moss": "^1.0.0",
"cheerio": "^1.0.0",
"dotenv": "^16.4.5",
"fs-extra": "^11.2.0",
Expand Down
Loading
Loading