Skip to content

Releases: PHPOffice/PhpSpreadsheet

2.1.1

29 Sep 07:37
Compare
Choose a tag to compare

2024-09-29 2.1.1

Fixed

  • Backported security patches.
  • Change to Csv Reader (see below under Deprecated). Backport of PR #4162 intended for 3.0.0. Issue #4161
  • Tweak to AMORDEGRC. Backport of PR #4164 intended for 3.0.0.

Changed

  • Images will not be added to spreadsheet if they cannot be validated as images.

Deprecated

  • Php8.4 will deprecate the escape parameter of fgetcsv. Csv Reader is affected by this; code is changed to be unaffected, but this will mean a breaking change is coming with Php9. Any code which uses the default escape value of backslash will fail in Php9. It is recommended to explicitly set the escape value to null string before then.

1.29.2

29 Sep 07:34
Compare
Choose a tag to compare

1.29.2 - 2024-09-29

Fixed

  • Backported security patches.
  • Support for Php8.4.
  • Change to Csv Reader (see below under Deprecated). Backport of PR #4162 intended for 3.0.0. Issue #4161
  • Tweaks to ROUNDUP, ROUNDDOWN, TRUNC, AMORDEGRC (results had been different under 8.4).

Changed

  • Images will not be added to spreadsheet if they cannot be validated as images.

Security Patch

04 Sep 02:44
Compare
Choose a tag to compare

1.29.1 - 2024-09-03

Fixed

  • Backported security patches from PR #4119 and PR #3957.

2.2.2

08 Aug 02:45
ffbcee6
Compare
Choose a tag to compare

Added

  • Nothing yet.

Changed

  • Nothing yet.

Deprecated

  • Nothing yet.

Moved

  • Nothing yet.

Fixed

2.2.1

29 Jul 07:57
2.2.1
a3c5c9e
Compare
Choose a tag to compare

Security Fix

  • Prevent XXE when loading files PR #4119

Fixed

2.2.0

24 Jul 13:28
b0993b7
Compare
Choose a tag to compare

2024-07-24 - 2.2.0

Added

  • Xlsx Reader Optionally Ignore Rows With No Cells. Issue #3982 PR #4035
  • Means to change style without affecting current cell/sheet. PR #4073
  • Option for CSV output file to have varying numbers of columns for each row. Issue #1415 PR #4076

Changed

  • On read, Xlsx Reader had been breaking up union ranges into separate individual ranges. It will now try to preserve range as it was read in. PR #4042
  • Xlsx/Xls spreadsheet calculation and formatting of dates will use base date of spreadsheet even when spreadsheets with different base dates are simultaneously open. Issue #1036 Issue #1635 PR #4071

Deprecated

  • Writer\Xls\Style\ColorMap is no longer needed.

Moved

  • Nothing

Fixed

2.1.0

11 May 04:18
2.1.0
dbed77b
Compare
Choose a tag to compare

MINOR BREAKING CHANGE

  • Writing of cell comments to Html will now sanitize all Html tags within the comment, so the tags will be rendered as plaintext and have no other effects when rendered. Styling can be achieved by using the Font property of of the TextRuns which make up the comment, as is already the cases for Xlsx. PR #3957

Added

  • Default Style Alignment Property (workaround for bug in non-Excel spreadsheet apps) Issue #3918 PR #3924
  • Additional Support for Date/Time Styles PR #3939

Changed

  • Nothing

Deprecated

  • Reader/Xml trySimpleXMLLoadString should not have had public visibility, and will be removed.

Removed

  • Nothing

Fixed

2.0.0

24 Jan 10:42
2.0.0
4a77798
Compare
Choose a tag to compare

BREAKING CHANGE

  • Typing was strengthened by leveraging native typing. This should not change any behavior. However, if you implement
    any interfaces or inherit from any classes, you will need to adapt your typing accordingly. If you use static analysis
    tools such as PHPStan or Psalm, new errors might be found. If you find actual bugs because of the new typing, please
    open a PR that fixes it with a detailed explanation of the reason. We'll try to merge and release typing-related
    fixes quickly in the coming days. PR #3718
  • All deprecated things have been removed, for details, see 816b91d0b4

Added

Changed

  • Drop support for PHP 7.4, according to https://phpspreadsheet.readthedocs.io/en/latest/#php-version-support PR #3713
  • RLM Added to NumberFormatter Currency. This happens depending on release of ICU which Php is using (it does not yet happen with any official release). PhpSpreadsheet will continue to use the value returned by Php, but a method is added to keep the result unchanged from release to release. Issue #3571 PR #3640
  • toFormattedString will now always return a string. This was introduced with 1.28.0, but was not properly documented at the time. This can affect the results of toArray, namedRangeToArray, and rangeToArray. PR #3304
  • Value of constants FORMAT_CURRENCY_EUR and FORMAT_CURRENCY_USD was changed in 1.28.0, but was not properly documented at the time. Issue #3577
  • Html Writer will attempt to use Chart coordinates to determine image size. Issue #3783 PR #3787

Deprecated

  • Functions _translateFormulaToLocale and _translateFormulaEnglish are replaced by versions without leading underscore. PR #3828

Removed

  • Nothing

Fixed

Read more

1.29.0

14 Jun 22:49
Compare
Choose a tag to compare

Added

  • Wizards for defining Number Format masks for Dates and Times, including Durations/Intervals. PR #3458
  • Specify data type in html tags. Issue #3444 PR #3445
  • Provide option to ignore hidden rows/columns in toArray() methods. PR #3494
  • Font/Effects/Theme support for Chart Data Labels and Axis. PR #3476
  • Font Themes support. PR #3486
  • Ability to Ignore Cell Errors in Excel. Issue #1141 PR #3508
  • Unzipped Gnumeric file PR #3591

Changed

  • Xlsx Color schemes read in will be written out (previously Excel 2007-2010 Color scheme was always written); manipulation of those schemes before write, including restoring prior behavior, is provided PR #3476
  • Memory and speed optimisations for Read Filters with Xlsx Files and Shared Formulae. PR #3474
  • Allow CellRange and CellAddress objects for the range argument in the rangeToArray() method. PR #3494
  • Stock charts will now read and reproduce upDownBars and subsidiary tags; these were previously ignored on read and hard-coded on write. PR #3515

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

1.28.0

25 Feb 12:25
Compare
Choose a tag to compare

1.28.0 - 2023-02-25

Added

  • Support for configuring a Chart Title's overlay PR #3325
  • Wizards for defining Number Format masks for Numbers, Percentages, Scientific, Currency and Accounting PR #3334
  • Support for fixed value divisor in fractional Number Format Masks PR #3339
  • Allow More Fonts/Fontnames for Exact Width Calculation PR #3326 Issue #3190
  • Allow override of the Value Binder when setting a Cell value PR #3361

Changed

  • Improved handling for @ placeholder in Number Format Masks PR #3344
  • Improved handling for ? placeholder in Number Format Masks PR #3394
  • Improved support for locale settings and currency codes when matching formatted strings to numerics in the Calculation Engine PR #3373 and PR #3374
  • Improved support for locale settings and matching in the Advanced Value Binder PR #3376

Deprecated

  • Rationalisation of Pre-defined Currency Format Masks

Removed

  • Nothing

Fixed