Skip to content

Releases: Ahoo-Wang/CosId

v2.9.2

19 Jul 07:24
b7da76b
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.9.1 by @renovate in #595
  • fix(deps): update dependency org.springframework.cloud:spring-cloud-dependencies to v2023.0.3 by @renovate in #596
  • chore(deps): update dependency gradle to v8.9 by @renovate in #597
  • chore(deps): update dependency com.github.spotbugs to v6.0.19 by @renovate in #598
  • chore(deps): update dependency org.gradle.test-retry to v1.5.10 by @renovate in #599
  • fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.20.0 by @renovate in #601
  • fix(deps): update dependency org.springframework.boot:spring-boot-dependencies to v3.3.2 by @renovate in #602

Full Changelog: v2.9.1...v2.9.2

v2.9.1

08 Jul 05:50
2b67b8b
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.9.0 by @renovate in #587
  • fix(deps): update junit5 monorepo to v5.10.3 by @renovate in #590
  • fix(deps): update dependency org.springdoc:springdoc-openapi-starter-webflux-ui to v2.6.0 by @renovate in #591
  • feat(core): Use data classes to replace record to improve JAVA8 compatibility by @Ahoo-Wang in #593

Full Changelog: v2.9.0...v2.9.1

v1.20.0

06 Jul 11:34
889046e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.19.3...v1.20.0

v2.9.0

23 Jun 01:28
70b1c86
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.8.3 by @renovate in #585
  • fix(deps): update dependency org.springframework.boot:spring-boot-dependencies to v3.3.1 by @renovate in #573
  • chore(deps): update dependency com.github.spotbugs to v6.0.18 by @renovate in #586

Full Changelog: v2.8.3...v2.9.0

v2.8.3

18 Jun 10:04
c556fe6
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.8.2 by @renovate in #581
  • feat(core): Support DatePrefixIdConverter by @Ahoo-Wang in #582
  • feat(core): Support DatePrefix for auto config. by @Ahoo-Wang in #583
  • feat(doc): Update specific-id.md to Support DatePrefix by @Ahoo-Wang in #584

Full Changelog: v2.8.2...v2.8.3

v2.8.2

18 Jun 02:05
1e0e361
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.8.1 by @renovate in #569
  • chore(deps): update dependency com.github.spotbugs to v6.0.15 by @renovate in #571
  • fix(deps): update dependency org.springframework.boot:spring-boot-dependencies to v3.2.6 by @renovate in #572
  • fix(deps): update dependency org.springframework.cloud:spring-cloud-dependencies to v2023.0.2 by @renovate in #574
  • fix(deps): update dependency com.google.guava:guava to v33.2.1-jre by @renovate in #576
  • chore(deps): update dependency gradle to v8.8 by @renovate in #577
  • chore(deps): update dependency com.github.spotbugs to v6.0.16 by @renovate in #578
  • chore(deps): update dependency com.github.spotbugs to v6.0.17 by @renovate in #579
  • chore(deps): update docker/build-push-action action to v6 by @renovate in #580

Full Changelog: v2.8.1...v2.8.2

v2.8.1

17 May 02:32
1723d85
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.8.0 by @renovate in #566
  • feat(core): support GroupedKey for SegmentIdStat by @Ahoo-Wang in #567
  • feat(doc): Update specific-id.md by @Ahoo-Wang in #568

YearMonthDayGroupBySupplier

使用 SegmentId 算法,要求输出的ID字符串:

  • 起始序号:0
  • 格式:<prefix><year_month_day><sequence>
  • 分组:按日期分组,序号从0开始。即明天序号需要重置为0.
  • 序号位:8位数值,不足8位前补0
  • 例如:BIZ-240516-00000001
cosid:
  segment:
    enabled: true
    distributor:
      type: redis
    provider:
      group_year_month_day_biz:
        group:
          by: year_month_day
          pattern: yyMMdd
        converter:
          type: to_string
          to-string:
            pad-start: true
            char-size: 8
          prefix: BIZ-
          group-prefix:
            enabled: true

配置信息:

{
  "group_year_month_day_biz": {
    "kind": "StringSegmentId",
    "actual": {
      "kind": "SegmentChainId",
      "fetchTime": 1715911765,
      "maxId": 280,
      "offset": 260,
      "sequence": 260,
      "step": 20,
      "isExpired": false,
      "isOverflow": false,
      "isAvailable": true,
      "groupedKey": {
        "key": "240517",
        "ttlAt": 1715961599
      },
      "converter": {
        "kind": "Radix62IdConverter",
        "radix": 62,
        "charSize": 11,
        "padStart": true,
        "maxId": 9223372036854776000
      }
    },
    "converter": {
      "kind": "PrefixIdConverter",
      "prefix": "BIZ-",
      "actual": {
        "kind": "GroupedPrefixIdConverter",
        "delimiter": "-",
        "actual": {
          "kind": "ToStringIdConverter",
          "padStart": true,
          "charSize": 8
        }
      }
    }
  }
}

Full Changelog: v2.8.0...v2.8.1

v2.8.0

16 May 09:43
65b5abb
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.6.9 by @renovate in #562
  • feat: support YearGroupBySupplier / YearMonthGroupBySupplier / YearMonthDayGroupBySupplier. by @Ahoo-Wang in #563
  • feat: add DateGroupBySupplier example config. by @Ahoo-Wang in #564
  • feat(doc): Update specific-id.md by @Ahoo-Wang in #565

YearGroupBySupplier

使用 SegmentId 算法,要求输出的ID字符串:

  • 起始序号:0
  • 格式:<prefix><year><sequence>
  • 分组:按年分组,每年序号从0开始。即每年序号需要重置为0.
  • 序号位:8位数值,不足8位前补0
  • 例如:BIZ-2024-00000231
cosid:
  segment:
    enabled: true
    distributor:
      type: redis
    provider:
      group_year_biz:
        group:
          by: year
          pattern: yyyy
        converter:
          type: to_string
          to-string:
            pad-start: true
            char-size: 8
          prefix: BIZ-
          group-prefix:
            enabled: true

YearMonthGroupBySupplier

使用 SegmentId 算法,要求输出的ID字符串:

  • 起始序号:0
  • 格式:<prefix><year_month><sequence>
  • 分组:按年月分组,序号从0开始。即跨月序号需要重置为0.
  • 序号位:8位数值,不足8位前补0
  • 例如:BIZ-240516-00000061
cosid:
  segment:
    enabled: true
    distributor:
      type: redis
    provider:
      group_year_month_biz:
        group:
          by: year_month
          pattern: yyyyMM
        converter:
          type: to_string
          to-string:
            pad-start: true
            char-size: 8
          prefix: BIZ-
          group-prefix:
            enabled: true

YearMonthDayGroupBySupplier

使用 SegmentId 算法,要求输出的ID字符串:

  • 起始序号:0
  • 格式:<prefix><year_month_day><sequence>
  • 分组:按日期分组,序号从0开始。即明天序号需要重置为0.
  • 序号位:8位数值,不足8位前补0
  • 例如:BIZ-240516-00000001
cosid:
  segment:
    enabled: true
    distributor:
      type: redis
    provider:
      group_year_month_day_biz:
        group:
          by: year_month_day
          pattern: yyMMdd
        converter:
          type: to_string
          to-string:
            pad-start: true
            char-size: 8
          prefix: BIZ-
          group-prefix:
            enabled: true

Full Changelog: v2.6.9...v2.8.0

v2.6.9

15 May 05:07
0acf606
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.6.8 by @renovate in #549
  • fix(deps): update dependency org.springdoc:springdoc-openapi-starter-webflux-ui to v2.5.0 by @renovate in #550
  • chore(deps): update dependency io.github.gradle-nexus.publish-plugin to v2 by @renovate in #552
  • feat(ci): add Actions to Sync Gitee by @Ahoo-Wang in #553
  • fix(deps): update dependency org.springframework.boot:spring-boot-dependencies to v3.2.5 by @renovate in #555
  • feat(ci): update ci java distribution to temurin by @Ahoo-Wang in #556
  • chore(deps): update dependency org.gradle.test-retry to v1.5.9 by @renovate in #557
  • fix(deps): update dependency com.google.guava:guava to v33.2.0-jre by @renovate in #560
  • fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.8 by @renovate in #561
  • fix(deps): update dependency org.mybatis:mybatis to v3.5.16 by @renovate in #551
  • chore(deps): update dependency com.github.spotbugs to v6.0.14 by @renovate in #554

Full Changelog: v2.6.8...v2.6.9

v2.6.8

28 Mar 14:39
f2036d0
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency me.ahoo.cosid:cosid-bom to v2.6.6 by @renovate in #537
  • fix(deps): update dependency org.axonframework:axon-bom to v4.9.4 by @renovate in #538
  • chore(deps): update dependency com.github.spotbugs to v6.0.8 by @renovate in #539
  • fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.7 by @renovate in #540
  • fix(deps): update dependency org.springdoc:springdoc-openapi-starter-webflux-ui to v2.4.0 by @renovate in #542
  • fix(deps): update dependency com.google.guava:guava to v33.1.0-jre by @renovate in #544
  • chore(deps): update dependency com.github.spotbugs to v6.0.9 by @renovate in #545
  • fix(deps): update dependency org.springframework.boot:spring-boot-dependencies to v3.2.4 by @renovate in #546
  • chore(deps): update dependency gradle to v8.7 by @renovate in #547
  • fix(deps): update dependency org.springframework.cloud:spring-cloud-dependencies to v2023.0.1 by @renovate in #548

Full Changelog: v2.6.6...v2.6.8