@trust0/ridb-core 1.7.10 → 1.7.12

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/README.md CHANGED
@@ -15,14 +15,8 @@
15
15
  RIDB secure database wrapper for the web with multiple storage engines, written in rust.
16
16
  This package serves as wasm wrapper for the [RIDB](https://github.com/trust0-project/RIDB) project, providing a secure and lightweight database solution for the web.
17
17
 
18
- ## Build & Testing
19
- RIDB is a project mainly developed in rust and exported to wasm, the project combines the execution of rust code with the plugins and storage engines defined by the user in JS code or other wasm packages.
20
- Building the project is pretty straight forward.
21
-
22
- ### Requirements
23
- * Bash
24
- * Have Rust ([cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)) and [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)) installed.
25
- * Node JS Version (20/LTS Recommended)
18
+ ## Documentation
19
+ Complete type structure and sdk docs can be found [here](./docs/README.md)
26
20
 
27
21
  ### Building the source code
28
22
  Building the source code will compile the rust code into wasm and then bundle the Javascript code using esbuild, the output will be located in ./ts/build.
@@ -38,6 +38,16 @@ declare function __wbgtest_console_warn(args: Array<any>): void;
38
38
  */
39
39
  declare function __wbgtest_console_error(args: Array<any>): void;
40
40
  /**
41
+ */
42
+ declare enum Errors {
43
+ Error = 0,
44
+ HookError = 1,
45
+ QueryError = 2,
46
+ SerializationError = 3,
47
+ ValidationError = 4,
48
+ AuthenticationError = 5,
49
+ }
50
+ /**
41
51
  * Represents the type of operation to be performed on the collection.
42
52
  */
43
53
  declare enum OpType {
@@ -62,16 +72,6 @@ declare enum OpType {
62
72
  */
63
73
  COUNT = 4,
64
74
  }
65
- /**
66
- */
67
- declare enum Errors {
68
- Error = 0,
69
- HookError = 1,
70
- QueryError = 2,
71
- SerializationError = 3,
72
- ValidationError = 4,
73
- AuthenticationError = 5,
74
- }
75
75
 
76
76
  /**
77
77
  * Represents a property within a schema, including various constraints and nested properties.
@@ -1,20 +1,3 @@
1
- /**
2
- * @packageDocumentation
3
- *
4
- * <p align="center">
5
- * <img src="https://cdn.jsdelivr.net/gh/trust0-project/ridb@latest/docs/logo.svg" alt="JavaScript Database" />
6
- * <br />
7
- * <br />
8
- * <h3 align="center">A secure light-weight and dependency free database wrapper for the web.</h3>
9
- * </p>
10
- * <p align="center">
11
- * <a href="https://github.com/trust0-project/RIDB/releases"><img src="https://img.shields.io/github/v/release/trust0-project/ridb?color=%23ff00a0&include_prereleases&label=version&sort=semver&style=flat-square"></a>
12
- * <a href="#"><img src="https://img.shields.io/npm/types/rxdb?style=flat-square"></a>
13
- * <a href="https://raw.githubusercontent.com/trust0-project/RIDB/refs/heads/main/LICENSE"><img src="https://img.shields.io/github/license/trust0-project/ridb?style=flat-square"></a>
14
- * <a href="https://www.npmjs.com/package/@trust0/ridb"><img src="https://img.shields.io/npm/dm/@trust0/ridb?color=c63a3b&style=flat-square"></a>
15
- * </p>
16
- * <h1>Introduction</h1>
17
- */
18
1
  "use strict";
19
2
  var __defProp = Object.defineProperty;
20
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -394,6 +377,7 @@ function __wbg_adapter_333(arg0, arg1, arg2, arg3, arg4) {
394
377
  function __wbg_adapter_390(arg0, arg1, arg2, arg3) {
395
378
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h424d8c39cf909020(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
396
379
  }
380
+ var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
397
381
  var OpType = Object.freeze({
398
382
  /**
399
383
  * Create operation.
@@ -421,7 +405,6 @@ var OpType = Object.freeze({
421
405
  COUNT: 4,
422
406
  "4": "COUNT"
423
407
  });
424
- var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
425
408
  var BasePluginFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
426
409
  }, unregister: () => {
427
410
  } } : new FinalizationRegistry((ptr) => wasm.__wbg_baseplugin_free(ptr >>> 0));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.7.10",
7
+ "version": "1.7.12",
8
8
  "main": "./build/ridb_core.js",
9
9
  "module": "./build/ridb_core.mjs",
10
10
  "types": "./build/ridb_core.d.ts",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@esbuild-plugins/node-resolve": "^0.2.2",
32
- "@trust0/ridb-build": "^0.0.6",
32
+ "@trust0/ridb-build": "^0.0.8",
33
33
  "esbuild": "^0.25.4"
34
34
  },
35
35
  "files": [