@weapp-vite/wxml 0.1.0-alpha.0 → 0.1.0-alpha.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/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/package.json +16 -15
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ice breaker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  保留源码的小程序模板 parser 与 serializer。核心在 Node 和浏览器中运行,不依赖 DOM、文件系统或 JavaScript AST parser。
4
4
 
5
- 首版预览通过 GitHub Actions OIDC 发布到 `alpha`,安装使用 `npm install @weapp-vite/wxml@alpha`。npm 初始化产生的 `0.0.0-stage` 只是占位版本;正式版继续使用仓库 changeset 发布流程。维护者入口与证据说明见[发布文档](https://github.com/weapp-vite/weapp-vite/blob/main/docs/repoctl-release.md#wxml-首版-alpha-预览)。
5
+ 后续预览通过仓库共享的 `Release`(`release.yml`)单包 bootstrap 入口与 GitHub Actions OIDC 发布到 `alpha`,安装使用 `npm install @weapp-vite/wxml@alpha`;需要固定复现时安装精确版本。npm 初始化产生的 `0.0.0-stage` 只是占位版本;正式版继续使用仓库 changeset 发布流程。维护者入口见[单包 bootstrap](https://github.com/weapp-vite/weapp-vite/blob/main/docs/repoctl-release.md#单包-bootstrap),首版 `0.1.0-alpha.0` 的独立上传与补验证据见[历史记录](https://github.com/weapp-vite/weapp-vite/blob/main/docs/repoctl-release.md#wxml-首版记录)。
6
6
 
7
7
  ```ts
8
8
  import { edit, parse, serialize, walk } from '@weapp-vite/wxml'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-vite/wxml",
3
3
  "type": "module",
4
- "version": "0.1.0-alpha.0",
4
+ "version": "0.1.0-alpha.1",
5
5
  "description": "Source-preserving multi-platform mini-program template parser and serializer",
6
6
  "license": "MIT",
7
7
  "homepage": "https://vite.weapp.dev/packages/wxml",
@@ -38,23 +38,13 @@
38
38
  "engines": {
39
39
  "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
40
40
  },
41
- "scripts": {
42
- "build": "tsdown",
43
- "test": "vitest run --config ./vitest.config.ts",
44
- "test:types": "pnpm build && pnpm run test:types:check",
45
- "test:types:check": "tsd --files \"test-d/**/*.test-d.ts\"",
46
- "typecheck": "tsc -p tsconfig.json --noEmit",
47
- "lint": "eslint .",
48
- "bench": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/benchmarkWxmlParser/index.ts --quick --browser --consumer-scanner packages/weapp-vite/src/wxml/scan/parser.ts#parseWxml --consumer-web packages-runtime/web/src/compiler/wxml/parser.ts#parseWxml --consumer-simulator mpcore/packages/simulator/src/view/wxsDocument.ts#parseWxsTemplateDocument",
49
- "bench:check": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/benchmarkWxmlParser/index.ts --check --browser --consumer-scanner packages/weapp-vite/src/wxml/scan/parser.ts#parseWxml --consumer-web packages-runtime/web/src/compiler/wxml/parser.ts#parseWxml --consumer-simulator mpcore/packages/simulator/src/view/wxsDocument.ts#parseWxsTemplateDocument"
50
- },
51
41
  "dependencies": {
52
42
  "entities": "^8.1.0"
53
43
  },
54
44
  "devDependencies": {
55
45
  "dom-serializer": "^3.1.1",
56
- "htmlparser2": "catalog:",
57
- "typescript": "catalog:",
46
+ "htmlparser2": "^12.0.0",
47
+ "typescript": "^6.0.3",
58
48
  "vitest": "~5.0.5"
59
49
  },
60
50
  "tsd": {
@@ -67,6 +57,17 @@
67
57
  },
68
58
  "publishConfig": {
69
59
  "access": "public",
70
- "registry": "https://registry.npmjs.org"
60
+ "registry": "https://registry.npmjs.org/",
61
+ "tag": "alpha"
62
+ },
63
+ "scripts": {
64
+ "build": "tsdown",
65
+ "test": "vitest run --config ./vitest.config.ts",
66
+ "test:types": "pnpm build && pnpm run test:types:check",
67
+ "test:types:check": "tsd --files \"test-d/**/*.test-d.ts\"",
68
+ "typecheck": "tsc -p tsconfig.json --noEmit",
69
+ "lint": "eslint .",
70
+ "bench": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/benchmarkWxmlParser/index.ts --quick --browser --consumer-scanner packages/weapp-vite/src/wxml/scan/parser.ts#parseWxml --consumer-web packages-runtime/web/src/compiler/wxml/parser.ts#parseWxml --consumer-simulator mpcore/packages/simulator/src/view/wxsDocument.ts#parseWxsTemplateDocument",
71
+ "bench:check": "node --stack-size=4096 --expose-gc --import tsx ../../scripts/benchmarkWxmlParser/index.ts --check --browser --consumer-scanner packages/weapp-vite/src/wxml/scan/parser.ts#parseWxml --consumer-web packages-runtime/web/src/compiler/wxml/parser.ts#parseWxml --consumer-simulator mpcore/packages/simulator/src/view/wxsDocument.ts#parseWxsTemplateDocument"
71
72
  }
72
- }
73
+ }