Added
- ES module support with CommonJS compatibility
- TypeScript definitions for better IDE support
- Comprehensive documentation in README
- Proper .npmignore to reduce package size
- Vitest test framework
- Add CurrentUserManager
- Add DropdownListsManager
- Add LanguageResourceManager
- New Methods in DocumentsManager, GroupsManager, IndexFieldsManager, LibraryManager, ReportsManager, SitesManager
- Add getDocumentWebDavUrl and getDocumentWopiUrl methods
- Add addIndexFieldToFolder method
Changed
- BREAKING: Updated client so that DocApi and ObjectsApi methods have individual namespaces
- BREAKING: Class
authorizerenamed toAuthorizeto follow JavaScript PascalCase convention for classes (usenew vvRestApi.Authorize()instead ofnew vvRestApi.authorize()) - BREAKING: Extended API modules (
docApi,formsApi,objectsApi,studioApi,notificationsApi) now returnnullwhen not enabled instead of throwingReferenceErroron access. Check availability withif (client.docApi)or use optional chainingclient.docApi?.method(). - BREAKING:
IndexFieldsManager.putIndexFields()renamed toaddIndexFieldToFolder()(same parameters, new name) - BREAKING:
FormsManager.returnField()now returns a newReturnFieldobject instead of setting properties on the manager instance. Code that readclient.forms.idorclient.forms.nameafter callingreturnField()must use the returned object instead. - BREAKING: Q promise library replaced with native Promises. Code using Q-specific methods (
.fail(),.fin(),.progress()) on returned promises must migrate to standard.catch()/.finally(). - BREAKING:
requestnpm module replaced with nativefetch(). Proxy support via environment variables orrequest-specific behaviors (cookie jars, redirect handling) may differ. - Replaced
console.logcalls during authentication withdebuglibrary (silent by default, enable withDEBUG=visualvault:*).
Removed
- Express server components (app.js, routes/, views/, public/)
- Server-specific dependencies
- Sample scripts (available in separate microservices repository)
- Development files and runtime artifacts
Full Changelog: https://github.com/VisualVault/vv-rest-api-node/commits/v2.0.0