CoreXLSX v0.11.0 Release Notes
Release Date: 2020-05-30 // almost 4 years ago-
๐ This is a feature release that enables compatibility with CryptoOffice for decrypting spreadsheets. Additionally, with 0.11.0 you can easily get worksheet names with a new
parseWorksheetPathsAndNames
function onXLSXFile
and get rich text values from cells with a newrichStringValue
function onCell
.โก๏ธ Due to technical issues, Swift 5.0 CI job for Linux has been removed, so compatibility with Swift 5.0 on Linux can no longer be guaranteed. While CoreXLSX may continue to work with Swift 5.0 on Linux, please update to Swift 5.1 or later to avoid unexpected issues.
๐ Thanks to @kobylyanets and @duodo2412 for their contributions to this release!
๐ New APIs:
XLSXFile
now provides a new initializer that takes an argument ofData
type. This allows opening in-memory documents, the primary example being spreadsheets decrypted with CryptoOffice.๐
XLSXFile
now has a newparseWorksheetPathsAndNames
function that returns an array of worksheet names and their paths in a given workbook, while previously you had to useparseWorksheetPaths
and match paths manually with results of theparseWorkbooks
function.๐
Cell
now has arichStringValue
function that takes a result of theXLSXFile.parseSharedStrings
function and produces an array ofRichText
values. This makes it easier to query rich text content from cells, while previously you had to match cell values againstSharedStrings
manually.๐ฅ Breaking change:
๐ Due to the introduction of the new
XLSXFile.init(data:)
initializer, thefilepath
property onXLSXFile
no longer makes sense. This property was not used internally in any way and in-memory files don't have any filepaths. If you need to refer to a filepath of an.xlsx
file after you've parsed from your filesystem, you should retain it manually and process it separately as you see fit.Closed issues:
- API for matching sheet names to sheet paths (#105)
๐ Merged pull requests:
- โฌ๏ธ Bump XMLCoder dependency to 0.11.1 (#112) via @MaxDesiatov
- โ Add data XLSXFile.init, remove filepath property (#111) via @MaxDesiatov
- โ Add func parseWorksheetPathsAndNames on XLSXFile (#109) via @MaxDesiatov
- โฌ๏ธ Drop support for Swift 5.0 on Linux (#110) via @MaxDesiatov
- โ Add ability to get cell value as RichText (#106) via @kobylyanets