sqlmath 2023.9.25 → 2023.11.22

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/CHANGELOG.md CHANGED
@@ -1,10 +1,30 @@
1
1
  # Changelog
2
2
 
3
3
  # Todo
4
- - python - Revamp python-c-extension to support cp312.
5
- - sqlmath - Optimize cosfit-calculation of amplitude-prm WinCosfit.caa to one-step instead of nnn-steps.
4
+ - sqlmath - Add sqlite-extension for lightgbm.
6
5
  - none
7
6
 
7
+ # v2023.11.22
8
+ - sqlmath - Add sql-functions normalizewithsquared(), squaredwithsign().
9
+
10
+ # v2023.10.25
11
+ - jslint - Update jslint to v2023.10.24.
12
+ - sqlmath - Split monolithic-file sqlite_rollup.c into separate files:
13
+ - sqlmath_external_pcre2.c
14
+ - sqlmath_external_sqlite.c
15
+ - sqlmath_external_zlib.c
16
+ - python - Remove setuptools dependency and implement standalone bdist_wheel() api.
17
+ - sqlean - Add sqlean-extension regexp with regexp-replacement and pcre2 - increases wasm size to 1.1mb.
18
+ - zlib - Update to zlib v1.3.
19
+ - sqlmath - Fix SIGSEGV error when binding external-buffer during db_exec.
20
+ - sqlite - Update to sqlite v3.39.4.
21
+ - python - Add python-functions db_file_load(), db_file_save().
22
+ - sqlmath - Revamp how js-arraybuffers are passed to c-api without copying.
23
+ - python - Revamp python-c-extension to support cp312.
24
+ - python - Revamp python-c-extension to use nodejs-like-api dbClose, dbExec, dbFileLoadOrSave, dbNoop, dbOpen.
25
+ - sqlmath - Remove unused sql-function-prm in sinefit_extra(), stp.
26
+ - sqlmath - Add sql-function-prm in sinefit_extra(), predict_cnr, predict_cos, predict_sin.
27
+
8
28
  # v2023.9.25
9
29
  - sqlmath - Add sql-functions coinflip_extract(), normalizewithsqrt(), win_coinflip2().
10
30
 
package/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
  # Status
5
- | Branch | [master<br>(v2023.9.25)](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) |
5
+ | Branch | [master<br>(v2023.11.22)](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 | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Amaster) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Abeta) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Aalpha) |
8
8
  | Coverage | [![coverage](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/coverage_badge.svg)](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) |
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) |
9
+ | Demo | [<img src="https://sqlmath.github.io/sqlmath/asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-master/index.html) | [<img src="https://sqlmath.github.io/sqlmath/asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-beta/index.html) | [<img src="https://sqlmath.github.io/sqlmath/asset_image_github_brands.svg" height="32">](https://sqlmath.github.io/sqlmath/branch-alpha/index.html) |
10
+ | Artifacts | [<img src="https://sqlmath.github.io/sqlmath/asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-master/.artifact) | [<img src="https://sqlmath.github.io/sqlmath/asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-beta/.artifact) | [<img src="https://sqlmath.github.io/sqlmath/asset_image_folder_open_solid.svg" height="30">](https://github.com/sqlmath/sqlmath/tree/gh-pages/branch-alpha/.artifact) |
11
11
 
12
12
 
13
13
  <br><br>
@@ -32,6 +32,7 @@
32
32
 
33
33
  8. [Devops Instruction](#devops-instruction)
34
34
  - [python pypi publish](#python-pypi-publish)
35
+ - [sqlite upgrade](#sqlite-upgrade)
35
36
 
36
37
 
37
38
  <br><br>
@@ -103,9 +104,11 @@ PORT=8080 sh jslint_ci.sh shHttpFileServer
103
104
 
104
105
  <br><br>
105
106
  # License
106
- - SQLite is under [public domain](https://www.sqlite.org/copyright.html).
107
- - JSLint is under [Unlicense License](https://github.com/jslint-org/jslint/blob/master/LICENSE).
108
- - [cpplint.py](cpplint.py) is under [BSD 3-clause license](https://github.com/cpplint/cpplint/blob/develop/LICENSE).
107
+ - [sqlite](https://github.com/sqlite/sqlite) is under [public domain](https://www.sqlite.org/copyright.html).
108
+ - [jslint](https://github.com/jslint-org/jslint) is under [Unlicense License](https://github.com/jslint-org/jslint/blob/master/LICENSE).
109
+ - [pcre2](https://github.com/PCRE2Project/pcre2) is under [3-Clause BSD License](https://github.com/PCRE2Project/pcre2/blob/pcre2-10.42/LICENCE)
110
+ - [zlib](https://github.com/madler/zlib) is under [zlib License](https://github.com/madler/zlib/blob/v1.2.13/LICENSE).
111
+ - [cpplint.py](cpplint.py) is under [3-Clause BSD License](https://github.com/cpplint/cpplint/blob/1.5.5/LICENSE).
109
112
  - [indent.exe](indent.exe) is under [GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.txt).
110
113
  - Everything else is under MIT License.
111
114
 
@@ -119,9 +122,25 @@ PORT=8080 sh jslint_ci.sh shHttpFileServer
119
122
  ```shell
120
123
  python -m build
121
124
  #
122
- twine upload --repository testpypi dist/sqlmath-2023.9.25*
123
- py -m pip install --index-url https://test.pypi.org/simple/ sqlmath==2023.9.25
125
+ twine upload --repository testpypi dist/sqlmath-2023.11.22*
126
+ py -m pip install --index-url https://test.pypi.org/simple/ sqlmath==2023.11.22
124
127
  #
125
- twine upload dist/sqlmath-2023.9.25*
126
- pip install sqlmath==2023.9.25
128
+ twine upload dist/sqlmath-2023.11.22*
129
+ pip install sqlmath==2023.11.22
130
+ ```
131
+
132
+
133
+ <br><br>
134
+ ### sqlite upgrade
135
+ - goto https://www.sqlite.org/changes.html
136
+ ```shell
137
+ curl -L https://www.sqlite.org/2023/sqlite-autoconf-3420000.tar.gz | tar -xz
138
+ git grep "3\.39\.4\|3390400"
139
+ for FILE in .ci.sh sqlite_rollup.c
140
+ do
141
+ sed -i -e "s|\<3\.39\.4\>|3.42.0|g" "$FILE"
142
+ sed -i -e "s|\<3390400\>|3420000|g" "$FILE"
143
+ done
144
+ git grep "3\.39\.4\|3390400"
145
+ shRollupFetch sqlite_rollup.c
127
146
  ```
package/jslint.mjs CHANGED
@@ -163,7 +163,7 @@ let jslint_charset_ascii = (
163
163
  + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
164
164
  + "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
165
165
  );
166
- let jslint_edition = "v2023.8.20";
166
+ let jslint_edition = "v2023.11.1-beta";
167
167
  let jslint_export; // The jslint object to be exported.
168
168
  let jslint_fudge = 1; // Fudge starting line and starting
169
169
  // ... column to 1.
@@ -279,7 +279,7 @@ async function assertErrorThrownAsync(asyncFunc, regexp) {
279
279
  }
280
280
  assertOrThrow(err, "No error thrown.");
281
281
  assertOrThrow(
282
- regexp === undefined || new RegExp(regexp).test(err.message),
282
+ !regexp || new RegExp(regexp).test(err.message),
283
283
  err
284
284
  );
285
285
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "email": "kaizhu256@gmail.com",
4
4
  "name": "kai zhu"
5
5
  },
6
- "counter": 13,
6
+ "counter": 0,
7
7
  "cpu": [
8
8
  "x64"
9
9
  ],
@@ -11,7 +11,7 @@
11
11
  "engines": {
12
12
  "node": ">=14"
13
13
  },
14
- "fileCount": 40,
14
+ "fileCount": 42,
15
15
  "homepage": "https://github.com/sqlmath/sqlmath",
16
16
  "keywords": [
17
17
  "data-science",
@@ -38,5 +38,5 @@
38
38
  },
39
39
  "shCiArtifactUpload": 1,
40
40
  "shCiPublishNpm": 1,
41
- "version": "2023.9.25"
41
+ "version": "2023.11.22"
42
42
  }