@dbml/parse 5.4.0 → 5.4.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.
Files changed (112) hide show
  1. package/LICENSE +0 -0
  2. package/dist/{tests → __tests__/examples}/binder/binder.test.d.ts +0 -0
  3. package/dist/{tests → __tests__/examples}/compiler/applyTextEdits.test.d.ts +0 -0
  4. package/dist/{tests → __tests__/examples}/compiler/renameTable.test.d.ts +0 -0
  5. package/dist/{tests → __tests__/examples}/interpreter/interpreter.test.d.ts +0 -0
  6. package/dist/{tests → __tests__/examples}/lexer/lexer.test.d.ts +0 -0
  7. package/dist/{tests → __tests__/examples}/parser/parser.test.d.ts +0 -0
  8. package/dist/{tests/NaN_errors/interpreter_NaN.test.d.ts → __tests__/examples/services/definition.test.d.ts} +0 -0
  9. package/dist/{tests/validator/validator.test.d.ts → __tests__/examples/services/references.test.d.ts} +0 -0
  10. package/dist/__tests__/examples/services/service_utils.test.d.ts +1 -0
  11. package/dist/__tests__/examples/services/suggestions.test.d.ts +1 -0
  12. package/dist/__tests__/examples/validator/validator.test.d.ts +1 -0
  13. package/dist/__tests__/fuzz/interpreter.test.d.ts +1 -0
  14. package/dist/__tests__/fuzz/parser.test.d.ts +1 -0
  15. package/dist/__tests__/fuzz/services.test.d.ts +1 -0
  16. package/dist/__tests__/properties/lexer.test.d.ts +1 -0
  17. package/dist/__tests__/properties/parser.test.d.ts +1 -0
  18. package/dist/__tests__/snapshots/nan/nan.test.d.ts +1 -0
  19. package/dist/__tests__/utils/arbitraries/grammars.d.ts +100 -0
  20. package/dist/__tests__/utils/arbitraries/index.d.ts +3 -0
  21. package/dist/__tests__/utils/arbitraries/tokens.d.ts +20 -0
  22. package/dist/__tests__/utils/arbitraries/utils.d.ts +59 -0
  23. package/dist/__tests__/utils/compiler.d.ts +13 -0
  24. package/dist/__tests__/utils/index.d.ts +3 -0
  25. package/dist/__tests__/utils/mocks.d.ts +16 -0
  26. package/dist/__tests__/utils/testHelpers.d.ts +16 -0
  27. package/dist/dbml-parse.js +9 -9
  28. package/dist/dbml-parse.mjs +2066 -2117
  29. package/dist/src/compiler/index.d.ts +0 -0
  30. package/dist/src/compiler/queries/container/element.d.ts +0 -0
  31. package/dist/src/compiler/queries/container/index.d.ts +0 -0
  32. package/dist/src/compiler/queries/container/scope.d.ts +0 -0
  33. package/dist/src/compiler/queries/container/scopeKind.d.ts +0 -0
  34. package/dist/src/compiler/queries/container/stack.d.ts +0 -0
  35. package/dist/src/compiler/queries/container/token.d.ts +0 -0
  36. package/dist/src/compiler/queries/parse.d.ts +0 -0
  37. package/dist/src/compiler/queries/symbol.d.ts +0 -0
  38. package/dist/src/compiler/queries/token.d.ts +0 -0
  39. package/dist/src/compiler/queries/transform/applyTextEdits.d.ts +0 -0
  40. package/dist/src/compiler/queries/transform/index.d.ts +0 -0
  41. package/dist/src/compiler/queries/transform/renameTable.d.ts +0 -0
  42. package/dist/src/compiler/types.d.ts +0 -0
  43. package/dist/src/constants.d.ts +0 -0
  44. package/dist/src/core/analyzer/analyzer.d.ts +0 -0
  45. package/dist/src/core/analyzer/binder/binder.d.ts +0 -0
  46. package/dist/src/core/analyzer/binder/elementBinder/checks.d.ts +0 -0
  47. package/dist/src/core/analyzer/binder/elementBinder/custom.d.ts +0 -0
  48. package/dist/src/core/analyzer/binder/elementBinder/elementBinder.d.ts +0 -0
  49. package/dist/src/core/analyzer/binder/elementBinder/enum.d.ts +0 -0
  50. package/dist/src/core/analyzer/binder/elementBinder/indexes.d.ts +0 -0
  51. package/dist/src/core/analyzer/binder/elementBinder/note.d.ts +0 -0
  52. package/dist/src/core/analyzer/binder/elementBinder/project.d.ts +0 -0
  53. package/dist/src/core/analyzer/binder/elementBinder/ref.d.ts +0 -0
  54. package/dist/src/core/analyzer/binder/elementBinder/table.d.ts +0 -0
  55. package/dist/src/core/analyzer/binder/elementBinder/tableGroup.d.ts +0 -0
  56. package/dist/src/core/analyzer/binder/elementBinder/tablePartial.d.ts +0 -0
  57. package/dist/src/core/analyzer/binder/types.d.ts +0 -0
  58. package/dist/src/core/analyzer/binder/utils.d.ts +0 -0
  59. package/dist/src/core/analyzer/symbol/factory.d.ts +0 -0
  60. package/dist/src/core/analyzer/symbol/symbolIndex.d.ts +0 -0
  61. package/dist/src/core/analyzer/symbol/symbolTable.d.ts +0 -0
  62. package/dist/src/core/analyzer/symbol/symbols.d.ts +0 -0
  63. package/dist/src/core/analyzer/symbol/utils.d.ts +0 -0
  64. package/dist/src/core/analyzer/types.d.ts +0 -0
  65. package/dist/src/core/analyzer/utils.d.ts +0 -0
  66. package/dist/src/core/analyzer/validator/elementValidators/checks.d.ts +0 -0
  67. package/dist/src/core/analyzer/validator/elementValidators/custom.d.ts +0 -0
  68. package/dist/src/core/analyzer/validator/elementValidators/enum.d.ts +0 -0
  69. package/dist/src/core/analyzer/validator/elementValidators/indexes.d.ts +0 -0
  70. package/dist/src/core/analyzer/validator/elementValidators/note.d.ts +0 -0
  71. package/dist/src/core/analyzer/validator/elementValidators/project.d.ts +0 -0
  72. package/dist/src/core/analyzer/validator/elementValidators/ref.d.ts +0 -0
  73. package/dist/src/core/analyzer/validator/elementValidators/table.d.ts +0 -0
  74. package/dist/src/core/analyzer/validator/elementValidators/tableGroup.d.ts +0 -0
  75. package/dist/src/core/analyzer/validator/elementValidators/tablePartial.d.ts +0 -0
  76. package/dist/src/core/analyzer/validator/types.d.ts +0 -0
  77. package/dist/src/core/analyzer/validator/utils.d.ts +0 -0
  78. package/dist/src/core/analyzer/validator/validator.d.ts +0 -0
  79. package/dist/src/core/errors.d.ts +0 -0
  80. package/dist/src/core/interpreter/elementInterpreter/enum.d.ts +0 -0
  81. package/dist/src/core/interpreter/elementInterpreter/project.d.ts +0 -0
  82. package/dist/src/core/interpreter/elementInterpreter/ref.d.ts +0 -0
  83. package/dist/src/core/interpreter/elementInterpreter/sticky_note.d.ts +0 -0
  84. package/dist/src/core/interpreter/elementInterpreter/table.d.ts +0 -0
  85. package/dist/src/core/interpreter/elementInterpreter/tableGroup.d.ts +0 -0
  86. package/dist/src/core/interpreter/elementInterpreter/tablePartial.d.ts +0 -0
  87. package/dist/src/core/interpreter/interpreter.d.ts +0 -0
  88. package/dist/src/core/interpreter/types.d.ts +0 -0
  89. package/dist/src/core/interpreter/utils.d.ts +0 -0
  90. package/dist/src/core/lexer/lexer.d.ts +0 -0
  91. package/dist/src/core/lexer/tokens.d.ts +0 -0
  92. package/dist/src/core/lexer/utils.d.ts +0 -0
  93. package/dist/src/core/option.d.ts +0 -0
  94. package/dist/src/core/parser/contextStack.d.ts +0 -0
  95. package/dist/src/core/parser/factory.d.ts +0 -0
  96. package/dist/src/core/parser/nodes.d.ts +1 -0
  97. package/dist/src/core/parser/parser.d.ts +0 -0
  98. package/dist/src/core/parser/utils.d.ts +0 -0
  99. package/dist/src/core/report.d.ts +0 -0
  100. package/dist/src/core/serialization/serialize.d.ts +0 -0
  101. package/dist/src/core/types.d.ts +0 -0
  102. package/dist/src/core/utils.d.ts +0 -0
  103. package/dist/src/index.d.ts +0 -0
  104. package/dist/src/services/definition/provider.d.ts +0 -0
  105. package/dist/src/services/index.d.ts +0 -0
  106. package/dist/src/services/references/provider.d.ts +0 -0
  107. package/dist/src/services/suggestions/provider.d.ts +0 -0
  108. package/dist/src/services/suggestions/utils.d.ts +0 -0
  109. package/dist/src/services/types.d.ts +1 -1
  110. package/dist/src/services/utils.d.ts +0 -0
  111. package/package.json +4 -5
  112. package/dist/tests/jestHelpers.d.ts +0 -1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -138,6 +138,7 @@ export declare class BlockExpressionNode extends SyntaxNode {
138
138
  }, id: SyntaxNodeId);
139
139
  }
140
140
  export declare class PartialInjectionNode extends SyntaxNode {
141
+ op?: SyntaxToken;
141
142
  partial?: VariableNode;
142
143
  constructor({ op, partial }: {
143
144
  op?: SyntaxToken;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { Position as IPosition, editor, languages, IRange, IDisposable, CancellationToken as ICancellationToken } from 'monaco-editor-core';
1
+ import { IPosition, editor, languages, IRange, IDisposable, CancellationToken as ICancellationToken } from 'monaco-editor-core';
2
2
  export type Position = IPosition;
3
3
  export type TextModel = editor.ITextModel;
4
4
  export type ProviderResult<T> = languages.ProviderResult<T>;
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/parse",
4
- "version": "5.4.0",
4
+ "version": "5.4.1",
5
5
  "description": "DBML parser v2",
6
6
  "author": "Holistics <dev@holistics.io>",
7
7
  "license": "Apache-2.0",
@@ -44,9 +44,8 @@
44
44
  "monaco-editor-core": "^0.44.0",
45
45
  "typescript": "^5.9.3",
46
46
  "typescript-eslint": "^8.46.3",
47
- "vite": "^6.3.5",
48
- "vite-plugin-dts": "^4.5.4",
49
- "vitest": "^3.1.4"
47
+ "vite": "^7.2.2",
48
+ "vite-plugin-dts": "^4.5.4"
50
49
  },
51
50
  "dependencies": {
52
51
  "lodash-es": "^4.17.21"
@@ -54,5 +53,5 @@
54
53
  "engines": {
55
54
  "node": ">=18"
56
55
  },
57
- "gitHead": "e7837a6418602e2b9d5a350335b669155d5c7ad4"
56
+ "gitHead": "f5c8bf0c9d95948e3874cfb6cc777f65c4180891"
58
57
  }
@@ -1 +0,0 @@
1
- export declare function scanTestNames(_path: any): string[];