Releases: karl-sjogren/robots-txt-middleware
3.1.0-preview1
Preview of multi domain support.
Full Changelog: 3.0.0...3.1.0-preview1
3.0.0
What's Changed
- Removed .NET 5 target
- Added environment specific configurations
- Bump dotnet-outdated-tool from 4.1.0 to 4.5.3 by @dependabot in #15
- Bump dawidd6/action-download-artifact from 2.27.0 to 2.28.0 by @dependabot in #10
- Bump the benchmark-dotnet group with 2 updates by @dependabot in #11
- Bump the xunit group with 2 updates by @dependabot in #12
New Contributors
- @dependabot made their first contribution in #15
Full Changelog: 2.2.0...3.0.0
2.2.0
- Added
AddCustomDirective(string directive, string value)
- Added .NET 7 target
Full Changelog: 2.0.0...2.2.0
2.0.0
The first version of this package was only a middleware and had to be configured in
the Configure
method in the Startup
class. This felt fine at the time but as more
and more things moved to having configuration as a service and then letting the
middleware consume the service I felt like this package got outdated.
So I've made a breaking change and made the middleware consume a IRobotsTxtProvider
which in turn takes care of configuration. There is a default provider for static uses
(i.e. exactly what the old one did) but doing it this way also let me optimize it quite
a lot. A quick benchmark shows that running a thousand requests against /robots.txt
is now done in 25% of the time while also lowering allocations about the same.