@arcote.tech/arc-react 0.0.11 → 0.0.13

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 (2) hide show
  1. package/dist/index.js +1 -4
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -8,9 +8,6 @@ function formResolver(schema) {
8
8
  };
9
9
  }
10
10
  // idb.ts
11
- import {
12
- ArcIndexedCollection
13
- } from "@arcote.tech/arc";
14
11
  var idbAdapterFactory = (name, version) => (context) => new Promise((resolve, reject) => {
15
12
  const dbRequest = indexedDB.open(name, version);
16
13
  dbRequest.addEventListener("error", (err) => {
@@ -29,7 +26,7 @@ var idbAdapterFactory = (name, version) => (context) => new Promise((resolve, re
29
26
  const objectStore = db.createObjectStore(collection.name, {
30
27
  keyPath: "_id"
31
28
  });
32
- if (collection instanceof ArcIndexedCollection) {
29
+ if (collection.indexes) {
33
30
  Object.entries(collection.indexes).forEach(([name3, keyPath]) => {
34
31
  objectStore.createIndex(name3, keyPath, {
35
32
  unique: false
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
- "version": "0.0.11",
7
+ "version": "0.0.13",
8
8
  "private": false,
9
9
  "author": "Przemysław Krasiński [arcote.tech]",
10
10
  "description": "React client for the Arc framework, providing utilities for querying data and executing commands, enhancing the development of reactive and efficient user interfaces.",
@@ -21,7 +21,6 @@
21
21
  "rxjs": "^7.8.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@arcote.tech/arc": "workspace:*",
25
24
  "@types/bun": "latest",
26
25
  "@types/react": "^18.3.5",
27
26
  "prettier": "^3.0.3",