@file-viewer/eda-orcad 3.1.2 → 3.2.1

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 (3) hide show
  1. package/README.en.md +3 -22
  2. package/README.md +3 -22
  3. package/package.json +12 -13
package/README.en.md CHANGED
@@ -1,26 +1,7 @@
1
1
  # @file-viewer/eda-orcad
2
2
 
3
- Framework-neutral OrCAD / Allegro binary inspection helpers for Flyfish File Viewer. It provides CFB/OLE2 detection, safe text sampling, hex preview, and string extraction primitives without any UI dependency.
3
+ Runtime package version 3.2.1.
4
4
 
5
- ```ts
6
- import {
7
- isOrcadCompoundFile,
8
- collectOrcadStrings,
9
- decodeOrcadSample,
10
- } from '@file-viewer/eda-orcad'
5
+ Usage and API documentation: https://doc.file-viewer.app/guide/format-fidelity
11
6
 
12
- const bytes = new Uint8Array(buffer)
13
- const isCfb = isOrcadCompoundFile(bytes)
14
- const strings = collectOrcadStrings([bytes])
15
- const sample = decodeOrcadSample(bytes)
16
- ```
17
-
18
- ## Scope
19
-
20
- - Used by `.olb`, `.dra`, `.psm`, `.pad`, and related OrCAD / Allegro proprietary binaries for structural indexing and safe fallback preview.
21
- - No UI framework and no DOM dependency.
22
- - Full symbol / footprint geometry parsing remains a separate C++ WASM or staged TypeScript porting path based on OpenOrCadParser / OpenAllegroParser style engines.
23
-
24
- ## Why This Package Exists
25
-
26
- The public OrCAD / Allegro file format surface is limited. Keeping binary inspection and future WASM parser boundaries in a separate package lets `@file-viewer/renderer-eda` stay focused on presentation while the engine evolves independently.
7
+ The package's own license is Apache-2.0. Included third-party notices apply to their respective components.
package/README.md CHANGED
@@ -1,26 +1,7 @@
1
1
  # @file-viewer/eda-orcad
2
2
 
3
- Flyfish File Viewer 的独立 OrCAD / Allegro 二进制检查内核包。它提供 CFB/OLE2 检测、安全文本采样、十六进制预览和字符串抽取等底层能力,不包含 UI。
3
+ Runtime package version 3.2.1.
4
4
 
5
- ```ts
6
- import {
7
- isOrcadCompoundFile,
8
- collectOrcadStrings,
9
- decodeOrcadSample,
10
- } from '@file-viewer/eda-orcad'
5
+ Usage and API documentation: https://doc.file-viewer.app/guide/format-fidelity
11
6
 
12
- const bytes = new Uint8Array(buffer)
13
- const isCfb = isOrcadCompoundFile(bytes)
14
- const strings = collectOrcadStrings([bytes])
15
- const sample = decodeOrcadSample(bytes)
16
- ```
17
-
18
- ## 定位
19
-
20
- - 当前用于 `.olb`、`.dra`、`.psm`、`.pad` 等 OrCAD / Allegro 私有二进制文件的结构索引和安全退化预览。
21
- - 不依赖 UI 框架,不依赖 DOM,可独立发布、独立回归。
22
- - 完整符号/封装几何解析会继续沿 OpenOrCadParser / OpenAllegroParser 的 C++ WASM 或 TypeScript 分阶段移植路线推进。
23
-
24
- ## 为什么单独拆包
25
-
26
- OrCAD / Allegro 文件格式公开资料有限,强行把 parser 混进 UI renderer 会让后续维护越来越难。本包把二进制检查和后续 WASM 内核边界固定下来,`@file-viewer/renderer-eda` 只负责展示。
7
+ The package's own license is Apache-2.0. Included third-party notices apply to their respective components.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/eda-orcad",
3
- "version": "3.1.2",
3
+ "version": "3.2.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Pure TypeScript OrCAD and Allegro binary inspection helpers for File Viewer with CFB detection and safe string extraction.",
@@ -28,8 +28,7 @@
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "git+https://github.com/flyfish-dev/file-viewer.git",
32
- "directory": "packages/renderers/eda-orcad"
31
+ "url": "git+https://github.com/flyfish-dev/file-viewer.git"
33
32
  },
34
33
  "homepage": "https://doc.file-viewer.app/guide/format-fidelity",
35
34
  "bugs": {
@@ -51,17 +50,17 @@
51
50
  "./package.json": "./package.json"
52
51
  },
53
52
  "files": [
54
- "dist",
55
- "README.md",
53
+ "dist/index.d.ts",
54
+ "dist/index.js",
55
+ "LICENSE",
56
56
  "README.en.md",
57
- "LICENSE"
57
+ "README.md"
58
58
  ],
59
- "devDependencies": {
60
- "typescript": "^6.0.3"
61
- },
62
59
  "license": "Apache-2.0",
63
- "scripts": {
64
- "build": "tsc -b tsconfig.json",
65
- "type-check": "tsc -b tsconfig.json"
60
+ "fileViewer": {
61
+ "distribution": {
62
+ "schemaVersion": 1,
63
+ "mode": "runtime-only"
64
+ }
66
65
  }
67
- }
66
+ }