Skip to content

Releases: Sasamous/axcache

V2.1.2

18 Nov 07:17
Compare
Choose a tag to compare

πŸš€ 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 in Axcache interface
  • Enabled allowJs in TypeScript configuration
  • Improved Jest transform and module resolution

Full Changelog: v2.1.1...v2.1.2

V2.1.1

17 Nov 18:09
Compare
Choose a tag to compare

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

17 Nov 17:57
Compare
Choose a tag to compare

πŸš€ Release v2.1.0

πŸ’₯ Breaking Changes

  • getCacheStats() now returns a standardized interface with entries, currentSize, and maxSize
  • 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 and AxcacheRequestConfig 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

17 Nov 13:53
Compare
Choose a tag to compare

πŸ”§ Type System Improvements

✨ New Features

  • Added AxcacheRequestConfig interface for better type safety
  • Added support for forceRefresh and ttl 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

17 Nov 13:13
Compare
Choose a tag to compare

v2.0.3 πŸš€

What's Changed πŸ”„

  • 🧹 Removed unused axios property from AxcacheOptions 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

17 Nov 12:42
Compare
Choose a tag to compare

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

17 Nov 12:07
Compare
Choose a tag to compare

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

17 Nov 11:35
Compare
Choose a tag to compare

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 with TextEncoder
  • Changed cache key generation algorithm
  • Cache keys are now 32 characters (previously 64)

Migration Guide

  1. Clear existing caches when upgrading
  2. Update any code that depends on specific cache key lengths
  3. If you were storing/comparing cache keys, note they will be different
  4. 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 from dist/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

16 Nov 23:22
Compare
Choose a tag to compare

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

16 Nov 19:56
Compare
Choose a tag to compare

This is the initial release of the package

Full Changelog: https://github.com/Sasamous/axcache/commits/v1.0.0