Skip to content

feat: rename actionCreator and fix addKey actions#1813

Merged
gagdiez merged 3 commits into
pre-release/v7from
fix-actions
Jan 19, 2026
Merged

feat: rename actionCreator and fix addKey actions#1813
gagdiez merged 3 commits into
pre-release/v7from
fix-actions

Conversation

@gagdiez

@gagdiez gagdiez commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Gonna be honest, I always hated the createActions helper, specially the addKey function since it asked the user to create an AccessKey which was terrible

This PR renames createActions to simply actions, so people can easily import { actions } from 'near-api-js' and makes sure that all the functions within actions are simple to use.

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.

@changeset-bot

changeset-bot Bot commented Jan 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 858783c

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

@github-project-automation github-project-automation Bot moved this to NEW❗ in DevTools Jan 19, 2026
@gagdiez gagdiez changed the title Fix actions feat: rename actionCreator and fix addKey actions Jan 19, 2026
@gagdiez gagdiez merged commit 91e818e into pre-release/v7 Jan 19, 2026
3 of 4 checks passed
@gagdiez gagdiez deleted the fix-actions branch January 19, 2026 16:04
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevTools Jan 19, 2026
This was referenced Jan 19, 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.

2 participants