- Removed outdated comments and replaced them with clear English descriptions for better understanding.
- Refactored the minification methods to utilize Profile for performance tracking.
- Adjusted the handling of the 'unused' option in Terser to ensure it aligns with intended behavior.
- Enhanced error handling in the minification process to provide clearer feedback on failures.
- Overall improvements contribute to a more maintainable and understandable codebase.
- Deleted the minifier-tests.js file as it is no longer needed.
- Updated package.js to remove references to the deleted test file, streamlining the package configuration.
- This change helps maintain a cleaner codebase by eliminating obsolete test files.
- Changed the method of retrieving the Meteor project's package.json to use the current working directory.
- Updated the minification logic to only proceed with Terser if the modernTranspiler configuration is explicitly set to false.
- Added a new import for the 'fs' module to facilitate file reading.
- Enhanced code clarity and maintainability with these adjustments.
- Added a function to read the Meteor project's package.json for configuration settings.
- Updated the minifier to utilize the new SWC integration, replacing the previous dependency.
- Introduced a constructor in the MeteorMinifier class to store configuration for use during minification.
- Added TODO comments for future enhancements regarding file skipping and build option checks.
- Fixed a typo in the package summary, changing 'inspered' to 'Inspired'.
- Updated the npm dependency from 'meteor-package-install-swc' to '@meteorjs/swc-core' for better clarity and alignment with current naming conventions.
- Bumped version to 3.1.0 and updated summary to reflect SWC inspiration.
- Added CombinedFile class for improved handling of minified code and source maps.
- Integrated SWC for JavaScript minification, with Terser as a fallback.
- Enhanced README with credits for SWC and Terser contributions.
- Updated npm dependencies to include 'meteor-package-install-swc', 'acorn', and '@babel/parser'.
* Implement improvements to 'x-forwarded-for' header parsing in DDP server
- Enhanced the handling of comma-separated values in Session._clientAddress.
- Added explicit trimming of IP addresses using a map function.
- Updated validation to ensure an exact match for httpForwardedCount.
- Bumped package version from 3.1.0 to 3.1.1.
- Created a changelog to document these changes.
* changelog