Skip to content

centraldogma-0.55.0

Choose a tag to compare

@minwoox minwoox released this 24 Feb 06:25

⭐️ New features

  • You can now send a request to a Central Dogma server via fluent APIs. #651
    centralDogma.forRepo("foo", "bar")
                .file("/foo.json")
                .get();
    centralDogma.forRepo("foo", "bar")
                .watch("/foo.json")
                .start();
    centralDogma.forRepo("foo", "bar")
                .watcher(PathPattern.all())
                .start();
  • You can specify errorOnEntryNotFound as true to get notified of an exception when the target entry doesn't exist. #532 #653
    CentralDogma dogma = ...
    dogma.forRepo("foo", "bar")
         .watch("/baz.json")
         .errorOnEntryNotFound(true) // 👈👈👈
         .start();
  • You can now limit the number of commits when retrieving the commit history. #664
    centralDogma.forRepo("foo", "bar")
                .history()
                .maxCommits(5) // 👈👈👈
                .get(Revision.HEAD, Revision.INIT);
  • You can specify gitignore to exclude files from mirroring. #38 #645
    [
      {
        "type": "single",
        "enabled": true,
        "schedule": "0 * * * * ?",
        "direction": "REMOTE_TO_LOCAL",
        "localRepo": "foo",
        "localPath": "/",
        "remoteUri": "git+ssh://git.example.com/foo.git/settings#release",
        "gitignore": [  // 👈👈👈
            "/credential.txt",
            "private_dir"
        ]
      }
    ]
    

📈 Improvements

  • You cannot create a file in the meta repository anymore. #633 #649
  • The default health check interval of ArmeriaCentralDogma is now 3 seconds to reduce the possibility of EmptyEndpointGroupException raising. #674
  • You can see the detailed error message when a CentralDogmaBeanFactory raises a TimeoutException. #679

🛠️ Bug fixes

  • The author of a repository is now set correctly. #680
  • Repository.author() and Repository.creationTimeMillis() do not block the thread anymore. #682
  • You can now enable and disable replication in read-only mode. #360 #656
  • You can now use a valid ETag for If-None-Match when sending a watch request through REST API. #415 #654
  • The mapper Function of a child Watcher is executed only once when the child watcher gets notified. #657

☢️ Breaking changes

  • CentralDogma.createRepository() now returns CentralDogmaRepository. #662

⛓ Dependencies

  • Armeria 1.14.0 -> 1.14.1

Thank you

This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests: