Skip to content

Releases: ibnushahraa/dotenv-guard

Release v1.4.0: Quote Stripping & Dotenv Compatibility

03 Nov 14:53

Choose a tag to compare

✨ 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

30 Oct 00:42

Choose a tag to compare

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

14 Oct 20:04

Choose a tag to compare

πŸŽ‰ 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

03 Oct 18:22

Choose a tag to compare

πŸš€ 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 ci instead of npm 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

02 Oct 23:16

Choose a tag to compare

πŸŽ‰ 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

01 Oct 09:48

Choose a tag to compare

v1.0.2

1.0.2

First release

01 Oct 09:37

Choose a tag to compare

v1.0.1

1.0.1