@markuplint/react-spec 4.5.23 → 5.0.0-alpha.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/ARCHITECTURE.ja.md +4 -0
- package/ARCHITECTURE.md +4 -0
- package/CHANGELOG.md +6 -0
- package/lib/index.js +1 -0
- package/package.json +6 -3
package/ARCHITECTURE.ja.md
CHANGED
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
## ExtendedSpec の内容
|
|
10
10
|
|
|
11
|
+
### `useIDLAttributeNames`
|
|
12
|
+
|
|
13
|
+
この spec は `useIDLAttributeNames: true` を設定しており、`@markuplint/ml-core` の `MLAttr` コンストラクタに IDL 属性名を HTML コンテンツ属性名に解決するよう指示します(例: `className` -> `class`、`htmlFor` -> `for`)。この解決はパーサーではなくコアレベルで行われます。
|
|
14
|
+
|
|
11
15
|
### グローバル属性
|
|
12
16
|
|
|
13
17
|
グローバル属性は `def['#globalAttrs']['#extends']` の下に定義され、すべての JSX 要素で利用可能です:
|
package/ARCHITECTURE.md
CHANGED
|
@@ -8,6 +8,10 @@ This package contains no parsing logic -- it is purely a data definition consume
|
|
|
8
8
|
|
|
9
9
|
## ExtendedSpec Content
|
|
10
10
|
|
|
11
|
+
### `useIDLAttributeNames`
|
|
12
|
+
|
|
13
|
+
The spec sets `useIDLAttributeNames: true`, which instructs `@markuplint/ml-core`'s `MLAttr` constructor to resolve IDL attribute names to their HTML content attribute equivalents (e.g., `className` -> `class`, `htmlFor` -> `for`). This resolution is performed at the core level, not in the parser.
|
|
14
|
+
|
|
11
15
|
### Global Attributes
|
|
12
16
|
|
|
13
17
|
Global attributes are defined under `def['#globalAttrs']['#extends']` and are available on every JSX element:
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v5.0.0-alpha.0) (2026-02-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **react-spec:** add useIDLAttributeNames flag for IDL attribute resolution ([8d19c0c](https://github.com/markuplint/markuplint/commit/8d19c0cff75b5f0ee9703df08591642a8bd4fa47))
|
|
11
|
+
|
|
6
12
|
## [4.5.23](https://github.com/markuplint/markuplint/compare/@markuplint/react-spec@4.5.22...@markuplint/react-spec@4.5.23) (2026-02-10)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @markuplint/react-spec
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/react-spec",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.0",
|
|
4
4
|
"description": "Extended specification for tags and attributes in React",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=22"
|
|
10
|
+
},
|
|
8
11
|
"type": "module",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
|
-
"@markuplint/ml-spec": "
|
|
27
|
+
"@markuplint/ml-spec": "5.0.0-alpha.0"
|
|
25
28
|
},
|
|
26
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "13dcfc84ec83d87360c720e253383b60767e1b56"
|
|
27
30
|
}
|