@travetto/model-sql 5.0.0-rc.0 → 5.0.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-sql",
3
- "version": "5.0.0-rc.0",
3
+ "version": "5.0.0-rc.2",
4
4
  "description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
5
5
  "keywords": [
6
6
  "sql",
@@ -27,14 +27,14 @@
27
27
  "directory": "module/model-sql"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^5.0.0-rc.0",
31
- "@travetto/context": "^5.0.0-rc.0",
32
- "@travetto/model": "^5.0.0-rc.0",
33
- "@travetto/model-query": "^5.0.0-rc.0"
30
+ "@travetto/config": "^5.0.0-rc.2",
31
+ "@travetto/context": "^5.0.0-rc.2",
32
+ "@travetto/model": "^5.0.0-rc.2",
33
+ "@travetto/model-query": "^5.0.0-rc.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/command": "^5.0.0-rc.0",
37
- "@travetto/test": "^5.0.0-rc.0"
36
+ "@travetto/command": "^5.0.0-rc.2",
37
+ "@travetto/test": "^5.0.0-rc.2"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/command": {
@@ -1,4 +1,4 @@
1
- import { Util } from '@travetto/base';
1
+ import { Util } from '@travetto/runtime';
2
2
  import { AsyncContext } from '@travetto/context';
3
3
 
4
4
  const ContextActiveⲐ: unique symbol = Symbol.for('@travetto/model:sql-active');
@@ -1,6 +1,5 @@
1
- import { RuntimeIndex } from '@travetto/manifest';
2
1
  import { DataUtil, SchemaRegistry, FieldConfig, Schema } from '@travetto/schema';
3
- import { Class, AppError, TypedObject } from '@travetto/base';
2
+ import { Class, AppError, TypedObject, describeFunction } from '@travetto/runtime';
4
3
  import { SelectClause, Query, SortClause, WhereClause, RetainFields } from '@travetto/model-query';
5
4
  import { BulkResponse, IndexConfig } from '@travetto/model';
6
5
  import { PointImpl } from '@travetto/model-query/src/internal/model/point';
@@ -647,7 +646,7 @@ ${this.getLimitSQL(cls, query)}`;
647
646
  const parent = stack.length > 1;
648
647
  const array = parent && config.array;
649
648
 
650
- if (config.type && RuntimeIndex.getFunctionMetadata(config.type)?.synthetic) {
649
+ if (config.type && describeFunction(config.type)?.synthetic) {
651
650
  throw new AppError(`Cannot create SQL tables for synthetic types, please convert ${SQLUtil.buildPath(stack)} to a concrete class`);
652
651
  }
653
652
 
@@ -1,4 +1,4 @@
1
- import { Class, TypedObject } from '@travetto/base';
1
+ import { Class, TypedObject } from '@travetto/runtime';
2
2
  import { SelectClause, SortClause } from '@travetto/model-query';
3
3
  import { ModelRegistry, ModelType, OptionalId } from '@travetto/model';
4
4
  import { SchemaRegistry, ClassConfig, FieldConfig, DataUtil } from '@travetto/schema';
package/src/service.ts CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  NotFoundError, ModelRegistry, ExistsError, OptionalId,
5
5
  ModelIdSource
6
6
  } from '@travetto/model';
7
- import { Class } from '@travetto/base';
7
+ import { Class } from '@travetto/runtime';
8
8
  import { DataUtil, SchemaChange } from '@travetto/schema';
9
9
  import { AsyncContext } from '@travetto/context';
10
10
  import { Injectable } from '@travetto/di';
@@ -1,6 +1,6 @@
1
1
  import { AsyncContext, WithAsyncContext } from '@travetto/context';
2
2
  import { ModelRegistry } from '@travetto/model';
3
- import { Class } from '@travetto/base';
3
+ import { Class } from '@travetto/runtime';
4
4
  import { ChangeEvent } from '@travetto/registry';
5
5
  import { SchemaChange } from '@travetto/schema';
6
6