Skip to content

feat(login): update to livetemplate v0.5.1#10

Merged
adnaan merged 1 commit intomainfrom
feat/login-example-v0.5.1
Nov 30, 2025
Merged

feat(login): update to livetemplate v0.5.1#10
adnaan merged 1 commit intomainfrom
feat/login-example-v0.5.1

Conversation

@adnaan
Copy link
Copy Markdown
Contributor

@adnaan adnaan commented Nov 30, 2025

Summary

Update login example to reference livetemplate v0.5.1 which includes the new ActionContext HTTP APIs.

The login example already uses the new v0.5.1 APIs (ctx.SetCookie(), ctx.Redirect()) in main.go. This PR just updates the version reference and documentation to reflect that.

Changes

  • ✅ Update livetemplate dependency from v0.4.1 to v0.5.1
  • ✅ Update go.mod comment to mention "Session and HTTP APIs (v0.5.1+)"

Context

The login example demonstrates using:

  • ctx.SetCookie() for session management
  • ctx.Redirect() for post-login redirects
  • livetemplate.Session for server-initiated actions

These APIs are all part of livetemplate v0.5.1+.

Related PRs

Testing

Login example already has comprehensive E2E tests that pass with v0.5.1:

  • WebSocket connection ✅
  • Login flow with cookies ✅
  • Logout flow ✅
  • Server-initiated welcome messages ✅

Update login example to reference livetemplate v0.5.1 which includes
the new ActionContext HTTP APIs (SetCookie, Redirect, etc.).

The login example already uses these new APIs in main.go, this just
updates the go.mod version reference and documentation comment.

**Changes:**
- Update livetemplate dependency from v0.4.1 to v0.5.1
- Update comment to mention "Session and HTTP APIs (v0.5.1+)"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings November 30, 2025 20:36
Copy link
Copy Markdown

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 updates the login example to use livetemplate v0.5.1, which includes new HTTP APIs that the example already utilizes. The version bump aligns the dependency declaration with the actual API usage in the code.

  • Update livetemplate dependency from v0.4.1 to v0.5.1
  • Update go.mod comment to clarify the version includes both Session and HTTP APIs

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

@adnaan adnaan merged commit 31d461d into main Nov 30, 2025
14 of 15 checks passed
@adnaan adnaan deleted the feat/login-example-v0.5.1 branch November 30, 2025 20:39
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.

2 participants