change
0.7.5, released 2 years ago by karapetov.com
A Changelog manipulation library for reading, modifying, and writing CHANGELOG.md files.
What it does
Provides CRUD operations on releases and changes for CHANGELOG.md files following the keepachangelog format. Supports basic Markdown syntax and semantic versioning.
AI-written summary of version 0.7.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to programmatically read or update CHANGELOG.md files in your Dart or Flutter project
- Your project strictly follows the keepachangelog format
Skip it when
- Your changelog uses complex Markdown structures like tables, nested lists, or HTML
- You use a changelog format other than keepachangelog
Strengths
- Simple API for reading and modifying changelogs
- Supports basic Markdown syntax and semantic versioning
Weaknesses
- Limited strictly to the keepachangelog format
- Complex Markdown features are not supported
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
import 'dart:io';
import 'package:change/change.dart';
void main() {
final file = File('CHANGELOG.md');
final log = parseChangelog(file.readAsStringSync());
final latest = log.history().last;
print('Changelog contains ${log.history().length} releases.');
print('The latest version is ${latest.version}');
}Alternatives
Packages that do the same job and could replace change.
- pubspec_manager
Type-safe API to read, modify, and write pubspec.yaml while preserving comments.
78Compare - dartchess
A Dart library for chess rules, move generation, and FEN/PGN parsing with variant support.
81Compare - ini
Read and write INI configuration files in pure Dart
44Compare - json_path
Dart implementation of RFC 9535 JSONPath for querying and manipulating JSON
65Compare
Works with
Packages commonly used together with change: ones it builds on, ones built on it, and its own family.
- pub_semverchange depends on itVersions and version constraints implementing pub's versioning policy.
- intlchange depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- markdownchange depends on itA portable Markdown library written in Dart that can parse Markdown into HTML.
- markerchange depends on itRenders a markdown AST back to markdown string
- ciderBuilt on changeCLI tool for Dart package maintenance to automate pubspec.yaml and CHANGELOG.md updates.