@lwc/template-compiler 2.49.1 → 3.0.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.
- package/README.md +2 -0
- package/dist/config.d.ts +4 -0
- package/dist/index.cjs.js +24 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +25 -13
- package/dist/index.js.map +1 -1
- package/dist/parser/parse5Errors.d.ts +1 -1
- package/dist/parser/parser.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const errorCodesToErrorOn: Set<string>;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const errorCodesToWarnOnInOlderAPIVersions: Set<string>;
|
package/dist/parser/parser.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CompilerDiagnostic, InstrumentationObject, LWCErrorInfo } from '@lwc/errors';
|
|
2
|
+
import { APIVersion } from '@lwc/shared';
|
|
2
3
|
import { NormalizedConfig } from '../config';
|
|
3
4
|
import { Root, SourceLocation, ParentNode, BaseNode, LWCDirectiveRenderMode, IfBlock, ElseifBlock, ElseBlock } from '../shared/types';
|
|
4
5
|
import type { ecmaVersion as EcmaVersion } from 'acorn';
|
|
@@ -48,6 +49,7 @@ export default class ParserCtx {
|
|
|
48
49
|
private readonly siblingScopes;
|
|
49
50
|
renderMode: LWCDirectiveRenderMode;
|
|
50
51
|
preserveComments: boolean;
|
|
52
|
+
apiVersion: APIVersion;
|
|
51
53
|
constructor(source: String, config: NormalizedConfig);
|
|
52
54
|
getSource(start: number, end: number): string;
|
|
53
55
|
setRootDirective(root: Root): void;
|
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": "
|
|
7
|
+
"version": "3.0.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": "
|
|
46
|
-
"@lwc/shared": "
|
|
45
|
+
"@lwc/errors": "3.0.0",
|
|
46
|
+
"@lwc/shared": "3.0.0",
|
|
47
47
|
"acorn": "~8.8.2",
|
|
48
48
|
"astring": "~1.8.6",
|
|
49
49
|
"estree-walker": "~2.0.2",
|