Skip to content

feat!: remove deprecated findChilds() alias - #561

Closed
cjbarth wants to merge 1 commit into
masterfrom
feat/remove-find-childs
Closed

feat!: remove deprecated findChilds() alias#561
cjbarth wants to merge 1 commit into
masterfrom
feat/remove-find-childs

Conversation

@cjbarth

@cjbarth cjbarth commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Closes #550

findChilds was renamed to findChildren in #363 and has had no internal callers since. It survived only because src/index.ts re-exported it via export * from "./utils", which published the name without anyone choosing to. Nothing in src/ or test/ referenced it.

Migration

findChilds(node, localName, namespace)findChildren(node, localName, namespace). Identical signature and behaviour; the alias only ever forwarded. Recorded in the README Upgrading section.

On the deprecation warning first

The issue asks whether this needs a runtime warning in a 6.x release before the name disappears — it does. findChilds carried a bare /** @deprecated */ with no replacement named and no runtime signal, so a JavaScript consumer got nothing at all. That half is in #559, which is meant to ship on 6.x before master rolls over to 7.x.

Verification

npm run build && npm test && npm run lint clean; 241 passing, unchanged from master.

🤖 Generated with Claude Code

`findChilds` was renamed to `findChildren` in #363 and has had no internal
callers since. It survived only because `src/index.ts` re-exported it via
`export * from "./utils"`, which published the name without anyone choosing
to. Nothing in `src/` or `test/` referenced it.

BREAKING CHANGE: `findChilds()` is removed. Call `findChildren()` instead;
the signature and behaviour are identical.

Closes #550

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4450863e-a3aa-4fdb-af98-f478294cd4f0

📥 Commits

Reviewing files that changed from the base of the PR and between 0409418 and 37b78f8.

📒 Files selected for processing (2)
  • README.md
  • src/utils.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cjbarth

cjbarth commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Closed in favour of #568 — the same commits, opened from cjbarth/xml-crypto instead of a branch pushed directly to this repo by mistake. The branch here has been deleted.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated findChilds() alias

1 participant