BREAKING CHANGE(core): Introduce RecordManager and ConvenientDnsProvider; rename list/get methods for consistent API and deprecate convenience namespace

This commit is contained in:
2025-11-18 20:39:08 +00:00
parent 39d53da4e6
commit 5ce1520e2b
12 changed files with 617 additions and 79 deletions

View File

@@ -39,7 +39,7 @@ export class WorkerManager {
// Initialize the worker and get its routes
try {
await worker.getRoutes();
await worker.listRoutes();
} catch (routeError) {
logger.log('warn', `Failed to get routes for worker ${workerName}: ${routeError.message}`);
// Continue anyway since the worker was created
@@ -79,7 +79,7 @@ export class WorkerManager {
// Initialize the worker and get its routes
try {
await worker.getRoutes();
await worker.listRoutes();
} catch (routeError) {
logger.log('warn', `Failed to get routes for worker ${workerName}: ${routeError.message}`);
// Continue anyway since we found the worker
@@ -96,7 +96,7 @@ export class WorkerManager {
* Lists all worker scripts
* @returns Array of worker scripts
*/
public async listWorkerScripts() {
public async listWorkers() {
if (!this.cfAccount.preselectedAccountId) {
throw new Error('No account selected. Please select it first on the account.');
}