@lwc/metadata 9.2.0 → 9.4.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.
@@ -75,7 +75,7 @@ function rollupDiagnostics(files) {
75
75
  );
76
76
  }
77
77
  } */
78
- const version = '9.2.0';
78
+ const version = '9.4.0';
79
79
  function collectBundleMetadata(config) {
80
80
  // validateBundleConfig(config);
81
81
  const { namespace, name, type, namespaceMapping, files, enableKomaci, strictCSSTokenCollection, enableLuvio, experimentalComplexExpressions, apiVersion, } = config;
@@ -7,7 +7,7 @@ import { CollectionStrategy } from './main';
7
7
  export declare const SALESFORCE_PREFIX = "@salesforce";
8
8
  export declare function isValidImportForPrefix(prefix: string, source: string): boolean;
9
9
  export declare function isSalesforceImport(value: string): boolean;
10
- export declare function isLwcReference(value: string): boolean;
10
+ export declare function isLwcReference(value: string): value is "lwc";
11
11
  export declare const isRelativeImport: (source: string) => boolean;
12
12
  export declare function createReferenceDiagnostic(sourceNode: t.StringLiteral, fileName: string, errorInfo: LWCErrorInfo, messageArgs: any[]): CompilerDiagnostic;
13
13
  export declare function getModuleReference(moduleSpecifier: string, sourceNode: t.StringLiteral, state: State, referenceType: 'lwc' | 'local' | 'external' | '@salesforce'): ModuleReference;
@@ -1,5 +1,5 @@
1
1
  import * as t from '@babel/types';
2
2
  import { NodePath } from '@babel/traverse';
3
- import { ScriptFile, Class } from '../../schema/typescript-types/script-metadata-types';
3
+ import { ScriptFile } from '../../schema/typescript-types/script-metadata-types';
4
4
  import { ScriptState } from '../utils';
5
5
  export default function visitorFunction(state: ScriptState, result: ScriptFile): (path: NodePath<t.Class>) => void;
@@ -56,8 +56,8 @@ export declare function tagNameToComponentName(name: string): string;
56
56
  export declare function attributeNameToPropertyName(name: string): string;
57
57
  declare const assign: {
58
58
  <T extends {}, U>(target: T, source: U): T & U;
59
- <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
60
- <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
59
+ <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
60
+ <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
61
61
  (target: object, ...sources: any[]): any;
62
62
  }, keys: {
63
63
  (o: object): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/metadata",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "description": "Extract metadata about Lightning Web Components modules. This software is provided as-is with no support provided.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -14,17 +14,17 @@
14
14
  "build": "rollup --config scripts/rollup.config.js"
15
15
  },
16
16
  "dependencies": {
17
- "@babel/parser": "~7.24.4",
18
- "@babel/traverse": "~7.24.1",
19
- "@babel/types": "~7.24.0",
20
- "@lwc/sfdc-compiler-utils": "9.2.0",
21
- "postcss": "~8.4.38",
22
- "postcss-selector-parser": "~6.0.16",
17
+ "@babel/parser": "~7.24.8",
18
+ "@babel/traverse": "~7.24.8",
19
+ "@babel/types": "~7.24.8",
20
+ "@lwc/sfdc-compiler-utils": "9.4.0",
21
+ "postcss": "~8.4.39",
22
+ "postcss-selector-parser": "~6.1.0",
23
23
  "postcss-value-parser": "~4.2.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/babel__core": "^7.20.5",
27
- "@types/babel__traverse": "^7.20.5"
27
+ "@types/babel__traverse": "^7.20.6"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@lwc/errors": ">=7",