Skip to content

Commit f7368be

Browse files
authored
Release v5.0.1 (#16)
* Release v5.0.1
1 parent adf8c59 commit f7368be

File tree

201 files changed

+87
-6988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+87
-6988
lines changed

.github/workflows/CI-Build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
github-token: '${{ secrets.GH_PACKAGES }}'
1414
steps:
1515
- name: Step-01 Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
1919
- name: Step-02 Lint Code Base
@@ -39,7 +39,7 @@ jobs:
3939
versionSpec: 5.x
4040

4141
- name: Step-02 Check out Code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545

@@ -67,7 +67,7 @@ jobs:
6767
working-directory: '${{ env.working-directory }}'
6868

6969
- name: Step-08 Upload Build Artifacts
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
7272
name: build-artifact
7373
path: ${{env.working-directory}}
@@ -88,7 +88,7 @@ jobs:
8888
versionSpec: 5.x
8989

9090
- name: Step-02 Check out Code
91-
uses: actions/checkout@v2
91+
uses: actions/checkout@v4
9292
with:
9393
fetch-depth: 0
9494

@@ -117,7 +117,7 @@ jobs:
117117
working-directory: '${{ env.working-directory }}'
118118

119119
- name: Step-08 Upload Build Artifacts
120-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
121121
with:
122122
name: build-artifact
123123
path: ${{env.working-directory}}
@@ -136,7 +136,7 @@ jobs:
136136
working-directory: /home/runner/work/FeatureOne/FeatureOne
137137
steps:
138138
- name: Step-01 Retrieve Build Artifacts
139-
uses: actions/download-artifact@v3
139+
uses: actions/download-artifact@v4
140140
with:
141141
name: build-artifact
142142
path: ${{env.working-directory}}

.github/workflows/codeql.yml

Lines changed: 53 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,59 +19,86 @@ on:
1919
paths-ignore:
2020
- "**/*.md"
2121
- "**/*.gitignore"
22-
- "**/*.gitattributes"
22+
- "**/*.gitattributes"
2323
schedule:
24-
- cron: '35 15 * * 2'
24+
- cron: '42 7 * * 5'
2525

2626
jobs:
2727
analyze:
28-
name: Analyze
29-
runs-on: ubuntu-latest
28+
name: Analyze (${{ matrix.language }})
29+
# Runner size impacts CodeQL analysis time. To learn more, please see:
30+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
31+
# - https://gh.io/supported-runners-and-hardware-resources
32+
# - https://gh.io/using-larger-runners (GitHub.com only)
33+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
34+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3035
permissions:
36+
# required for all workflows
37+
security-events: write
38+
39+
# required to fetch internal or private CodeQL packs
40+
packages: read
41+
42+
# only required for workflows in private repositories
3143
actions: read
3244
contents: read
33-
security-events: write
3445

3546
strategy:
3647
fail-fast: false
3748
matrix:
38-
language: [ 'csharp' ]
39-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
40-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41-
49+
include:
50+
- language: actions
51+
build-mode: none
52+
- language: csharp
53+
build-mode: none
54+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
55+
# Use `c-cpp` to analyze code written in C, C++ or both
56+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
57+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
58+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
59+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
60+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
61+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
4262
steps:
4363
- name: Checkout repository
44-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
65+
66+
# Add any setup steps before running the `github/codeql-action/init` action.
67+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
68+
# or others). This is typically only required for manual builds.
69+
# - name: Setup runtime (example)
70+
# uses: actions/setup-example@v1
4571

4672
# Initializes the CodeQL tools for scanning.
4773
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v2
74+
uses: github/codeql-action/init@v3
4975
with:
5076
languages: ${{ matrix.language }}
77+
build-mode: ${{ matrix.build-mode }}
5178
# If you wish to specify custom queries, you can do so here or in a config file.
5279
# By default, queries listed here will override any specified in a config file.
5380
# Prefix the list here with "+" to use these queries and those in the config file.
5481

55-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
82+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5683
# queries: security-extended,security-and-quality
5784

58-
59-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
60-
# If this step fails, then you should remove it and run the build manually (see below)
61-
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v2
63-
85+
# If the analyze step fails for one of the languages you are analyzing with
86+
# "We were unable to automatically build your code", modify the matrix above
87+
# to set the build mode to "manual" for that language. Then modify this step
88+
# to build your code.
6489
# ℹ️ Command-line programs to run using the OS shell.
6590
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
66-
67-
# If the Autobuild fails above, remove it and uncomment the following three lines.
68-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
69-
70-
# - run: |
71-
# echo "Run, Build Application using script"
72-
# ./location_of_script_within_repo/buildscript.sh
91+
- if: matrix.build-mode == 'manual'
92+
shell: bash
93+
run: |
94+
echo 'If you are using a "manual" build mode for one or more of the' \
95+
'languages you are analyzing, replace this with the commands to build' \
96+
'your code, for example:'
97+
echo ' make bootstrap'
98+
echo ' make release'
99+
exit 1
73100
74101
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@v2
102+
uses: github/codeql-action/analyze@v3
76103
with:
77104
category: "/language:${{matrix.language}}"

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
next-version: 5.0.0
1+
next-version: 5.0.1
22
tag-prefix: '[vV]'
33
mode: ContinuousDeployment
44
branches:

License.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Code Shayk
3+
Copyright (c) 2025 Code Shayk
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11

2-
# <img src="https://github.com/NinjaRocks/FeatureOne/blob/master/ninja-icon-16.png" alt="ninja" style="width:30px;"/> FeatureOne v5.0.0
2+
# <img src="https://github.com/NinjaRocks/FeatureOne/blob/master/ninja-icon-16.png" alt="ninja" style="width:30px;"/> FeatureOne v5.0.1
33
[![GitHub Release](https://img.shields.io/github/v/release/ninjarocks/FeatureOne?logo=github&sort=semver)](https://github.com/ninjarocks/FeatureOne/releases/latest)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/NinjaRocks/FeatureOne/blob/master/License.md) [![build-master](https://github.com/NinjaRocks/FeatureOne/actions/workflows/Build-Master.yml/badge.svg)](https://github.com/NinjaRocks/FeatureOne/actions/workflows/Build-Master.yml)
5-
[![CodeQL](https://github.com/NinjaRocks/FeatureOne/actions/workflows/codeql.yml/badge.svg)](https://github.com/NinjaRocks/FeatureOne/actions/workflows/codeql.yml) [![.Net](https://img.shields.io/badge/.Net-9.0-blue)](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
5+
[![CodeQL](https://github.com/NinjaRocks/FeatureOne/actions/workflows/codeql.yml/badge.svg)](https://github.com/NinjaRocks/FeatureOne/actions/workflows/codeql.yml)
6+
[![.Net](https://img.shields.io/badge/.Net_Framework-4.6.2-blue)](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net46)
7+
[![.Net](https://img.shields.io/badge/.Net_Standard-2.1-blue)](https://dotnet.microsoft.com/en-us/download/netstandard/2.1)
8+
[![.Net](https://img.shields.io/badge/.Net-9.0-blue)](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
69

710
.Net Library to implement feature toggles.
811
--

src/FeatureOne.File/FeatureOne.File.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net462;netstandard2.1;net9.0</TargetFrameworks>
55
<Nullable>disable</Nullable>
66
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
77
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
@@ -17,16 +17,16 @@
1717
<Company>Code Shayk</Company>
1818
<Product>FeatureOne</Product>
1919
<Description>.Net library to implement feature toggles with File system storage.</Description>
20-
<Copyright>Copyright (c) 2024 Code Shayk</Copyright>
20+
<Copyright>Copyright (c) 2025 Code Shayk</Copyright>
2121
<PackageReadmeFile>README.md</PackageReadmeFile>
2222
<RepositoryUrl>https://github.com/codeshayk/FeatureOne</RepositoryUrl>
2323
<RepositoryType>git</RepositoryType>
2424
<PackageTags>feature-toggle; feature-flag; feature-flags; feature-toggles; .net8.0; featureOne; File-system; File-Backend; File-Toggles;</PackageTags>
25-
<Version>5.0.0</Version>
25+
<Version>5.0.1</Version>
2626
<PackageLicenseFile>License.md</PackageLicenseFile>
2727
<PackageIcon>ninja-icon-16.png</PackageIcon>
2828
<PackageReleaseNotes>
29-
Release Notes v4.0.0. - Targets .Net 9.0
29+
Release Notes v5.0.1. - Targets .Net Framework 4.6.2, .NetStandard 2.1 and .Net 9.0
3030
Library to Implement Feature Toggles to hide/show program features with File system storage.
3131
- Provides Out of box Simple and Regex toggle conditions.
3232
- Provides Out of box support for File system storage provider to store toggles on disk file.

src/FeatureOne.SQL/FeatureOne.SQL.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net462;netstandard2.1;net9.0</TargetFrameworks>
55
<ImplicitUsings>disable</ImplicitUsings>
66
<Nullable>disable</Nullable>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
@@ -18,16 +18,16 @@
1818
<Company>Code Shayk</Company>
1919
<Product>FeatureOne</Product>
2020
<Description>.Net library to implement feature toggles with SQL storage.</Description>
21-
<Copyright>Copyright (c) 2024 Code Shayk</Copyright>
21+
<Copyright>Copyright (c) 2025 Code Shayk</Copyright>
2222
<PackageReadmeFile>README.md</PackageReadmeFile>
2323
<RepositoryUrl>https://github.com/CodeShayk/FeatureOne</RepositoryUrl>
2424
<RepositoryType>git</RepositoryType>
2525
<PackageTags>feature-toggle; feature-flag; feature-flags; feature-toggles; .net8.0; featureOne; SQL-Backend; SQL-Toggles; SQL</PackageTags>
26-
<Version>5.0.0</Version>
26+
<Version>5.0.1</Version>
2727
<PackageLicenseFile>License.md</PackageLicenseFile>
2828
<PackageIcon>ninja-icon-16.png</PackageIcon>
2929
<PackageReleaseNotes>
30-
Release Notes v5.0.0. - Targets .Net 9.0
30+
Release Notes v5.0.1. - Targets .Net Framework 4.6.2, .NetStandard 2.1 and .Net 9.0
3131
Library to Implement Feature Toggles to hide/show program features with SQL storage.
3232
- Supports configuring all Db providers - MSSQL, SQLite, ODBC, OLEDB, MySQL, PostgreSQL.
3333
- Provides Out of box Simple and Regex toggle conditions.

src/FeatureOne/Core/Toggle.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ public bool Run(IDictionary<string, string> claims)
2424
if (Conditions == null)
2525
return false;
2626

27-
claims ??= new Dictionary<string, string>();
27+
if (claims == null)
28+
{
29+
claims = new Dictionary<string, string>();
30+
}
2831

2932
return Operator == Operator.Any
3033
? Conditions.Any(x => x.Evaluate(claims))

src/FeatureOne/FeatureOne.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
5-
<ImplicitUsings>disable</ImplicitUsings>
6-
<Nullable>disable</Nullable>
4+
<TargetFrameworks>net462;netstandard2.1;net9.0</TargetFrameworks>
75
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
86
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
97
<GeneratedAssemblyInfoFile>AssemblyInfo.cs</GeneratedAssemblyInfoFile>
@@ -18,16 +16,16 @@
1816
<Company>Code Shayk</Company>
1917
<Product>FeatureOne</Product>
2018
<Description>.Net library to implement feature toggles.</Description>
21-
<Copyright>Copyright (c) 2024 Code Shayk</Copyright>
19+
<Copyright>Copyright (c) 2025 Code Shayk</Copyright>
2220
<PackageReadmeFile>README.md</PackageReadmeFile>
2321
<RepositoryUrl>https://github.com/CodeShayk/FeatureOne</RepositoryUrl>
2422
<RepositoryType>git</RepositoryType>
2523
<PackageTags>feature-toggle; feature-flag; feature-flags; feature-toggles; net8.0; featureOne</PackageTags>
26-
<Version>5.0.0</Version>
24+
<Version>5.0.1</Version>
2725
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
2826
<PackageIcon>ninja-icon-16.png</PackageIcon>
2927
<PackageReleaseNotes>
30-
Release Notes v5.0.0 Core Functionality :- Targets .Net 9.0
28+
Release Notes v5.0.1 Core Functionality :- Targets .Net Framework 4.6.2, .NetStandard 2.1 and .Net 9.0
3129
Library to Implement Feature Toggles to hide/show program features. Does not contain storage provider.
3230
- Provides Out of box Simple and Regex toggle conditions.
3331
- Provides extensibility for custom implementations ie.

src/FeatureOne/Json/ConditionDeserializer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.ComponentModel;
44
using System.Linq;
5-
using System.Net.WebSockets;
65
using System.Reflection;
76
using System.Text.Json;
87
using System.Text.Json.Nodes;

0 commit comments

Comments
 (0)