提交 7d15f35e 编写于 作者: S SheetJS

version bump 0.11.0: new minified versions

- build script strips `require` statements
- finally every version is pinned (see #740 h/t @the-spyke)
- removed colloquialisms in README
上级 ce37f99e
...@@ -4,6 +4,10 @@ This log is intended to keep track of backwards-incompatible changes, including ...@@ -4,6 +4,10 @@ This log is intended to keep track of backwards-incompatible changes, including
but not limited to API changes and file location changes. Minor behavioral but not limited to API changes and file location changes. Minor behavioral
changes may not be included if they are not expected to break existing code. changes may not be included if they are not expected to break existing code.
## 0.11.0 (2017-07-31)
* Strip `require` statements from minified version
* minifier mangler enabled
## 0.10.9 (2017-07-28) ## 0.10.9 (2017-07-28)
......
...@@ -14,7 +14,7 @@ FLOWTARGET=$(LIB).flow.js ...@@ -14,7 +14,7 @@ FLOWTARGET=$(LIB).flow.js
FLOWAUX=$(patsubst %.js,%.flow.js,$(AUXTARGETS)) FLOWAUX=$(patsubst %.js,%.flow.js,$(AUXTARGETS))
AUXSCPTS=xlsxworker1.js xlsxworker2.js xlsxworker.js AUXSCPTS=xlsxworker1.js xlsxworker2.js xlsxworker.js
FLOWTGTS=$(TARGET) $(AUXTARGETS) $(AUXSCPTS) FLOWTGTS=$(TARGET) $(AUXTARGETS) $(AUXSCPTS)
UGLIFYOPTS=--support-ie8 UGLIFYOPTS=--support-ie8 -m
CLOSURE=/usr/local/lib/node_modules/google-closure-compiler/compiler.jar CLOSURE=/usr/local/lib/node_modules/google-closure-compiler/compiler.jar
## Main Targets ## Main Targets
...@@ -52,13 +52,13 @@ init: ## Initial setup for development ...@@ -52,13 +52,13 @@ init: ## Initial setup for development
.PHONY: dist .PHONY: dist
dist: dist-deps $(TARGET) bower.json ## Prepare JS files for distribution dist: dist-deps $(TARGET) bower.json ## Prepare JS files for distribution
cp $(TARGET) dist/ <$(TARGET) sed "s/require('stream')/{}/g;s/require('.*')/null/g" > dist/$(TARGET)
cp LICENSE dist/ cp LICENSE dist/
uglifyjs $(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)" uglifyjs dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).min.js --source-map dist/$(LIB).min.map --preamble "$$(head -n 1 bits/00_header.js)"
misc/strip_sourcemap.sh dist/$(LIB).min.js misc/strip_sourcemap.sh dist/$(LIB).min.js
uglifyjs $(REQS) $(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map dist/$(LIB).core.min.map --preamble "$$(head -n 1 bits/00_header.js)" uglifyjs $(REQS) dist/$(TARGET) $(UGLIFYOPTS) -o dist/$(LIB).core.min.js --source-map dist/$(LIB).core.min.map --preamble "$$(head -n 1 bits/00_header.js)"
misc/strip_sourcemap.sh dist/$(LIB).core.min.js misc/strip_sourcemap.sh dist/$(LIB).core.min.js
uglifyjs $(REQS) $(ADDONS) $(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map dist/$(LIB).full.min.map --preamble "$$(head -n 1 bits/00_header.js)" uglifyjs $(REQS) $(ADDONS) dist/$(TARGET) $(AUXTARGETS) $(UGLIFYOPTS) -o dist/$(LIB).full.min.js --source-map dist/$(LIB).full.min.map --preamble "$$(head -n 1 bits/00_header.js)"
misc/strip_sourcemap.sh dist/$(LIB).full.min.js misc/strip_sourcemap.sh dist/$(LIB).full.min.js
cat <(head -n 1 bits/00_header.js) $(REQS) $(ADDONS) $(TARGET) $(AUXTARGETS) > demos/requirejs/$(LIB).full.js cat <(head -n 1 bits/00_header.js) $(REQS) $(ADDONS) $(TARGET) $(AUXTARGETS) > demos/requirejs/$(LIB).full.js
......
...@@ -235,7 +235,7 @@ Excel 2007, nothing outside of SheetJS or Excel supported the format. ...@@ -235,7 +235,7 @@ Excel 2007, nothing outside of SheetJS or Excel supported the format.
To promote a format-agnostic view, js-xlsx starts from a pure-JS representation To promote a format-agnostic view, js-xlsx starts from a pure-JS representation
that we call the ["Common Spreadsheet Format"](#common-spreadsheet-format). that we call the ["Common Spreadsheet Format"](#common-spreadsheet-format).
Emphasizing a uniform object representation enables radical features like format Emphasizing a uniform object representation enables new features like format
conversion (e.g. reading an XLSX template and saving as XLS) and circumvents the conversion (e.g. reading an XLSX template and saving as XLS) and circumvents the
"class trap". By abstracting the complexities of the various formats, tools "class trap". By abstracting the complexities of the various formats, tools
need not worry about the specific file type! need not worry about the specific file type!
...@@ -440,7 +440,7 @@ On Windows XP and up you can get the base64 encoding using `certutil`: ...@@ -440,7 +440,7 @@ On Windows XP and up you can get the base64 encoding using `certutil`:
The most common and interesting formats (XLS, XLSX/M, XLSB, ODS) are ultimately The most common and interesting formats (XLS, XLSX/M, XLSB, ODS) are ultimately
ZIP or CFB containers of files. Neither format puts the directory structure at ZIP or CFB containers of files. Neither format puts the directory structure at
the beginning of the file: ZIP files place the Central Directory records at the the beginning of the file: ZIP files place the Central Directory records at the
end of the logical file, while CFB files can place the FAT structure anywhere in end of the logical file, while CFB files can place the storage info anywhere in
the file! As a result, to properly handle these formats, a streaming function the file! As a result, to properly handle these formats, a streaming function
would have to buffer the entire file before commencing. That belies the would have to buffer the entire file before commencing. That belies the
expectations of streaming, so we do not provide any streaming read API. expectations of streaming, so we do not provide any streaming read API.
...@@ -1517,7 +1517,7 @@ The exported `write` and `writeFile` functions accept an options argument: ...@@ -1517,7 +1517,7 @@ The exported `write` and `writeFile` functions accept an options argument:
in this README may not be serialized. in this README may not be serialized.
- `cellDates` only applies to XLSX output and is not guaranteed to work with - `cellDates` only applies to XLSX output and is not guaranteed to work with
third-party readers. Excel itself does not usually write cells with type `d` third-party readers. Excel itself does not usually write cells with type `d`
so non-Excel tools may ignore the data or blow up in the presence of dates. so non-Excel tools may ignore the data or error in the presence of dates.
- `Props` is an object mirroring the workbook `Props` field. See the table from - `Props` is an object mirroring the workbook `Props` field. See the table from
the [Workbook File Properties](#workbook-file-properties) section. the [Workbook File Properties](#workbook-file-properties) section.
- if specified, the string from `themeXLSX` will be saved as the primary theme - if specified, the string from `themeXLSX` will be saved as the primary theme
...@@ -1998,7 +1998,7 @@ standard, instead focusing on parts necessary to extract and store raw data. ...@@ -1998,7 +1998,7 @@ standard, instead focusing on parts necessary to extract and store raw data.
UOS is a very similar format, and it comes in 2 varieties corresponding to ODS UOS is a very similar format, and it comes in 2 varieties corresponding to ODS
and FODS respectively. For the most part, the difference between the formats and FODS respectively. For the most part, the difference between the formats
lies in the names of tags and attributes. is in the names of tags and attributes.
</details> </details>
...@@ -2124,7 +2124,7 @@ Start a local server and navigate to that directory to run the tests. ...@@ -2124,7 +2124,7 @@ Start a local server and navigate to that directory to run the tests.
To run the full in-browser tests, clone the repo for To run the full in-browser tests, clone the repo for
[oss.sheetjs.com](https://github.com/SheetJS/SheetJS.github.io) and replace [oss.sheetjs.com](https://github.com/SheetJS/SheetJS.github.io) and replace
the xlsx.js file (then fire up the browser and go to `stress.html`): the xlsx.js file (then open a browser window and go to `stress.html`):
```bash ```bash
$ cp xlsx.js ../SheetJS.github.io $ cp xlsx.js ../SheetJS.github.io
......
XLSX.version = '0.10.9'; XLSX.version = '0.11.0';
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
...@@ -10,7 +10,7 @@ Excel 2007, nothing outside of SheetJS or Excel supported the format. ...@@ -10,7 +10,7 @@ Excel 2007, nothing outside of SheetJS or Excel supported the format.
To promote a format-agnostic view, js-xlsx starts from a pure-JS representation To promote a format-agnostic view, js-xlsx starts from a pure-JS representation
that we call the ["Common Spreadsheet Format"](#common-spreadsheet-format). that we call the ["Common Spreadsheet Format"](#common-spreadsheet-format).
Emphasizing a uniform object representation enables radical features like format Emphasizing a uniform object representation enables new features like format
conversion (e.g. reading an XLSX template and saving as XLS) and circumvents the conversion (e.g. reading an XLSX template and saving as XLS) and circumvents the
"class trap". By abstracting the complexities of the various formats, tools "class trap". By abstracting the complexities of the various formats, tools
need not worry about the specific file type! need not worry about the specific file type!
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
The most common and interesting formats (XLS, XLSX/M, XLSB, ODS) are ultimately The most common and interesting formats (XLS, XLSX/M, XLSB, ODS) are ultimately
ZIP or CFB containers of files. Neither format puts the directory structure at ZIP or CFB containers of files. Neither format puts the directory structure at
the beginning of the file: ZIP files place the Central Directory records at the the beginning of the file: ZIP files place the Central Directory records at the
end of the logical file, while CFB files can place the FAT structure anywhere in end of the logical file, while CFB files can place the storage info anywhere in
the file! As a result, to properly handle these formats, a streaming function the file! As a result, to properly handle these formats, a streaming function
would have to buffer the entire file before commencing. That belies the would have to buffer the entire file before commencing. That belies the
expectations of streaming, so we do not provide any streaming read API. expectations of streaming, so we do not provide any streaming read API.
......
...@@ -19,7 +19,7 @@ The exported `write` and `writeFile` functions accept an options argument: ...@@ -19,7 +19,7 @@ The exported `write` and `writeFile` functions accept an options argument:
in this README may not be serialized. in this README may not be serialized.
- `cellDates` only applies to XLSX output and is not guaranteed to work with - `cellDates` only applies to XLSX output and is not guaranteed to work with
third-party readers. Excel itself does not usually write cells with type `d` third-party readers. Excel itself does not usually write cells with type `d`
so non-Excel tools may ignore the data or blow up in the presence of dates. so non-Excel tools may ignore the data or error in the presence of dates.
- `Props` is an object mirroring the workbook `Props` field. See the table from - `Props` is an object mirroring the workbook `Props` field. See the table from
the [Workbook File Properties](#workbook-file-properties) section. the [Workbook File Properties](#workbook-file-properties) section.
- if specified, the string from `themeXLSX` will be saved as the primary theme - if specified, the string from `themeXLSX` will be saved as the primary theme
......
...@@ -168,7 +168,7 @@ standard, instead focusing on parts necessary to extract and store raw data. ...@@ -168,7 +168,7 @@ standard, instead focusing on parts necessary to extract and store raw data.
UOS is a very similar format, and it comes in 2 varieties corresponding to ODS UOS is a very similar format, and it comes in 2 varieties corresponding to ODS
and FODS respectively. For the most part, the difference between the formats and FODS respectively. For the most part, the difference between the formats
lies in the names of tags and attributes. is in the names of tags and attributes.
</details> </details>
......
...@@ -49,7 +49,7 @@ Start a local server and navigate to that directory to run the tests. ...@@ -49,7 +49,7 @@ Start a local server and navigate to that directory to run the tests.
To run the full in-browser tests, clone the repo for To run the full in-browser tests, clone the repo for
[oss.sheetjs.com](https://github.com/SheetJS/SheetJS.github.io) and replace [oss.sheetjs.com](https://github.com/SheetJS/SheetJS.github.io) and replace
the xlsx.js file (then fire up the browser and go to `stress.html`): the xlsx.js file (then open a browser window and go to `stress.html`):
```bash ```bash
$ cp xlsx.js ../SheetJS.github.io $ cp xlsx.js ../SheetJS.github.io
......
...@@ -224,7 +224,7 @@ Excel 2007, nothing outside of SheetJS or Excel supported the format. ...@@ -224,7 +224,7 @@ Excel 2007, nothing outside of SheetJS or Excel supported the format.
To promote a format-agnostic view, js-xlsx starts from a pure-JS representation To promote a format-agnostic view, js-xlsx starts from a pure-JS representation
that we call the ["Common Spreadsheet Format"](#common-spreadsheet-format). that we call the ["Common Spreadsheet Format"](#common-spreadsheet-format).
Emphasizing a uniform object representation enables radical features like format Emphasizing a uniform object representation enables new features like format
conversion (e.g. reading an XLSX template and saving as XLS) and circumvents the conversion (e.g. reading an XLSX template and saving as XLS) and circumvents the
"class trap". By abstracting the complexities of the various formats, tools "class trap". By abstracting the complexities of the various formats, tools
need not worry about the specific file type! need not worry about the specific file type!
...@@ -408,7 +408,7 @@ On Windows XP and up you can get the base64 encoding using `certutil`: ...@@ -408,7 +408,7 @@ On Windows XP and up you can get the base64 encoding using `certutil`:
The most common and interesting formats (XLS, XLSX/M, XLSB, ODS) are ultimately The most common and interesting formats (XLS, XLSX/M, XLSB, ODS) are ultimately
ZIP or CFB containers of files. Neither format puts the directory structure at ZIP or CFB containers of files. Neither format puts the directory structure at
the beginning of the file: ZIP files place the Central Directory records at the the beginning of the file: ZIP files place the Central Directory records at the
end of the logical file, while CFB files can place the FAT structure anywhere in end of the logical file, while CFB files can place the storage info anywhere in
the file! As a result, to properly handle these formats, a streaming function the file! As a result, to properly handle these formats, a streaming function
would have to buffer the entire file before commencing. That belies the would have to buffer the entire file before commencing. That belies the
expectations of streaming, so we do not provide any streaming read API. expectations of streaming, so we do not provide any streaming read API.
...@@ -1400,7 +1400,7 @@ The exported `write` and `writeFile` functions accept an options argument: ...@@ -1400,7 +1400,7 @@ The exported `write` and `writeFile` functions accept an options argument:
in this README may not be serialized. in this README may not be serialized.
- `cellDates` only applies to XLSX output and is not guaranteed to work with - `cellDates` only applies to XLSX output and is not guaranteed to work with
third-party readers. Excel itself does not usually write cells with type `d` third-party readers. Excel itself does not usually write cells with type `d`
so non-Excel tools may ignore the data or blow up in the presence of dates. so non-Excel tools may ignore the data or error in the presence of dates.
- `Props` is an object mirroring the workbook `Props` field. See the table from - `Props` is an object mirroring the workbook `Props` field. See the table from
the [Workbook File Properties](#workbook-file-properties) section. the [Workbook File Properties](#workbook-file-properties) section.
- if specified, the string from `themeXLSX` will be saved as the primary theme - if specified, the string from `themeXLSX` will be saved as the primary theme
...@@ -1828,7 +1828,7 @@ standard, instead focusing on parts necessary to extract and store raw data. ...@@ -1828,7 +1828,7 @@ standard, instead focusing on parts necessary to extract and store raw data.
UOS is a very similar format, and it comes in 2 varieties corresponding to ODS UOS is a very similar format, and it comes in 2 varieties corresponding to ODS
and FODS respectively. For the most part, the difference between the formats and FODS respectively. For the most part, the difference between the formats
lies in the names of tags and attributes. is in the names of tags and attributes.
### Other Single-Worksheet Formats ### Other Single-Worksheet Formats
...@@ -1933,7 +1933,7 @@ Start a local server and navigate to that directory to run the tests. ...@@ -1933,7 +1933,7 @@ Start a local server and navigate to that directory to run the tests.
To run the full in-browser tests, clone the repo for To run the full in-browser tests, clone the repo for
[oss.sheetjs.com](https://github.com/SheetJS/SheetJS.github.io) and replace [oss.sheetjs.com](https://github.com/SheetJS/SheetJS.github.io) and replace
the xlsx.js file (then fire up the browser and go to `stress.html`): the xlsx.js file (then open a browser window and go to `stress.html`):
```bash ```bash
$ cp xlsx.js ../SheetJS.github.io $ cp xlsx.js ../SheetJS.github.io
......
{ {
"name": "xlsx", "name": "xlsx",
"version": "0.10.9", "version": "0.11.0",
"author": "sheetjs", "author": "sheetjs",
"description": "Excel (XLSB/XLSX/XLS/XML) ODS and other spreadsheet format (CSV/DIF/DBF/SYLK) parser and writer", "description": "Excel (XLSB/XLSX/XLS/XML) ODS and other spreadsheet format (CSV/DIF/DBF/SYLK) parser and writer",
"keywords": [ "excel", "xls", "xlsx", "xlsb", "xlsm", "ods", "csv", "dbf", "dif", "sylk", "office", "spreadsheet" ], "keywords": [ "excel", "xls", "xlsx", "xlsb", "xlsm", "ods", "csv", "dbf", "dif", "sylk", "office", "spreadsheet" ],
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
}, },
"dependencies": { "dependencies": {
"exit-on-epipe":"~1.0.1", "exit-on-epipe":"~1.0.1",
"ssf":"~0.10.0", "ssf":"~0.10.1",
"codepage":"~1.10.1", "codepage":"~1.10.1",
"cfb":"~0.12.0", "cfb":"~0.12.0",
"crc-32":"~1.1.0", "crc-32":"~1.1.0",
......
此差异由.gitattributes 抑制。
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/*global global, exports, module, require:false, process:false, Buffer:false */ /*global global, exports, module, require:false, process:false, Buffer:false */
var XLSX = {}; var XLSX = {};
(function make_xlsx(XLSX){ (function make_xlsx(XLSX){
XLSX.version = '0.10.9'; XLSX.version = '0.11.0';
var current_codepage = 1200; var current_codepage = 1200;
/*:: declare var cptable:any; */ /*:: declare var cptable:any; */
/*global cptable:true */ /*global cptable:true */
......
此差异由.gitattributes 抑制。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册