@malloydata/malloy 0.0.434 → 0.0.435

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 (47) hide show
  1. package/dist/api/foundation/compile.d.ts +0 -1
  2. package/dist/api/foundation/compile.js +0 -3
  3. package/dist/api/foundation/runtime.d.ts +0 -1
  4. package/dist/api/foundation/runtime.js +1 -23
  5. package/dist/api/foundation/types.d.ts +0 -1
  6. package/dist/dialect/dialect.d.ts +14 -1
  7. package/dist/dialect/dialect.js +34 -2
  8. package/dist/dialect/dialect_map.js +2 -0
  9. package/dist/dialect/index.d.ts +2 -1
  10. package/dist/dialect/index.js +3 -1
  11. package/dist/dialect/sqlserver/dialect_functions.d.ts +2 -0
  12. package/dist/dialect/sqlserver/dialect_functions.js +42 -0
  13. package/dist/dialect/sqlserver/function_overrides.d.ts +2 -0
  14. package/dist/dialect/sqlserver/function_overrides.js +55 -0
  15. package/dist/dialect/sqlserver/index.d.ts +1 -0
  16. package/dist/dialect/sqlserver/index.js +22 -0
  17. package/dist/dialect/sqlserver/sqlserver.d.ts +102 -0
  18. package/dist/dialect/sqlserver/sqlserver.js +538 -0
  19. package/dist/dialect/sqlserver/windows_zones.d.ts +1 -0
  20. package/dist/dialect/sqlserver/windows_zones.js +613 -0
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +5 -3
  23. package/dist/lang/ast/source-elements/named-source.js +0 -2
  24. package/dist/lang/ast/source-elements/sql-source.js +0 -3
  25. package/dist/lang/ast/source-elements/table-source.js +1 -2
  26. package/dist/lang/ast/statements/import-statement.js +4 -0
  27. package/dist/lang/ast/types/malloy-element.d.ts +0 -7
  28. package/dist/lang/ast/types/malloy-element.js +0 -18
  29. package/dist/lang/parse-malloy.d.ts +17 -2
  30. package/dist/lang/parse-malloy.js +48 -14
  31. package/dist/lang/parse-tree-walkers/find-external-references.d.ts +3 -3
  32. package/dist/lang/parse-tree-walkers/find-external-references.js +17 -16
  33. package/dist/lang/test/test-translator.d.ts +10 -1
  34. package/dist/lang/test/test-translator.js +15 -1
  35. package/dist/model/expression_compiler.js +1 -1
  36. package/dist/model/query_query.d.ts +3 -1
  37. package/dist/model/query_query.js +157 -139
  38. package/dist/model/source_def_utils.d.ts +7 -1
  39. package/dist/model/source_def_utils.js +20 -0
  40. package/dist/test/index.js +16 -8
  41. package/dist/test/matchers.d.ts +1 -1
  42. package/dist/test/matchers.js +1 -1
  43. package/dist/test/test-models.js +6 -13
  44. package/dist/version.d.ts +1 -1
  45. package/dist/version.js +1 -1
  46. package/femto-config.motly +13 -1
  47. package/package.json +7 -5
@@ -28,6 +28,18 @@ tokenNames: {
28
28
  commands = ["node src/lang/grammar/build_token_names.js"]
29
29
  }
30
30
 
31
+ # A pure function of the two CLDR files, so a cldr-core/cldr-bcp47 bump
32
+ # regenerates it on the next build.
33
+ windowsZones: {
34
+ inputs = [
35
+ "src/dialect/sqlserver/build_windows_zones.js",
36
+ "../../node_modules/cldr-core/supplemental/windowsZones.json",
37
+ "../../node_modules/cldr-bcp47/bcp47/timezone.json"
38
+ ]
39
+ outputs = ["src/dialect/sqlserver/windows_zones.ts"]
40
+ commands = ["node src/dialect/sqlserver/build_windows_zones.js"]
41
+ }
42
+
31
43
  codegen: {
32
- deps = [parser, tokenNames]
44
+ deps = [parser, tokenNames, windowsZones]
33
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.434",
3
+ "version": "0.0.435",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "url": "https://github.com/malloydata/malloy"
41
41
  },
42
42
  "scripts": {
43
- "test": "jest --config=../../jest.config.js",
43
+ "test": "echo 'Read the Testing section of the repo-root CONTEXT.md for information on testing in this monorepo'; exit 1",
44
44
  "codegen": "node ../../scripts/femto-build.js codegen",
45
45
  "build-parser": "node src/lang/grammar/build_parser.js",
46
46
  "clean": "tsc --build --clean && rm -f tsconfig.tsbuildinfo && node ../../scripts/femto-build.js --clean && rm -rf src/lang/lib dist",
@@ -51,9 +51,9 @@
51
51
  "generate-version-file": "VERSION=$(npm pkg get version --workspaces=false | tr -d \\\")\necho \"// generated with 'generate-version-file' script; do not edit manually\\nexport const MALLOY_VERSION = '$VERSION';\" > src/version.ts"
52
52
  },
53
53
  "dependencies": {
54
- "@malloydata/malloy-filter": "0.0.434",
55
- "@malloydata/malloy-interfaces": "0.0.434",
56
- "@malloydata/malloy-tag": "0.0.434",
54
+ "@malloydata/malloy-filter": "0.0.435",
55
+ "@malloydata/malloy-interfaces": "0.0.435",
56
+ "@malloydata/malloy-tag": "0.0.435",
57
57
  "@noble/hashes": "^1.8.0",
58
58
  "antlr4ts": "^0.5.0-alpha.4",
59
59
  "assert": "^2.0.0",
@@ -67,6 +67,8 @@
67
67
  "@types/lodash": "^4.17.24",
68
68
  "@types/luxon": "^3.7.2",
69
69
  "antlr4ts-cli": "^0.5.0-alpha.4",
70
+ "cldr-bcp47": "^48.2.0",
71
+ "cldr-core": "^48.2.0",
70
72
  "jest-diff": "^30.4.1"
71
73
  }
72
74
  }