Skip to content

Add account import. Add fetch accounts by device identifiers in runtime.#2474

Merged
zyro merged 4 commits intomasterfrom
aim-more-functions
Mar 11, 2026
Merged

Add account import. Add fetch accounts by device identifiers in runtime.#2474
zyro merged 4 commits intomasterfrom
aim-more-functions

Conversation

@zyro
Copy link
Member

@zyro zyro commented Mar 4, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two new capabilities to the Nakama runtime: (1) the ability to import account export snapshots via Go, JavaScript/TypeScript, and Lua runtime APIs, and (2) the ability to fetch accounts by device identifiers in addition to user IDs. It also bumps the nakama-common dependency to a newer pre-release version.

Changes:

  • AccountsGetId / accountsGetId updated to accept an optional deviceIDs parameter, with the backing SQL query updated to support device ID lookups.
  • New AccountImportId / accountImportId functions added across Go, JavaScript, and Lua runtimes, wrapping the existing ImportAccount core function.
  • Dependency bump for github.com/heroiclabs/nakama-common to v1.44.3-0.20260304155720-c380ba5165c6.

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
server/core_account.go GetAccounts updated to accept deviceIDs with a new dynamic SQL query branch
server/runtime_go_nakama.go AccountsGetId signature updated; AccountImportId added
server/runtime_lua_nakama.go Lua accountsGetId made optional for both params; accountImportId added
server/runtime_javascript_nakama.go JS accountsGetId made optional for both params; accountImportId added
vendor/github.com/heroiclabs/nakama-common/runtime/runtime.go NakamaModule interface updated with new signatures
go.mod / go.sum / vendor/modules.txt Dependency version bump for nakama-common
CHANGELOG.md Changelog entries added for new features

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 9 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

zyro and others added 2 commits March 6, 2026 14:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zyro zyro merged commit 3704d1c into master Mar 11, 2026
7 checks passed
@zyro zyro deleted the aim-more-functions branch March 11, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants