export class Changelog {
  private constructor(private readonly _value: string) {}

  static create(value: string): Changelog {
    // 允许空的更新日志
    return new Changelog(value?.trim() || '')
  }

  get value(): string {
    return this._value
  }

  equals(other: Changelog): boolean {
    return this._value === other._value
  }
}
