Changelog
Changelog
Section titled “Changelog”This page documents all notable changes to the Astro Maintenance integration across different versions.
2.0.0 (2025-01-XX)
Section titled “2.0.0 (2025-01-XX)”Breaking Changes
Section titled “Breaking Changes”- Custom Handlebars templates must now be imported using
?raw
suffix and passed as content instead of file paths - File path-based custom templates (e.g.,
"./templates/custom.hbs"
) are no longer supported
- Support for imported template content via
import template from './path.hbs?raw'
- Universal platform compatibility - works identically across Node.js, Cloudflare Workers, Vercel, and Netlify
- Better error handling and fallback behavior for custom templates
- Warning messages for deprecated file path usage
- Enhanced template rendering engine with 83,333+ templates/second performance
Changed
Section titled “Changed”- Removed filesystem-based template loading for improved serverless compatibility
- Updated template detection logic to differentiate between template content and redirect paths
- Enhanced reliability with fixed Handlebars conditional rendering issues
Removed
Section titled “Removed”- Filesystem dependencies (
fs
,path
) removed from runtime for serverless compatibility
Migration Guide
Section titled “Migration Guide”❌ v1.x (deprecated):
maintenance({ template: "./templates/custom.hbs", // No longer supported});
v2.0 (required):
import customTemplate from "./templates/custom.hbs?raw";
maintenance({ template: customTemplate, // Pass imported content});
1.2.0 (2025-05-29)
Section titled “1.2.0 (2025-05-29)”Features
Section titled “Features”-
Dark Mode Support: Added automatic dark mode support to all templates
- Templates now automatically adapt to user system preferences
- Improved readability in low-light environments
- Consistent styling across light and dark appearances
-
Social Media Integration: Added support for displaying social media links
- Configure via the new
socials
option in the configuration - Support for popular platforms (X, GitHub, LinkedIn, Instagram, Facebook, YouTube, Mastodon, Pinterest, TikTok, Discord, Slack, Twitch, Reddit)
- Visually integrated into all template designs
- Configure via the new
Documentation
Section titled “Documentation”- Added comprehensive documentation for social media configuration
- Updated UI examples to showcase dark mode appearance
1.1.0 (2025-05-20)
Section titled “1.1.0 (2025-05-20)”Features
Section titled “Features”- Environment Variables Support: Added support for configuring all options via environment variables
- Environment variables now take precedence over programmatically defined options
- Added
MAINTENANCE_*
prefix convention for all supported options - Enables runtime configuration without rebuilding applications
- Default Settings Improvement: Made
enabled
option optional (defaults totrue
) - Testing: Added comprehensive tests for environment variables functionality
Documentation
Section titled “Documentation”- Added detailed documentation for environment variables
- Updated configuration documentation to reflect new defaults
1.0.1 (2025-04-15)
Section titled “1.0.1 (2025-04-15)”Bug Fixes
Section titled “Bug Fixes”- Adapter Compatibility: Fixed integration to work properly with all Astro adapters
- Migrated from hook-based implementation to middleware-based approach
- Ensures consistent behavior across different deployment environments
- Improved compatibility with SSR deployments
Internal Changes
Section titled “Internal Changes”- Restructured core functionality to use Astro’s middleware API
- Enhanced error handling and logging
1.0.0 (2025-04-01)
Section titled “1.0.0 (2025-04-01)”Initial Release
Section titled “Initial Release”- Core maintenance page functionality with three built-in templates:
- Simple maintenance page
- Countdown timer
- Under construction
- Customization options for title, description, logo, and contact information
- Override parameter for bypassing maintenance mode
- Support for custom templates via Handlebars
- Integration with Astro’s configuration system