docs: add deprecation warnings for addNoun and addVerb methods
- Add @deprecated JSDoc tags to TypeScript definitions
- Update all documentation examples to use modern add() and relate() API
- Preserve batch operations (addNouns, addVerbs) as they remain current
- Mark deprecated methods in both source and compiled definitions
Migration guide:
- addNoun(data, type, metadata) → add(data, { nounType: type, ...metadata })
- addVerb(source, target, type, metadata) → relate(source, target, type, metadata)
This commit is contained in:
parent
6e299c576c
commit
e311a149df
21 changed files with 343 additions and 331 deletions
|
|
@ -1227,9 +1227,9 @@ try {
|
|||
|
||||
### Old (v2.15)
|
||||
```typescript
|
||||
brain.addNoun(data, 'document', metadata)
|
||||
brain.search(query, 10)
|
||||
brain.getStatistics()
|
||||
brain.add({ data, type: NounType.Document, metadata })
|
||||
brain.find({ query, limit: 10 })
|
||||
brain.insights()
|
||||
```
|
||||
|
||||
### New (v3.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue