jsql-neo 5.3.1 → 5.4.1
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/LICENSE +0 -0
- package/README.md +240 -33
- package/bin/jsql +0 -0
- package/bin/jsql-server +0 -0
- package/bin/jsql-server-control.js +0 -0
- package/index.d.ts +0 -0
- package/index.js +0 -0
- package/lib/btree.js +0 -0
- package/lib/cache.js +0 -0
- package/lib/client.js +0 -0
- package/lib/database.js +0 -0
- package/lib/date-types.js +0 -0
- package/lib/errors.js +0 -0
- package/lib/jsql_format.js +0 -0
- package/lib/migrate.js +0 -0
- package/lib/mod.js +0 -0
- package/lib/mongo_server.js +1 -1
- package/lib/multiserver.js +0 -0
- package/lib/mysql_compat.js +0 -0
- package/lib/mysql_server.js +0 -0
- package/lib/native_client.js +182 -23
- package/lib/nedb_compat.js +0 -0
- package/lib/pg_server.js +0 -0
- package/lib/plugin.js +0 -0
- package/lib/query.js +0 -0
- package/lib/redis_server.js +0 -0
- package/lib/sql.js +0 -0
- package/lib/sqlite_compat.js +0 -0
- package/lib/sqlite_worker.js +5 -1
- package/lib/table.js +0 -0
- package/lib/tui.js +0 -0
- package/lib/wasm.js +0 -0
- package/lib/wasm_client.js +200 -23
- package/lib/web_ui.js +1 -1
- package/nativesrc/jsql-neo-core/Cargo.lock +0 -0
- package/nativesrc/jsql-neo-core/Cargo.toml +1 -1
- package/nativesrc/jsql-neo-core/src/engine/hybrid.rs +0 -0
- package/nativesrc/jsql-neo-core/src/engine/memory.rs +0 -0
- package/nativesrc/jsql-neo-core/src/engine/mod.rs +0 -0
- package/nativesrc/jsql-neo-core/src/engine/table.rs +0 -0
- package/nativesrc/jsql-neo-core/src/lib.rs +0 -0
- package/nativesrc/jsql-neo-core/src/storage/mod.rs +0 -0
- package/nativesrc/jsql-neo-core/src/storage/persistent.rs +0 -0
- package/nativesrc/jsql-neo-core/src/storage/wal.rs +0 -0
- package/nativesrc/jsql-neo-core/src/types.rs +0 -0
- package/nativesrc/jsql-neo-native/Cargo.lock +0 -0
- package/nativesrc/jsql-neo-native/Cargo.toml +1 -1
- package/nativesrc/jsql-neo-native/build.rs +0 -0
- package/nativesrc/jsql-neo-native/jsql-neo-native.node +0 -0
- package/nativesrc/jsql-neo-native/package.json +0 -0
- package/nativesrc/jsql-neo-native/src/lib.rs +0 -0
- package/nativesrc/jsql-neo-wasm/Cargo.lock +2 -2
- package/nativesrc/jsql-neo-wasm/Cargo.toml +1 -1
- package/nativesrc/jsql-neo-wasm/src/lib.rs +24 -0
- package/package.json +3 -3
- package/postinstall.js +146 -25
- package/test/btree.test.js +0 -0
- package/test/coverage.js +0 -0
- package/test/join.test.js +110 -0
- package/test/native.test.js +159 -0
- package/test/regress-5.1.0.js +0 -0
- package/test/smoke.js +0 -0
- package/test/wasm.test.js +111 -0
- package/wasm/browser.d.ts +81 -80
- package/wasm/browser.mjs +407 -242
- package/wasm/browser_bg.mjs +166 -31
- package/wasm/jsql_neo_wasm.d.ts +6 -0
- package/wasm/jsql_neo_wasm.js +57 -0
- package/wasm/jsql_neo_wasm_bg.wasm +0 -0
- package/wasm/jsql_neo_wasm_bg.wasm.d.ts +3 -0
- package/wasm/package.json +1 -1
- package/bin/jsql-neo-server +0 -0
- package/lib/compress_pool.js +0 -122
- package/lib/compress_worker.js +0 -32
- package/wasm/jsql_neo_wasm_bg.js +0 -373
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> **One engine to rule them all** — a Rust-powered embedded database that speaks your language:
|
|
4
4
|
> MySQL. PostgreSQL. MongoDB. Redis. SQL. TypeScript. The browser. **And it fits in one npm package.**
|
|
5
5
|
|
|
6
|
-
> **v5.
|
|
6
|
+
> **v5.4.0** — official release build · [github.com/vexify-org/JSQL-neo](https://github.com/vexify-org/JSQL-neo)
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|

|
|
@@ -232,7 +232,7 @@ npm install && npm run build # option 3: from source
|
|
|
232
232
|
Verify:
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
|
-
node -e "console.log(require('jsql-neo/package.json').version)" # 5.
|
|
235
|
+
node -e "console.log(require('jsql-neo/package.json').version)" # 5.4.0
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
### 30-second demo
|
|
@@ -1273,7 +1273,7 @@ jsql mod --engine wasm # switch engine (restart required)
|
|
|
1273
1273
|
|
|
1274
1274
|
```bash
|
|
1275
1275
|
$ jsql version
|
|
1276
|
-
jsql-neo v5.
|
|
1276
|
+
jsql-neo v5.4.0
|
|
1277
1277
|
engine: native (napi) | wasm | js
|
|
1278
1278
|
node: v22.0.0 platform: linux x64
|
|
1279
1279
|
```
|
|
@@ -1294,7 +1294,7 @@ jsql tui --memory -q # memory mode, quiet
|
|
|
1294
1294
|
jsql tui --prompt 'db> ' --no-color
|
|
1295
1295
|
```
|
|
1296
1296
|
|
|
1297
|
-
The status bar shows: `db=<name> dialect=<d> mode=<tui|batch> ver=5.
|
|
1297
|
+
The status bar shows: `db=<name> dialect=<d> mode=<tui|batch> ver=5.4.0`.
|
|
1298
1298
|
|
|
1299
1299
|
### Keyboard shortcuts
|
|
1300
1300
|
|
|
@@ -1710,7 +1710,7 @@ Conventions: feature branch + PR; tests for new SQL/commands; Conventional Commi
|
|
|
1710
1710
|
|
|
1711
1711
|
## License
|
|
1712
1712
|
|
|
1713
|
-
|
|
1713
|
+
Apache License 2.0 — see the Chinese edition [License 许可证](#license-许可证) for the full text.
|
|
1714
1714
|
|
|
1715
1715
|
---
|
|
1716
1716
|
|
|
@@ -3858,7 +3858,7 @@ Data dir: /root/.jsql-neo/data
|
|
|
3858
3858
|
|
|
3859
3859
|
```bash
|
|
3860
3860
|
$ jsql version
|
|
3861
|
-
jsql-neo v5.
|
|
3861
|
+
jsql-neo v5.4.0
|
|
3862
3862
|
engine: native (napi) | wasm | js
|
|
3863
3863
|
node: v22.0.0
|
|
3864
3864
|
platform: linux x64
|
|
@@ -4724,37 +4724,218 @@ npm run typecheck
|
|
|
4724
4724
|
|
|
4725
4725
|
## License 许可证
|
|
4726
4726
|
|
|
4727
|
-
JSQL-NEO 采用 **
|
|
4728
|
-
|
|
4727
|
+
JSQL-NEO 采用 **Apache License 2.0**,完整许可文本见根目录 [LICENSE](LICENSE) 文件。
|
|
4728
|
+
|
|
4729
|
+
```
|
|
4730
|
+
Apache License
|
|
4731
|
+
Version 2.0, January 2004
|
|
4732
|
+
http://www.apache.org/licenses/
|
|
4733
|
+
|
|
4734
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
4735
|
+
|
|
4736
|
+
1. Definitions.
|
|
4737
|
+
|
|
4738
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
4739
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
4740
|
+
|
|
4741
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
4742
|
+
the copyright owner that is granting the License.
|
|
4743
|
+
|
|
4744
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
4745
|
+
other entities that control, are controlled by, or are under common
|
|
4746
|
+
control with that entity. For the purposes of this definition,
|
|
4747
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
4748
|
+
direction or management of such entity, whether by contract or
|
|
4749
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
4750
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
4751
|
+
|
|
4752
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
4753
|
+
exercising permissions granted by this License.
|
|
4754
|
+
|
|
4755
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
4756
|
+
including but not limited to software source code, documentation
|
|
4757
|
+
source, and configuration files.
|
|
4758
|
+
|
|
4759
|
+
"Object" form shall mean any form resulting from mechanical
|
|
4760
|
+
transformation or translation of a Source form, including but
|
|
4761
|
+
not limited to compiled object code, generated documentation,
|
|
4762
|
+
and conversions to other media types.
|
|
4763
|
+
|
|
4764
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
4765
|
+
Object form, made available under the License, as indicated by a
|
|
4766
|
+
copyright notice that is included in or attached to the work
|
|
4767
|
+
(an example is provided in the Appendix below).
|
|
4768
|
+
|
|
4769
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
4770
|
+
form, that is based on (or derived from) the Work and for which the
|
|
4771
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
4772
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
4773
|
+
of this License, Derivative Works shall not include works that remain
|
|
4774
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
4775
|
+
the Work and Derivative Works thereof.
|
|
4776
|
+
|
|
4777
|
+
"Contribution" shall mean any work of authorship, including
|
|
4778
|
+
the original version of the Work and any modifications or additions
|
|
4779
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
4780
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
4781
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
4782
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
4783
|
+
means any form of electronic, verbal, or written communication sent
|
|
4784
|
+
to the Licensor or its representatives, including but not limited to
|
|
4785
|
+
communication on electronic mailing lists, source code control systems,
|
|
4786
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
4787
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
4788
|
+
excluding communication that is conspicuously marked or otherwise
|
|
4789
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
4790
|
+
|
|
4791
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
4792
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
4793
|
+
subsequently incorporated within the Work.
|
|
4794
|
+
|
|
4795
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
4796
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
4797
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
4798
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
4799
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
4800
|
+
Work and such Derivative Works in Source or Object form.
|
|
4801
|
+
|
|
4802
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
4803
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
4804
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
4805
|
+
(except as stated in this section) patent license to make, have made,
|
|
4806
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
4807
|
+
where such license applies only to those patent claims licensable
|
|
4808
|
+
by such Contributor that are necessarily infringed by their
|
|
4809
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
4810
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
4811
|
+
institute patent litigation against any entity (including a
|
|
4812
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
4813
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
4814
|
+
or contributory patent infringement, then any patent licenses
|
|
4815
|
+
granted to You under this License for that Work shall terminate
|
|
4816
|
+
as of the date such litigation is filed.
|
|
4817
|
+
|
|
4818
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
4819
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
4820
|
+
modifications, and in Source or Object form, provided that You
|
|
4821
|
+
meet the following conditions:
|
|
4822
|
+
|
|
4823
|
+
(a) You must give any other recipients of the Work or
|
|
4824
|
+
Derivative Works a copy of this License; and
|
|
4825
|
+
|
|
4826
|
+
(b) You must cause any modified files to carry prominent notices
|
|
4827
|
+
stating that You changed the files; and
|
|
4828
|
+
|
|
4829
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
4830
|
+
that You distribute, all copyright, patent, trademark, and
|
|
4831
|
+
attribution notices from the Source form of the Work,
|
|
4832
|
+
excluding those notices that do not pertain to any part of
|
|
4833
|
+
the Derivative Works; and
|
|
4834
|
+
|
|
4835
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
4836
|
+
distribution, then any Derivative Works that You distribute must
|
|
4837
|
+
include a readable copy of the attribution notices contained
|
|
4838
|
+
within such NOTICE file, excluding those notices that do not
|
|
4839
|
+
pertain to any part of the Derivative Works, in at least one
|
|
4840
|
+
of the following places: within a NOTICE text file distributed
|
|
4841
|
+
as part of the Derivative Works; within the Source form or
|
|
4842
|
+
documentation, if provided along with the Derivative Works; or,
|
|
4843
|
+
within a display generated by the Derivative Works, if and
|
|
4844
|
+
wherever such third-party notices normally appear. The contents
|
|
4845
|
+
of the NOTICE file are for informational purposes only and
|
|
4846
|
+
do not modify the License. You may add Your own attribution
|
|
4847
|
+
notices within Derivative Works that You distribute, alongside
|
|
4848
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
4849
|
+
that such additional attribution notices cannot be construed
|
|
4850
|
+
as modifying the License.
|
|
4851
|
+
|
|
4852
|
+
You may add Your own copyright statement to Your modifications and
|
|
4853
|
+
may provide additional or different license terms and conditions
|
|
4854
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
4855
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
4856
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
4857
|
+
the conditions stated in this License.
|
|
4858
|
+
|
|
4859
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
4860
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
4861
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
4862
|
+
this License, without any additional terms or conditions.
|
|
4863
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
4864
|
+
the terms of any separate license agreement you may have executed
|
|
4865
|
+
with Licensor regarding such Contributions.
|
|
4866
|
+
|
|
4867
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
4868
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
4869
|
+
except as required for reasonable and customary use in describing the
|
|
4870
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
4871
|
+
|
|
4872
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
4873
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
4874
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
4875
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
4876
|
+
implied, including, without limitation, any warranties or conditions
|
|
4877
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
4878
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
4879
|
+
appropriateness of using or redistributing the Work and assume any
|
|
4880
|
+
risks associated with Your exercise of permissions under this License.
|
|
4881
|
+
|
|
4882
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
4883
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
4884
|
+
unless required by applicable law (such as deliberate and grossly
|
|
4885
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
4886
|
+
liable to You for damages, including any direct, indirect, special,
|
|
4887
|
+
incidental, or consequential damages of any character arising as a
|
|
4888
|
+
result of this License or out of the use or inability to use the
|
|
4889
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
4890
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
4891
|
+
other commercial damages or losses), even if such Contributor
|
|
4892
|
+
has been advised of the possibility of such damages.
|
|
4893
|
+
|
|
4894
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
4895
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
4896
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
4897
|
+
or other liability obligations and/or rights consistent with this
|
|
4898
|
+
License. However, in accepting such obligations, You may act only
|
|
4899
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
4900
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
4901
|
+
defend, and hold each Contributor harmless for any liability
|
|
4902
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
4903
|
+
of your accepting any such warranty or additional liability.
|
|
4904
|
+
|
|
4905
|
+
END OF TERMS AND CONDITIONS
|
|
4906
|
+
|
|
4907
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
4908
|
+
|
|
4909
|
+
To apply the Apache License to your work, attach the following
|
|
4910
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
4911
|
+
replaced with your own identifying information. (Don't include
|
|
4912
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
4913
|
+
comment syntax for the file format. We also recommend that a
|
|
4914
|
+
file or class name and description of purpose be included on the
|
|
4915
|
+
same "printed page" as the copyright notice for easier
|
|
4916
|
+
identification within third-party archives.
|
|
4917
|
+
|
|
4918
|
+
Copyright [yyyy] [name of copyright owner]
|
|
4919
|
+
|
|
4920
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4921
|
+
you may not use this file except in compliance with the License.
|
|
4922
|
+
You may obtain a copy of the License at
|
|
4923
|
+
|
|
4924
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
4925
|
+
|
|
4926
|
+
Unless required by applicable law or agreed to in writing, software
|
|
4927
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
4928
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4929
|
+
See the License for the specific language governing permissions and
|
|
4930
|
+
limitations under the License.
|
|
4729
4931
|
```
|
|
4730
|
-
MIT License
|
|
4731
|
-
|
|
4732
|
-
Copyright (c) 2026 vexify-org
|
|
4733
|
-
|
|
4734
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4735
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
4736
|
-
in the Software without restriction, including without limitation the rights
|
|
4737
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4738
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
4739
|
-
furnished to do so, subject to the following conditions:
|
|
4740
|
-
|
|
4741
|
-
The above copyright notice and this permission notice shall be included in all
|
|
4742
|
-
copies or substantial portions of the Software.
|
|
4743
|
-
|
|
4744
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4745
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4746
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4747
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4748
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4749
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
4750
|
-
SOFTWARE.
|
|
4751
4932
|
```
|
|
4752
4933
|
|
|
4753
4934
|
---
|
|
4754
4935
|
|
|
4755
4936
|
*JSQL-NEO — One engine to rule them all. MySQL. PostgreSQL. MongoDB. Redis. SQL. TypeScript. The browser.*
|
|
4756
4937
|
|
|
4757
|
-
*文档版本:v5.
|
|
4938
|
+
*文档版本:v5.4.0 · 最后更新:2026-08-12*
|
|
4758
4939
|
|
|
4759
4940
|
---
|
|
4760
4941
|
|
|
@@ -6524,7 +6705,7 @@ Usage: jsql version
|
|
|
6524
6705
|
|
|
6525
6706
|
输出版本与环境信息:
|
|
6526
6707
|
|
|
6527
|
-
jsql-neo v5.
|
|
6708
|
+
jsql-neo v5.4.0
|
|
6528
6709
|
engine: native (napi) | wasm | js
|
|
6529
6710
|
node: v22.0.0
|
|
6530
6711
|
platform: linux x64
|
|
@@ -6788,6 +6969,32 @@ new TUIShell({
|
|
|
6788
6969
|
|
|
6789
6970
|
## 附录 N:版本历史 CHANGELOG
|
|
6790
6971
|
|
|
6972
|
+
### v5.4.0 (2026-08-30)
|
|
6973
|
+
|
|
6974
|
+
**新增**
|
|
6975
|
+
- WASM 事务支持:`jsql_begin_tx` / `jsql_commit_tx` / `jsql_rollback_tx` 绑定,
|
|
6976
|
+
WASM 客户端 `beginTransaction()` / `commit()` / `rollback()` 与原生一致
|
|
6977
|
+
- 主键感知 by-id CRUD 与整串简写 schema(`createTable(name, 'id integer primary key auto_increment, ...')`)
|
|
6978
|
+
- `test/wasm.test.js`(20 项)纳入 `test:all`
|
|
6979
|
+
|
|
6980
|
+
**变更**
|
|
6981
|
+
- 版本号升至 5.4.0(package.json / Cargo.toml / Mongo `buildInfo` / README 同步)
|
|
6982
|
+
- 移除构建产物与死代码:`nativesrc/*/target/`(1155 个文件)、`bin/jsql-neo-server`(ELF)、
|
|
6983
|
+
根级 `database.js`/`btree.js` 副本、`lib/compress_pool.js`/`lib/compress_worker.js`
|
|
6984
|
+
|
|
6985
|
+
### v5.2.0-beta.1 (2026-08-17)
|
|
6986
|
+
|
|
6987
|
+
**新增**
|
|
6988
|
+
- 主键感知的 by-id CRUD:`findById` / `findByIds` / `updateById(s)` / `removeById(s)`
|
|
6989
|
+
在表存在主键时按主键值解析(字符串主键如 `findById('config', 'a')` 直接可用)
|
|
6990
|
+
- 非自增主键表 `insert` 返回主键值;`NativeJSQL` 新增
|
|
6991
|
+
`beginTransaction()` / `commit()` / `rollback()` 事务别名
|
|
6992
|
+
- 原生 / WASM 客户端新增 9 个回归测试
|
|
6993
|
+
|
|
6994
|
+
**变更**
|
|
6995
|
+
- 版本号重新基线 5.2.0-beta.1(package.json / Mongo `buildInfo` / README 同步)
|
|
6996
|
+
- 开源许可统一为 **Apache License 2.0**(README 同步,与 package.json 声明一致)
|
|
6997
|
+
|
|
6791
6998
|
### v5.3.1 (2026-08-12)
|
|
6792
6999
|
|
|
6793
7000
|
**修复**
|
|
@@ -7154,7 +7361,7 @@ CI(GitHub Actions)矩阵:`node 20/22` × `linux/macos/windows` × `native/
|
|
|
7154
7361
|
|
|
7155
7362
|
*JSQL-NEO — One engine to rule them all. MySQL. PostgreSQL. MongoDB. Redis. SQL. TypeScript. The browser.*
|
|
7156
7363
|
|
|
7157
|
-
*文档版本:v5.
|
|
7364
|
+
*文档版本:v5.4.0 · 共 19 个附录 · 最后更新:2026-08-12*
|
|
7158
7365
|
|
|
7159
7366
|
---
|
|
7160
7367
|
|
|
@@ -7761,4 +7968,4 @@ npm test
|
|
|
7761
7968
|
|
|
7762
7969
|
*JSQL-NEO — One engine to rule them all. MySQL. PostgreSQL. MongoDB. Redis. SQL. TypeScript. The browser.*
|
|
7763
7970
|
|
|
7764
|
-
*文档版本:v5.
|
|
7971
|
+
*文档版本:v5.4.0 · 附录 A–Z · 全文 6000+ 行 · 最后更新:2026-08-12*
|
package/bin/jsql
CHANGED
|
File without changes
|
package/bin/jsql-server
CHANGED
|
File without changes
|
|
File without changes
|
package/index.d.ts
CHANGED
|
File without changes
|
package/index.js
CHANGED
|
File without changes
|
package/lib/btree.js
CHANGED
|
File without changes
|
package/lib/cache.js
CHANGED
|
File without changes
|
package/lib/client.js
CHANGED
|
File without changes
|
package/lib/database.js
CHANGED
|
File without changes
|
package/lib/date-types.js
CHANGED
|
File without changes
|
package/lib/errors.js
CHANGED
|
File without changes
|
package/lib/jsql_format.js
CHANGED
|
File without changes
|
package/lib/migrate.js
CHANGED
|
File without changes
|
package/lib/mod.js
CHANGED
|
File without changes
|
package/lib/mongo_server.js
CHANGED
|
@@ -322,7 +322,7 @@ class MongoServer {
|
|
|
322
322
|
localTime: new Date(), logicalSessionTimeoutMinutes: 30, connectionId: 1,
|
|
323
323
|
};
|
|
324
324
|
case 'ping': return { ok: 1 };
|
|
325
|
-
case 'buildInfo': return { ok: 1, version: '5.
|
|
325
|
+
case 'buildInfo': return { ok: 1, version: '5.4.0-jsql-neo', gitVersion: 'jsql-neo', versionArray: [5, 4, 0, 0] };
|
|
326
326
|
case 'getParameter': return { ok: 1 };
|
|
327
327
|
case 'endSessions': return { ok: 1 };
|
|
328
328
|
case 'listDatabases':
|
package/lib/multiserver.js
CHANGED
|
File without changes
|
package/lib/mysql_compat.js
CHANGED
|
File without changes
|
package/lib/mysql_server.js
CHANGED
|
File without changes
|