vue-component-meta 3.0.0-alpha.6 → 3.0.0-alpha.8

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 (2) hide show
  1. package/lib/base.js +3 -5
  2. package/package.json +4 -4
package/lib/base.js CHANGED
@@ -21,7 +21,6 @@ const typescript_1 = require("@volar/typescript");
21
21
  const vue = require("@vue/language-core");
22
22
  const path_browserify_1 = require("path-browserify");
23
23
  const vue_component_type_helpers_1 = require("vue-component-type-helpers");
24
- const vue2_1 = require("vue-component-type-helpers/vue2");
25
24
  __exportStar(require("./types"), exports);
26
25
  const windowsPathReg = /\\/g;
27
26
  function createCheckerByJsonConfigBase(ts, rootDir, json, checkerOptions = {}) {
@@ -189,7 +188,7 @@ interface ComponentMeta<T> {
189
188
  exposed: ComponentExposed<T>;
190
189
  };
191
190
 
192
- ${commandLine.vueOptions.target < 3 ? vue2_1.code : vue_component_type_helpers_1.code}
191
+ ${vue_component_type_helpers_1.code}
193
192
  `.trim();
194
193
  return code;
195
194
  }
@@ -240,7 +239,7 @@ ${commandLine.vueOptions.target < 3 ? vue2_1.code : vue_component_type_helpers_1
240
239
  }
241
240
  function getProps() {
242
241
  const $props = symbolProperties.find(prop => prop.escapedName === 'props');
243
- const propEventRegex = /^(on[A-Z])/;
242
+ const vnodeEventRegex = /^onVnode[A-Z]/;
244
243
  let result = [];
245
244
  if ($props) {
246
245
  const type = typeChecker.getTypeOfSymbolAtLocation($props, symbolNode);
@@ -250,7 +249,7 @@ ${commandLine.vueOptions.target < 3 ? vue2_1.code : vue_component_type_helpers_1
250
249
  const { resolveNestedProperties, } = createSchemaResolvers(typeChecker, symbolNode, checkerOptions, ts, language);
251
250
  return resolveNestedProperties(prop);
252
251
  })
253
- .filter(prop => !propEventRegex.test(prop.name));
252
+ .filter(prop => !vnodeEventRegex.test(prop.name));
254
253
  }
255
254
  // fill global
256
255
  if (componentPath !== globalComponentName) {
@@ -705,7 +704,6 @@ function readTsComponentDefaultProps(ast, exportName, printer, ts) {
705
704
  return component;
706
705
  }
707
706
  // export default defineComponent({ ... })
708
- // export default Vue.extend({ ... })
709
707
  else if (ts.isCallExpression(component)) {
710
708
  if (component.arguments.length) {
711
709
  const arg = component.arguments[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.8",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@volar/typescript": "~2.4.13",
17
- "@vue/language-core": "3.0.0-alpha.6",
17
+ "@vue/language-core": "3.0.0-alpha.8",
18
18
  "path-browserify": "^1.0.1",
19
- "vue-component-type-helpers": "3.0.0-alpha.6"
19
+ "vue-component-type-helpers": "3.0.0-alpha.8"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
@@ -30,5 +30,5 @@
30
30
  "@types/node": "^22.10.4",
31
31
  "@types/path-browserify": "^1.0.1"
32
32
  },
33
- "gitHead": "a7b5649ab4957cd2228f4bbc9205b2008bff58a2"
33
+ "gitHead": "d38cb93558fe8015c7ffe9ceacfdd3296e3692f6"
34
34
  }