Skip to content

refactor!: remove no longer needed error utils#1805

Merged
gagdiez merged 1 commit into
pre-release/v7from
v7/remove-no-longer-needed-error-utils
Jan 18, 2026
Merged

refactor!: remove no longer needed error utils#1805
gagdiez merged 1 commit into
pre-release/v7from
v7/remove-no-longer-needed-error-utils

Conversation

@denbite

@denbite denbite commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • Commit messages follow the conventional commits spec
  • If this is a code change: I have written unit tests.
  • If this changes code in a published package: I have run pnpm changeset to create a changeset JSON document appropriate for this change.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

This PR removes no longer needed error utils like getErrorTypeFromErrorMessage, parseRpcError, parseResultError, etc from the package as errors are now handled internally thanks to strongly typed RPC errors and end users can simply catch them in their application using specific error classes imported from rpc-errors sub-path

Test Plan

Related issues/PRs

@changeset-bot

changeset-bot Bot commented Jan 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9356419

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
near-api-js Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gagdiez gagdiez merged commit 15d92b7 into pre-release/v7 Jan 18, 2026
4 checks passed
@gagdiez gagdiez deleted the v7/remove-no-longer-needed-error-utils branch January 18, 2026 11:22
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevTools Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

3 participants