Skip to content

Commit

Permalink
EPPlus version 7.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKallman committed Feb 6, 2025
1 parent bb65589 commit 55f5fce
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 16 deletions.
10 changes: 5 additions & 5 deletions appveyor7.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
version: 7.5.3.{build}
version: 7.6.0.{build}
branches:
only:
- develop7
configuration: release
image: Visual Studio 2022
init:
- ps: >-
Update-AppveyorBuild -Version "7.5.3.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
Update-AppveyorBuild -Version "7.6.0.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
Write-Host "7.5.3.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
Write-Host "7.6.0.$env:appveyor_build_number-$(Get-Date -format yyyyMMdd)-$env:appveyor_repo_branch"
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
assembly_version: 7.5.3.{build}
file_version: 7.5.3.{build}
assembly_version: 7.6.0.{build}
file_version: 7.6.0.{build}
nuget:
project_feed: true
before_build:
Expand Down
15 changes: 14 additions & 1 deletion docs/articles/breakingchanges.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,17 @@ Misspelled property `ExcelIgnoreError.CalculatedColumm` has been renamed `Calcul
* Removed implementation of IParsingLifetimeEventHandler.ParsingCompleted in the ParsingContext class.

### Breaking change from EPPlus 7.5.2
Renaming worksheet's will now change the formula correctly to include single quotes for the worksheet name if necessary.
Renaming worksheet's will now change the formula correctly to include single quotes for the worksheet name if necessary.

### Breaking changes from EPPlus 7.6.0
* Altering the worksheets collection when iterating it using IEnumerable, now throws an InvalidOperationException.
### Breaking changes from EPPlus 8.0
* Set ExcelPackageSettings.ApplyFiltersOnSave default value to false.
* RichText now returns font name, size and font family from cell style if not set.
* Fixed spelling error in ExcelDrawingGradientFillLinearSettings. `public double Angel` is now `public double Angle`
* Removed reference to EPPlus.System.Drawing for primary image and text handlers. The generic handler is now used for all target frameworks.
You can still use these handlers by referencing the EPPlus.System.Drawing handlers nuget package and use the 'SystemDrawingTextMeasurer' or 'SystemDrawingImageHandler' classes as primary handler.
Also see https://github.com/EPPlusSoftware/EPPlus/wiki/Autofit-columns
#### Removed Methods & Properties
* ExcelVbaReferenceControl.LibIdExternal, please use LibIdExtended instead.

12 changes: 12 additions & 0 deletions docs/articles/fixedissues.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Features / Fixed issues - EPPlus 7
## Version 7.6.0
* Added target framework .NET 9.
* Removed out of support frameworks, .NET 6 and .NET 7.
* Fixed an issue handling formulas when sorting a range.
* Insert row in table caused corrupt workbook.
* A workbook could lose styles if the ExcelPackage.FullPrecision property was set.
* When copying a worksheet, drawings would be resized after inserting rows. This was caused by drawings being copied before styles and therefore drawings would not be aware of any styles.
* Set Active Tab did not work correctly, if 'CompatibilitySettings.IsWorksheet1Based' was set to true.
* Fixed "Part already exist" error when copying images between workbooks that already have images.
* Fixed another issue when copying ExcelPicture’s between workbooks.
* Iteration of worksheets indexed incorrectly in rare cases. EPPlus now throws an InvalidOperationException, if the collection has been altered under an enumerable operation.

## Version 7.5.3
* Improved COUNTIF performance, if full column addresses was used.
* If having a workbook with no reference to a font in the styles.xml, caused an corrupt workbook.
Expand Down
19 changes: 16 additions & 3 deletions src/EPPlus/Core/ChangableDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ internal void InsertAndShift(int fromPosition, int add)
{
_index[0][i] += add;
}
Version++;
}

internal int Count { get { return _count; } }

internal int Count { get { return _count; } }
/// <summary>
/// To keep track of if the collection has changed. Must be increased on each change operation.
/// </summary>
internal int Version { get; private set; }
public void Add(int key, T value)
{
var pos = Array.BinarySearch(_index[0], 0, _count, key);
Expand All @@ -85,6 +89,7 @@ public void Add(int key, T value)
_index[0][pos] = key;
_index[1][pos] = _items.Count;
_items.Add(value);
Version++;
}

internal void Move(int fromPosition, int toPosition, bool before)
Expand All @@ -106,6 +111,7 @@ internal void Move(int fromPosition, int toPosition, bool before)
}
_index[0][insertPos] = insertPos;
_index[1][insertPos] = listItem;
Version++;
}

public void Clear()
Expand All @@ -114,6 +120,7 @@ public void Clear()
_index[0] = new int[_defaultSize];
_index[1] = new int[_defaultSize];
_items = new List<T>();
Version=0;
}

public bool ContainsKey(int key)
Expand All @@ -130,7 +137,6 @@ public bool RemoveAndShift(int key)
{
return RemoveAndShift(key, true);
}

private bool RemoveAndShift(int key, bool dispose)
{
var pos = Array.BinarySearch(_index[0], 0, _count, key);
Expand All @@ -152,6 +158,7 @@ private bool RemoveAndShift(int key, bool dispose)
{
_index[0][i]--;
}
Version++;
return true;
}
return false;
Expand Down Expand Up @@ -179,15 +186,21 @@ IEnumerator IEnumerable.GetEnumerator()
internal class ChangeableDictionaryEnumerator<T> : IEnumerator<T>
{
int _index=-1;
int _initVersion;
ChangeableDictionary<T> _ts;
public ChangeableDictionaryEnumerator(ChangeableDictionary<T> ts)
{
_ts = ts;
_initVersion = ts.Version;
}
public T Current
{
get
{
if (_ts.Version != _initVersion)
{
throw new InvalidOperationException("Collection was modified; enumeration operation can not execute.");
}
if (_index >= _ts._count)
{
return default(T);
Expand Down
19 changes: 12 additions & 7 deletions src/EPPlus/EPPlus.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net9.0;net8.0;netstandard2.1;netstandard2.0;net462;net35</TargetFrameworks>
<AssemblyVersion>7.5.3.0</AssemblyVersion>
<FileVersion>7.5.3.0</FileVersion>
<Version>7.5.3</Version>
<AssemblyVersion>7.6.0.0</AssemblyVersion>
<FileVersion>7.6.0.0</FileVersion>
<Version>7.6.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://epplussoftware.com</PackageProjectUrl>
<Authors>EPPlus Software AB</Authors>
Expand All @@ -18,21 +18,25 @@
<PackageReadmeFile>readme.md</PackageReadmeFile>
<Copyright>EPPlus Software AB</Copyright>
<PackageReleaseNotes>
EPPlus 7.5.3
EPPlus 7.6.0

IMPORTANT NOTICE!
From version 5 EPPlus changes the license model using a dual license, Polyform Non Commercial / Commercial license.
EPPlus will still have the source available, but for non Polyform NC compliant projects, EPPlus will provide a commercial license.
Commercial licenses can be purchased from https://epplussoftware.com
This applies to EPPlus version 5 and later. Earlier versions are still licensed LGPL.

## Version 7.5.3
## Version 7.6.0
* Added target framework .NET 9. Removed out of support versions, .NET 6 and .NET 7.
* Minor features and bug fixes. See https://epplussoftware.com/en/Developers/MinorFeaturesAndIssues

## Version 7.5.3
* Minor features and bug fixes.

## Version 7.5.2
* Pivot tables could crash
* Pivot tables could crash
* Reading linked images was failed if a relation attribute existed but did not have a value.
* Minor features and bug fixes.
* Minor features and bug fixes.

## Version 7.5.1
* Minor features and bug fixes.
Expand Down Expand Up @@ -447,6 +451,7 @@
A list of fixed issues can be found here https://epplussoftware.com/docs/7.0/articles/fixedissues.html

Version history
7.6.0 20250206 Updated target frameworks. Minor features and bug fixes.
7.5.3 20250116 Minor features and bug fixes.
7.5.2 20241209 Minor features and bug fixes.
7.5.1 20241121 Minor features and bug fixes.
Expand Down

0 comments on commit 55f5fce

Please sign in to comment.