- Trigger event on element when data is loaded (#145).
- Update dependencies and switch to Rollup (#144).
- Allow default callback to be overridden. (#113).
- Don't catch errors thrown in user template (#111).
- Fix by @papoms for requests that fail after use of reset option (#104).
- Fix error when parsing null cell values (fixes #101).
- Better error handling of invalid URLs.
- Rewritten in ES2015.
- Changes to API:
- removed non-authoritative
.environment
- removed non-authoritative
- Standard UMD provided by Webpack.
- Webpack support.
- Use formatted numbers (percentages, x decimal places) when available. (@niceandserious)
- Smaller minified dist version.
- No longer depends on jQuery
- Use in browser or on server (with or without virtual DOM)
- Module renamed from jquery-sheetrock to sheetrock
- Now expects a single header row in row 1
- Passes consistent row numbers to the row template, starting at
1
- Changes to API:
- added
.environment
to expose detected features to user - renamed
.options
to.defaults
- removed
.promise
(requests are no longer chained) - removed
.working
(use callback function to determine request status)
- added
- Changes to defaults:
- added
target
as alternative to jQuery'sthis
- renamed
sql
toquery
- renamed
chunkSize
tofetchSize
- renamed
resetStatus
toreset
- renamed
rowHandler
torowTemplate
- renamed
userCallback
tocallback
(but passes different paramaters) - removed
server
(pass bootstrapped data instead) - removed
columns
(always use column letters in query) - removed
cellHandler
(use rowTemplate for text formatting) - removed
errorHandler
(errors are passed to callback function) - removed
loading
(use callback function to manipulate UI) - removed
rowGroups
(<thead>
and<tbody>
are added whentarget
is a<table>
) - removed
formatting
(almost useless, impossible to support) - removed
headers
(multiple header rows cause myriad problems) - removed
headersOff
(use rowTemplate to show or hide rows) - removed
debug
(compiled messages are passed to callback function)
- added
- Published as NPM module (can be required and Browserified).
- Better loading default prevents option being set to empty string.
- Avoid reserved keyword "new" to satisfy YUI compressor.
- CommonJS support.
- Move minified files to /dist.
- Load Prism JS and CSS from CloudFlare's CDN.
- Improved error handling and provide failure tests.
- Handle null cell values (#37).
- Compatibility with the new version of Google Spreadsheets! (#33)
- Add
errorHandler
option to allow user to do something with AJAX errors. - Simple tests using QUnit.
- Update key extraction to work with the new version of Google Spreadsheets (see #31).
- Add note about (hopefully temporary) incompatibility with the new version of Google Spreadsheets (see #31).
- Avoid array-like cell values (see #23).
- Moved caching of row offset to options validation function (see #18).
- Added change log.
- Move plugin code into
src
subfolder. - New
resetStatus
option resets the row offest, loaded, and error indicators on a per-unique-request basis. This is useful if you want to reload data, retry after an error, or load data in another context. - Row offest, loaded, and error indicators were previously stored as data
attributes on the target DOM element. This created an undesirable 1:1
correspondence between requests and DOM elements. These indicators are now
stored internally and indexed per unique request. They can be reset using
the
resetStatus
option. - Default for
rowGroups
options is nowtrue
. When using the default row handler, table tags<thead>
and<tbody>
are used by default. - Moved
server
option from public property ($.fn.sheetrock.server
) to undocumented option. This allows per-request configuration of the Google API endpoint. - Public property
$.fn.sheetrock.working
is now Boolean, since there can only be one AJAX request at a time. - Consolidate documentation in
README.md
and examples ongh-pages
branch. On examples page, dynamically load source code from content of page. Check it out! - Sheetrock now passes linting with JSHint.
- Better comments, more descriptive variable names.