@nudojs/parser 1.1.0-beta.0 → 1.1.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -3,7 +3,11 @@ import { Abs, MockHelper } from '@nudojs/core';
3
3
  export { stripTypes } from '@nudojs/core';
4
4
 
5
5
  /**
6
- * 与 core `parseSource` 同一实现与 AST LRU:
6
+ * 所有权:Babel 解析与 TS 剥除的**实现**在 `@nudojs/core`
7
+ * (`algebra/parse-source.ts` / `strip-types.ts`)—— core 代数层
8
+ * (check/scan/generalize)需要 AST 且不能反向依赖本包。本包职责是
9
+ * `@nudo:` 指令抽取与 AST 卫兵;`parse()` 是宿主入口,委托 core 同一实现与 AST LRU。
10
+ *
7
11
  * 决策:parse() 统一做 TS 剥除(不按 .ts 路径开关)。理由:parse() 的产物被
8
12
  * CLI/service/LSP/evaluator 全链消费,按调用方 opt-in 会漏掉无法感知文件扩展名
9
13
  * 的消费方(analyzer 的模块解析、LSP 等);对纯 JS 源码剥除是结构性 no-op,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nudojs/parser",
3
- "version": "1.1.0-beta.0",
3
+ "version": "1.1.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -39,8 +39,8 @@
39
39
  "registry": "https://registry.npmjs.org"
40
40
  },
41
41
  "dependencies": {
42
- "@babel/types": "^8.0.6",
43
- "@nudojs/core": "3.0.0-beta.0"
42
+ "@nudojs/core": "1.1.0",
43
+ "@babel/types": "^8.0.6"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup src/index.ts --format esm --dts"