Releases: Sasamous/axcache
V2.1.2
π Release v2.1.2
β¨ Enhancements
- π§ͺ Improved Jest configuration with TypeScript support
- π Enhanced type definitions for Axcache
- π§ Updated TypeScript configuration
- π¬ Better type safety for library methods
π Technical Improvements
- Added TypeScript test support
- Expanded module file extensions
- Updated test matching patterns
- Enabled JavaScript interoperability in TypeScript config
π¦ Dependency Updates
- Updated dev dependencies
- Aligned package configurations
π Key Changes
- Added
get
method type definition inAxcache
interface - Enabled
allowJs
in TypeScript configuration - Improved Jest transform and module resolution
Full Changelog: v2.1.1...v2.1.2
V2.1.1
π Release v2.1.1
π¦ Package Updates
- Version bump from 2.0.5 to 2.1.1
- Synchronized package-lock.json version
π Details
This release represents a minor version increment (2.1.1) for the axcache library, our caching wrapper for axios with TTL and advanced caching strategies.
π Technical Notes
- Updated version in both package.json and package-lock.json
- Maintained all existing dependencies and configurations
- No breaking changes introduced
π Dependencies
All dependencies remain at their current versions, including:
- axios: ^1.7.7 (core dependency)
- All development dependencies unchanged
V2.1.0
π Release v2.1.0
π₯ Breaking Changes
getCacheStats()
now returns a standardized interface withentries
,currentSize
, andmaxSize
- Updated TypeScript definitions with stricter typing
- Removed redundant README example tests
π§ Improvements
- Enhanced type safety with proper AxiosInstance extension
- Added JSDoc type annotations for better IDE support
- Optimized response cloning by removing circular references
- Streamlined test suite
π Type Updates
- New
AxcacheStats
interface for consistent cache statistics - Improved
AxcacheConfig
andAxcacheRequestConfig
interfaces - Better TypeScript integration with explicit type imports
π§Ή Cleanup
- Removed duplicate test cases
- Simplified test configuration
- Optimized code organization
Full Changelog: v2.0.4...v2.1.0
V2.0.4
π§ Type System Improvements
β¨ New Features
- Added
AxcacheRequestConfig
interface for better type safety - Added support for
forceRefresh
andttl
options in request configs
π§Ή Cleanup
- Removed unused AxiosInstance import
π Type Safety
- All HTTP methods now properly type-check additional cache options
- Better TypeScript support for cache-specific configurations
π Documentation
- Types now match the documented API in README
Full Changelog: v2.0.3...v2.0.4
V2.0.3
v2.0.3 π
What's Changed π
- π§Ή Removed unused
axios
property fromAxcacheOptions
interface type definition - π Simplified type declarations while maintaining full TypeScript support
- π Updated package version to 2.0.3
Technical Details π οΈ
The AxcacheOptions
interface has been simplified by removing the unused axios: AxiosInstance
property. This type was never utilized in the actual implementation as the library handles Axios instances internally.
Migration π
No migration steps required as this is a non-breaking change that only removes an unused type definition.
Dependencies π¦
- No dependency changes
- Maintains compatibility with axios ^1.7.7
Full Changelog: v2.0.2...v2.0.3
V2.0.2
What's New in 2.0.2
π Features
- Full support for all Axios configuration options through AxcacheOptions
- Complete test coverage for all documented use cases
π§ͺ Testing Improvements
- Added comprehensive test suite using JSONPlaceholder API
- Implemented real-world testing scenarios for all features
- Added TypeScript support in tests with ts-jest
π¦ Dependencies
- Updated all dependencies to latest stable versions
- Added axios-mock-adapter for reliable HTTP mocking
- Added TypeScript testing utilities
π§ Technical Details
- Extended AxcacheOptions to inherit from AxiosRequestConfig
- Improved type definitions for better TypeScript support
- Added test coverage for:
- Basic caching
- Custom TTL configurations
- Force refresh functionality
- Cache monitoring
- Authentication handling
- Selective cache invalidation
- Memory management
- Axios configuration merging
Full Changelog: v2.0.1...v2.0.2
v2.0.1
2.0.1 - TypeScript Support & Import Fixes
This release focuses on improving package compatibility and TypeScript support:
π¨ Fixes
- Fixed module resolution issues in TypeScript projects
- Fixed ESM/CommonJS import compatibility
- Fixed type definitions not being properly exported
ποΈ Improvements
- Added proper TypeScript declarations generation
- Improved package exports configuration
- Restructured dist folder for better module resolution
- Added consistent path handling for package exports
π¦ Technical Updates
- Added rollup-plugin-dts for TypeScript declarations
- Updated TypeScript configuration
- Improved build pipeline for type definitions
Full Changelog: v2.0.0...v2.0.1
v2.0.0
Axcache v2.0.0
Breaking Changes π¨
Browser Compatibility
The library has been completely refactored to work natively in both Node.js and browser environments.
Key Changes
- Removed Node.js
crypto
module dependency - Replaced
Buffer
usage withTextEncoder
- Changed cache key generation algorithm
- Cache keys are now 32 characters (previously 64)
Migration Guide
- Clear existing caches when upgrading
- Update any code that depends on specific cache key lengths
- If you were storing/comparing cache keys, note they will be different
- Test thoroughly in your target environments
Improvements π
- Added dedicated browser ESM build (
axcache.browser.esm.js
) - Improved memory usage with TextEncoder
- Optimized build configuration for browser environments
Technical Details π§
- New hashing algorithm uses multiple bit shifts for better distribution
- Browser build available via
import
fromdist/axcache.browser.esm.js
- All tests updated to reflect new cache key length
- Removed external dependency on
crypto
Compatibility
- Node.js: β All versions
- Browsers: β All modern browsers
- Module Systems: CommonJS, ESM, Browser globals
Full Changelog: https://github.com/Sasamous/axcache/commits/v2.0.0
v1.1.0
chore: improve project structure and build configuration
- Add proper ESM/CommonJS build setup with Rollup
- Configure TypeScript declarations
- Add proper CI/CD workflow with GitHub Actions
- Improve ESLint configuration
- Add proper npm package exports
- Fix test configuration and imports
- Update package.json with better metadata and scripts
- Add proper distribution files handling
- Remove unnecessary files
- Add proper ignore files (.npmignore, .gitignore, .eslintignore)
Full Changelog: v1.0.0...v1.1.0
Initial release
This is the initial release of the package
Full Changelog: https://github.com/Sasamous/axcache/commits/v1.0.0