Skip to content

Commit ca94a5d

Browse files
committed
Prepare for release v2.0.0
1 parent 93a997e commit ca94a5d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.0] - 2025-07-05
9+
10+
### Breaking Changes
11+
12+
- **BREAKING**: Removed all legacy CloudFront cache behavior settings
13+
- Removed variables: `forwarded_values`, `min_ttl`, `default_ttl`, `max_ttl`
14+
- Users must now use CloudFront cache policies via `cache_policy_id`
15+
- Module defaults to AWS managed "CachingOptimized" policy when `cache_policy_id` is null
16+
- **BREAKING**: Cache policy configuration now uses nullable variables
17+
- `cache_policy_id` and `origin_request_policy_id` are now properly nullable
18+
- When `cache_policy_id` is null, the module automatically uses the "CachingOptimized" policy
19+
20+
### Added
21+
22+
- Full Next.js SPA example with deployment automation
23+
- Complete example showing SPA deployment with custom error handling
24+
- Automated deployment scripts (deploy-terraform.sh, deploy-s3.sh, deploy.sh)
25+
- Navigation testing app demonstrating various routing scenarios
26+
- Smart 404 page that handles trailing slash redirects
27+
- Build step integrated into deployment process
28+
- CloudFront cache and origin request policy support via nullable variables
29+
- Simplified configuration without hardcoded policy IDs
30+
- Automatic default to "CachingOptimized" when not specified
31+
- Data source integration for referencing AWS managed policies by name
32+
33+
### Changed
34+
35+
- Documentation now shows cache policy examples without environment-specific prescriptions
36+
- Examples use data sources to reference AWS managed policies by name instead of hardcoded IDs
37+
- Simplified module usage by removing legacy cache configuration complexity
38+
39+
### Migration Guide
40+
41+
Users upgrading from v1.x to v2.0 must:
42+
43+
1. Remove any `forwarded_values`, `min_ttl`, `default_ttl`, `max_ttl` from their configurations
44+
2. Use `cache_policy_id` instead (or rely on the default "CachingOptimized" policy)
45+
3. Reference AWS managed policies using data sources instead of hardcoded IDs
46+
847
## [1.3.0] - 2025-06-29
948

1049
### Added

0 commit comments

Comments
 (0)