Skip to content
This repository was archived by the owner on Jul 25, 2021. It is now read-only.

Commit 4701913

Browse files
committed
v4.0.6 - improve AMD define statement with syntactic sugar
1 parent 144a41c commit 4701913

File tree

12 files changed

+27
-23
lines changed

12 files changed

+27
-23
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tableexport.js",
3-
"version": "4.0.5",
3+
"version": "4.0.6",
44
"authors": [
55
"clarketm <travis.m.clarke@gmail.com>"
66
],

dist/css/tableexport.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v4.0.5 (https://www.travismclarke.com)
2+
* TableExport.js v4.0.6 (https://www.travismclarke.com)
33
* Copyright 2017 Travis Clarke
44
* Licensed under the MIT license
55
*/

dist/css/tableexport.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tableexport.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v4.0.5 (https://www.travismclarke.com)
2+
* TableExport.js v4.0.6 (https://www.travismclarke.com)
33
* Copyright 2017 Travis Clarke
44
* Licensed under the MIT license
55
*/
@@ -8,8 +8,10 @@
88
;(function (root, factory) {
99
if (typeof define === 'function' && define.amd) {
1010
// AMD
11-
var $; try { define(['jquery'], function(_) { $ = _ }) } catch (e) {}
12-
define(['blobjs', 'file-saverjs', 'xlsx'], factory.bind(this, $));
11+
define(function (require) {
12+
var $; try { $ = require('jquery') } catch (e) {}
13+
return factory($, require('blobjs'), require('file-saverjs'), require('xlsx'));
14+
});
1315
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
1416
// CommonJS
1517
var $; try { $ = require('jquery') } catch (e) {}
@@ -126,7 +128,7 @@
126128
* Version.
127129
* @memberof TableExport.prototype
128130
*/
129-
version: '4.0.5',
131+
version: '4.0.6',
130132
/**
131133
* Default library options.
132134
* @memberof TableExport.prototype

dist/js/tableexport.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tableexport.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for TableExport v4.0.5
1+
// Type definitions for TableExport v4.0.6
22
// Project: https://tableexport.v4.travismclarke.com
33
// Definitions by: Travis Clarke <https://github.com/clarketm>
44

docs/READMEv3.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ The simple, easy-to-implement plugin to export HTML tables to xlsx, xls, csv, an
44

55
[TableExport](https://www.travismclarke.com/tableexport/) demo **--** [TableExport + RequireJS](https://github.com/clarketm/tableexport_requirejs_app) skeleton **--** [TableExport + Flask](https://github.com/clarketm/tableexport_flask_app) skeleton.
66

7-
> **Notice:** In May 2017, [v3.3](https://github.com/clarketm/TableExport/releases/tag/v3.3.12) will be superceded by [v4.0.5](https://github.com/clarketm/TableExport/releases/tag/v4.0.5). Althought this is a major version bump, fear not, because all changes will be 100% backwards-compatible.
7+
> **Notice:** In May 2017, [v3.3](https://github.com/clarketm/TableExport/releases/tag/v3.3.12) will be superceded by [v4.0.6](https://github.com/clarketm/TableExport/releases/tag/v4.0.6). Althought this is a major version bump, fear not, because all changes will be 100% backwards-compatible.
88
9-
### [`v4.0.5`](https://github.com/clarketm/TableExport/releases/tag/v4.0.5) Release Candidate:
9+
### [`v4.0.6`](https://github.com/clarketm/TableExport/releases/tag/v4.0.6) Release Candidate:
1010
#### Examples:
1111
##### Property
1212
* [`bootstrap`](https://www.travismclarke.com/tableexport/examples/bootstrap.html)
@@ -24,7 +24,7 @@ The simple, easy-to-implement plugin to export HTML tables to xlsx, xls, csv, an
2424
* [`ignoreCSS`](https://www.travismclarke.com/tableexport/examples/ignore-row-cols-cells.html)
2525
* [`emptyCSS`](https://www.travismclarke.com/tableexport/examples/ignore-row-cols-cells.html)
2626

27-
> **So why the major version bump you ask?** Well, the rationale for a major version bump is that due to a change in `TableExport`'s dependencies, in [v4.0.5](https://github.com/clarketm/TableExport/releases/tag/v4.0.5) forth, JQuery will no longer be a **required** dependency, instead it will be purely **optional**. So existing implementations *with* jQuery will continue to work unimpeded, now with the added benefit that new projets no longer need to rely on the overhead of such large library, unless of course you prefer jQuery or it is already part of your project.
27+
> **So why the major version bump you ask?** Well, the rationale for a major version bump is that due to a change in `TableExport`'s dependencies, in [v4.0.6](https://github.com/clarketm/TableExport/releases/tag/v4.0.6) forth, JQuery will no longer be a **required** dependency, instead it will be purely **optional**. So existing implementations *with* jQuery will continue to work unimpeded, now with the added benefit that new projets no longer need to rely on the overhead of such large library, unless of course you prefer jQuery or it is already part of your project.
2828
2929
## Getting Started
3030

@@ -73,7 +73,7 @@ $ npm install tableexport
7373
* [jQuery](https://jquery.com) (1.2.1 or higher) `*`
7474
* [FileSaver.js](https://github.com/clarketm/FileSaver.js/)
7575

76-
> `*` jQuery dependency requirement is removed as of [v4.0.5](https://github.com/clarketm/TableExport/tree/v4.0.5)
76+
> `*` jQuery dependency requirement is removed as of [v4.0.6](https://github.com/clarketm/TableExport/tree/v4.0.6)
7777
7878
#### Optional / Theming:
7979

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tableexport",
3-
"version": "4.0.5",
3+
"version": "4.0.6",
44
"authors": [
55
"clarketm <travis.m.clarke@gmail.com>"
66
],

src/stable/css/tableexport.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v4.0.5 (https://www.travismclarke.com)
2+
* TableExport.js v4.0.6 (https://www.travismclarke.com)
33
* Copyright 2017 Travis Clarke
44
* Licensed under the MIT license
55
*/

src/stable/css/tableexport.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)