sqlmath 2022.4.28 → 2022.8.20
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.
- package/.npmignore +1 -0
- package/CHANGELOG.md +83 -1
- package/LICENSE +2 -2
- package/README.md +25 -3
- package/_binary_sqlmath_napi8_darwin_x64.node +0 -0
- package/_binary_sqlmath_napi8_linux_x64.node +0 -0
- package/_binary_sqlmath_napi8_win32_x64.node +0 -0
- package/_binary_sqlmath_shell_darwin_x64 +0 -0
- package/_binary_sqlmath_shell_linux_x64 +0 -0
- package/_binary_sqlmath_shell_win32_x64.exe +0 -0
- package/jslint.mjs +477 -155
- package/package.json +4 -4
- package/sqlmath.mjs +836 -1702
package/.npmignore
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,91 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
# Todo
|
|
4
|
-
-
|
|
4
|
+
- add dbtable-crud-operations dbtableOpenCsv, dbtableOpenJson
|
|
5
|
+
- sqlmath - add sql-extension carrayblob()
|
|
5
6
|
- none
|
|
6
7
|
|
|
8
|
+
# v2022.8.20
|
|
9
|
+
- chart-revamp - switch from chart.js to using svg-elements for plots
|
|
10
|
+
--
|
|
11
|
+
- chart - add optional easeout ui-animation, in addition to linear
|
|
12
|
+
- chart - fix render-bug when zooming with no data
|
|
13
|
+
- chart - bugfix - fix xrangeMin being NaN
|
|
14
|
+
- chart - animate crosshair, similar to tooltip
|
|
15
|
+
- chart - remove gridband code
|
|
16
|
+
- chart - remove all classes, and instances of this
|
|
17
|
+
- chart - bugfix - fix x-axis having no padding
|
|
18
|
+
- chart - bugfix - fix chart failing to re-scale after hiding/showing series
|
|
19
|
+
- chart - fix tooltip-indent-bug
|
|
20
|
+
- chart - revamp tooltip-popup in barchart - part1
|
|
21
|
+
- chart - replace Tick class with static-functions uichartAxistickCreate and uichartAxistickRender
|
|
22
|
+
- chart - bugfix - fix tick-cleanup
|
|
23
|
+
- chart - fix seriestracker z-index in reverse-order of series-render
|
|
24
|
+
- chart - bugfix - fix annoying clip-path drifting down-right during startup-animation
|
|
25
|
+
- chart - remove jquery-dependency
|
|
26
|
+
- chart - fix again, zoomout cropping too much of one side, in line-charts
|
|
27
|
+
--
|
|
28
|
+
- remove unused files
|
|
29
|
+
assets.bootstrap-v3.4.1.datatables-v1.10.21.chartjs-v2.9.4.codemirror-5.58.3.rollup.css
|
|
30
|
+
assets.bootstrap-v3.4.1.datatables-v1.10.21.chartjs-v2.9.4.codemirror-5.58.3.rollup.js
|
|
31
|
+
spa.sqlchart.html
|
|
32
|
+
spa.sqlchart.js
|
|
33
|
+
- add dbrow-crud-operations dbrowDelete, dbrowInsert, dbrowUpdate
|
|
34
|
+
- chart - add charting functionality using chart.js
|
|
35
|
+
- add dbtable-crud-operations dbtableRename, dbcolumnAdd, dbcolumnRename, dbcolumnDrop
|
|
36
|
+
- demo - add web-demo in README.md
|
|
37
|
+
- webapp - add ui-loading when running onDbAction(), onDbExec()
|
|
38
|
+
- demo - add github-fork-banner
|
|
39
|
+
|
|
40
|
+
# v2022.6.30
|
|
41
|
+
- add dbtable-crud-operations dbquerySaveCsv, dbquerySaveJson, dbtableDrop, dbtableSaveCsv, dbtableSaveJson
|
|
42
|
+
- add contextmenu and dbtable-crud-operation dbtableDrop
|
|
43
|
+
- add database-crud-operations
|
|
44
|
+
- merge rendering of sql-queries and sql-tables into one
|
|
45
|
+
- optimization - defer rendering data in dttable until you scroll into it in viewport
|
|
46
|
+
- add modal to display sql-query errors
|
|
47
|
+
- bugfix - fix broken sorting
|
|
48
|
+
- merge datatables css into file index.html
|
|
49
|
+
- merge datatables code into file sqlmath_browser.mjs and remove jquery-dependency
|
|
50
|
+
- bugfix - fix ci-function shCiBuildWasm() not updating output sqlmath_wasm.wasm
|
|
51
|
+
- wasm - rewrite file sqlmath_wrapper_wasm.js to pass jslint
|
|
52
|
+
- datatables - rewrite datatables-function _fnDraw() for faster rendering
|
|
53
|
+
- sqlmath - milestone - functional index.html
|
|
54
|
+
- add files asset_sqlmath_external_rollup.css, asset_sqlmath_external_rollup.js
|
|
55
|
+
- bugfix - fix memory-leak by replacing all free()/malloc() with sqlite3_free()/sqlite3_malloc()
|
|
56
|
+
- wasm - update functions dbFileExportAsync(), dbFileImportAsync() to be able to export/import raw-db-arraybuffer
|
|
57
|
+
- remove obsolete csv-json-import functions like dbTableInsert(), superseded by json_each()
|
|
58
|
+
- wasm - update function dbOpen() to be able to import raw dbData arraybuffer
|
|
59
|
+
- merge function dbExecWithRetryAsync() into dbExecAsync()
|
|
60
|
+
- rename function dbMemoryLoadOrSave to dbFileImportOrExport()
|
|
61
|
+
- add file csslint.js
|
|
62
|
+
- wasm - replace sqljs-api with sqlmath-api in wasm - part1
|
|
63
|
+
- remove jslint-dependency in sqlmath-core to prepare sqlmath for browser/wasm env
|
|
64
|
+
- emscripten updated to v3.1.3, allowing es6 syntax in sqlmath_wrapper_wasm.js
|
|
65
|
+
- jenks - streamline jenksCreate() return object to simple double-array instead of struct
|
|
66
|
+
- jenks - inline jenks-function jenksCalcRange() from recursion to iteration
|
|
67
|
+
- jenks - optimize jenks-function jenksCalcRange() from recursion to iteration
|
|
68
|
+
- jenks - replace class-based api with static-function
|
|
69
|
+
- jsbaton - migrate function dbExec() to new unified jsbaton
|
|
70
|
+
- error - add sqlite errcode SQLITE_ERROR_ZSQL_NULL
|
|
71
|
+
- jsbaton - migrate function dbTableInsert() to new unified jsbaton
|
|
72
|
+
- jsbaton - migrate functions dbClose(), dbMemoryLoadOrSave(), dbNoop(), dbOpen() to new, streamlined jsbaton2
|
|
73
|
+
- add js-function jsbatonPushValue() to dynamically push value to jsbaton
|
|
74
|
+
- napi - decouple c-functions dbClose(), dbExec(), dbMemoryLoadOrSave(), dbNoop(), dbOpen(), dbTableInsert() from napi
|
|
75
|
+
- perf - reduce unnecessary copying, replacing SQLITE_TRANSIENT with SQLITE_STATIC
|
|
76
|
+
- sqlmath - wrap c-functions jsonInit(), jsonInitNoContext() with jsonInit2() that auto jsonGrow/malloc str99->zBuf
|
|
77
|
+
- sqlmath - streamline function cCall() to cCallAsync(), which only returns a promise
|
|
78
|
+
- wasm - migrate from sqljs-api to sqlmath-api in wasm - part1
|
|
79
|
+
- gc - replace node-specific-gc __dbFinalizerCreate() with more-webassembly-friendly FinalizationRegistry()
|
|
80
|
+
- sqlmath - add sql-extension copyblob(), matrix2d_concat()
|
|
81
|
+
- sqlmath - re-include carray-extension
|
|
82
|
+
|
|
83
|
+
# v2022.5.20
|
|
84
|
+
- sqlite - update to sqlite v3.38.5
|
|
85
|
+
- sqlmath - add sql-functions castrealorzero(), casttextorempty()
|
|
86
|
+
- sqlmath - migrate test to jsTestXxx
|
|
87
|
+
- jslint - update jslint v2022.05.13
|
|
88
|
+
|
|
7
89
|
# v2022.4.28
|
|
8
90
|
- jslint - update jslint v2022.4.28
|
|
9
91
|
- sqlite - update to sqlite v3.38.2
|
package/LICENSE
CHANGED
|
@@ -7,8 +7,8 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
7
7
|
copies of the Software, and to permit persons to whom the Software is
|
|
8
8
|
furnished to do so, subject to the following conditions:
|
|
9
9
|
|
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
|
11
|
-
copies or substantial portions of the Software.
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
12
|
|
|
13
13
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
14
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
package/README.md
CHANGED
|
@@ -2,19 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
# Status
|
|
5
|
-
| Branch | [master<br>(v2022.
|
|
5
|
+
| Branch | [master<br>(v2022.8.20)](https://github.com/sqlmath/sqlmath/tree/master) | [beta<br>(Web Demo)](https://github.com/sqlmath/sqlmath/tree/beta) | [alpha<br>(Development)](https://github.com/sqlmath/sqlmath/tree/alpha) |
|
|
6
6
|
|--:|:--:|:--:|:--:|
|
|
7
7
|
| CI | [](https://github.com/sqlmath/sqlmath/actions?query=branch%3Amaster) | [](https://github.com/sqlmath/sqlmath/actions?query=branch%3Abeta) | [](https://github.com/sqlmath/sqlmath/actions?query=branch%3Aalpha) |
|
|
8
8
|
| Coverage | [](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/index.html) | [](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/index.html) | [](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/index.html) |
|
|
9
|
+
| Demo | [<img src="asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-master/index.html) | [<img src="asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-beta/index.html) | [<img src="asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-alpha/index.html) |
|
|
9
10
|
| Artifacts | [<img src="asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-master/.artifact) | [<img src="asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-beta/.artifact) | [<img src="asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-alpha/.artifact) |
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
<br><br>
|
|
13
14
|
# Table of Contents
|
|
14
15
|
|
|
15
|
-
1. [
|
|
16
|
+
1. [Web Demo](#web-demo)
|
|
16
17
|
|
|
17
|
-
2. [
|
|
18
|
+
2. [Package Listing](#package-listing)
|
|
19
|
+
|
|
20
|
+
3. [Changelog](#changelog)
|
|
21
|
+
|
|
22
|
+
4. [License](#license)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<br><br>
|
|
26
|
+
# Web Demo
|
|
27
|
+
- https://sqlmath.github.io/sqlmath/index.html
|
|
28
|
+
|
|
29
|
+
[](https://sqlmath.github.io/sqlmath/index.html)
|
|
18
30
|
|
|
19
31
|
|
|
20
32
|
<br><br>
|
|
@@ -27,3 +39,13 @@
|
|
|
27
39
|
- [Full CHANGELOG.md](CHANGELOG.md)
|
|
28
40
|
|
|
29
41
|

|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
<br><br>
|
|
45
|
+
# License
|
|
46
|
+
- SQLite is under [public domain](https://www.sqlite.org/copyright.html).
|
|
47
|
+
- JSLint is under [Unlicense License](https://github.com/jslint-org/jslint/blob/master/LICENSE).
|
|
48
|
+
- [cpplint.py](cpplint.py) is under [BSD 3-clause license](https://github.com/cpplint/cpplint/blob/develop/LICENSE).
|
|
49
|
+
- [indent.exe](indent.exe) is under [GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.txt).
|
|
50
|
+
- [sqlmath_jenks.c](sqlmath_jenks.c) is derived from [GPLv3 licensed CalcNaturalBreaks](https://www.geodms.nl/CalcNaturalBreaks).
|
|
51
|
+
- Everything else is under MIT License.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|