Skip to content

0.5.0: cleanup, bug fixes, new features, tests, docs, CI#16

Merged
Wozacosta merged 2 commits intomasterfrom
improve/docs-tests-cleanup
Mar 29, 2026
Merged

0.5.0: cleanup, bug fixes, new features, tests, docs, CI#16
Wozacosta merged 2 commits intomasterfrom
improve/docs-tests-cleanup

Conversation

@Wozacosta
Copy link
Copy Markdown
Owner

  • Clean up: remove dead comments, add JSDoc, remove console.* calls
  • Fix 8 bugs: alpha:0 handling, fromJson(null), unlearn cleanup, empty classifier, tokenizer empty string
  • New features: getCategories, categorizeTopN, learnBatch, reset, getCategoryStats, input validation
  • Tests: 10 -> 60 covering all methods, edge cases, and new features
  • Docs: full README rewrite with options table, new methods, CI badge
  • CI: GitHub Actions workflow for Node 14/16/18/20
  • Bump version to 0.5.0, engine requirement to >=14.0.0

- Clean up: remove dead comments, add JSDoc, remove console.* calls
- Fix 8 bugs: alpha:0 handling, fromJson(null), unlearn cleanup, empty classifier, tokenizer empty string
- New features: getCategories, categorizeTopN, learnBatch, reset, getCategoryStats, input validation
- Tests: 10 -> 60 covering all methods, edge cases, and new features
- Docs: full README rewrite with options table, new methods, CI badge
- CI: GitHub Actions workflow for Node 14/16/18/20
- Bump version to 0.5.0, engine requirement to >=14.0.0
- Add 27 integration + E2E tests (spam detection, sentiment analysis,
  topic classification, incremental learning, mistake correction,
  imbalanced datasets, serialization pipelines, preprocessor consistency)
- Fix fromJson() losing runtime options after state restoration
- Fix topInfluentialTokens() parameter validation (n=0, negative)
- Add categorizeWithConfidence() threshold validation (0-1 range)
- Add tokenPreprocessor option for stopword removal and stemming
- Fix constructor error message typo
- Enhanced README with ASCII pipeline diagrams, visual explanations
  of alpha/fitPrior, workflow examples, and test suite documentation
- 109 tests total (82 unit + 7 integration + 20 E2E)
@Wozacosta Wozacosta merged commit 4ee343a into master Mar 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant