@dbml/core 8.0.0-alpha.9 → 8.0.0-prerelease.1

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/core",
4
- "version": "8.0.0-alpha.9",
4
+ "version": "8.0.0-prerelease.1",
5
5
  "description": "> TODO: description",
6
6
  "author": "Holistics <dev@holistics.io>",
7
7
  "license": "Apache-2.0",
@@ -46,7 +46,6 @@
46
46
  "lint:fix": "eslint --fix ."
47
47
  },
48
48
  "dependencies": {
49
- "@dbml/parse": "^8.0.0-alpha.9",
50
49
  "antlr4": "^4.13.1",
51
50
  "lodash": "^4.18.1",
52
51
  "lodash-es": "^4.18.1",
@@ -54,10 +53,13 @@
54
53
  "parsimmon": "^1.13.0",
55
54
  "pluralize": "^8.0.0"
56
55
  },
56
+ "peerDependencies": {
57
+ "@dbml/parse": "^8.0.0-prerelease.1"
58
+ },
57
59
  "devDependencies": {
58
60
  "bluebird": "^3.5.5"
59
61
  },
60
- "gitHead": "b5a159cdd4e2f0d53da79447ffacd79ce4872df5",
62
+ "gitHead": "e5213e867f3820449fe1307bcd3f73e866f8e79f",
61
63
  "engines": {
62
64
  "node": ">=16"
63
65
  }
@@ -1,4 +1,4 @@
1
- import { Compiler } from '@dbml/parse';
1
+ import { Compiler, MemoryProjectLayout } from '@dbml/parse';
2
2
  import Database, { RawDatabase } from '../model_structure/database';
3
3
 
4
4
  export declare type ParseFormat = 'json'
@@ -11,8 +11,9 @@ export declare type ParseFormat = 'json'
11
11
  | 'oracle';
12
12
 
13
13
  declare class Parser {
14
+ public layout: MemoryProjectLayout;
14
15
  public DBMLCompiler: Compiler;
15
- constructor(dbmlCompiler?: Compiler);
16
+ constructor();
16
17
  static parseJSONToDatabase(rawDatabase: RawDatabase): Database;
17
18
  /** @deprecated Use parseMySQLToJSONv2 instead */
18
19
  static parseMySQLToJSON(str: string): RawDatabase;
@@ -22,16 +23,13 @@ declare class Parser {
22
23
  static parsePostgresToJSONv2(str: string): RawDatabase;
23
24
  /** @deprecated Use parseDBMLToJSONv2 instead */
24
25
  static parseDBMLToJSON(str: string): RawDatabase;
25
- static parseDBMLToJSONv2(str: string, dbmlCompiler?: Compiler): RawDatabase;
26
+ static parseDBMLToJSONv2(str: string): RawDatabase;
26
27
  static parseSchemaRbToJSON(str: string): RawDatabase;
27
28
  /** @deprecated Use parseMSSQLToJSONv2 instead */
28
29
  static parseMSSQLToJSON(str: string): RawDatabase;
29
30
  static parseMSSQLToJSONv2(str: string): RawDatabase;
30
31
  static parseSnowflakeToJSON(str: string): RawDatabase;
31
32
  static parseOracleToJSON(str: string): RawDatabase;
32
- /**
33
- * Should use parse() instance method instead of this static method whenever possible
34
- */
35
33
  static parse(str: string, format: ParseFormat): Database;
36
34
  static parse(str: RawDatabase, format: 'json'): Database;
37
35
  parse(str: string, format: ParseFormat): Database;