@malloydata/malloy 0.0.401 → 0.0.402

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.
@@ -98,18 +98,12 @@ export declare class Annotations {
98
98
  */
99
99
  texts(route?: string): string[];
100
100
  /**
101
- * Your route's notes as {@link RoutedNote}s — for callers that parse the
102
- * payload with their own parser (instead of MOTLY). Read `.content` to
103
- * feed your parser, and `.at` + `.indentStripped` to map your parser's
104
- * errors back to source.
105
- *
106
- * `malformed-route` annotations are excluded (no clean route to resolve
107
- * to). `reserved-route` annotations are included — they parse to a real
108
- * route and the user got a compile-time warning. Route filtering is
109
- * level-blind (`#` and `##` both go to route `''`); the entity hands
110
- * you the annotations that apply at its level.
101
+ * Notes as {@link RoutedNote}s — for callers that parse the payload with
102
+ * their own parser (instead of MOTLY). Pass a route to filter; omit it
103
+ * to enumerate every annotation (the only way to reach malformed-prefix
104
+ * ones). `malformed-route` annotations are excluded when filtering.
111
105
  */
112
- forRoute(route: string): RoutedNote[];
106
+ forRoute(route?: string): RoutedNote[];
113
107
  /** Parse a route's annotations as a MOTLY tag. Default `''` is the tag route. */
114
108
  parseAsTag(route?: string): MalloyTagParse;
115
109
  }
@@ -167,16 +167,10 @@ class Annotations {
167
167
  return collectAnnotations(this.annote, route).map(a => a.text);
168
168
  }
169
169
  /**
170
- * Your route's notes as {@link RoutedNote}s — for callers that parse the
171
- * payload with their own parser (instead of MOTLY). Read `.content` to
172
- * feed your parser, and `.at` + `.indentStripped` to map your parser's
173
- * errors back to source.
174
- *
175
- * `malformed-route` annotations are excluded (no clean route to resolve
176
- * to). `reserved-route` annotations are included — they parse to a real
177
- * route and the user got a compile-time warning. Route filtering is
178
- * level-blind (`#` and `##` both go to route `''`); the entity hands
179
- * you the annotations that apply at its level.
170
+ * Notes as {@link RoutedNote}s — for callers that parse the payload with
171
+ * their own parser (instead of MOTLY). Pass a route to filter; omit it
172
+ * to enumerate every annotation (the only way to reach malformed-prefix
173
+ * ones). `malformed-route` annotations are excluded when filtering.
180
174
  */
181
175
  forRoute(route) {
182
176
  return collectAnnotations(this.annote, route);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const MALLOY_VERSION = "0.0.401";
1
+ export declare const MALLOY_VERSION = "0.0.402";
package/dist/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MALLOY_VERSION = void 0;
4
4
  // generated with 'generate-version-file' script; do not edit manually
5
- exports.MALLOY_VERSION = '0.0.401';
5
+ exports.MALLOY_VERSION = '0.0.402';
6
6
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.401",
3
+ "version": "0.0.402",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -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.401",
55
- "@malloydata/malloy-interfaces": "0.0.401",
56
- "@malloydata/malloy-tag": "0.0.401",
54
+ "@malloydata/malloy-filter": "0.0.402",
55
+ "@malloydata/malloy-interfaces": "0.0.402",
56
+ "@malloydata/malloy-tag": "0.0.402",
57
57
  "@noble/hashes": "^1.8.0",
58
58
  "antlr4ts": "^0.5.0-alpha.4",
59
59
  "assert": "^2.0.0",