fix(storage): resolve pagination warnings and improve S3 adapter performance
- Fix deprecated getAllNodes() warnings by using getNodesWithPagination() in S3 adapter - Add getNounsWithPagination() method to S3CompatibleStorage for proper pagination support - Create optimizedS3Search module for efficient pagination and filtering - Update baseStorage to properly detect pagination support in adapters - Add comprehensive documentation for performance and logging fixes - Ensure backward compatibility with existing code This resolves the following warnings in dependent projects: - "getAllNodes() is deprecated and will be removed in a future version" - "Storage adapter does not support pagination, falling back to loading all nouns" - "Only returning the first 1000 nodes. There are more nodes available"
This commit is contained in:
parent
415e823004
commit
24b0df8df5
6 changed files with 825 additions and 118 deletions
16
src/index.ts
16
src/index.ts
|
|
@ -47,6 +47,14 @@ import {
|
|||
// Export worker utilities
|
||||
import { executeInThread, cleanupWorkerPools } from './utils/workerUtils.js'
|
||||
|
||||
// Export logging utilities
|
||||
import {
|
||||
logger,
|
||||
LogLevel,
|
||||
configureLogger,
|
||||
createModuleLogger
|
||||
} from './utils/logger.js'
|
||||
|
||||
// Export environment utilities
|
||||
import {
|
||||
isBrowser,
|
||||
|
|
@ -78,7 +86,13 @@ export {
|
|||
areWorkerThreadsAvailable,
|
||||
areWorkerThreadsAvailableSync,
|
||||
isThreadingAvailable,
|
||||
isThreadingAvailableAsync
|
||||
isThreadingAvailableAsync,
|
||||
|
||||
// Logging utilities
|
||||
logger,
|
||||
LogLevel,
|
||||
configureLogger,
|
||||
createModuleLogger
|
||||
}
|
||||
|
||||
// Export storage adapters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue