vue-jsx 3.3.0-rc.1 → 3.3.0-rc.2

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/dist/esbuild.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Options } from "./options-DO20LLvf.js";
2
2
  //#region src/esbuild.d.ts
3
- declare const _default: (options?: Options | undefined) => import("unplugin").EsbuildPlugin;
3
+ declare const _default: (options?: Options | undefined) => import("esbuild").Plugin;
4
4
  //#endregion
5
5
  export { _default as default };
package/dist/volar.js CHANGED
@@ -406,7 +406,7 @@ function _(e, t) {
406
406
  }
407
407
  }
408
408
  //#endregion
409
- //#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=4d7df65192eceb1e3a4c08b7e3c28c2aea947987c838490dcb28_441b6ef458e4462cad2dd596d8e2ac6e/node_modules/@vue-macros/volar/dist/jsx-directive-w2gUTWdx.js
409
+ //#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=fd21154639cf4ca643d5e6948fd8469d3640226ab245fd5d0068_ec237db335b039f69718e2c2ce1fc3c9/node_modules/@vue-macros/volar/dist/jsx-directive-w2gUTWdx.js
410
410
  function getDirectiveArgs(attribute, options) {
411
411
  const { ts, ast } = options;
412
412
  const attributeName = attribute.name.getText(ast);
@@ -943,10 +943,10 @@ function transformVSlot(nodeMap, ctxMap, options) {
943
943
  function transformVSlots(nodes, ctxMap, options) {
944
944
  const { codes, ts } = options;
945
945
  for (const { node, attribute: { initializer } } of nodes) if (initializer && ts.isJsxExpression(initializer) && initializer.expression) {
946
- if (ts.isObjectLiteralExpression(initializer.expression)) codes.replaceRange(initializer.expression.end, initializer.expression.end, ` satisfies typeof ${ctxMap.get(node)}.slots`);
946
+ if (ts.isObjectLiteralExpression(initializer.expression)) codes.replaceRange(initializer.expression.end, initializer.expression.end, ` satisfies typeof ${ctxMap.get(node)}.slots as Record<string, any>`);
947
947
  else if (ts.isFunctionExpression(initializer.expression) || ts.isArrowFunction(initializer.expression)) {
948
948
  codes.replaceRange(initializer.expression.pos, initializer.expression.pos, "(");
949
- codes.replaceRange(initializer.expression.end, initializer.expression.end, `) satisfies typeof ${ctxMap.get(node)}.slots.default`);
949
+ codes.replaceRange(initializer.expression.end, initializer.expression.end, `) satisfies typeof ${ctxMap.get(node)}.slots.default as any`);
950
950
  }
951
951
  }
952
952
  }
@@ -1122,7 +1122,7 @@ var jsx_directive_default = g(({ ts, vueCompilerOptions }, options = vueCompiler
1122
1122
  };
1123
1123
  });
1124
1124
  //#endregion
1125
- //#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=4d7df65192eceb1e3a4c08b7e3c28c2aea947987c838490dcb28_441b6ef458e4462cad2dd596d8e2ac6e/node_modules/@vue-macros/volar/dist/jsx-ref-DZlb-F7c.js
1125
+ //#region ../../node_modules/.pnpm/@vue-macros+volar@3.1.4_patch_hash=fd21154639cf4ca643d5e6948fd8469d3640226ab245fd5d0068_ec237db335b039f69718e2c2ce1fc3c9/node_modules/@vue-macros/volar/dist/jsx-ref-DZlb-F7c.js
1126
1126
  function transformRef({ nodes, codes, ts }) {
1127
1127
  for (const { name, initializer } of nodes) if (ts.isCallExpression(initializer)) codes.replaceRange(initializer.expression.end, initializer.expression.end, `<Parameters<typeof __VLS_ctx_${name.text}['expose']>[0] | null>`);
1128
1128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx",
3
- "version": "3.3.0-rc.1",
3
+ "version": "3.3.0-rc.2",
4
4
  "description": "High-performance Vue JSX Compiler powered by Oxc",
5
5
  "keywords": [
6
6
  "compiler",
@@ -60,16 +60,16 @@
60
60
  "./*": "./*"
61
61
  },
62
62
  "dependencies": {
63
- "@vue-jsx/compiler": "3.3.0-rc.1",
64
- "@vue-jsx/macros": "3.3.0-rc.1",
65
- "@vue-jsx/runtime": "3.3.0-rc.1",
63
+ "@vue-jsx/compiler": "3.3.0-rc.2",
64
+ "@vue-jsx/macros": "3.3.0-rc.2",
65
+ "@vue-jsx/runtime": "3.3.0-rc.2",
66
66
  "unplugin": "^3.0.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@nuxt/kit": "^4.5.2",
70
70
  "@nuxt/schema": "^4.5.2",
71
71
  "@vue-macros/volar": "^3.1.4",
72
- "vue": "3.6.0-rc.8"
72
+ "vue": "3.6.0-rc.9"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@nuxt/kit": "^3",