Skip to content

Commit 39b2005

Browse files
authored
Merge pull request #126 from ghiscoding/chore/deps-2025-09-26
fix(deps): update all dependencies
2 parents 7bf0a58 + df7820b commit 39b2005

File tree

7 files changed

+505
-415
lines changed

7 files changed

+505
-415
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
fail-fast: false
22-
matrix:
23-
node: [20]
2422

2523
steps:
2624
- name: Retrieve current Date Time in EST
@@ -38,7 +36,7 @@ jobs:
3836
- name: Set NodeJS
3937
uses: actions/setup-node@v4
4038
with:
41-
node-version: ${{ matrix.node }}
39+
node-version: 24
4240

4341
- name: Install pnpm
4442
uses: pnpm/action-setup@v3

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
},
5656
"packageManager": "[email protected]",
5757
"devDependencies": {
58-
"@biomejs/biome": "^2.2.3",
59-
"@lerna-lite/cli": "^4.7.3",
60-
"@lerna-lite/publish": "^4.7.3",
61-
"@types/node": "^24.3.1",
58+
"@biomejs/biome": "^2.2.4",
59+
"@lerna-lite/cli": "^4.9.0",
60+
"@lerna-lite/publish": "^4.9.0",
61+
"@types/node": "^24.5.2",
6262
"@vitest/coverage-v8": "^3.2.4",
6363
"conventional-changelog-conventionalcommits": "^9.1.0",
6464
"happy-dom": "^18.0.1",

packages/excel-builder-vanilla-types/dist/index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,15 +1035,15 @@ export type InferOutputByType<T extends "Blob" | "Uint8Array"> = T extends "Blob
10351035
*/
10361036
export declare function createWorkbook(): Workbook;
10371037
/**
1038-
* Turns a workbook into a downloadable file, you can between a 'Blob' or 'Uint8Array',
1039-
* and if nothing is provided then 'Blob' will be the default
1038+
* Turns a Workbook into a downloadable file, you can switch output type a `Blob` or `Uint8Array`,
1039+
* and if nothing is provided then `Blob` is the default output type.
10401040
* @param {Excel/Workbook} workbook - The workbook that is being converted
10411041
* @param {'Uint8Array' | 'Blob'} [outputType='Blob'] - defaults to 'Blob'
10421042
* @param {Object} [options]
10431043
* - `fileFormat` defaults to "xlsx"
1044-
* - `mimeType`: a mime type can be provided by the user or auto-detect the mime when undefined (by file extension .xls/.xlsx)
1044+
* - `mimeType`: a mime type can be provided by the user or auto-detect the mime when undefined (by file extension `.xls`/`.xlsx`)
10451045
* (user can pass an empty string to completely cancel the mime type altogether)
1046-
* - `zipOptions` to specify any `fflate` options to modify how the zip is created.
1046+
* - `zipOptions` to specify any `fflate` options to modify how the zip will be created.
10471047
* @returns {Promise}
10481048
*/
10491049
export declare function createExcelFile<T extends "Blob" | "Uint8Array" = "Blob">(workbook: Workbook, outputType?: T, options?: {
@@ -1053,11 +1053,11 @@ export declare function createExcelFile<T extends "Blob" | "Uint8Array" = "Blob"
10531053
}): Promise<InferOutputByType<T>>;
10541054
/**
10551055
* Download Excel file, currently only supports a "browser" as `downloadType`
1056-
* but it could be expended in the future to also other type of platform like NodeJS for example.
1056+
* but it could be expended in the future to also support other type of platforms like NodeJS for example.
10571057
* @param {Workbook} workbook
1058-
* @param {String} filename - filename (must also include file extension, xls/xlsx)
1058+
* @param {String} filename - filename (must also include file extension: `.xls` or `.xlsx`)
10591059
* @param {Object} [options]
1060-
* - `downloadType`: download type (browser/node), currently only a "browser" download as a Blob
1060+
* - `downloadType`: download type ('browser' / 'node'), currently only supports "browser" download as a Blob
10611061
* - `mimeType`: a mime type can be provided by the user or auto-detect the mime when undefined (by file extension .xls/.xlsx)
10621062
* (user can pass an empty string to completely cancel the mime type altogether)
10631063
* - `zipOptions` to specify any `fflate` options to modify how the zip is created.

packages/excel-builder-vanilla/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
},
6060
"devDependencies": {
6161
"dts-bundle-generator": "^9.5.1",
62-
"native-copyfiles": "^1.3.5",
62+
"native-copyfiles": "^1.3.6",
6363
"remove-glob": "catalog:",
6464
"typescript": "catalog:",
6565
"vite": "catalog:"
6666
}
67-
}
67+
}

packages/excel-builder-vanilla/src/streaming.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ export interface ExcelFileStreamOptions {
1616
* Yields zipped chunks for browser (ReadableStream) or NodeJS (async generator).
1717
*/
1818
export function createExcelFileStream(workbook: Workbook, options?: ExcelFileStreamOptions) {
19-
const isBrowser = typeof window !== 'undefined' && typeof window.ReadableStream !== 'undefined';
20-
const isNode = typeof process !== 'undefined' && process.versions?.node;
21-
if (isBrowser) {
22-
return browserExcelStream(workbook, options);
19+
if (typeof window !== 'undefined' && typeof window.ReadableStream !== 'undefined') {
20+
return browserExcelStream(workbook, options); // Browser environment
2321
}
24-
if (isNode) {
25-
return nodeExcelStream(workbook, options);
22+
if (typeof process !== 'undefined' && process.versions?.node) {
23+
return nodeExcelStream(workbook, options); // NodeJS environment
2624
}
2725
throw new Error('Streaming is only supported in browser or NodeJS environments.');
2826
}

0 commit comments

Comments
 (0)