remove dead exports and stale polyfill comment#393
Conversation
- Drop unexported internal helpers innerParse and parseOuterMatch from mustacheParser.ts; neither is re-exported from index.ts and knip flags both as unused exports (issue #366) - Delete commented-out Array.isArray polyfill in filter.punches spec; author-noted it as removable and it has no runtime effect https://claude.ai/code/session_014spdok9YkrWpXWJ8kZ3C8H
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis pull request removes dead code and narrows the public API surface of the mustache parser module. A commented-out polyfill is deleted from the filter spec, and two internal generator functions are made non-exported while the public ChangesSpec cleanup and API visibility
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Cleanup PR removing unused exports flagged by knip and a stale commented-out polyfill, part of issue #366 Phase 6 cleanup.
Changes:
- Drop
exportfrom internal helpersinnerParseandparseOuterMatchin the mustache parser (onlyparseInterpolationis consumed externally). - Remove a commented-out
Array.isArraypolyfill block from the filter.punches spec.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/provider.mustache/src/mustacheParser.ts | Demote innerParse and parseOuterMatch to module-private functions. |
| packages/filter.punches/spec/filterBehavior.ts | Delete dead commented-out Array.isArray polyfill. |
$(cat <<'EOF'
Summary
exportfrominnerParseandparseOuterMatchinpackages/provider.mustache/src/mustacheParser.ts— both are internal helpers that are never re-exported fromindex.ts; knip flags them as unused exports (issue knip: resolve remaining unused-export and duplicate-export warnings (Phase 6) #366)Array.isArraypolyfill inpackages/filter.punches/spec/filterBehavior.ts— author-marked "can be remove", zero runtime effectTest plan
bun run verifypasses (lint + typecheck + build + tests)bun run knipno longer reportsinnerParseorparseOuterMatchas unused exportshttps://claude.ai/code/session_014spdok9YkrWpXWJ8kZ3C8H
EOF
)
Generated by Claude Code
Summary by CodeRabbit