@arcote.tech/arc 0.0.9 → 0.0.10

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/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // collection/collection.ts
2
- import {apply} from "mutative";
2
+ import { apply } from "mutative";
3
3
 
4
4
  // collection/queries/abstract-collection-query.ts
5
- import {BehaviorSubject, debounceTime, Subject} from "rxjs";
5
+ import { BehaviorSubject, debounceTime, Subject } from "rxjs";
6
6
 
7
7
  class ArcCollectionQuery {
8
8
  collection;
@@ -329,7 +329,7 @@ class ArcIndexedCollection extends ArcCollection {
329
329
  }
330
330
  }
331
331
  // context/context.ts
332
- import {create} from "mutative";
332
+ import { create } from "mutative";
333
333
  function context(...collections) {
334
334
  return new ArcContext(collections);
335
335
  }
@@ -540,7 +540,7 @@ class ArcObject extends ArcAbstract {
540
540
  }
541
541
 
542
542
  // elements/array.ts
543
- function array2(element) {
543
+ function array(element) {
544
544
  return new ArcArray(element);
545
545
  }
546
546
 
@@ -667,7 +667,7 @@ class ArcStringEnum extends ArcAbstract {
667
667
  }
668
668
  }
669
669
  // model/model.ts
670
- import {Subject as Subject2} from "rxjs";
670
+ import { Subject as Subject2 } from "rxjs";
671
671
  function model(context3, dependencies) {
672
672
  return new ArcModel(context3, dependencies.dbAdapterFactory, dependencies.rtcAdapterFactory);
673
673
  }
@@ -873,7 +873,7 @@ export {
873
873
  context,
874
874
  collection,
875
875
  boolean,
876
- array2 as array,
876
+ array,
877
877
  ArcStringEnum,
878
878
  ArcString,
879
879
  ArcOptional,
@@ -8,7 +8,7 @@ import type { ArcQuery } from "../context/query";
8
8
  import type { QueryFactoryFunction } from "./query-builder";
9
9
  import type { RealTimeCommunicationAdapterFactory } from "./rtc";
10
10
  export declare class ArcModel<C extends ArcContextWithCommandsAny> {
11
- private context;
11
+ readonly context: C;
12
12
  private rtc;
13
13
  private dbAdapterPromise;
14
14
  changes$: Subject<CollectionChange>;
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.9",
7
+ "version": "0.0.10",
8
8
  "private": false,
9
9
  "author": "Przemysław Krasiński [arcote.tech]",
10
10
  "description": "Arc is a framework designed to align code closely with business logic, streamlining development and enhancing productivity.",
@@ -13,7 +13,8 @@
13
13
  "build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
14
14
  "postbuild": "rimraf tsconfig.types.tsbuildinfo",
15
15
  "type-check": "tsc",
16
- "publish": "bun run build && npm publish --access=public"
16
+ "publish": "bun run build && npm publish --access=public",
17
+ "dev": "nodemon --ignore dist -e ts,tsx --exec 'bun run build'"
17
18
  },
18
19
  "dependencies": {
19
20
  "mutative": "^1.0.6",
@@ -23,7 +24,8 @@
23
24
  "@types/bun": "latest",
24
25
  "prettier": "^3.0.3",
25
26
  "rimraf": "^5.0.5",
26
- "typescript": "^5.2.2"
27
+ "typescript": "^5.2.2",
28
+ "nodemon": "^2.0.22"
27
29
  },
28
30
  "peerDependencies": {
29
31
  "typescript": "^5.0.0"
@@ -32,4 +34,4 @@
32
34
  "dist/**/*.js",
33
35
  "dist/**/*.d.ts"
34
36
  ]
35
- }
37
+ }