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AE,YAAY,EAAM,IAAK,WAAc,OAAO,qBAAqB,cAAgB,IACpI,OAAO,eAAe,QAAS,sBAAuB,CAAE,YAAY,EAAM,IAAK,WAAc,OAAO,qBAAqB,mBAAqB,IAE9I,IAAI,6BAA+B,QAAQ,mDAC3C,OAAO,eAAe,QAAS,mBAAoB,CAAE,YAAY,EAAM,IAAK,WAAc,OAAO,6BAA6B,OAAS,IACvI,MAAM,SAAW,QAAQ,YACnB,aAAe,QAAQ,gBACvB,aAAe,QAAQ,gBACvB,WAAa,QAAQ,cAwB3B,SAAS,oBAAoB,GACzB,MAAM,QAAE,EAAO,QAAE,EAAO,OAAE,EAAS,aAAa,qBAAwB,EAElE,GAAY,EAAI,SAAS,sBAAsB,GAC/C,GAAY,EAAI,SAAS,sBAAsB,IAE/C,QAAE,EAAO,OAAE,IAAW,EAAI,aAAa,yBAAyB,EAAW,GAEjF,GAAI,EAAO,OAAS,EAChB,IAAK,MAAM,KAAS,EAChB,QAAQ,KAAK,qBAAqB,KAI1C,MAAM,GAAU,EAAI,aAAa,iBAAiB,EAAS,GAK3D,MAAO,CACH,aAJgB,EAAI,aAAa,yBAAyB,GAK1D,UACA,UACA,UACA,UACA,QAPW,EAAI,WAAW,2BAA2B,GAS7D","file":"/npm/@api-extractor-tools/change-detector@0.1.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@api-extractor-tools/change-detector@0.1.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/**\n * A library for detecting and classifying changes between TypeScript declaration files.\n *\n * @remarks\n * This package analyzes `.d.ts` files to identify API changes and classify them\n * according to semantic versioning impact (major, minor, patch, or none).\n *\n * For browser/isomorphic usage, see the `@api-extractor-tools/change-detector-core` package.\n *\n * @example\n * ```ts\n * import { compareDeclarations, formatASTReportAsMarkdown } from '@api-extractor-tools/change-detector';\n *\n * const result = compareDeclarations({\n *   oldFile: './dist/v1/index.d.ts',\n *   newFile: './dist/v2/index.d.ts',\n * });\n *\n * console.log(result.releaseType); // \"major\" | \"minor\" | \"patch\" | \"none\"\n * console.log(formatASTReportAsMarkdown(result.report));\n * ```\n *\n * @packageDocumentation\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.typescriptPlugin = exports.interpretNameChange = exports.nameSimilarity = exports.editDistance = exports.detectParameterReordering = exports.extractParameterInfo = exports.formatASTReportAsJSON = exports.formatASTReportAsMarkdown = exports.formatASTReportAsText = exports.formatSourceLocation = exports.createASTComparisonReport = exports.PolicyBuilder = exports.RuleBuilder = exports.createPolicy = exports.rule = exports.semverWriteOnlyPolicy = exports.semverReadOnlyPolicy = exports.semverDefaultPolicy = exports.determineOverallRelease = exports.classifyChanges = exports.classifyChange = exports.compareDeclarationFiles = exports.compareFiles = exports.parseDeclarationFile = void 0;\nexports.compareDeclarations = compareDeclarations;\n// Parser exports\nvar parser_1 = require(\"./parser\");\nObject.defineProperty(exports, \"parseDeclarationFile\", { enumerable: true, get: function () { return parser_1.parseDeclarationFile; } });\n// Comparator exports\nvar comparator_1 = require(\"./comparator\");\nObject.defineProperty(exports, \"compareFiles\", { enumerable: true, get: function () { return comparator_1.compareFiles; } });\nObject.defineProperty(exports, \"compareDeclarationFiles\", { enumerable: true, get: function () { return comparator_1.compareDeclarationFiles; } });\n// Classifier exports (re-exported from core)\nvar classifier_1 = require(\"./classifier\");\nObject.defineProperty(exports, \"classifyChange\", { enumerable: true, get: function () { return classifier_1.classifyChange; } });\nObject.defineProperty(exports, \"classifyChanges\", { enumerable: true, get: function () { return classifier_1.classifyChanges; } });\nObject.defineProperty(exports, \"determineOverallRelease\", { enumerable: true, get: function () { return classifier_1.determineOverallRelease; } });\nObject.defineProperty(exports, \"semverDefaultPolicy\", { enumerable: true, get: function () { return classifier_1.semverDefaultPolicy; } });\nObject.defineProperty(exports, \"semverReadOnlyPolicy\", { enumerable: true, get: function () { return classifier_1.semverReadOnlyPolicy; } });\nObject.defineProperty(exports, \"semverWriteOnlyPolicy\", { enumerable: true, get: function () { return classifier_1.semverWriteOnlyPolicy; } });\nObject.defineProperty(exports, \"rule\", { enumerable: true, get: function () { return classifier_1.rule; } });\nObject.defineProperty(exports, \"createPolicy\", { enumerable: true, get: function () { return classifier_1.createPolicy; } });\nObject.defineProperty(exports, \"RuleBuilder\", { enumerable: true, get: function () { return classifier_1.RuleBuilder; } });\nObject.defineProperty(exports, \"PolicyBuilder\", { enumerable: true, get: function () { return classifier_1.PolicyBuilder; } });\n// Reporter exports (re-exported from core)\nvar reporter_1 = require(\"./reporter\");\nObject.defineProperty(exports, \"createASTComparisonReport\", { enumerable: true, get: function () { return reporter_1.createASTComparisonReport; } });\nObject.defineProperty(exports, \"formatSourceLocation\", { enumerable: true, get: function () { return reporter_1.formatSourceLocation; } });\nObject.defineProperty(exports, \"formatASTReportAsText\", { enumerable: true, get: function () { return reporter_1.formatASTReportAsText; } });\nObject.defineProperty(exports, \"formatASTReportAsMarkdown\", { enumerable: true, get: function () { return reporter_1.formatASTReportAsMarkdown; } });\nObject.defineProperty(exports, \"formatASTReportAsJSON\", { enumerable: true, get: function () { return reporter_1.formatASTReportAsJSON; } });\n// Parameter analysis exports (re-exported from core)\nvar parameter_analysis_1 = require(\"./parameter-analysis\");\nObject.defineProperty(exports, \"extractParameterInfo\", { enumerable: true, get: function () { return parameter_analysis_1.extractParameterInfo; } });\nObject.defineProperty(exports, \"detectParameterReordering\", { enumerable: true, get: function () { return parameter_analysis_1.detectParameterReordering; } });\nObject.defineProperty(exports, \"editDistance\", { enumerable: true, get: function () { return parameter_analysis_1.editDistance; } });\nObject.defineProperty(exports, \"nameSimilarity\", { enumerable: true, get: function () { return parameter_analysis_1.nameSimilarity; } });\nObject.defineProperty(exports, \"interpretNameChange\", { enumerable: true, get: function () { return parameter_analysis_1.interpretNameChange; } });\n// Re-export the TypeScript input processor plugin for batteries-included usage\nvar input_processor_typescript_1 = require(\"@api-extractor-tools/input-processor-typescript\");\nObject.defineProperty(exports, \"typescriptPlugin\", { enumerable: true, get: function () { return input_processor_typescript_1.default; } });\nconst parser_2 = require(\"./parser\");\nconst comparator_2 = require(\"./comparator\");\nconst classifier_2 = require(\"./classifier\");\nconst reporter_2 = require(\"./reporter\");\n/**\n * Compares two declaration files and generates a comprehensive report.\n *\n * This is the main entry point for programmatic usage of the change detector.\n *\n * @param options - Comparison options including paths to old and new files\n * @returns A comparison result with release type, changes, and formatted report\n *\n * @example\n * ```ts\n * import { compareDeclarations, formatASTReportAsText } from '@api-extractor-tools/change-detector';\n *\n * const result = compareDeclarations({\n *   oldFile: './dist/v1/index.d.ts',\n *   newFile: './dist/v2/index.d.ts',\n * });\n *\n * console.log(result.releaseType); // \"major\" | \"minor\" | \"patch\" | \"none\"\n * console.log(formatASTReportAsText(result.report));\n * ```\n *\n * @alpha\n */\nfunction compareDeclarations(options) {\n    const { oldFile, newFile, policy = classifier_2.semverDefaultPolicy } = options;\n    // Parse both files with type information\n    const oldParsed = (0, parser_2.parseDeclarationFile)(oldFile);\n    const newParsed = (0, parser_2.parseDeclarationFile)(newFile);\n    // Compare the files\n    const { changes, errors } = (0, comparator_2.compareDeclarationFiles)(oldParsed, newParsed);\n    // Log errors if any (but don't fail)\n    if (errors.length > 0) {\n        for (const error of errors) {\n            console.warn(`[change-detector] ${error}`);\n        }\n    }\n    // Classify changes\n    const results = (0, classifier_2.classifyChanges)(changes, policy);\n    // Determine overall release type\n    const releaseType = (0, classifier_2.determineOverallRelease)(results);\n    // Create formatted report\n    const report = (0, reporter_2.createASTComparisonReport)(results);\n    return {\n        releaseType,\n        changes,\n        results,\n        oldFile,\n        newFile,\n        report,\n    };\n}\n"]}