@lwc/template-compiler 2.45.4 → 2.46.0

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.
@@ -1,4 +1,4 @@
1
- import { CompilerDiagnostic, LWCErrorInfo } from '@lwc/errors';
1
+ import { CompilerDiagnostic, InstrumentationObject, LWCErrorInfo } from '@lwc/errors';
2
2
  import { NormalizedConfig } from '../config';
3
3
  import { Root, SourceLocation, ParentNode, BaseNode, LWCDirectiveRenderMode, IfBlock, ElseifBlock, ElseBlock } from '../shared/types';
4
4
  import type { ecmaVersion as EcmaVersion } from 'acorn';
@@ -11,6 +11,11 @@ export default class ParserCtx {
11
11
  private readonly source;
12
12
  readonly config: NormalizedConfig;
13
13
  readonly warnings: CompilerDiagnostic[];
14
+ /**
15
+ * Instrumentation object to handle gathering metrics and internal logs for everything happening
16
+ * during this context.
17
+ */
18
+ readonly instrumentation?: InstrumentationObject;
14
19
  readonly seenIds: Set<string>;
15
20
  readonly seenSlots: Set<string>;
16
21
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."
5
5
  ],
6
6
  "name": "@lwc/template-compiler",
7
- "version": "2.45.4",
7
+ "version": "2.46.0",
8
8
  "description": "Template compiler package",
9
9
  "keywords": [
10
10
  "lwc"
@@ -42,8 +42,8 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@lwc/errors": "2.45.4",
46
- "@lwc/shared": "2.45.4",
45
+ "@lwc/errors": "2.46.0",
46
+ "@lwc/shared": "2.46.0",
47
47
  "acorn": "~8.8.2",
48
48
  "astring": "~1.8.3",
49
49
  "estree-walker": "~2.0.2",