Skip to content

feat(templates): add template save/load functionality with versioning#10

Merged
hrhv merged 8 commits intomainfrom
expose-state
May 1, 2026
Merged

feat(templates): add template save/load functionality with versioning#10
hrhv merged 8 commits intomainfrom
expose-state

Conversation

@manu4543
Copy link
Copy Markdown
Contributor

Add template management API to save and restore editor transformation stacks:

  • Add getTemplate() and loadTemplate() methods to ImageKitEditorRef
  • Implement v1 versioning system for backward compatibility
  • Export TRANSFORMATION_STATE_VERSION constant

Add comprehensive testing infrastructure:

  • Add backward compatibility test suite with v1 template fixtures
  • Configure Vitest with coverage reporting
  • Add test step to CI workflow

Update documentation:

  • Add template management guide with examples
  • Document version compatibility approach
  • Add TypeScript usage examples

Other changes:

  • Bump version from 2.1.0 to 2.2.0
  • Add coverage directory to .gitignore
  • Update React example with template save/load demo

Add template management API to save and restore editor transformation stacks:
- Add getTemplate() and loadTemplate() methods to ImageKitEditorRef
- Implement v1 versioning system for backward compatibility
- Export TRANSFORMATION_STATE_VERSION constant

Add comprehensive testing infrastructure:
- Add backward compatibility test suite with v1 template fixtures
- Configure Vitest with coverage reporting
- Add test step to CI workflow

Update documentation:
- Add template management guide with examples
- Document version compatibility approach
- Add TypeScript usage examples

Other changes:
- Bump version from 2.1.0 to 2.2.0
- Add coverage directory to .gitignore
- Update React example with template save/load demo
@hrhv hrhv merged commit 2aa122f into main May 1, 2026
2 checks passed
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.

2 participants