From f747ed87cb2c3f3f3533ce2d51d851de320586b5 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 1 Jun 2023 13:20:25 +0200 Subject: [PATCH 1/2] provider: add breaking changes to the changelog Changelog for: #273 --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index efc2c6c12..0c84cda55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,15 @@ The following emojis are used to highlight certain changes: - Updated, higher-definition icons in directory listings. - Customizable menu items next to "About IPFS" and "Install IPFS". - Valid DAG-CBOR and DAG-JSON blocks now provide a preview, where links can be followed. +- 🛠 Provider API refactor + - `provider/queue` has been moved to `provider/internal/queue` + - `provider/batched.New` has been moved to `provider.New` and arguments has been changed + - a routing system is now passed with the `provider.Online` option, by default the system run in offline mode (push stuff onto the queue) + - you do not have to pass a queue anymore, you pass a `datastore.Datastore` exclusively + - `provider/simple` has been removed, now instead `provider.New` will accept non batched routing systems and use type assertion for the `ProvideMany` call, giving a single implementation + - `provider.NewOfflineProvider` has been renamed to `provider.NewNoopProvider` to show more clearly that is does nothing. + - `provider.NewSystem` has been removed, `provider.New` now returns a `provider.System` directly. + - `provider.Provider` and `provider.Reprovider` has been merged under one `provider.System` ## [0.8.0] - 2023-04-05 ### Added From bfbc7446d1ced947ea5161a03b98346826fbfdef Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 1 Jun 2023 13:44:42 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Henrique Dias --- CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c84cda55..056791e0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,11 +20,11 @@ The following emojis are used to highlight certain changes: - Customizable menu items next to "About IPFS" and "Install IPFS". - Valid DAG-CBOR and DAG-JSON blocks now provide a preview, where links can be followed. - 🛠 Provider API refactor - - `provider/queue` has been moved to `provider/internal/queue` - - `provider/batched.New` has been moved to `provider.New` and arguments has been changed - - a routing system is now passed with the `provider.Online` option, by default the system run in offline mode (push stuff onto the queue) - - you do not have to pass a queue anymore, you pass a `datastore.Datastore` exclusively - - `provider/simple` has been removed, now instead `provider.New` will accept non batched routing systems and use type assertion for the `ProvideMany` call, giving a single implementation + - `provider/queue` has been moved to `provider/internal/queue`. + - `provider/batched.New` has been moved to `provider.New` and arguments has been changed: + - a routing system is now passed with the `provider.Online` option, by default the system run in offline mode (push stuff onto the queue); and + - you do not have to pass a queue anymore, you pass a `datastore.Datastore` exclusively. + - `provider/simple` has been removed, now instead `provider.New` will accept non batched routing systems and use type assertion for the `ProvideMany` call, giving a single implementation. - `provider.NewOfflineProvider` has been renamed to `provider.NewNoopProvider` to show more clearly that is does nothing. - `provider.NewSystem` has been removed, `provider.New` now returns a `provider.System` directly. - `provider.Provider` and `provider.Reprovider` has been merged under one `provider.System`