Skip to content

Conversation

enson0131
Copy link

Checklist

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
  • I have described my pull request and the reasons for code changes along with context if necessary.

fengmk2 and others added 8 commits January 12, 2025 21:58
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Added static cache middleware for Koa.
	- Introduced TypeScript support for the package.
	- Implemented comprehensive configuration for package management.

- **Infrastructure**
	- Updated GitHub Actions workflows for CI/CD.
	- Added ESLint configuration.
	- Updated project build and testing configurations.

- **Documentation**
	- Refreshed README with new badges and installation instructions.
	- Updated package description and licensing.

- **Maintenance**
	- Upgraded Node.js engine support to version 18.19.0+.
	- Migrated package to `@eggjs/koa-static-cache`.
	- Removed legacy Travis CI configuration.
	- Added new TypeScript configuration file.
- Removed unnecessary files and configurations, streamlining the project
structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
[skip ci]

## [6.0.0](eggjs/koa-static-cache@v5.1.4...v6.0.0) (2025-01-12)

### ⚠ BREAKING CHANGES

* drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Added static cache middleware for Koa.
	- Introduced TypeScript support for the package.
	- Implemented comprehensive configuration for package management.

- **Infrastructure**
	- Updated GitHub Actions workflows for CI/CD.
	- Added ESLint configuration.
	- Updated project build and testing configurations.

- **Documentation**
	- Refreshed README with new badges and installation instructions.
	- Updated package description and licensing.

- **Maintenance**
	- Upgraded Node.js engine support to version 18.19.0+.
	- Migrated package to `@eggjs/koa-static-cache`.
	- Removed legacy Travis CI configuration.
	- Added new TypeScript configuration file.
- Removed unnecessary files and configurations, streamlining the project
structure.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* support cjs and esm both by tshy ([eggjs#1](eggjs#1)) ([b0524d9](eggjs@b0524d9))
closes eggjs#2

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated various dependencies to their latest stable versions, ensuring
improved consistency and maintainability.

- **Bug Fixes**
- Enhanced the compression process by adding a validation step to
prevent potential runtime issues during file processing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
[skip ci]

## [6.1.0](eggjs/koa-static-cache@v6.0.0...v6.1.0) (2025-03-12)

### Features

* use @eggjs/compressible ([eggjs#3](eggjs#3)) ([5b68e18](eggjs@5b68e18))
…handling

- Changed `cacheControl` in `FileMeta` and `Options` interfaces to accept a function that returns a string based on the file path.
- Enhanced the logic for setting `maxAge` to prevent overwriting when it is explicitly set to 0.
- Refactored the logic for setting `maxAge` to ensure it correctly defaults to 0 when both `obj.maxAge` and `options.maxAge` are undefined, preventing unintended overwrites.
@jonathanong
Copy link
Member

not sure why there are many conflicts, can you fix please? also is there a summary of what you are trying to fix? thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants