@weapp-vite/ast 7.13.0-dev.20261130.1 → 7.13.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/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { BABEL_TS_MODULE_PARSER_OPTIONS, BABEL_TS_MODULE_PLUGINS, generate, getVisitorKeys, parse, parseJsLike, traverse } from "./babel.mjs";
2
2
  import { getObjectPropertyByKey, getRenderPropertyFromComponentOptions, resolveRenderExpressionFromComponentOptions, resolveRenderableExpression, toStaticObjectKey, unwrapTypeScriptExpression } from "./babelNodes.mjs";
3
3
  import { parseJsLikeWithEngine } from "./engine.mjs";
4
- import { A as NativeNpmLocalRootFact, C as NativeCompilerScriptInput, D as analyzeNpmChunksWithNative, E as analyzeCompilerScriptsWithNative, M as NativeNpmRequireFact, O as NativeNpmChunkAnalysis, S as NativeCompilerScriptImport, T as NativeOnPageScrollDiagnostic, _ as collectPageScrollInspectionWithOxc, a as getCallExpressionCalleeName, b as NativeCompilerRegisteredComponent, c as getOnPageScrollCallbackArgument, d as getOxcStaticPropertyName, f as isOnPageScrollCallee, g as collectOnPageScrollWarningsWithOxc, h as isStaticPropertyName, i as createWarningPrefix, j as NativeNpmPlatformApiFact, k as NativeNpmChunkAnalysisInput, l as getOxcCallExpressionCalleeName, m as isOxcOnPageScrollCallee, n as collectOnPageScrollWarningsWithNative, o as getLocationFromOffset, p as isOxcFunctionLike, r as createLineStartOffsets, s as getMemberExpressionPropertyName, t as collectOnPageScrollPerformanceWarnings, u as getOxcMemberExpressionPropertyName, v as collectOnPageScrollWarningsWithBabel, w as NativeCompilerScriptSpan, x as NativeCompilerScriptAnalysis, y as collectPageScrollInspection } from "./onPageScroll-h24XpECS.mjs";
4
+ import { A as NativeNpmLocalRootFact, C as NativeCompilerScriptInput, D as analyzeNpmChunksWithNative, E as analyzeCompilerScriptsWithNative, M as NativeNpmRequireFact, O as NativeNpmChunkAnalysis, S as NativeCompilerScriptImport, T as NativeOnPageScrollDiagnostic, _ as collectPageScrollInspectionWithOxc, a as getCallExpressionCalleeName, b as NativeCompilerRegisteredComponent, c as getOnPageScrollCallbackArgument, d as getOxcStaticPropertyName, f as isOnPageScrollCallee, g as collectOnPageScrollWarningsWithOxc, h as isStaticPropertyName, i as createWarningPrefix, j as NativeNpmPlatformApiFact, k as NativeNpmChunkAnalysisInput, l as getOxcCallExpressionCalleeName, m as isOxcOnPageScrollCallee, n as collectOnPageScrollWarningsWithNative, o as getLocationFromOffset, p as isOxcFunctionLike, r as createLineStartOffsets, s as getMemberExpressionPropertyName, t as collectOnPageScrollPerformanceWarnings, u as getOxcMemberExpressionPropertyName, v as collectOnPageScrollWarningsWithBabel, w as NativeCompilerScriptSpan, x as NativeCompilerScriptAnalysis, y as collectPageScrollInspection } from "./onPageScroll-6QjGYi8w.mjs";
5
5
  import { ComponentPropMap, collectComponentPropsFromCode, collectComponentPropsWithBabel, collectComponentPropsWithOxc, extractComponentProperties, extractPropertiesObject, getStaticPropertyName, mapConstructorName, mayContainComponentPropsShape, mergeComponentPropTypes, resolveOptionsObjectExpression, resolveOptionsObjectExpressionWithBabel, resolveTypeFromNode } from "./operations/componentProps.mjs";
6
6
  import { FeatureFlagOptions, collectFeatureFlagsFromCode, collectFeatureFlagsWithBabel, collectFeatureFlagsWithNative, collectFeatureFlagsWithNativeBatch, collectFeatureFlagsWithOxc, consumeNamedFeatureFlag, consumeNamespaceFeatureFlag, mayContainFeatureFlagHints, registerNamedFeatureFlagLocal, registerNamespaceFeatureFlagLocal } from "./operations/featureFlags.mjs";
7
7
  import { JsxAutoComponentAnalysisOptions, JsxAutoComponentContext, JsxBabelModuleAnalysisOptions, JsxImportedComponent, collectJsxAutoComponentsFromCode, collectJsxAutoComponentsWithBabel, collectJsxAutoComponentsWithOxc, collectJsxImportedComponentsAndDefaultExportFromBabelAst, collectJsxTemplateTagsFromBabelExpression, collectJsxTemplateTagsFromOxc, createJsxImportedComponent, defaultIsDefineComponentSource, defaultResolveBabelComponentExpression, defaultResolveBabelRenderExpression, getJsxImportLocalName, getJsxImportedName, getJsxOxcStaticPropertyName, isJsxDefineComponentImportSpecifier, mayContainJsxAutoComponentEntry, resolveOxcComponentExpression, resolveOxcRenderExpression, unwrapOxcExpression } from "./operations/jsxAutoComponents.mjs";
@@ -98,7 +98,7 @@ declare function isOnPageScrollCallee(callee: t.Expression | t.V8IntrinsicIdenti
98
98
  declare function getCallExpressionCalleeName(callee: t.Expression | t.V8IntrinsicIdentifier): string | undefined;
99
99
  declare function getOnPageScrollCallbackArgument(node: {
100
100
  arguments?: Array<t.Expression | t.SpreadElement | t.ArgumentPlaceholder | null>;
101
- }): t.FunctionExpression | t.ArrowFunctionExpression | undefined;
101
+ }): t.ArrowFunctionExpression | t.FunctionExpression | undefined;
102
102
  declare function createWarningPrefix(filename: string, line?: number, column?: number): string;
103
103
  declare function getOxcStaticPropertyName(node: any): string | undefined;
104
104
  declare function getOxcMemberExpressionPropertyName(node: any): string | undefined;
@@ -1,2 +1,2 @@
1
- import { _ as collectPageScrollInspectionWithOxc, a as getCallExpressionCalleeName, c as getOnPageScrollCallbackArgument, d as getOxcStaticPropertyName, f as isOnPageScrollCallee, g as collectOnPageScrollWarningsWithOxc, h as isStaticPropertyName, i as createWarningPrefix, l as getOxcCallExpressionCalleeName, m as isOxcOnPageScrollCallee, n as collectOnPageScrollWarningsWithNative, o as getLocationFromOffset, p as isOxcFunctionLike, r as createLineStartOffsets, s as getMemberExpressionPropertyName, t as collectOnPageScrollPerformanceWarnings, u as getOxcMemberExpressionPropertyName, v as collectOnPageScrollWarningsWithBabel, y as collectPageScrollInspection } from "../onPageScroll-h24XpECS.mjs";
1
+ import { _ as collectPageScrollInspectionWithOxc, a as getCallExpressionCalleeName, c as getOnPageScrollCallbackArgument, d as getOxcStaticPropertyName, f as isOnPageScrollCallee, g as collectOnPageScrollWarningsWithOxc, h as isStaticPropertyName, i as createWarningPrefix, l as getOxcCallExpressionCalleeName, m as isOxcOnPageScrollCallee, n as collectOnPageScrollWarningsWithNative, o as getLocationFromOffset, p as isOxcFunctionLike, r as createLineStartOffsets, s as getMemberExpressionPropertyName, t as collectOnPageScrollPerformanceWarnings, u as getOxcMemberExpressionPropertyName, v as collectOnPageScrollWarningsWithBabel, y as collectPageScrollInspection } from "../onPageScroll-6QjGYi8w.mjs";
2
2
  export { collectOnPageScrollPerformanceWarnings, collectOnPageScrollWarningsWithBabel, collectOnPageScrollWarningsWithNative, collectOnPageScrollWarningsWithOxc, collectPageScrollInspection, collectPageScrollInspectionWithOxc, createLineStartOffsets, createWarningPrefix, getCallExpressionCalleeName, getLocationFromOffset, getMemberExpressionPropertyName, getOnPageScrollCallbackArgument, getOxcCallExpressionCalleeName, getOxcMemberExpressionPropertyName, getOxcStaticPropertyName, isOnPageScrollCallee, isOxcFunctionLike, isOxcOnPageScrollCallee, isStaticPropertyName };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-vite/ast",
3
3
  "type": "module",
4
- "version": "7.13.0-dev.20261130.1",
4
+ "version": "7.13.0",
5
5
  "description": "weapp-vite 共享 AST 分析工具包,统一 Babel/Oxc 解析与常用分析操作",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -110,15 +110,15 @@
110
110
  "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
111
111
  },
112
112
  "dependencies": {
113
- "@babel/core": "^8.1.3",
114
- "@babel/generator": "^8.1.3",
113
+ "@babel/core": "^8.1.4",
114
+ "@babel/generator": "^8.1.4",
115
115
  "@babel/parser": "^8.1.3",
116
- "@babel/traverse": "^8.1.3",
116
+ "@babel/traverse": "^8.1.4",
117
117
  "@babel/types": "^8.1.3",
118
- "@oxc-project/types": "^0.160.0",
118
+ "@oxc-project/types": "^0.161.0",
119
119
  "@types/convert-source-map": "^2.0.3",
120
- "@weapp-core/shared": "3.6.0-dev.20261130.1",
121
- "oxc-parser": "^0.160.0",
120
+ "@weapp-core/shared": "3.6.0",
121
+ "oxc-parser": "^0.161.0",
122
122
  "oxc-walker": "^1.1.1"
123
123
  },
124
124
  "tsd": {
@@ -129,15 +129,7 @@
129
129
  },
130
130
  "publishConfig": {
131
131
  "access": "public",
132
- "registry": "https://registry.npmjs.org/",
133
- "tag": "snapshot-nightly"
134
- },
135
- "repoctlSnapshot": {
136
- "kind": "nightly",
137
- "commit": "4f3858893f8237f4fdfde8184b4181710f258abd",
138
- "buildId": "46346939951-1",
139
- "identityKey": "1651dc33696c72014fb21c45dd4f6d657cde19087d4b1cd32428bb266df0dd58",
140
- "tag": "snapshot-nightly"
132
+ "registry": "https://registry.npmjs.org"
141
133
  },
142
134
  "scripts": {
143
135
  "dev": "tsdown -w",
@@ -152,4 +144,4 @@
152
144
  "lint": "eslint .",
153
145
  "lint:fix": "eslint . --fix"
154
146
  }
155
- }
147
+ }