read-excel-file 5.2.24 → 5.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +6 -3
  2. package/README.md +3 -3
  3. package/bundle/read-excel-file.min.js +1 -1
  4. package/bundle/read-excel-file.min.js.map +1 -1
  5. package/commonjs/read/coordinates.js +4 -2
  6. package/commonjs/read/coordinates.js.map +1 -1
  7. package/commonjs/read/getData.js +18 -7
  8. package/commonjs/read/getData.js.map +1 -1
  9. package/commonjs/read/parseCellValue.js +29 -5
  10. package/commonjs/read/parseCellValue.js.map +1 -1
  11. package/commonjs/read/parseDimensions.js +9 -2
  12. package/commonjs/read/parseDimensions.js.map +1 -1
  13. package/commonjs/read/parseSheet.js +3 -1
  14. package/commonjs/read/parseSheet.js.map +1 -1
  15. package/commonjs/read/readSheetNamesBrowser.js +26 -0
  16. package/commonjs/read/readSheetNamesBrowser.js.map +1 -0
  17. package/commonjs/read/readSheetNamesNode.js +26 -0
  18. package/commonjs/read/readSheetNamesNode.js.map +1 -0
  19. package/commonjs/read/readSheetNamesNode.test.js.map +1 -0
  20. package/commonjs/read/readSheetNamesWebWorker.js +26 -0
  21. package/commonjs/read/readSheetNamesWebWorker.js.map +1 -0
  22. package/index.commonjs.js +1 -0
  23. package/index.d.ts +7 -0
  24. package/index.js +1 -0
  25. package/modules/read/coordinates.js +3 -2
  26. package/modules/read/coordinates.js.map +1 -1
  27. package/modules/read/getData.js +18 -7
  28. package/modules/read/getData.js.map +1 -1
  29. package/modules/read/parseCellValue.js +29 -5
  30. package/modules/read/parseCellValue.js.map +1 -1
  31. package/modules/read/parseDimensions.js +10 -3
  32. package/modules/read/parseDimensions.js.map +1 -1
  33. package/modules/read/parseSheet.js +3 -1
  34. package/modules/read/parseSheet.js.map +1 -1
  35. package/modules/read/readSheetNamesBrowser.js +17 -0
  36. package/modules/read/readSheetNamesBrowser.js.map +1 -0
  37. package/modules/read/readSheetNamesNode.js +17 -0
  38. package/modules/read/readSheetNamesNode.js.map +1 -0
  39. package/modules/read/readSheetNamesNode.test.js.map +1 -0
  40. package/modules/read/readSheetNamesWebWorker.js +17 -0
  41. package/modules/read/readSheetNamesWebWorker.js.map +1 -0
  42. package/node/index.commonjs.js +1 -0
  43. package/node/index.d.ts +7 -0
  44. package/node/index.js +1 -0
  45. package/package.json +1 -1
  46. package/web-worker/index.commonjs.js +1 -0
  47. package/web-worker/index.d.ts +7 -0
  48. package/web-worker/index.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,14 +1,17 @@
1
1
  <!--
2
2
  6.0.0 / xx.xx.xxxx
3
3
  ==================
4
-
5
- * Added [TypeScript](https://github.com/catamphetamine/read-excel-file/issues/71) definitions.
6
4
  -->
7
5
 
6
+ 5.2.25 / 19.11.2021
7
+ ==================
8
+
9
+ * [Fixed](https://github.com/catamphetamine/read-excel-file/issues/102) skipping empty rows and columns at the start.
10
+
8
11
  5.2.22 / 11.11.2021
9
12
  ==================
10
13
 
11
- * [Added](https://github.com/catamphetamine/read-excel-file/issues/100) `/web-worker` export
14
+ * [Added](https://github.com/catamphetamine/read-excel-file/issues/100) `/web-worker` export.
12
15
 
13
16
  5.2.11 / 08.10.2021
14
17
  ==================
package/README.md CHANGED
@@ -320,11 +320,11 @@ readXlsxFile(file, { sheet: 'Sheet1' }).then((data) => {
320
320
 
321
321
  By default, `options.sheet` is `1`.
322
322
 
323
- To get the list of all sheets, pass `getSheets: true` option:
323
+ To get the names of all sheets, use `readSheetNames()` function:
324
324
 
325
325
  ```js
326
- readXlsxFile(file, { getSheets: true }).then((sheets) => {
327
- // sheets === [{ name: 'Sheet1' }, { name: 'Sheet2' }]
326
+ readSheetNames(file).then((sheetNames) => {
327
+ // sheetNames === ['Sheet1', 'Sheet2']
328
328
  })
329
329
  ```
330
330