@ahmadmoussawi/webdb 0.1.3 → 0.2.0

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.
Files changed (48) hide show
  1. package/README.md +50 -6
  2. package/dist/angular.cjs +2 -0
  3. package/dist/angular.cjs.map +1 -0
  4. package/dist/angular.d.ts +92 -0
  5. package/dist/angular.js +108 -0
  6. package/dist/angular.js.map +1 -0
  7. package/dist/core/index.d.ts +1 -1
  8. package/dist/core/index.d.ts.map +1 -1
  9. package/dist/core/js/catalog.c.d.ts +88 -27
  10. package/dist/core/js/catalog.c.d.ts.map +1 -1
  11. package/dist/core/wasm/embedded_wasm.d.ts +1 -1
  12. package/dist/core/wasm/embedded_wasm.d.ts.map +1 -1
  13. package/dist/core/wasm/wasm_core.d.ts.map +1 -1
  14. package/dist/host/api/index.d.ts +1 -0
  15. package/dist/host/api/index.d.ts.map +1 -1
  16. package/dist/host/api/live_query.d.ts +71 -0
  17. package/dist/host/api/live_query.d.ts.map +1 -0
  18. package/dist/host/api/query_builder.d.ts +20 -0
  19. package/dist/host/api/query_builder.d.ts.map +1 -1
  20. package/dist/host/api/webdb.d.ts +8 -0
  21. package/dist/host/api/webdb.d.ts.map +1 -1
  22. package/dist/host/driver/buffer_pool_driver.d.ts.map +1 -1
  23. package/dist/host/storage/idb.d.ts +1 -3
  24. package/dist/host/storage/idb.d.ts.map +1 -1
  25. package/dist/host/storage/io.d.ts.map +1 -1
  26. package/dist/host/storage/memory.d.ts +1 -3
  27. package/dist/host/storage/memory.d.ts.map +1 -1
  28. package/dist/host/storage/opfs.d.ts +1 -3
  29. package/dist/host/storage/opfs.d.ts.map +1 -1
  30. package/dist/host/storage/vfs.d.ts +12 -16
  31. package/dist/host/storage/vfs.d.ts.map +1 -1
  32. package/dist/react.cjs +2 -0
  33. package/dist/react.cjs.map +1 -0
  34. package/dist/react.d.ts +52 -0
  35. package/dist/react.js +66 -0
  36. package/dist/react.js.map +1 -0
  37. package/dist/types/index.d.ts +4 -0
  38. package/dist/types/index.d.ts.map +1 -1
  39. package/dist/vue.cjs +2 -0
  40. package/dist/vue.cjs.map +1 -0
  41. package/dist/vue.d.ts +100 -0
  42. package/dist/vue.js +80 -0
  43. package/dist/vue.js.map +1 -0
  44. package/dist/webdb.js +5701 -5143
  45. package/dist/webdb.js.map +1 -1
  46. package/dist/webdb.umd.cjs +2 -2
  47. package/dist/webdb.umd.cjs.map +1 -1
  48. package/package.json +37 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahmadmoussawi/webdb",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Ultra-lean browser-native relational database engine",
6
6
  "license": "MIT",
@@ -30,6 +30,41 @@
30
30
  "types": "./dist/index.d.ts",
31
31
  "import": "./dist/webdb.js",
32
32
  "require": "./dist/webdb.umd.cjs"
33
+ },
34
+ "./react": {
35
+ "types": "./dist/react.d.ts",
36
+ "import": "./dist/react.js",
37
+ "require": "./dist/react.cjs"
38
+ },
39
+ "./angular": {
40
+ "types": "./dist/angular.d.ts",
41
+ "import": "./dist/angular.js",
42
+ "require": "./dist/angular.cjs"
43
+ },
44
+ "./vue": {
45
+ "types": "./dist/vue.d.ts",
46
+ "import": "./dist/vue.js",
47
+ "require": "./dist/vue.cjs"
48
+ }
49
+ },
50
+ "peerDependencies": {
51
+ "@angular/core": ">=16.0.0",
52
+ "react": ">=18.0.0",
53
+ "rxjs": ">=7.0.0",
54
+ "vue": ">=3.0.0"
55
+ },
56
+ "peerDependenciesMeta": {
57
+ "@angular/core": {
58
+ "optional": true
59
+ },
60
+ "react": {
61
+ "optional": true
62
+ },
63
+ "rxjs": {
64
+ "optional": true
65
+ },
66
+ "vue": {
67
+ "optional": true
33
68
  }
34
69
  },
35
70
  "files": [
@@ -41,7 +76,7 @@
41
76
  "transpile:c": "vite-node scripts/transpiler/index.ts --all --write",
42
77
  "build:wasm": "node scripts/build_wasm.js",
43
78
  "prebuild": "node scripts/generate_layouts.js",
44
- "build": "vite build",
79
+ "build": "vite build && vite build --config vite.adapters.config.ts",
45
80
  "prepack": "npm run build",
46
81
  "pretest": "node scripts/generate_layouts.js",
47
82
  "test": "vitest run tests",