Skip to content

Commit 910c9fa

Browse files
committed
Prepare for npm v12
1 parent eb76f9d commit 910c9fa

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.changeset/grumpy-beers-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apostrophecms/import-export-xlsx": minor
3+
---
4+
5+
Replaced the off-registry SheetJS `xlsx` tarball dependency with the registry-published `@e965/xlsx` mirror, which exposes the same SheetJS Community Edition API. The module now installs entirely from the npm registry, avoiding install failures on networks restricted to the registry and the npm v12 restriction on non-registry (remote tarball) sources.

packages/import-export-xlsx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
This module improves [@apostrophecms/import-export](https://github.com/apostrophecms/import-export) by adding the `xlsx` format.
1919

20-
> Why does this specific format lies in another module?
20+
> Why does this specific format live in another module?
2121
22-
Because it relies on a [dependency that is not hosted on NPM](https://github.com/SheetJS/sheetjs/issues/2667), which could lead to installation issues on networks that limit connections to NPM repository only.
22+
Historically because it relied on a [dependency that was not hosted on NPM](https://github.com/SheetJS/sheetjs/issues/2667). It now depends on [`@e965/xlsx`](https://www.npmjs.com/package/@e965/xlsx), a registry-published mirror of SheetJS Community Edition with the same API, so it installs from the npm registry like any other module. The format remains in its own module for backwards compatibility.
2323

2424
## Requirement
2525

packages/import-export-xlsx/lib/xlsx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const XLSX = require('xlsx');
1+
const XLSX = require('@e965/xlsx');
22

33
module.exports = {
44
label: 'XLSX',

packages/import-export-xlsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"stylelint-config-apostrophe": "workspace:^"
2525
},
2626
"dependencies": {
27-
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
27+
"@e965/xlsx": "^0.20.3"
2828
}
2929
}

0 commit comments

Comments
 (0)