Skip to content

chore(deps): bump xpath from 0.0.36 to 0.1.0 - #3

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/xpath-0.1.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/xpath-0.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown

Bumps xpath from 0.0.36 to 0.1.0.

Changelog

Sourced from xpath's changelog.

0.1.0

Breaking changes

  • "No node" is now always null (#140). These used to return undefined when there was no node to return:

    • select1(), select(..., true), selectWithResolver(..., true), the functions useNamespaces() returns (with single), and parse(...).select1(), when nothing matched. Scalar results are unchanged.
    • iterateNext() on an iterator result from evaluate(), after the last node, and snapshotItem() on a snapshot result, when there is no node at that index, as the DOM specifies.

    This matches singleNodeValue and XNodeSet's first(), which already returned null. To migrate, change checks for === undefined to === null; checks with == null, and truthiness checks, work either way. The TypeScript types say null too: SelectSingleReturnType, XPathEvaluator.select1(), and XPathResult's iterateNext() and snapshotItem().

Breaking changes (TypeScript only)

  • The TypeScript interface XPathResult in xpath.d.ts is renamed to XPathEvaluationResult. It describes the values custom functions receive as arguments and that XPathEvaluator.evaluate() returns (booleanValue(), numberValue(), stringValue(), and toArray() / first() / size on node sets). It was added in 0.0.36.

    This is a type-only change: nothing changes at runtime. The name XPathResult now belongs to the DOM 3 XPathResult class that xpath.evaluate() returns and the library exports as xpath.XPathResult (xpath.XPathResult.ANY_TYPE, etc.), which is unchanged.

    To migrate, replace type references to XPathResult from this package with XPathEvaluationResult. The documentation page moved from docs/XPathResult.md to docs/XPathEvaluationResult.md.

  • The return types of select() and select1() now match what they return at runtime (#123):

    • select() (SelectReturnType) returns an array of nodes or a string, number or boolean. It never returns a single node or null.
    • select1() and select(..., true) (SelectSingleReturnType) return a node, a string, number or boolean, or null when nothing matched (see the breaking change above: this used to be undefined).

    Code that assigns select1()'s result to a type without null no longer compiles. The new ScalarValue type is the string, number or boolean case. SelectedValue is deprecated but still exported, with its previous

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [xpath](https://github.com/goto100/xpath) from 0.0.36 to 0.1.0.
- [Changelog](https://github.com/goto100/xpath/blob/master/CHANGELOG.md)
- [Commits](https://github.com/goto100/xpath/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: xpath
  dependency-version: 0.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants