Releases: ibnushahraa/dotenv-guard
Releases Β· ibnushahraa/dotenv-guard
Release v1.4.0: Quote Stripping & Dotenv Compatibility
β¨ What's New
- Quote Stripping: Automatically strips single (
') and double (") quotes from values - Dotenv Standard: Now behaves like standard dotenv libraries
- Smart Parsing: Only strips matching quote pairs, handles nested quotes correctly
v1.3.1 - Multi-Environment Mode & Enhanced Coverage
Description:
π What's New
β¨ New Features
- Multi-Environment Mode Parameter: Automatically load environment files based on mode
config({ mode: process.env.DOTENV_GUARD_MODE || 'development' })
- Hostname-Based Configuration: Select mode based on server hostname
config({ mode: os.hostname() === 'ubuntu' ? 'production' : 'development' }) - Environment Variable Mode Selection: Use DOTENV_GUARD_MODE or HOSTNAME env vars
π Improvements
- Test Coverage: Increased from 90.99% to 97.74% π
- New Test Cases: Added 21 tests (101 β 122 total)
- Documentation: Enhanced README with comprehensive examples
- Security Badges: Added Snyk vulnerability scanning and bundle size badges
v1.3.0 - Crypto Encryption with Secure Key Management
π What's New
Core v1.3.0
- β¨ Crypto-based encryption with AES-256-GCM algorithm
- π Secure master key management with multi-platform support
- π Automatic fallback to file-based storage when system keychain unavailable
- β Full backward compatibility with legacy encryption
- π§ͺ Comprehensive test coverage
Vite Plugin v0.4.0
- β‘ Support for crypto encryption in Vite projects
- π Updated dependency to core v1.3.0
v1.2.3 - Vite Plugin Improvements & Bug Fixes
π What's Changed
Vite Plugin (v0.3.0)
- Breaking: Removed encryption features, now a standalone plugin
- Added support for Vite 6-7
- Refactored to use async config hook
Core Fixes
- Fixed keytar calls when encryption is disabled (
enc=false) - Prevented unnecessary keytar dependencies when encryption not in use
CI/CD
- Improved CI reliability with
npm ciinstead ofnpm install - Removed Node.js 22 from test matrix due to compatibility issues
π¦ Package Versions
@ibnushahraa/dotenv-guard: 1.2.3@ibnushahraa/vite-plugin-dotenv-guard: 0.3.0
v1.2.0 - Monorepo with Official Vite Plugin Support
π What's New
- New Package:
@ibnushahraa/vite-plugin-dotenv-guard- Official Vite plugin for seamless integration - Monorepo Architecture: Restructured to npm workspaces for better maintainability
- Multi-Environment Support: Auto-load
.env.[mode]files with priority ordering - Improved Templates: Enhanced Node.js and Vite templates with security best practices
- Better Documentation: Added CONTRIBUTING.md and comprehensive package READMEs
π¦ Packages
- Core:
@ibnushahraa/dotenv-guard@1.2.0 - Vite Plugin:
@ibnushahraa/vite-plugin-dotenv-guard@0.1.0
π§ Breaking Changes
None - fully backward compatible!
π Migration Guide
No migration needed. Existing users can continue using the core package as before.
Fix readme
v1.0.2 1.0.2
First release
v1.0.1 1.0.1