Skip to content

0.5.0

Choose a tag to compare

@joamag joamag released this 09 Jan 11:57
· 41 commits to master since this release
76d3f61

Added

  • CI/CD workflows for JavaScript library (main-js.yml, deploy-js.yml) with linting and NPM publishing
  • ESLint configuration for JavaScript library using eslint-config-hive
  • Package.json for JavaScript library with NPM publishing support
  • CommonJS module exports in JavaScript client for Node.js compatibility
  • ESM wrapper module (pushi.mjs) for ES module environments
  • Dual module exports (ESM and CommonJS) in JavaScript package.json
  • Comprehensive unit tests for JavaScript client using Mocha
  • Tests for Observable, Channel, and Pushi classes
  • Mock implementations for WebSocket, XMLHttpRequest, and browser APIs for Node.js testing
  • Added yarn.lock and package-lock.json to .gitignore
  • Health check endpoints for monitoring and load balancer integration (/health, /health/detailed, /health/live, /health/ready)
  • SMTP notification handler using netius SMTP client for email delivery
  • SMTP model for storing email subscriptions to event channels
  • SMTPController with REST API endpoints (/smtps) for subscription management
  • SMTP configuration via environment variables (SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_STARTTLS, SMTP_SENDER)
  • SMTP URL support (smtp:// and smtps:// schemes) for simplified configuration via SMTP_URL environment variable
  • Per-app SMTP configuration via smtp_url field in App model for multi-tenant email delivery
  • SMTP URL parsing with support for credentials, port, and query parameters (e.g., smtp://user:pass@host:587?sender=email)
  • Example script for email subscription (examples/smtp/subscribe.py)
  • Reorganized examples into separate directories (examples/base/, examples/smtp/)
  • Comprehensive module documentation for example scripts
  • Debug and warning logging in SMTPHandler for better observability
  • Session-based authentication support via login() and logout() methods in JavaScript client
  • Added appId and appSecret configuration options to JavaScript client for authentication
  • Web Push example now served as static files from the app at /static/examples/web-push/

Changed

  • Updated GitHub Actions checkout to v6 in all Python workflows
  • Improved JavaScript client code quality with ESLint-compliant patterns (Boolean(), new Error(), unused params)
  • Renamed ESLint config to ESM format (eslint.config.js → eslint.config.mjs)
  • Moved examples/web-push/client.py to examples/base/notify.py for reusability across examples
  • Updated Web Push README to reference new examples structure
  • SMTP configuration now resolves with priority: app-level smtp_url → global SMTP_URL → individual SMTP_* environment variables
  • Added .env to .gitignore for local environment configuration
  • Renamed Mail model, MailHandler, and MailController to SMTP, SMTPHandler, and SMTPController for consistency
  • Web Push API endpoints now require session authentication instead of app_key query parameter
  • Added @appier.private decorator to Web Push and VAPID endpoints to require authentication
  • Removed CORS-specific options from Web Push routes in favor of session-based authentication
  • JavaScript client Web Push API methods now include credentials for session cookie support
  • /vapid_key endpoint now retrieves app context from session instead of query parameter
  • Moved Web Push example files from examples/web-push/ to src/pushi/app/static/examples/web-push/
  • Removed CORS environment variable from VSCode launch configuration

Fixed

  • Fixed typo in JavaScript client: "underyling" → "underlying"