v0.33.0 #3201
ramfox
announced in
Announcements
v0.33.0
#3201
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
iroh::test_utils::create_dns_resolver
is removed, useiroh::dns::DnsResolver::new
insteadiroh::dns::resolver
andiroh::dns::default_resolver
are removed. There is no static, global DNS resolver anymore. If you want to share a DNS resolver between endpoints, create the resolver yourself withiroh::dns::DnsResolver::new
and clone it into the endpoint builders (inEndpointBuilder::dns_resolver
). If you want to reuse the DNS resolver from an endpoint, you can access it withEndpoint::dns_resolver
and clone it to wherever you need it.iroh::dns::node_info::{IrohAttr, TxtAttrs, node_id_from_hickory_name}
are no longer public. Useiroh::dns::DnsResolver::lookup_node_by_id
oriroh::dns::DnsResolver::lookup_node_by_domain_name
to lookup node info from DNS.iroh::dns::node_info::{to_z32, from_z32}
are removed. Use the methods oniroh::dns::node_info::NodeIdExt
trait instead.iroh::dns::ResolverExt
is removed. Use the methods oniroh::dns::DnsResolver
instead.iroh::discovery::Discovery::publish
now takesdata: &NodeData
as its single argument.iroh::discovery::NodeData
is a re-export ofiroh_relay::dns::node_info::NodeData
, and contains relay URL and direct addresses. See docs forNodeData
for details.iroh::dns::DnsResolver
used to be a type alias and now is a reexport ofiroh_relay::dns::DnsResolver
structiroh::dns::node_info
module is now a reexport ofiroh_relay::dns::node_info
iroh::discovery::dns::{N0_DNS_NODE_ORIGIN_PROD, N0_DNS_NODE_ORIGIN_STAGING}
are now reexports ofiroh_relay::dns::{N0_DNS_NODE_ORIGIN_PROD, N0_DNS_NODE_ORIGIN_STAGING}
iroh::dns::DnsResolver
now take animpl ToString
instead ofimpl hickory_proto::rr::domain::IntoName
for theirhost
argumentiroh::discovery::DiscoveryItem
no longer has any public fields. There are now getters for the contained data, and constructors for createing aDiscoveryItem
from aNodeInfo
.iroh_relay::dns::node_info::NodeInfo
is changed.NodeInfo::new
now has a singleNodeId
argument. UseNodeInfo::with_direct_addresses
andNodeInfo::with_relay_url
to set addresses and relay URL. Alternatively, useNodeInfo::from_parts
and pass aNodeData
struct.NodeInfo
now has two public fieldsnode_id: NodeId
anddata: NodeData
, and setter and getter methods for the relay URL and direct addresses.iroh::discovery::pkarr::PkarrPublisher::update_addr_info
now takes aNodeData
argument⛰️ Features
iroh
compile towasm32-unknown-unknown
(#3189) - (247b891)Endpoint::close
faster by aborting QAD connections faster (#3182) - (f640e83)🐛 Bug Fixes
🚜 Refactor
🧪 Testing
⚙️ Miscellaneous Tasks
This discussion was created from the release v0.33.0.
Beta Was this translation helpful? Give feedback.
All reactions