Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Messages/FIX40/QuickFix.FIX40.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX4.0 Messages</Title>
<PackageId>QuickFIXn.FIX40</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX41/QuickFix.FIX41.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX4.1 Messages</Title>
<PackageId>QuickFIXn.FIX41</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX42/QuickFix.FIX42.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX4.2 Messages</Title>
<PackageId>QuickFIXn.FIX42</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX43/QuickFix.FIX43.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX4.3 Messages</Title>
<PackageId>QuickFIXn.FIX43</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX44/QuickFix.FIX44.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX4.4 Messages</Title>
<PackageId>QuickFIXn.FIX44</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX50/QuickFix.FIX50.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX5.0 Messages</Title>
<PackageId>QuickFIXn.FIX50</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX50SP1/QuickFix.FIX50SP1.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX5.0 SP1 Messages</Title>
<PackageId>QuickFIXn.FIX50SP1</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIX50SP2/QuickFix.FIX50SP2.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIX5.0 SP2 Messages</Title>
<PackageId>QuickFIXn.FIX50SP2</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
2 changes: 1 addition & 1 deletion Messages/FIXT11/QuickFix.FIXT11.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n FIXT1.1 Messages</Title>
<PackageId>QuickFIXn.FIXT11</PackageId>
<PackageTitle>$(Title)</PackageTitle>
Expand Down
77 changes: 1 addition & 76 deletions QuickFIXn/Fields/Converters/DateTimeConverter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
Expand Down Expand Up @@ -547,81 +547,6 @@ public static string ToFIXTimeOnly(TimeOnly time, TimeStampPrecision precision)
public static string ToFIXTimeOnly(DateTime dt, TimeStampPrecision precision)
=> ToFIXTimeOnly(TimeOnly.FromDateTime(dt), precision);

[Obsolete("The 'precision' parameter is no longer needed. This form of the function will be deleted in v1.15.")]
public static DateTime ParseToTimeOnly(string str, TimeStampPrecision precision = TimeStampPrecision.Millisecond) {
return ParseToTimeOnly(str);
}

[Obsolete("Use ParseToDateTime(string str) instead. The 'precision' parameter is not needed. This function will be deleted in v1.15.")]
public static DateTime ConvertToDateTime(string str, TimeStampPrecision precision = TimeStampPrecision.Millisecond) {
return ParseToDateTime(str);
}

[Obsolete("Renamed to ParseToDateOnly(str). This is a legacy wrapper that will be deleted in v1.15.")]
public static DateTime ConvertToDateOnly(string str) {
return ParseToDateOnly(str);
}

[Obsolete("Renamed to ParseToTimeOnly(str, precision). This is a legacy wrapper that will be deleted in v1.15.")]
public static DateTime ConvertToTimeOnly(string str, TimeStampPrecision precision = TimeStampPrecision.Millisecond) {
return ParseToTimeOnly(str, precision);
}

/// <summary>
/// Converts the specified string to a <see cref="TimeSpan"/>.
/// The string must be in the format "HH:mm:ss" optionally followed by fractional seconds
/// and then optionally followed by UTC offset information.
/// </summary>
/// <param name="str">A <see cref="string"/> containing the characters that represent a time to convert.</param>
/// <returns>
/// A value representing the time in <paramref name="str"/>.
/// The value is unaffected by UTC offset information in <paramref name="str"/>.
/// For example, for the string "11:03:15 +05:30" the returned <see cref="TimeSpan"/> will be equivalent
/// to 11:03:15.
/// </returns>
/// <remarks>
/// This method supports parsing spans containing fractional seconds of arbitrary precision.
/// However, the conversion can be lossy since <see cref="TimeSpan"/> objects can only retain
/// fractional second precision to 100ns.
/// <br/><br/>
/// This method calls <see cref="ParseToTimeOnly(ReadOnlySpan{char}, out TimeSpan?)"/>
/// which returns a <see cref="TimeOnly"/>
/// and, when UTC offset information is present, a <see cref="TimeSpan"/> containing that information.
/// Consider calling the latter for flexibility.
/// </remarks>
/// <exception cref="FieldConvertError">The conversion cannot be performed successfully.</exception>
[Obsolete("QF/n doesn't use this, so it will be deleted in v1.15. Copy it into your own application if you need it.")]
public static TimeSpan ConvertToTimeSpan(string str) => ParseToTimeOnly(str, out _).ToTimeSpan();

[Obsolete("Use ToFIX(dt, precision) instead. This will be deleted in v1.15.")]
public static string Convert(DateTime dt, bool includeMilliseconds = true) {
return includeMilliseconds
? ToFIX(dt, TimeStampPrecision.Millisecond)
: ToFIX(dt, TimeStampPrecision.Second);
}

[Obsolete("Renamed to ToFIX(dt, precision). This is a legacy wrapper that will be deleted in v1.15.")]
public static string Convert(DateTime dt, TimeStampPrecision precision) {
return ToFIX(dt, precision);
}

[Obsolete("Renamed to ToFIXDateOnly(dt). This is a legacy wrapper that will be deleted in v1.15.")]
public static string ConvertDateOnly(DateTime dt) {
return ToFIXDateOnly(dt);
}

[Obsolete("Renamed to ToFixTimeOnly(dt, precision). This is a legacy wrapper that will be deleted in v1.15.")]
public static string ConvertTimeOnly(DateTime dt, TimeStampPrecision precision) {
return ToFIXTimeOnly(dt, precision);
}

[Obsolete("Use ToFIXTimeOnly(dt, precision) instead. This function will be deleted in v1.15.")]
public static string ConvertTimeOnly(DateTime dt, bool includeMilliseconds = true) {
return includeMilliseconds
? ToFIXTimeOnly(dt, TimeStampPrecision.Millisecond)
: ToFIXTimeOnly(dt, TimeStampPrecision.Second);
}

[Obsolete("Don't use this function, it probably doesn't do what you think it does. Will be removed in v1.16.")]
public static DateTime ParseToTimeOnly(string str) => InternalParseToTimeOnly(str);
}
3 changes: 0 additions & 3 deletions QuickFIXn/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public Parser(Encoding encoding)
_checkSumBytes = encoding.GetBytes('\u0001' + "10=");
}

[Obsolete("Use AddToStream(ReadOnlySpan<byte>) instead. This will be removed in v1.15")]
public void AddToStream(byte[] data, int bytesAdded) => AddToStream(new ReadOnlySpan<byte>(data, 0, bytesAdded));

public void AddToStream(ReadOnlySpan<byte> data)
{
// We attempt to copy the new bytes into the existing buffer.
Expand Down
2 changes: 1 addition & 1 deletion QuickFIXn/QuickFix.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<TargetFramework>net10.0</TargetFramework>
<Title>QuickFIX/n</Title>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
2 changes: 1 addition & 1 deletion QuickFIXn/SettingsDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public string GetString(string key)
throw new ConfigError($"No value for key: {key}");
}

[Obsolete("Will be removed in a future release because the engine doesn't use it")]
[Obsolete("This function will be removed in 1.16 (because it's unused)")]
public String GetString(string key, bool capitalize)
{
string s = GetString(key);
Expand Down
7 changes: 6 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ What's New
* **There are breaking changes between 1.10 and 1.11! Please review the 1.11.0 notes below.**


### next release (v1.14.1 or higher)
### v1.15.0
* #1021 - remove .NET 8 support; remove expired deprecations


### v1.14.1

* #841 - experimental support for CME Enhanced Resend (gbirchmeier)
* #961 - new GenerateKeys app to create Example-app SSL certs (dckorben/gbirchmeier)
* #1001 - AcceptanceTests bug: double.Parse with InvariantCulture (gbirchmeier)
Expand Down
Loading