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
10 changes: 0 additions & 10 deletions .changeset/external-targets.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "vitest run"
},
"dependencies": {
"javascript-excel": "2.5.0"
"javascript-excel": "2.6.0"
},
"devDependencies": {
"happy-dom": "21.0.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"check": "tsc -p tsconfig.json"
},
"dependencies": {
"javascript-excel": "2.5.0"
"javascript-excel": "2.6.0"
},
"devDependencies": {
"@types/node": "22.20.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"check": "tsc -p tsconfig.json"
},
"dependencies": {
"javascript-excel": "2.5.0",
"javascript-excel": "2.6.0",
"react": "19.3.1",
"react-dom": "19.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"check": "tsc -p tsconfig.json"
},
"dependencies": {
"javascript-excel": "2.5.0"
"javascript-excel": "2.6.0"
},
"devDependencies": {
"@types/node": "22.20.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"check": "tsc -p tsconfig.json"
},
"dependencies": {
"javascript-excel": "2.5.0"
"javascript-excel": "2.6.0"
},
"devDependencies": {
"typescript": "7.0.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"check": "tsc -p tsconfig.json"
},
"dependencies": {
"javascript-excel": "2.5.0",
"javascript-excel": "2.6.0",
"vue": "3.5.45"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions packages/javascript-excel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# javascript-excel

## 2.6.0

### Minor Changes

- e6012a0: `read`, `inspect` and `importDataset` now report relationships to targets outside the file (JSE-85), failing closed. Every relationship in any relationships part of the package (root, workbook, sheets, drawings, charts, external links, any other) that is not a hyperlink and that is external (`TargetMode="External"`, any letter case), whatever its kind, gives one `UNSUPPORTED_PART` warning with the new `partKind` `'externalTarget'`. Example: a linked picture, an `image` relationship of a drawing with an `http(s)`, UNC (`\\host\share\…`) or `file:` target, which Excel fetches when the file is opened (a tracking beacon; a UNC target can send the user's NTLM credentials to that host). Before, nothing reported it. Relationships already reported as another kind are reported here too: a linked OLE object gives `'oleObject'` and `'externalTarget'`, an external link `'externalLink'` and, for its path, `'externalTarget'`. Also reported, while the model still reads the target as a part name as before:
- a `TargetMode` that is neither `Internal` nor `External` (`" External"`, `"1"`, `""`, …);
- a second, namespace-prefixed or differently cased `TargetMode`;
- an internal target, or a second, prefixed or differently cased `Target` attribute, that starts with a URI scheme (after leading whitespace) or `//`, or contains a backslash.

Hyperlinks are never reported. The warning's `part` is the first relationships part that holds one, `parts` lists every such relationships part once (bounded by `maxEntries`), and the new `relationshipTypes` field gives the first 16 distinct relationship types, excerpted. Targets are never included, resolved or fetched, and any number of such relationships is one warning. No new refusals: files that read in 2.5.0 still read, with at most this one more warning. `ExcelPartKind` gains `'externalTarget'` (a `switch` over it needs a `default` branch, as documented) and `ExcelWarning` gains the optional `relationshipTypes`. Files this library writes have none: their hyperlinks are not reported.

## 2.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/javascript-excel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "javascript-excel",
"version": "2.5.0",
"version": "2.6.0",
"private": false,
"description": "Read and write .xlsx and .csv files in browsers, Web Workers and Node. 2.0 is a from-scratch rewrite in progress.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/javascript-excel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ export { decodeCell, decodeCol, decodeRange, encodeCell, encodeCol, encodeRange,
export type { CellAddress, RangeAddress } from "./address";

/** Package version. Set from package.json by `npm run version-packages` (scripts/sync-version.mjs); a unit test checks it. */
export const VERSION = "2.5.0";
export const VERSION = "2.6.0";