Skip to content

Commit 45ae5d5

Browse files
authored
Bump version to 1.0.0 (#237)
* update build.schema.json * wip * Bump version
1 parent 5fbf21e commit 45ae5d5

File tree

5 files changed

+91
-11
lines changed

5 files changed

+91
-11
lines changed

.nuke/build.schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"Release"
1010
]
1111
},
12-
"GithubToken": {
13-
"type": "string"
14-
},
1512
"NuGetToken": {
1613
"type": "string"
1714
},

CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# Changelog
22

3+
## [v1.0.0]
4+
5+
### Changes from 0.24.0-1.0.0:
6+
7+
Breaking Changes:
8+
9+
* Drop support for .NET Standard 2.0, raises minimum framework to .NET Core 3.1 #167, #171
10+
* Removed "document header" functionality, in favour of always adding all headers #186
11+
* Remove `X-XSS-Protection` from default headers and mark obsolete #168
12+
* Add `cross-origin-opener-policy: same-origin` to default headers #184
13+
* Mark `Feature-Policy` as obsolete #187
14+
* Mark `Expect-CT` as obsolete #197
15+
* Make nonce generation lazy on call to `HttpContext.GetNonce()` #198
16+
* Remove ambient-light-sensor=() from `DefaultSecureDirectives()` for permissions policy #203 (Thanks [damienbod](https://github.com/damienbod)!)
17+
* Update COOP, COEP, and CORP for `AddDefaultSecurityHeaders()` and `AddDefaultApiSecurityHeaders()` #204 (Thanks [damienbod](https://github.com/damienbod)!)
18+
* Removes obsolete APIs (#217)
19+
20+
Features:
21+
22+
* Allow configuring "named" policies, and applying different policies to different endpoints #172, #173, #185
23+
* Allow customizing the `HeaderPolicyCollection` just before it is applied, customizing per request #174, #185
24+
* Make adding directives to `Content-Security-Policy` idempotent to avoid duplicates #169
25+
* Add `AddDefaultApiSecurityHeaders()` for adding default headers to APIs #183, #184
26+
* Add `AddPermissionsPolicyWithRecommendedDirectives()` and `PermissionsPolicyBuilder.AddDefaultSecureDirectives()` for adding secure `Permissions-Policy` directives in bulk #183, #184
27+
* NetEscapades.AspNetCore.SecurityHeaders now has an icon, thanks @khalidabuhakmeh! #195
28+
* Allow accessing an `IServiceProvider` when configuring a `SecurityHeaderPolicyBuilder` #200
29+
* Adds support for Trusted Types to Content-Security-Policy (#216, #218)
30+
31+
Build updates:
32+
33+
* Allow building from forks #232
34+
* Fix release generation #231, #235, #236
35+
* Fix recording test results #221
36+
* Define version in the build project instead #223
37+
* Generate SBOM #222
38+
* Generate SBOM attestation #224
39+
* Generate artifact provenance attestation #225
40+
* Automatically create releases #229
41+
42+
### Changes from 1.0.0-preview.4 to 1.0.0:
43+
44+
Build updates:
45+
46+
* Allow building from forks #232
47+
* Fix release generation #231, #235, #236
48+
349
## [v1.0.0-preview.4]
450

551
Build updates:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PM> Install-Package NetEscapades.AspNetCore.SecurityHeaders
1818
Or using the `dotnet` CLI
1919

2020
```bash
21-
dotnet add package NetEscapades.AspNetCore.SecurityHeaders --version 1.0.0-preview.4
21+
dotnet add package NetEscapades.AspNetCore.SecurityHeaders --version 1.0.0
2222
```
2323

2424
## Usage
@@ -33,7 +33,7 @@ When you install the package, it should be added to your `.csproj`. Alternativel
3333
</PropertyGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.0.0-preview.4" />
36+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.0.0" />
3737
</ItemGroup>
3838

3939
</Project>
@@ -554,7 +554,7 @@ To use a nonce or an auto-generated hash with your ASP.NET Core application, use
554554
For example:
555555

556556
```bash
557-
dotnet package add Install-Package NetEscapades.AspNetCore.SecurityHeaders.TagHelpers --version 1.0.0-preview.4
557+
dotnet package add Install-Package NetEscapades.AspNetCore.SecurityHeaders.TagHelpers
558558
```
559559

560560
This adds the package to your _.csproj_ file:
@@ -567,8 +567,8 @@ This adds the package to your _.csproj_ file:
567567
</PropertyGroup>
568568

569569
<ItemGroup>
570-
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.0.0-preview.4" />
571-
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="1.0.0-preview.4" />
570+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.0.0" />
571+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="1.0.0" />
572572
</ItemGroup>
573573

574574
</Project>
@@ -753,7 +753,7 @@ with the `.signature.p7s` file removed. Assuming you have modified the _.nupkg_
753753
you can verify the SBOM attestations by specifying the `--predicate-type`:
754754

755755
```bash
756-
gh attestation verify --owner andrewlock --predicate-type https://cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.1.0.0nupkg"
756+
gh attestation verify --owner andrewlock --predicate-type https://cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.1.0.0.nupkg"
757757
gh attestation verify --owner andrewlock --predicate-type https://cyclonedx.org/bom "NetEscapades.AspNetCore.SecurityHeaders.TagHelpers.1.0.0.nupkg"
758758
```
759759

ReleaseNotes.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,45 @@
1+
## Changes in 1.0.0
2+
3+
This marks the first major release of the _NetEscapades.AspNetCore.SecurityHeaders_. For simplicity, all the changes since 0.24.0 are included below.
4+
5+
Breaking Changes:
6+
7+
* Drop support for .NET Standard 2.0, raises minimum framework to .NET Core 3.1 #167, #171
8+
* Removed "document header" functionality, in favour of always adding all headers #186
9+
* Remove `X-XSS-Protection` from default headers and mark obsolete #168
10+
* Add `cross-origin-opener-policy: same-origin` to default headers #184
11+
* Mark `Feature-Policy` as obsolete #187
12+
* Mark `Expect-CT` as obsolete #197
13+
* Make nonce generation lazy on call to `HttpContext.GetNonce()` #198
14+
* Remove ambient-light-sensor=() from `DefaultSecureDirectives()` for permissions policy #203 (Thanks [damienbod](https://github.com/damienbod)!)
15+
* Update COOP, COEP, and CORP for `AddDefaultSecurityHeaders()` and `AddDefaultApiSecurityHeaders()` #204 (Thanks [damienbod](https://github.com/damienbod)!)
16+
* Removes obsolete APIs (#217)
17+
18+
Features:
19+
20+
* Allow configuring "named" policies, and applying different policies to different endpoints #172, #173, #185
21+
* Allow customizing the `HeaderPolicyCollection` just before it is applied, customizing per request #174, #185
22+
* Make adding directives to `Content-Security-Policy` idempotent to avoid duplicates #169
23+
* Add `AddDefaultApiSecurityHeaders()` for adding default headers to APIs #183, #184
24+
* Add `AddPermissionsPolicyWithRecommendedDirectives()` and `PermissionsPolicyBuilder.AddDefaultSecureDirectives()` for adding secure `Permissions-Policy` directives in bulk #183, #184
25+
* NetEscapades.AspNetCore.SecurityHeaders now has an icon, thanks @khalidabuhakmeh! #195
26+
* Allow accessing an `IServiceProvider` when configuring a `SecurityHeaderPolicyBuilder` #200
27+
* Adds support for Trusted Types to Content-Security-Policy (#216, #218)
28+
129
Build updates:
230

31+
* Allow building from forks #232
32+
* Fix release generation #231, #235, #236
333
* Fix recording test results #221
434
* Define version in the build project instead #223
535
* Generate SBOM #222
636
* Generate SBOM attestation #224
737
* Generate artifact provenance attestation #225
8-
* Automatically create releases #229
38+
* Automatically create releases #229
39+
40+
---
41+
42+
Changes from 1.0.0-preview.4 to 1.0.0:
43+
44+
* Allow building from forks #232
45+
* Fix release generation #231, #235, #236

build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Build : NukeBuild
2222
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
2323
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
2424

25-
readonly string Version = "1.0.0-preview.4";
25+
readonly string Version = "1.0.0";
2626

2727
[Solution(GenerateProjects = true)] readonly Solution Solution;
2828

0 commit comments

Comments
 (0)