refactor: clean up deprecated functions and unused code
Remove unused files and implement proper version handling: - Remove unused files: tensorflowUtils.ts, patched-platform-node.ts, test reporters - Fix 5 TODO items with centralized version management in utils/version.ts - Clean up duplicate metadata definitions in examples/basicUsage.ts - Fix rollup config to use @rollup/plugin-terser instead of deprecated package - Add comprehensive migration plan for deprecated methods (12 methods identified) This cleanup removes 370 lines of dead code while maintaining full API compatibility. All tests pass and build system works correctly.
This commit is contained in:
parent
838a998b6a
commit
bbc77f292b
10 changed files with 178 additions and 548 deletions
26
src/utils/version.ts
Normal file
26
src/utils/version.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* Version utilities for Brainy
|
||||
*/
|
||||
|
||||
// Package version - this should be updated during the build process
|
||||
const BRAINY_VERSION = '0.41.0'
|
||||
|
||||
/**
|
||||
* Get the current Brainy package version
|
||||
* @returns The current version string
|
||||
*/
|
||||
export function getBrainyVersion(): string {
|
||||
return BRAINY_VERSION
|
||||
}
|
||||
|
||||
/**
|
||||
* Get version information for augmentation metadata
|
||||
* @param service The service/augmentation name
|
||||
* @returns Version metadata object
|
||||
*/
|
||||
export function getAugmentationVersion(service: string): { augmentation: string; version: string } {
|
||||
return {
|
||||
augmentation: service,
|
||||
version: getBrainyVersion()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue