Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightning 0.8.0 #72

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from
Draft

Lightning 0.8.0 #72

wants to merge 36 commits into from

Conversation

williamhorning
Copy link
Owner

@williamhorning williamhorning commented Nov 16, 2024

Lightning 0.8.0

changelog

  • improved error handling
    • plugins implement better error handling in most places
    • user-facing error messages can now differ from internal error messages
    • adds the LightningError class, which is now thrown by log_error
    • briding of messages handles errors better
    • LIGHTNING_ERROR_HOOK env variable renamed LIGHTNING_ERROR_WEBHOOK
    • plugins now have improved permission checks
  • support for multiple databases added
    • supports Postgres, MongoDB+Redis, and just Redis
    • implements migration from 0.7.3 -> 0.8.0 for Redisserver
    • supports migration between databases
    • adds bridge_data abstract class to handle database support
  • plugin interface changed
    • lightning no longer extends EventEmitter or re-emits events
    • duplicate events are now handled better
    • the process_result type was removed
    • the process_message method was split based on event type
    • the create_bridge method was renamed to setup_channel
    • attachment size is now measured in MiB
    • plugins now implement the allow_everyone bridge setting
    • create_command event now has create_command type
  • command handling improved
    • argument handling no longer requires --name
    • commands can access the lightning instance
    • Discord plugin implements improved slash commands
  • logs improved
    • error logs now begin with [lightning] prefix
    • logs from plugins now begin with the plugin name
    • plugins now log information upon login
    • Telegram plugin now logs file proxy URL
  • use_rawname setting reimplemented
  • documentation redone
  • dependencies updated

TODOs

  • implement Redis 0.7.3 -> 0.8.0 migration
  • fix the redis_bridge_message interface
  • support migration between databases
  • test MongoDB and Redis drivers

related

@williamhorning williamhorning changed the title 0.8.0 develop Lightning 0.8.0 Dec 25, 2024
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.

Pings not silenced on Discord
1 participant